From 6fc7b242f48a25f0203810d8662d8bbb19e256a4 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 10 Jun 2022 03:02:04 +0000 Subject: [PATCH 1/2] chore: Integrate new gapic-generator-java and rules_gapic PiperOrigin-RevId: 454027580 Source-Link: https://github.com/googleapis/googleapis/commit/1b222777baa702e7135610355706570ed2b56318 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e04cea20d0d12eb5c3bdb360a9e72b654edcb638 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTA0Y2VhMjBkMGQxMmViNWMzYmRiMzYwYTllNzJiNjU0ZWRjYjYzOCJ9 --- .../v1beta1/DataLabelingServiceGrpc.java | 4406 ----------------- .../v1beta1/DataLabelingServiceClient.java | 188 +- .../v1beta1/DataLabelingServiceSettings.java | 25 +- .../datalabeling/v1beta1/gapic_metadata.json | 0 .../datalabeling/v1beta1/package-info.java | 0 .../v1beta1/stub/DataLabelingServiceStub.java | 0 .../stub/DataLabelingServiceStubSettings.java | 78 +- ...rpcDataLabelingServiceCallableFactory.java | 0 .../stub/GrpcDataLabelingServiceStub.java | 1 + .../DataLabelingServiceClientTest.java | 0 .../v1beta1/MockDataLabelingService.java | 0 .../v1beta1/MockDataLabelingServiceImpl.java | 0 .../v1beta1/DataLabelingServiceGrpc.java | 3217 ++++++++++++ .../v1beta1/AnnotatedDataset.java | 1111 ++--- .../v1beta1/AnnotatedDatasetMetadata.java | 2216 +++------ .../AnnotatedDatasetMetadataOrBuilder.java | 211 +- .../v1beta1/AnnotatedDatasetName.java | 0 .../v1beta1/AnnotatedDatasetOrBuilder.java | 105 +- .../datalabeling/v1beta1/Annotation.java | 688 +-- .../v1beta1/AnnotationMetadata.java | 354 +- .../v1beta1/AnnotationMetadataOrBuilder.java | 26 +- .../v1beta1/AnnotationOrBuilder.java | 58 +- .../v1beta1/AnnotationOuterClass.java | 432 ++ .../v1beta1/AnnotationSentiment.java | 87 +- .../v1beta1/AnnotationSource.java | 83 +- .../datalabeling/v1beta1/AnnotationSpec.java | 390 +- .../v1beta1/AnnotationSpecOrBuilder.java | 36 +- .../v1beta1/AnnotationSpecSet.java | 727 ++- .../v1beta1/AnnotationSpecSetName.java | 0 .../v1beta1/AnnotationSpecSetOrBuilder.java | 78 +- .../v1beta1/AnnotationSpecSetOuterClass.java | 84 + .../datalabeling/v1beta1/AnnotationType.java | 167 +- .../datalabeling/v1beta1/AnnotationValue.java | 2112 +++----- .../v1beta1/AnnotationValueOrBuilder.java | 240 +- .../cloud/datalabeling/v1beta1/Attempt.java | 472 +- .../v1beta1/AttemptOrBuilder.java | 43 +- .../datalabeling/v1beta1/BigQuerySource.java | 311 +- .../v1beta1/BigQuerySourceOrBuilder.java | 27 +- .../v1beta1/BoundingBoxEvaluationOptions.java | 308 +- ...BoundingBoxEvaluationOptionsOrBuilder.java | 21 +- .../datalabeling/v1beta1/BoundingPoly.java | 381 +- .../v1beta1/BoundingPolyConfig.java | 393 +- .../v1beta1/BoundingPolyConfigOrBuilder.java | 36 +- .../v1beta1/BoundingPolyOrBuilder.java | 36 +- .../v1beta1/ClassificationMetadata.java | 282 +- .../ClassificationMetadataOrBuilder.java | 19 + .../v1beta1/ClassificationMetrics.java | 449 +- .../ClassificationMetricsOrBuilder.java | 34 +- .../datalabeling/v1beta1/ConfusionMatrix.java | 1589 +++--- .../v1beta1/ConfusionMatrixOrBuilder.java | 33 + .../CreateAnnotationSpecSetRequest.java | 540 +- ...eateAnnotationSpecSetRequestOrBuilder.java | 55 +- .../v1beta1/CreateDatasetRequest.java | 488 +- .../CreateDatasetRequestOrBuilder.java | 58 + .../v1beta1/CreateEvaluationJobRequest.java | 510 +- .../CreateEvaluationJobRequestOrBuilder.java | 58 + .../v1beta1/CreateInstructionMetadata.java | 573 +-- .../CreateInstructionMetadataOrBuilder.java | 54 +- .../v1beta1/CreateInstructionRequest.java | 507 +- .../CreateInstructionRequestOrBuilder.java | 58 + .../datalabeling/v1beta1/CsvInstruction.java | 311 +- .../v1beta1/CsvInstructionOrBuilder.java | 29 + .../cloud/datalabeling/v1beta1/DataItem.java | 671 +-- .../datalabeling/v1beta1/DataItemName.java | 0 .../v1beta1/DataItemOrBuilder.java | 51 +- .../DataLabelingServiceOuterClass.java | 948 ++++ .../datalabeling/v1beta1/DataPayloads.java | 105 + .../cloud/datalabeling/v1beta1/DataType.java | 110 +- .../cloud/datalabeling/v1beta1/Dataset.java | 837 ++-- .../datalabeling/v1beta1/DatasetName.java | 0 .../v1beta1/DatasetOrBuilder.java | 92 +- .../v1beta1/DatasetOuterClass.java | 337 ++ .../DeleteAnnotatedDatasetRequest.java | 375 +- ...eleteAnnotatedDatasetRequestOrBuilder.java | 33 + .../DeleteAnnotationSpecSetRequest.java | 378 +- ...leteAnnotationSpecSetRequestOrBuilder.java | 31 + .../v1beta1/DeleteDatasetRequest.java | 342 +- .../DeleteDatasetRequestOrBuilder.java | 31 + .../v1beta1/DeleteEvaluationJobRequest.java | 363 +- .../DeleteEvaluationJobRequestOrBuilder.java | 31 + .../v1beta1/DeleteInstructionRequest.java | 360 +- .../DeleteInstructionRequestOrBuilder.java | 31 + .../datalabeling/v1beta1/Evaluation.java | 827 ++-- .../v1beta1/EvaluationConfig.java | 491 +- .../v1beta1/EvaluationConfigOrBuilder.java | 47 +- .../datalabeling/v1beta1/EvaluationJob.java | 1216 ++--- .../v1beta1/EvaluationJobAlertConfig.java | 375 +- .../EvaluationJobAlertConfigOrBuilder.java | 30 +- .../v1beta1/EvaluationJobConfig.java | 1711 +++---- .../v1beta1/EvaluationJobConfigOrBuilder.java | 174 +- .../v1beta1/EvaluationJobName.java | 0 .../v1beta1/EvaluationJobOrBuilder.java | 109 +- .../v1beta1/EvaluationJobOuterClass.java | 167 + .../v1beta1/EvaluationMetrics.java | 578 +-- .../v1beta1/EvaluationMetricsOrBuilder.java | 46 +- .../datalabeling/v1beta1/EvaluationName.java | 0 .../v1beta1/EvaluationOrBuilder.java | 68 +- .../v1beta1/EvaluationOuterClass.java | 235 + .../datalabeling/v1beta1/EventConfig.java | 382 +- .../v1beta1/EventConfigOrBuilder.java | 48 +- .../cloud/datalabeling/v1beta1/Example.java | 802 ++- .../datalabeling/v1beta1/ExampleName.java | 0 .../v1beta1/ExampleOrBuilder.java | 69 +- .../v1beta1/ExportDataOperationMetadata.java | 581 +-- .../ExportDataOperationMetadataOrBuilder.java | 54 +- .../v1beta1/ExportDataOperationResponse.java | 608 +-- .../ExportDataOperationResponseOrBuilder.java | 49 +- .../v1beta1/ExportDataRequest.java | 754 ++- .../v1beta1/ExportDataRequestOrBuilder.java | 90 +- .../datalabeling/v1beta1/GcsDestination.java | 390 +- .../v1beta1/GcsDestinationOrBuilder.java | 36 +- .../v1beta1/GcsFolderDestination.java | 314 +- .../GcsFolderDestinationOrBuilder.java | 29 + .../cloud/datalabeling/v1beta1/GcsSource.java | 383 +- .../v1beta1/GcsSourceOrBuilder.java | 36 +- .../v1beta1/GetAnnotatedDatasetRequest.java | 363 +- .../GetAnnotatedDatasetRequestOrBuilder.java | 33 + .../v1beta1/GetAnnotationSpecSetRequest.java | 371 +- .../GetAnnotationSpecSetRequestOrBuilder.java | 31 + .../v1beta1/GetDataItemRequest.java | 342 +- .../v1beta1/GetDataItemRequestOrBuilder.java | 31 + .../v1beta1/GetDatasetRequest.java | 342 +- .../v1beta1/GetDatasetRequestOrBuilder.java | 31 + .../v1beta1/GetEvaluationJobRequest.java | 350 +- .../GetEvaluationJobRequestOrBuilder.java | 31 + .../v1beta1/GetEvaluationRequest.java | 342 +- .../GetEvaluationRequestOrBuilder.java | 31 + .../v1beta1/GetExampleRequest.java | 421 +- .../v1beta1/GetExampleRequestOrBuilder.java | 44 +- .../v1beta1/GetInstructionRequest.java | 342 +- .../GetInstructionRequestOrBuilder.java | 31 + .../v1beta1/HumanAnnotationConfig.java | 1081 ++-- .../HumanAnnotationConfigOrBuilder.java | 125 +- .../HumanAnnotationConfigOuterClass.java | 242 + .../v1beta1/ImageBoundingPolyAnnotation.java | 681 +-- .../ImageBoundingPolyAnnotationOrBuilder.java | 49 +- .../ImageClassificationAnnotation.java | 378 +- ...mageClassificationAnnotationOrBuilder.java | 26 +- .../v1beta1/ImageClassificationConfig.java | 478 +- .../ImageClassificationConfigOrBuilder.java | 44 +- .../datalabeling/v1beta1/ImagePayload.java | 505 +- .../v1beta1/ImagePayloadOrBuilder.java | 48 +- .../v1beta1/ImagePolylineAnnotation.java | 612 +-- .../ImagePolylineAnnotationOrBuilder.java | 41 +- .../v1beta1/ImageSegmentationAnnotation.java | 687 ++- .../ImageSegmentationAnnotationOrBuilder.java | 76 +- .../v1beta1/ImportDataOperationMetadata.java | 581 +-- .../ImportDataOperationMetadataOrBuilder.java | 54 +- .../v1beta1/ImportDataOperationResponse.java | 411 +- .../ImportDataOperationResponseOrBuilder.java | 33 +- .../v1beta1/ImportDataRequest.java | 568 +-- .../v1beta1/ImportDataRequestOrBuilder.java | 64 +- .../datalabeling/v1beta1/InputConfig.java | 938 ++-- .../v1beta1/InputConfigOrBuilder.java | 77 +- .../datalabeling/v1beta1/Instruction.java | 1137 ++--- .../datalabeling/v1beta1/InstructionName.java | 0 .../v1beta1/InstructionOrBuilder.java | 130 +- .../v1beta1/InstructionOuterClass.java | 107 + ...abelImageBoundingBoxOperationMetadata.java | 454 +- ...BoundingBoxOperationMetadataOrBuilder.java | 26 +- ...belImageBoundingPolyOperationMetadata.java | 455 +- ...oundingPolyOperationMetadataOrBuilder.java | 26 +- ...lImageClassificationOperationMetadata.java | 460 +- ...ssificationOperationMetadataOrBuilder.java | 26 +- ...eOrientedBoundingBoxOperationMetadata.java | 480 +- ...BoundingBoxOperationMetadataOrBuilder.java | 26 +- .../LabelImagePolylineOperationMetadata.java | 411 +- ...agePolylineOperationMetadataOrBuilder.java | 26 +- .../v1beta1/LabelImageRequest.java | 1331 ++--- .../v1beta1/LabelImageRequestOrBuilder.java | 125 +- ...belImageSegmentationOperationMetadata.java | 455 +- ...egmentationOperationMetadataOrBuilder.java | 26 +- .../v1beta1/LabelOperationMetadata.java | 3399 ++++--------- .../LabelOperationMetadataOrBuilder.java | 357 +- .../datalabeling/v1beta1/LabelStats.java | 491 +- .../v1beta1/LabelStatsOrBuilder.java | 50 +- ...elTextClassificationOperationMetadata.java | 460 +- ...ssificationOperationMetadataOrBuilder.java | 26 +- ...TextEntityExtractionOperationMetadata.java | 468 +- ...yExtractionOperationMetadataOrBuilder.java | 26 +- .../v1beta1/LabelTextRequest.java | 1114 ++--- .../v1beta1/LabelTextRequestOrBuilder.java | 118 +- ...lVideoClassificationOperationMetadata.java | 460 +- ...ssificationOperationMetadataOrBuilder.java | 26 +- .../LabelVideoEventOperationMetadata.java | 393 +- ...lVideoEventOperationMetadataOrBuilder.java | 26 +- ...VideoObjectDetectionOperationMetadata.java | 468 +- ...ctDetectionOperationMetadataOrBuilder.java | 26 +- ...lVideoObjectTrackingOperationMetadata.java | 460 +- ...ectTrackingOperationMetadataOrBuilder.java | 26 +- .../v1beta1/LabelVideoRequest.java | 1382 ++---- .../v1beta1/LabelVideoRequestOrBuilder.java | 143 +- .../v1beta1/ListAnnotatedDatasetsRequest.java | 569 +-- ...ListAnnotatedDatasetsRequestOrBuilder.java | 56 +- .../ListAnnotatedDatasetsResponse.java | 581 +-- ...istAnnotatedDatasetsResponseOrBuilder.java | 57 +- .../ListAnnotationSpecSetsRequest.java | 569 +-- ...istAnnotationSpecSetsRequestOrBuilder.java | 56 +- .../ListAnnotationSpecSetsResponse.java | 597 +-- ...stAnnotationSpecSetsResponseOrBuilder.java | 56 +- .../v1beta1/ListDataItemsRequest.java | 536 +- .../ListDataItemsRequestOrBuilder.java | 56 +- .../v1beta1/ListDataItemsResponse.java | 461 +- .../ListDataItemsResponseOrBuilder.java | 45 +- .../v1beta1/ListDatasetsRequest.java | 536 +- .../v1beta1/ListDatasetsRequestOrBuilder.java | 56 +- .../v1beta1/ListDatasetsResponse.java | 464 +- .../ListDatasetsResponseOrBuilder.java | 45 +- .../v1beta1/ListEvaluationJobsRequest.java | 557 +-- .../ListEvaluationJobsRequestOrBuilder.java | 56 +- .../v1beta1/ListEvaluationJobsResponse.java | 471 +- .../ListEvaluationJobsResponseOrBuilder.java | 42 +- .../v1beta1/ListExamplesRequest.java | 536 +- .../v1beta1/ListExamplesRequestOrBuilder.java | 56 +- .../v1beta1/ListExamplesResponse.java | 464 +- .../ListExamplesResponseOrBuilder.java | 45 +- .../v1beta1/ListInstructionsRequest.java | 544 +- .../ListInstructionsRequestOrBuilder.java | 56 +- .../v1beta1/ListInstructionsResponse.java | 467 +- .../ListInstructionsResponseOrBuilder.java | 45 +- .../v1beta1/NormalizedBoundingPoly.java | 479 +- .../NormalizedBoundingPolyOrBuilder.java | 47 +- .../v1beta1/NormalizedPolyline.java | 472 +- .../v1beta1/NormalizedPolylineOrBuilder.java | 47 +- .../v1beta1/NormalizedVertex.java | 316 +- .../v1beta1/NormalizedVertexOrBuilder.java | 29 + .../v1beta1/ObjectDetectionConfig.java | 354 +- .../ObjectDetectionConfigOrBuilder.java | 30 +- .../v1beta1/ObjectDetectionMetrics.java | 345 +- .../ObjectDetectionMetricsOrBuilder.java | 26 +- .../v1beta1/ObjectTrackingConfig.java | 314 +- .../ObjectTrackingConfigOrBuilder.java | 27 +- .../v1beta1/ObjectTrackingFrame.java | 643 +-- .../v1beta1/ObjectTrackingFrameOrBuilder.java | 49 +- .../datalabeling/v1beta1/Operations.java | 353 ++ .../v1beta1/OperatorMetadata.java | 451 +- .../v1beta1/OperatorMetadataOrBuilder.java | 45 +- .../datalabeling/v1beta1/OutputConfig.java | 563 +-- .../v1beta1/OutputConfigOrBuilder.java | 46 +- .../v1beta1/PauseEvaluationJobRequest.java | 363 +- .../PauseEvaluationJobRequestOrBuilder.java | 31 + .../datalabeling/v1beta1/PdfInstruction.java | 311 +- .../v1beta1/PdfInstructionOrBuilder.java | 29 + .../cloud/datalabeling/v1beta1/Polyline.java | 371 +- .../datalabeling/v1beta1/PolylineConfig.java | 390 +- .../v1beta1/PolylineConfigOrBuilder.java | 36 +- .../v1beta1/PolylineOrBuilder.java | 36 +- .../cloud/datalabeling/v1beta1/PrCurve.java | 1359 ++--- .../v1beta1/PrCurveOrBuilder.java | 74 +- .../datalabeling/v1beta1/ProjectName.java | 0 .../v1beta1/ResumeEvaluationJobRequest.java | 363 +- .../ResumeEvaluationJobRequestOrBuilder.java | 31 + .../v1beta1/SearchEvaluationsRequest.java | 554 +-- .../SearchEvaluationsRequestOrBuilder.java | 56 +- .../v1beta1/SearchEvaluationsResponse.java | 468 +- .../SearchEvaluationsResponseOrBuilder.java | 45 +- .../SearchExampleComparisonsRequest.java | 491 +- ...rchExampleComparisonsRequestOrBuilder.java | 47 +- .../SearchExampleComparisonsResponse.java | 1363 ++--- ...chExampleComparisonsResponseOrBuilder.java | 73 + .../v1beta1/SegmentationConfig.java | 393 +- .../v1beta1/SegmentationConfigOrBuilder.java | 36 +- .../datalabeling/v1beta1/SentimentConfig.java | 278 +- .../v1beta1/SentimentConfigOrBuilder.java | 21 +- .../v1beta1/SequentialSegment.java | 306 +- .../v1beta1/SequentialSegmentOrBuilder.java | 29 + .../v1beta1/StringAggregationType.java | 94 +- .../v1beta1/TextClassificationAnnotation.java | 378 +- ...TextClassificationAnnotationOrBuilder.java | 26 +- .../v1beta1/TextClassificationConfig.java | 528 +- .../TextClassificationConfigOrBuilder.java | 50 +- .../TextEntityExtractionAnnotation.java | 495 +- ...xtEntityExtractionAnnotationOrBuilder.java | 34 +- .../v1beta1/TextEntityExtractionConfig.java | 335 +- .../TextEntityExtractionConfigOrBuilder.java | 27 +- .../datalabeling/v1beta1/TextMetadata.java | 311 +- .../v1beta1/TextMetadataOrBuilder.java | 27 +- .../datalabeling/v1beta1/TextPayload.java | 311 +- .../v1beta1/TextPayloadOrBuilder.java | 29 + .../datalabeling/v1beta1/TimeSegment.java | 437 +- .../v1beta1/TimeSegmentOrBuilder.java | 34 +- .../v1beta1/UpdateEvaluationJobRequest.java | 541 +- .../UpdateEvaluationJobRequestOrBuilder.java | 55 +- .../cloud/datalabeling/v1beta1/Vertex.java | 293 +- .../datalabeling/v1beta1/VertexOrBuilder.java | 29 + .../VideoClassificationAnnotation.java | 477 +- ...ideoClassificationAnnotationOrBuilder.java | 34 +- .../v1beta1/VideoClassificationConfig.java | 1108 ++--- .../VideoClassificationConfigOrBuilder.java | 66 +- .../v1beta1/VideoEventAnnotation.java | 446 +- .../VideoEventAnnotationOrBuilder.java | 34 +- .../VideoObjectTrackingAnnotation.java | 750 +-- ...ideoObjectTrackingAnnotationOrBuilder.java | 72 +- .../datalabeling/v1beta1/VideoPayload.java | 649 +-- .../v1beta1/VideoPayloadOrBuilder.java | 63 +- .../datalabeling/v1beta1/VideoThumbnail.java | 362 +- .../v1beta1/VideoThumbnailOrBuilder.java | 29 +- .../datalabeling/v1beta1/annotation.proto | 0 .../v1beta1/annotation_spec_set.proto | 0 .../v1beta1/data_labeling_service.proto | 0 .../datalabeling/v1beta1/data_payloads.proto | 0 .../cloud/datalabeling/v1beta1/dataset.proto | 0 .../datalabeling/v1beta1/evaluation.proto | 0 .../datalabeling/v1beta1/evaluation_job.proto | 0 .../v1beta1/human_annotation_config.proto | 0 .../datalabeling/v1beta1/instruction.proto | 0 .../datalabeling/v1beta1/operations.proto | 0 .../v1beta1/AnnotationOuterClass.java | 484 -- .../v1beta1/AnnotationSpecSetOuterClass.java | 100 - .../ClassificationMetadataOrBuilder.java | 38 - .../v1beta1/ConfusionMatrixOrBuilder.java | 37 - .../CreateDatasetRequestOrBuilder.java | 97 - .../CreateEvaluationJobRequestOrBuilder.java | 97 - .../CreateInstructionRequestOrBuilder.java | 97 - .../v1beta1/CsvInstructionOrBuilder.java | 50 - .../DataLabelingServiceOuterClass.java | 1027 ---- .../datalabeling/v1beta1/DataPayloads.java | 123 - .../v1beta1/DatasetOuterClass.java | 402 -- ...eleteAnnotatedDatasetRequestOrBuilder.java | 58 - ...leteAnnotationSpecSetRequestOrBuilder.java | 56 - .../DeleteDatasetRequestOrBuilder.java | 56 - .../DeleteEvaluationJobRequestOrBuilder.java | 56 - .../DeleteInstructionRequestOrBuilder.java | 56 - .../v1beta1/EvaluationJobOuterClass.java | 207 - .../v1beta1/EvaluationOuterClass.java | 284 -- .../GcsFolderDestinationOrBuilder.java | 50 - .../GetAnnotatedDatasetRequestOrBuilder.java | 58 - .../GetAnnotationSpecSetRequestOrBuilder.java | 56 - .../v1beta1/GetDataItemRequestOrBuilder.java | 56 - .../v1beta1/GetDatasetRequestOrBuilder.java | 56 - .../GetEvaluationJobRequestOrBuilder.java | 56 - .../GetEvaluationRequestOrBuilder.java | 56 - .../GetInstructionRequestOrBuilder.java | 56 - .../HumanAnnotationConfigOuterClass.java | 279 -- .../v1beta1/InstructionOuterClass.java | 132 - .../v1beta1/NormalizedVertexOrBuilder.java | 51 - .../datalabeling/v1beta1/Operations.java | 400 -- .../PauseEvaluationJobRequestOrBuilder.java | 56 - .../v1beta1/PdfInstructionOrBuilder.java | 50 - .../ResumeEvaluationJobRequestOrBuilder.java | 56 - ...chExampleComparisonsResponseOrBuilder.java | 119 - .../v1beta1/SequentialSegmentOrBuilder.java | 51 - .../v1beta1/TextPayloadOrBuilder.java | 50 - .../datalabeling/v1beta1/VertexOrBuilder.java | 51 - 344 files changed, 37238 insertions(+), 63394 deletions(-) delete mode 100644 grpc-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceGrpc.java rename {google-cloud-datalabeling => owl-bot-staging/v1beta1/google-cloud-datalabeling}/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClient.java (97%) rename {google-cloud-datalabeling => owl-bot-staging/v1beta1/google-cloud-datalabeling}/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceSettings.java (97%) rename {google-cloud-datalabeling => owl-bot-staging/v1beta1/google-cloud-datalabeling}/src/main/java/com/google/cloud/datalabeling/v1beta1/gapic_metadata.json (100%) rename {google-cloud-datalabeling => owl-bot-staging/v1beta1/google-cloud-datalabeling}/src/main/java/com/google/cloud/datalabeling/v1beta1/package-info.java (100%) rename {google-cloud-datalabeling => owl-bot-staging/v1beta1/google-cloud-datalabeling}/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStub.java (100%) rename {google-cloud-datalabeling => owl-bot-staging/v1beta1/google-cloud-datalabeling}/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java (97%) rename {google-cloud-datalabeling => owl-bot-staging/v1beta1/google-cloud-datalabeling}/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceCallableFactory.java (100%) rename {google-cloud-datalabeling => owl-bot-staging/v1beta1/google-cloud-datalabeling}/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceStub.java (99%) rename {google-cloud-datalabeling => owl-bot-staging/v1beta1/google-cloud-datalabeling}/src/test/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClientTest.java (100%) rename {google-cloud-datalabeling => owl-bot-staging/v1beta1/google-cloud-datalabeling}/src/test/java/com/google/cloud/datalabeling/v1beta1/MockDataLabelingService.java (100%) rename {google-cloud-datalabeling => owl-bot-staging/v1beta1/google-cloud-datalabeling}/src/test/java/com/google/cloud/datalabeling/v1beta1/MockDataLabelingServiceImpl.java (100%) create mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceGrpc.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDataset.java (74%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadata.java (62%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadataOrBuilder.java (70%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetName.java (100%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetOrBuilder.java (84%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/Annotation.java (71%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadata.java (68%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadataOrBuilder.java (62%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOrBuilder.java (82%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOuterClass.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSentiment.java (63%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSource.java (61%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpec.java (72%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecOrBuilder.java (61%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSet.java (77%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetName.java (100%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOrBuilder.java (81%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOuterClass.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationType.java (73%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValue.java (57%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValueOrBuilder.java (57%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/Attempt.java (73%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AttemptOrBuilder.java (60%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySource.java (75%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySourceOrBuilder.java (73%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptions.java (65%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptionsOrBuilder.java (50%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPoly.java (73%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfig.java (71%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfigOrBuilder.java (61%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyOrBuilder.java (62%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadata.java (68%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadataOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetrics.java (70%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetricsOrBuilder.java (74%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrix.java (65%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrixOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequest.java (61%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequestOrBuilder.java (52%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequest.java (63%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequestOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequest.java (61%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequestOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadata.java (74%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadataOrBuilder.java (72%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequest.java (62%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequestOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstruction.java (70%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstructionOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItem.java (72%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemName.java (100%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemOrBuilder.java (79%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceOuterClass.java create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataPayloads.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/DataType.java (61%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/Dataset.java (77%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetName.java (100%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOrBuilder.java (81%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOuterClass.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequest.java (63%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequestOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequest.java (62%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequestOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequest.java (66%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequestOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequest.java (64%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequestOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequest.java (64%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequestOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/Evaluation.java (74%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfig.java (63%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfigOrBuilder.java (51%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJob.java (78%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfig.java (70%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfigOrBuilder.java (62%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig.java (74%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfigOrBuilder.java (86%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobName.java (100%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOrBuilder.java (87%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOuterClass.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetrics.java (64%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetricsOrBuilder.java (58%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationName.java (100%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOrBuilder.java (86%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOuterClass.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfig.java (71%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfigOrBuilder.java (65%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/Example.java (75%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleName.java (100%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleOrBuilder.java (83%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadata.java (74%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadataOrBuilder.java (73%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponse.java (69%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponseOrBuilder.java (76%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequest.java (66%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequestOrBuilder.java (59%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestination.java (71%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestinationOrBuilder.java (58%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestination.java (69%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestinationOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSource.java (71%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSourceOrBuilder.java (59%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequest.java (64%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequestOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequest.java (63%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequestOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequest.java (66%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequestOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequest.java (65%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequestOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequest.java (65%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequestOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequest.java (67%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequestOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequest.java (69%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequestOrBuilder.java (58%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequest.java (66%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequestOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfig.java (74%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOrBuilder.java (79%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOuterClass.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotation.java (65%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotationOrBuilder.java (67%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotation.java (65%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotationOrBuilder.java (60%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfig.java (65%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfigOrBuilder.java (58%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayload.java (70%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayloadOrBuilder.java (62%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotation.java (68%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotationOrBuilder.java (69%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotation.java (60%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotationOrBuilder.java (56%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadata.java (74%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadataOrBuilder.java (73%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponse.java (67%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponseOrBuilder.java (58%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequest.java (65%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequestOrBuilder.java (53%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfig.java (72%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfigOrBuilder.java (84%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/Instruction.java (72%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionName.java (100%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOrBuilder.java (77%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOuterClass.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadata.java (58%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadataOrBuilder.java (66%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadata.java (58%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadataOrBuilder.java (66%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadata.java (57%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadataOrBuilder.java (66%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadata.java (55%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadataOrBuilder.java (64%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadata.java (62%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadataOrBuilder.java (62%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequest.java (67%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequestOrBuilder.java (71%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadata.java (57%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadataOrBuilder.java (64%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadata.java (54%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadataOrBuilder.java (54%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStats.java (65%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStatsOrBuilder.java (69%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadata.java (57%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadataOrBuilder.java (66%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadata.java (56%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadataOrBuilder.java (66%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequest.java (61%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequestOrBuilder.java (55%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadata.java (57%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadataOrBuilder.java (66%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadata.java (63%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadataOrBuilder.java (63%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadata.java (56%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadataOrBuilder.java (66%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadata.java (57%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadataOrBuilder.java (66%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequest.java (65%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequestOrBuilder.java (68%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequest.java (69%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequestOrBuilder.java (67%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponse.java (68%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponseOrBuilder.java (63%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequest.java (69%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequestOrBuilder.java (67%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponse.java (67%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponseOrBuilder.java (63%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequest.java (71%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequestOrBuilder.java (67%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponse.java (73%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponseOrBuilder.java (68%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequest.java (71%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequestOrBuilder.java (66%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponse.java (73%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponseOrBuilder.java (68%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequest.java (73%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequestOrBuilder.java (75%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponse.java (73%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponseOrBuilder.java (70%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequest.java (72%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequestOrBuilder.java (69%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponse.java (73%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponseOrBuilder.java (68%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequest.java (71%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequestOrBuilder.java (66%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponse.java (73%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponseOrBuilder.java (68%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPoly.java (70%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPolyOrBuilder.java (61%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolyline.java (70%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolylineOrBuilder.java (60%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertex.java (68%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertexOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfig.java (71%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfigOrBuilder.java (59%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetrics.java (68%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetricsOrBuilder.java (58%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfig.java (69%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfigOrBuilder.java (52%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrame.java (66%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrameOrBuilder.java (67%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Operations.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadata.java (73%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadataOrBuilder.java (68%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfig.java (69%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfigOrBuilder.java (71%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequest.java (64%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequestOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstruction.java (70%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstructionOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/Polyline.java (74%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfig.java (71%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfigOrBuilder.java (61%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineOrBuilder.java (61%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurve.java (72%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurveOrBuilder.java (66%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ProjectName.java (100%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequest.java (64%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequestOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequest.java (78%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequestOrBuilder.java (84%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponse.java (73%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponseOrBuilder.java (69%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequest.java (69%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequestOrBuilder.java (68%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponse.java (64%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponseOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfig.java (71%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfigOrBuilder.java (62%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfig.java (69%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfigOrBuilder.java (51%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegment.java (69%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegmentOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/StringAggregationType.java (64%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotation.java (65%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotationOrBuilder.java (60%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfig.java (65%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfigOrBuilder.java (57%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotation.java (66%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotationOrBuilder.java (71%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfig.java (67%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfigOrBuilder.java (52%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadata.java (70%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadataOrBuilder.java (53%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayload.java (67%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayloadOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegment.java (71%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegmentOrBuilder.java (73%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequest.java (66%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequestOrBuilder.java (65%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/Vertex.java (70%) create mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VertexOrBuilder.java rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotation.java (68%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotationOrBuilder.java (72%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfig.java (64%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfigOrBuilder.java (58%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotation.java (70%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotationOrBuilder.java (72%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotation.java (66%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java (65%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayload.java (74%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayloadOrBuilder.java (72%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnail.java (71%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnailOrBuilder.java (67%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/proto/google/cloud/datalabeling/v1beta1/annotation.proto (100%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/proto/google/cloud/datalabeling/v1beta1/annotation_spec_set.proto (100%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/proto/google/cloud/datalabeling/v1beta1/data_labeling_service.proto (100%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/proto/google/cloud/datalabeling/v1beta1/data_payloads.proto (100%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/proto/google/cloud/datalabeling/v1beta1/dataset.proto (100%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation.proto (100%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation_job.proto (100%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/proto/google/cloud/datalabeling/v1beta1/human_annotation_config.proto (100%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/proto/google/cloud/datalabeling/v1beta1/instruction.proto (100%) rename {proto-google-cloud-datalabeling-v1beta1 => owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1}/src/main/proto/google/cloud/datalabeling/v1beta1/operations.proto (100%) delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOuterClass.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOuterClass.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadataOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrixOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequestOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequestOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequestOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstructionOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceOuterClass.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataPayloads.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOuterClass.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequestOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequestOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequestOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequestOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequestOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOuterClass.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOuterClass.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestinationOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequestOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequestOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequestOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequestOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequestOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequestOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequestOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOuterClass.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOuterClass.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertexOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Operations.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequestOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstructionOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequestOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponseOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegmentOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayloadOrBuilder.java delete mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VertexOrBuilder.java diff --git a/grpc-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceGrpc.java b/grpc-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceGrpc.java deleted file mode 100644 index 23de8229..00000000 --- a/grpc-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceGrpc.java +++ /dev/null @@ -1,4406 +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.datalabeling.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service for the AI Platform Data Labeling API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DataLabelingServiceGrpc { - - private DataLabelingServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.datalabeling.v1beta1.DataLabelingService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest, - com.google.cloud.datalabeling.v1beta1.Dataset> - getCreateDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDataset", - requestType = com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.Dataset.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest, - com.google.cloud.datalabeling.v1beta1.Dataset> - getCreateDatasetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest, - com.google.cloud.datalabeling.v1beta1.Dataset> - getCreateDatasetMethod; - if ((getCreateDatasetMethod = DataLabelingServiceGrpc.getCreateDatasetMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getCreateDatasetMethod = DataLabelingServiceGrpc.getCreateDatasetMethod) == null) { - DataLabelingServiceGrpc.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.datalabeling.v1beta1.CreateDatasetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("CreateDataset")) - .build(); - } - } - } - return getCreateDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetDatasetRequest, - com.google.cloud.datalabeling.v1beta1.Dataset> - getGetDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDataset", - requestType = com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.Dataset.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetDatasetRequest, - com.google.cloud.datalabeling.v1beta1.Dataset> - getGetDatasetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetDatasetRequest, - com.google.cloud.datalabeling.v1beta1.Dataset> - getGetDatasetMethod; - if ((getGetDatasetMethod = DataLabelingServiceGrpc.getGetDatasetMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getGetDatasetMethod = DataLabelingServiceGrpc.getGetDatasetMethod) == null) { - DataLabelingServiceGrpc.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.datalabeling.v1beta1.GetDatasetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("GetDataset")) - .build(); - } - } - } - return getGetDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest, - com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse> - getListDatasetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDatasets", - requestType = com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest, - com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse> - getListDatasetsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest, - com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse> - getListDatasetsMethod; - if ((getListDatasetsMethod = DataLabelingServiceGrpc.getListDatasetsMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getListDatasetsMethod = DataLabelingServiceGrpc.getListDatasetsMethod) == null) { - DataLabelingServiceGrpc.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.datalabeling.v1beta1.ListDatasetsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("ListDatasets")) - .build(); - } - } - } - return getListDatasetsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest, com.google.protobuf.Empty> - getDeleteDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDataset", - requestType = com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest, com.google.protobuf.Empty> - getDeleteDatasetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest, com.google.protobuf.Empty> - getDeleteDatasetMethod; - if ((getDeleteDatasetMethod = DataLabelingServiceGrpc.getDeleteDatasetMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getDeleteDatasetMethod = DataLabelingServiceGrpc.getDeleteDatasetMethod) == null) { - DataLabelingServiceGrpc.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.datalabeling.v1beta1.DeleteDatasetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("DeleteDataset")) - .build(); - } - } - } - return getDeleteDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ImportDataRequest, com.google.longrunning.Operation> - getImportDataMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ImportData", - requestType = com.google.cloud.datalabeling.v1beta1.ImportDataRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ImportDataRequest, com.google.longrunning.Operation> - getImportDataMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ImportDataRequest, - com.google.longrunning.Operation> - getImportDataMethod; - if ((getImportDataMethod = DataLabelingServiceGrpc.getImportDataMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getImportDataMethod = DataLabelingServiceGrpc.getImportDataMethod) == null) { - DataLabelingServiceGrpc.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.datalabeling.v1beta1.ImportDataRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("ImportData")) - .build(); - } - } - } - return getImportDataMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ExportDataRequest, com.google.longrunning.Operation> - getExportDataMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExportData", - requestType = com.google.cloud.datalabeling.v1beta1.ExportDataRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ExportDataRequest, com.google.longrunning.Operation> - getExportDataMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ExportDataRequest, - com.google.longrunning.Operation> - getExportDataMethod; - if ((getExportDataMethod = DataLabelingServiceGrpc.getExportDataMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getExportDataMethod = DataLabelingServiceGrpc.getExportDataMethod) == null) { - DataLabelingServiceGrpc.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.datalabeling.v1beta1.ExportDataRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("ExportData")) - .build(); - } - } - } - return getExportDataMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetDataItemRequest, - com.google.cloud.datalabeling.v1beta1.DataItem> - getGetDataItemMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDataItem", - requestType = com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.DataItem.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetDataItemRequest, - com.google.cloud.datalabeling.v1beta1.DataItem> - getGetDataItemMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetDataItemRequest, - com.google.cloud.datalabeling.v1beta1.DataItem> - getGetDataItemMethod; - if ((getGetDataItemMethod = DataLabelingServiceGrpc.getGetDataItemMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getGetDataItemMethod = DataLabelingServiceGrpc.getGetDataItemMethod) == null) { - DataLabelingServiceGrpc.getGetDataItemMethod = - getGetDataItemMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataItem")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.GetDataItemRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.DataItem.getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("GetDataItem")) - .build(); - } - } - } - return getGetDataItemMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest, - com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse> - getListDataItemsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDataItems", - requestType = com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest, - com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse> - getListDataItemsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest, - com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse> - getListDataItemsMethod; - if ((getListDataItemsMethod = DataLabelingServiceGrpc.getListDataItemsMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getListDataItemsMethod = DataLabelingServiceGrpc.getListDataItemsMethod) == null) { - DataLabelingServiceGrpc.getListDataItemsMethod = - getListDataItemsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDataItems")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("ListDataItems")) - .build(); - } - } - } - return getListDataItemsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest, - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset> - getGetAnnotatedDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAnnotatedDataset", - requestType = com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest, - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset> - getGetAnnotatedDatasetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest, - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset> - getGetAnnotatedDatasetMethod; - if ((getGetAnnotatedDatasetMethod = DataLabelingServiceGrpc.getGetAnnotatedDatasetMethod) - == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getGetAnnotatedDatasetMethod = DataLabelingServiceGrpc.getGetAnnotatedDatasetMethod) - == null) { - DataLabelingServiceGrpc.getGetAnnotatedDatasetMethod = - getGetAnnotatedDatasetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetAnnotatedDataset")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset - .getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("GetAnnotatedDataset")) - .build(); - } - } - } - return getGetAnnotatedDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest, - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse> - getListAnnotatedDatasetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAnnotatedDatasets", - requestType = com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest, - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse> - getListAnnotatedDatasetsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest, - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse> - getListAnnotatedDatasetsMethod; - if ((getListAnnotatedDatasetsMethod = DataLabelingServiceGrpc.getListAnnotatedDatasetsMethod) - == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getListAnnotatedDatasetsMethod = - DataLabelingServiceGrpc.getListAnnotatedDatasetsMethod) - == null) { - DataLabelingServiceGrpc.getListAnnotatedDatasetsMethod = - getListAnnotatedDatasetsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListAnnotatedDatasets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("ListAnnotatedDatasets")) - .build(); - } - } - } - return getListAnnotatedDatasetsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest, - com.google.protobuf.Empty> - getDeleteAnnotatedDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteAnnotatedDataset", - requestType = com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest, - com.google.protobuf.Empty> - getDeleteAnnotatedDatasetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest, - com.google.protobuf.Empty> - getDeleteAnnotatedDatasetMethod; - if ((getDeleteAnnotatedDatasetMethod = DataLabelingServiceGrpc.getDeleteAnnotatedDatasetMethod) - == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getDeleteAnnotatedDatasetMethod = - DataLabelingServiceGrpc.getDeleteAnnotatedDatasetMethod) - == null) { - DataLabelingServiceGrpc.getDeleteAnnotatedDatasetMethod = - getDeleteAnnotatedDatasetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteAnnotatedDataset")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("DeleteAnnotatedDataset")) - .build(); - } - } - } - return getDeleteAnnotatedDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.LabelImageRequest, com.google.longrunning.Operation> - getLabelImageMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LabelImage", - requestType = com.google.cloud.datalabeling.v1beta1.LabelImageRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.LabelImageRequest, com.google.longrunning.Operation> - getLabelImageMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.LabelImageRequest, - com.google.longrunning.Operation> - getLabelImageMethod; - if ((getLabelImageMethod = DataLabelingServiceGrpc.getLabelImageMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getLabelImageMethod = DataLabelingServiceGrpc.getLabelImageMethod) == null) { - DataLabelingServiceGrpc.getLabelImageMethod = - getLabelImageMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LabelImage")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.LabelImageRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("LabelImage")) - .build(); - } - } - } - return getLabelImageMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest, com.google.longrunning.Operation> - getLabelVideoMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LabelVideo", - requestType = com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest, com.google.longrunning.Operation> - getLabelVideoMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest, - com.google.longrunning.Operation> - getLabelVideoMethod; - if ((getLabelVideoMethod = DataLabelingServiceGrpc.getLabelVideoMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getLabelVideoMethod = DataLabelingServiceGrpc.getLabelVideoMethod) == null) { - DataLabelingServiceGrpc.getLabelVideoMethod = - getLabelVideoMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LabelVideo")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("LabelVideo")) - .build(); - } - } - } - return getLabelVideoMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.LabelTextRequest, com.google.longrunning.Operation> - getLabelTextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LabelText", - requestType = com.google.cloud.datalabeling.v1beta1.LabelTextRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.LabelTextRequest, com.google.longrunning.Operation> - getLabelTextMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.LabelTextRequest, - com.google.longrunning.Operation> - getLabelTextMethod; - if ((getLabelTextMethod = DataLabelingServiceGrpc.getLabelTextMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getLabelTextMethod = DataLabelingServiceGrpc.getLabelTextMethod) == null) { - DataLabelingServiceGrpc.getLabelTextMethod = - getLabelTextMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LabelText")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.LabelTextRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("LabelText")) - .build(); - } - } - } - return getLabelTextMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetExampleRequest, - com.google.cloud.datalabeling.v1beta1.Example> - getGetExampleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetExample", - requestType = com.google.cloud.datalabeling.v1beta1.GetExampleRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.Example.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetExampleRequest, - com.google.cloud.datalabeling.v1beta1.Example> - getGetExampleMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetExampleRequest, - com.google.cloud.datalabeling.v1beta1.Example> - getGetExampleMethod; - if ((getGetExampleMethod = DataLabelingServiceGrpc.getGetExampleMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getGetExampleMethod = DataLabelingServiceGrpc.getGetExampleMethod) == null) { - DataLabelingServiceGrpc.getGetExampleMethod = - getGetExampleMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExample")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.GetExampleRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("GetExample")) - .build(); - } - } - } - return getGetExampleMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ListExamplesRequest, - com.google.cloud.datalabeling.v1beta1.ListExamplesResponse> - getListExamplesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListExamples", - requestType = com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ListExamplesRequest, - com.google.cloud.datalabeling.v1beta1.ListExamplesResponse> - getListExamplesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ListExamplesRequest, - com.google.cloud.datalabeling.v1beta1.ListExamplesResponse> - getListExamplesMethod; - if ((getListExamplesMethod = DataLabelingServiceGrpc.getListExamplesMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getListExamplesMethod = DataLabelingServiceGrpc.getListExamplesMethod) == null) { - DataLabelingServiceGrpc.getListExamplesMethod = - getListExamplesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExamples")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListExamplesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListExamplesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("ListExamples")) - .build(); - } - } - } - return getListExamplesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet> - getCreateAnnotationSpecSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateAnnotationSpecSet", - requestType = com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet> - getCreateAnnotationSpecSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet> - getCreateAnnotationSpecSetMethod; - if ((getCreateAnnotationSpecSetMethod = - DataLabelingServiceGrpc.getCreateAnnotationSpecSetMethod) - == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getCreateAnnotationSpecSetMethod = - DataLabelingServiceGrpc.getCreateAnnotationSpecSetMethod) - == null) { - DataLabelingServiceGrpc.getCreateAnnotationSpecSetMethod = - getCreateAnnotationSpecSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateAnnotationSpecSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet - .getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier( - "CreateAnnotationSpecSet")) - .build(); - } - } - } - return getCreateAnnotationSpecSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet> - getGetAnnotationSpecSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAnnotationSpecSet", - requestType = com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet> - getGetAnnotationSpecSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet> - getGetAnnotationSpecSetMethod; - if ((getGetAnnotationSpecSetMethod = DataLabelingServiceGrpc.getGetAnnotationSpecSetMethod) - == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getGetAnnotationSpecSetMethod = DataLabelingServiceGrpc.getGetAnnotationSpecSetMethod) - == null) { - DataLabelingServiceGrpc.getGetAnnotationSpecSetMethod = - getGetAnnotationSpecSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "GetAnnotationSpecSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet - .getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("GetAnnotationSpecSet")) - .build(); - } - } - } - return getGetAnnotationSpecSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest, - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse> - getListAnnotationSpecSetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAnnotationSpecSets", - requestType = com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest, - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse> - getListAnnotationSpecSetsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest, - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse> - getListAnnotationSpecSetsMethod; - if ((getListAnnotationSpecSetsMethod = DataLabelingServiceGrpc.getListAnnotationSpecSetsMethod) - == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getListAnnotationSpecSetsMethod = - DataLabelingServiceGrpc.getListAnnotationSpecSetsMethod) - == null) { - DataLabelingServiceGrpc.getListAnnotationSpecSetsMethod = - getListAnnotationSpecSetsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListAnnotationSpecSets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("ListAnnotationSpecSets")) - .build(); - } - } - } - return getListAnnotationSpecSetsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest, - com.google.protobuf.Empty> - getDeleteAnnotationSpecSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteAnnotationSpecSet", - requestType = com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest, - com.google.protobuf.Empty> - getDeleteAnnotationSpecSetMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest, - com.google.protobuf.Empty> - getDeleteAnnotationSpecSetMethod; - if ((getDeleteAnnotationSpecSetMethod = - DataLabelingServiceGrpc.getDeleteAnnotationSpecSetMethod) - == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getDeleteAnnotationSpecSetMethod = - DataLabelingServiceGrpc.getDeleteAnnotationSpecSetMethod) - == null) { - DataLabelingServiceGrpc.getDeleteAnnotationSpecSetMethod = - getDeleteAnnotationSpecSetMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteAnnotationSpecSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier( - "DeleteAnnotationSpecSet")) - .build(); - } - } - } - return getDeleteAnnotationSpecSetMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest, - com.google.longrunning.Operation> - getCreateInstructionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateInstruction", - requestType = com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest, - com.google.longrunning.Operation> - getCreateInstructionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest, - com.google.longrunning.Operation> - getCreateInstructionMethod; - if ((getCreateInstructionMethod = DataLabelingServiceGrpc.getCreateInstructionMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getCreateInstructionMethod = DataLabelingServiceGrpc.getCreateInstructionMethod) - == null) { - DataLabelingServiceGrpc.getCreateInstructionMethod = - getCreateInstructionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstruction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("CreateInstruction")) - .build(); - } - } - } - return getCreateInstructionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetInstructionRequest, - com.google.cloud.datalabeling.v1beta1.Instruction> - getGetInstructionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetInstruction", - requestType = com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.Instruction.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetInstructionRequest, - com.google.cloud.datalabeling.v1beta1.Instruction> - getGetInstructionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetInstructionRequest, - com.google.cloud.datalabeling.v1beta1.Instruction> - getGetInstructionMethod; - if ((getGetInstructionMethod = DataLabelingServiceGrpc.getGetInstructionMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getGetInstructionMethod = DataLabelingServiceGrpc.getGetInstructionMethod) == null) { - DataLabelingServiceGrpc.getGetInstructionMethod = - getGetInstructionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstruction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.GetInstructionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.Instruction - .getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("GetInstruction")) - .build(); - } - } - } - return getGetInstructionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest, - com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse> - getListInstructionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListInstructions", - requestType = com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest, - com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse> - getListInstructionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest, - com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse> - getListInstructionsMethod; - if ((getListInstructionsMethod = DataLabelingServiceGrpc.getListInstructionsMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getListInstructionsMethod = DataLabelingServiceGrpc.getListInstructionsMethod) - == null) { - DataLabelingServiceGrpc.getListInstructionsMethod = - getListInstructionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstructions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("ListInstructions")) - .build(); - } - } - } - return getListInstructionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest, com.google.protobuf.Empty> - getDeleteInstructionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteInstruction", - requestType = com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest, com.google.protobuf.Empty> - getDeleteInstructionMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest, - com.google.protobuf.Empty> - getDeleteInstructionMethod; - if ((getDeleteInstructionMethod = DataLabelingServiceGrpc.getDeleteInstructionMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getDeleteInstructionMethod = DataLabelingServiceGrpc.getDeleteInstructionMethod) - == null) { - DataLabelingServiceGrpc.getDeleteInstructionMethod = - getDeleteInstructionMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstruction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("DeleteInstruction")) - .build(); - } - } - } - return getDeleteInstructionMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest, - com.google.cloud.datalabeling.v1beta1.Evaluation> - getGetEvaluationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEvaluation", - requestType = com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.Evaluation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest, - com.google.cloud.datalabeling.v1beta1.Evaluation> - getGetEvaluationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest, - com.google.cloud.datalabeling.v1beta1.Evaluation> - getGetEvaluationMethod; - if ((getGetEvaluationMethod = DataLabelingServiceGrpc.getGetEvaluationMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getGetEvaluationMethod = DataLabelingServiceGrpc.getGetEvaluationMethod) == null) { - DataLabelingServiceGrpc.getGetEvaluationMethod = - getGetEvaluationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEvaluation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.Evaluation - .getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("GetEvaluation")) - .build(); - } - } - } - return getGetEvaluationMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest, - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse> - getSearchEvaluationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchEvaluations", - requestType = com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest, - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse> - getSearchEvaluationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest, - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse> - getSearchEvaluationsMethod; - if ((getSearchEvaluationsMethod = DataLabelingServiceGrpc.getSearchEvaluationsMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getSearchEvaluationsMethod = DataLabelingServiceGrpc.getSearchEvaluationsMethod) - == null) { - DataLabelingServiceGrpc.getSearchEvaluationsMethod = - getSearchEvaluationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchEvaluations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("SearchEvaluations")) - .build(); - } - } - } - return getSearchEvaluationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest, - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse> - getSearchExampleComparisonsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchExampleComparisons", - requestType = com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest, - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse> - getSearchExampleComparisonsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest, - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse> - getSearchExampleComparisonsMethod; - if ((getSearchExampleComparisonsMethod = - DataLabelingServiceGrpc.getSearchExampleComparisonsMethod) - == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getSearchExampleComparisonsMethod = - DataLabelingServiceGrpc.getSearchExampleComparisonsMethod) - == null) { - DataLabelingServiceGrpc.getSearchExampleComparisonsMethod = - getSearchExampleComparisonsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "SearchExampleComparisons")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier( - "SearchExampleComparisons")) - .build(); - } - } - } - return getSearchExampleComparisonsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest, - com.google.cloud.datalabeling.v1beta1.EvaluationJob> - getCreateEvaluationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateEvaluationJob", - requestType = com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.EvaluationJob.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest, - com.google.cloud.datalabeling.v1beta1.EvaluationJob> - getCreateEvaluationJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest, - com.google.cloud.datalabeling.v1beta1.EvaluationJob> - getCreateEvaluationJobMethod; - if ((getCreateEvaluationJobMethod = DataLabelingServiceGrpc.getCreateEvaluationJobMethod) - == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getCreateEvaluationJobMethod = DataLabelingServiceGrpc.getCreateEvaluationJobMethod) - == null) { - DataLabelingServiceGrpc.getCreateEvaluationJobMethod = - getCreateEvaluationJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateEvaluationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.EvaluationJob - .getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("CreateEvaluationJob")) - .build(); - } - } - } - return getCreateEvaluationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest, - com.google.cloud.datalabeling.v1beta1.EvaluationJob> - getUpdateEvaluationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateEvaluationJob", - requestType = com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.EvaluationJob.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest, - com.google.cloud.datalabeling.v1beta1.EvaluationJob> - getUpdateEvaluationJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest, - com.google.cloud.datalabeling.v1beta1.EvaluationJob> - getUpdateEvaluationJobMethod; - if ((getUpdateEvaluationJobMethod = DataLabelingServiceGrpc.getUpdateEvaluationJobMethod) - == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getUpdateEvaluationJobMethod = DataLabelingServiceGrpc.getUpdateEvaluationJobMethod) - == null) { - DataLabelingServiceGrpc.getUpdateEvaluationJobMethod = - getUpdateEvaluationJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateEvaluationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.EvaluationJob - .getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("UpdateEvaluationJob")) - .build(); - } - } - } - return getUpdateEvaluationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest, - com.google.cloud.datalabeling.v1beta1.EvaluationJob> - getGetEvaluationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEvaluationJob", - requestType = com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.EvaluationJob.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest, - com.google.cloud.datalabeling.v1beta1.EvaluationJob> - getGetEvaluationJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest, - com.google.cloud.datalabeling.v1beta1.EvaluationJob> - getGetEvaluationJobMethod; - if ((getGetEvaluationJobMethod = DataLabelingServiceGrpc.getGetEvaluationJobMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getGetEvaluationJobMethod = DataLabelingServiceGrpc.getGetEvaluationJobMethod) - == null) { - DataLabelingServiceGrpc.getGetEvaluationJobMethod = - getGetEvaluationJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEvaluationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.EvaluationJob - .getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("GetEvaluationJob")) - .build(); - } - } - } - return getGetEvaluationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest, - com.google.protobuf.Empty> - getPauseEvaluationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PauseEvaluationJob", - requestType = com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest, - com.google.protobuf.Empty> - getPauseEvaluationJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest, - com.google.protobuf.Empty> - getPauseEvaluationJobMethod; - if ((getPauseEvaluationJobMethod = DataLabelingServiceGrpc.getPauseEvaluationJobMethod) - == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getPauseEvaluationJobMethod = DataLabelingServiceGrpc.getPauseEvaluationJobMethod) - == null) { - DataLabelingServiceGrpc.getPauseEvaluationJobMethod = - getPauseEvaluationJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PauseEvaluationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("PauseEvaluationJob")) - .build(); - } - } - } - return getPauseEvaluationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest, - com.google.protobuf.Empty> - getResumeEvaluationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResumeEvaluationJob", - requestType = com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest, - com.google.protobuf.Empty> - getResumeEvaluationJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest, - com.google.protobuf.Empty> - getResumeEvaluationJobMethod; - if ((getResumeEvaluationJobMethod = DataLabelingServiceGrpc.getResumeEvaluationJobMethod) - == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getResumeEvaluationJobMethod = DataLabelingServiceGrpc.getResumeEvaluationJobMethod) - == null) { - DataLabelingServiceGrpc.getResumeEvaluationJobMethod = - getResumeEvaluationJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ResumeEvaluationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("ResumeEvaluationJob")) - .build(); - } - } - } - return getResumeEvaluationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest, - com.google.protobuf.Empty> - getDeleteEvaluationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteEvaluationJob", - requestType = com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest, - com.google.protobuf.Empty> - getDeleteEvaluationJobMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest, - com.google.protobuf.Empty> - getDeleteEvaluationJobMethod; - if ((getDeleteEvaluationJobMethod = DataLabelingServiceGrpc.getDeleteEvaluationJobMethod) - == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getDeleteEvaluationJobMethod = DataLabelingServiceGrpc.getDeleteEvaluationJobMethod) - == null) { - DataLabelingServiceGrpc.getDeleteEvaluationJobMethod = - getDeleteEvaluationJobMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteEvaluationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("DeleteEvaluationJob")) - .build(); - } - } - } - return getDeleteEvaluationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest, - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse> - getListEvaluationJobsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListEvaluationJobs", - requestType = com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest, - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse> - getListEvaluationJobsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest, - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse> - getListEvaluationJobsMethod; - if ((getListEvaluationJobsMethod = DataLabelingServiceGrpc.getListEvaluationJobsMethod) - == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getListEvaluationJobsMethod = DataLabelingServiceGrpc.getListEvaluationJobsMethod) - == null) { - DataLabelingServiceGrpc.getListEvaluationJobsMethod = - getListEvaluationJobsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEvaluationJobs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataLabelingServiceMethodDescriptorSupplier("ListEvaluationJobs")) - .build(); - } - } - } - return getListEvaluationJobsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static DataLabelingServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataLabelingServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataLabelingServiceStub(channel, callOptions); - } - }; - return DataLabelingServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DataLabelingServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataLabelingServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataLabelingServiceBlockingStub(channel, callOptions); - } - }; - return DataLabelingServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DataLabelingServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataLabelingServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataLabelingServiceFutureStub(channel, callOptions); - } - }; - return DataLabelingServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service for the AI Platform Data Labeling API.
-   * 
- */ - public abstract static class DataLabelingServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Creates dataset. If success return a Dataset resource.
-     * 
- */ - public void createDataset( - com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateDatasetMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets dataset by resource name.
-     * 
- */ - public void getDataset( - com.google.cloud.datalabeling.v1beta1.GetDatasetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDatasetMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists datasets under a project. Pagination is supported.
-     * 
- */ - public void listDatasets( - com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDatasetsMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a dataset by resource name.
-     * 
- */ - public void deleteDataset( - com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteDatasetMethod(), responseObserver); - } - - /** - * - * - *
-     * Imports data into dataset based on source locations defined in request.
-     * It can be called multiple times for the same dataset. Each dataset can
-     * only have one long running operation running on it. For example, no
-     * labeling task (also long running operation) can be started while
-     * importing is still ongoing. Vice versa.
-     * 
- */ - public void importData( - com.google.cloud.datalabeling.v1beta1.ImportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportDataMethod(), responseObserver); - } - - /** - * - * - *
-     * Exports data and annotations from dataset.
-     * 
- */ - public void exportData( - com.google.cloud.datalabeling.v1beta1.ExportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a data item in a dataset by resource name. This API can be
-     * called after data are imported into dataset.
-     * 
- */ - public void getDataItem( - com.google.cloud.datalabeling.v1beta1.GetDataItemRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetDataItemMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists data items in a dataset. This API can be called after data
-     * are imported into dataset. Pagination is supported.
-     * 
- */ - public void listDataItems( - com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListDataItemsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets an annotated dataset by resource name.
-     * 
- */ - public void getAnnotatedDataset( - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetAnnotatedDatasetMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists annotated datasets for a dataset. Pagination is supported.
-     * 
- */ - public void listAnnotatedDatasets( - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAnnotatedDatasetsMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an annotated dataset by resource name.
-     * 
- */ - public void deleteAnnotatedDataset( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteAnnotatedDatasetMethod(), responseObserver); - } - - /** - * - * - *
-     * Starts a labeling task for image. The type of image labeling task is
-     * configured by feature in the request.
-     * 
- */ - public void labelImage( - com.google.cloud.datalabeling.v1beta1.LabelImageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLabelImageMethod(), responseObserver); - } - - /** - * - * - *
-     * Starts a labeling task for video. The type of video labeling task is
-     * configured by feature in the request.
-     * 
- */ - public void labelVideo( - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLabelVideoMethod(), responseObserver); - } - - /** - * - * - *
-     * Starts a labeling task for text. The type of text labeling task is
-     * configured by feature in the request.
-     * 
- */ - public void labelText( - com.google.cloud.datalabeling.v1beta1.LabelTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLabelTextMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets an example by resource name, including both data and annotation.
-     * 
- */ - public void getExample( - com.google.cloud.datalabeling.v1beta1.GetExampleRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetExampleMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists examples in an annotated dataset. Pagination is supported.
-     * 
- */ - public void listExamples( - com.google.cloud.datalabeling.v1beta1.ListExamplesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListExamplesMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates an annotation spec set by providing a set of labels.
-     * 
- */ - public void createAnnotationSpecSet( - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateAnnotationSpecSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets an annotation spec set by resource name.
-     * 
- */ - public void getAnnotationSpecSet( - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetAnnotationSpecSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists annotation spec sets for a project. Pagination is supported.
-     * 
- */ - public void listAnnotationSpecSets( - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAnnotationSpecSetsMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an annotation spec set by resource name.
-     * 
- */ - public void deleteAnnotationSpecSet( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteAnnotationSpecSetMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates an instruction for how data should be labeled.
-     * 
- */ - public void createInstruction( - com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateInstructionMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets an instruction by resource name.
-     * 
- */ - public void getInstruction( - com.google.cloud.datalabeling.v1beta1.GetInstructionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetInstructionMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists instructions for a project. Pagination is supported.
-     * 
- */ - public void listInstructions( - com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListInstructionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an instruction object by resource name.
-     * 
- */ - public void deleteInstruction( - com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteInstructionMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets an evaluation by resource name (to search, use
-     * [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
-     * 
- */ - public void getEvaluation( - com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetEvaluationMethod(), responseObserver); - } - - /** - * - * - *
-     * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
-     * 
- */ - public void searchEvaluations( - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSearchEvaluationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Searches example comparisons from an evaluation. The return format is a
-     * list of example comparisons that show ground truth and prediction(s) for
-     * a single input. Search by providing an evaluation ID.
-     * 
- */ - public void searchExampleComparisons( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSearchExampleComparisonsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates an evaluation job.
-     * 
- */ - public void createEvaluationJob( - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateEvaluationJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an evaluation job. You can only update certain fields of the job's
-     * [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: `humanAnnotationConfig.instruction`,
-     * `exampleCount`, and `exampleSamplePercentage`.
-     * If you want to change any other aspect of the evaluation job, you must
-     * delete the job and create a new one.
-     * 
- */ - public void updateEvaluationJob( - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateEvaluationJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets an evaluation job by resource name.
-     * 
- */ - public void getEvaluationJob( - com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetEvaluationJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Pauses an evaluation job. Pausing an evaluation job that is already in a
-     * `PAUSED` state is a no-op.
-     * 
- */ - public void pauseEvaluationJob( - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getPauseEvaluationJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Resumes a paused evaluation job. A deleted evaluation job can't be resumed.
-     * Resuming a running or scheduled evaluation job is a no-op.
-     * 
- */ - public void resumeEvaluationJob( - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getResumeEvaluationJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Stops and deletes an evaluation job.
-     * 
- */ - public void deleteEvaluationJob( - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteEvaluationJobMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all evaluation jobs within a project with possible filters.
-     * Pagination is supported.
-     * 
- */ - public void listEvaluationJobs( - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListEvaluationJobsMethod(), 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.datalabeling.v1beta1.CreateDatasetRequest, - com.google.cloud.datalabeling.v1beta1.Dataset>( - this, METHODID_CREATE_DATASET))) - .addMethod( - getGetDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.GetDatasetRequest, - com.google.cloud.datalabeling.v1beta1.Dataset>(this, METHODID_GET_DATASET))) - .addMethod( - getListDatasetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest, - com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse>( - this, METHODID_LIST_DATASETS))) - .addMethod( - getDeleteDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_DATASET))) - .addMethod( - getImportDataMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.ImportDataRequest, - com.google.longrunning.Operation>(this, METHODID_IMPORT_DATA))) - .addMethod( - getExportDataMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.ExportDataRequest, - com.google.longrunning.Operation>(this, METHODID_EXPORT_DATA))) - .addMethod( - getGetDataItemMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.GetDataItemRequest, - com.google.cloud.datalabeling.v1beta1.DataItem>( - this, METHODID_GET_DATA_ITEM))) - .addMethod( - getListDataItemsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest, - com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse>( - this, METHODID_LIST_DATA_ITEMS))) - .addMethod( - getGetAnnotatedDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest, - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset>( - this, METHODID_GET_ANNOTATED_DATASET))) - .addMethod( - getListAnnotatedDatasetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest, - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse>( - this, METHODID_LIST_ANNOTATED_DATASETS))) - .addMethod( - getDeleteAnnotatedDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_ANNOTATED_DATASET))) - .addMethod( - getLabelImageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.LabelImageRequest, - com.google.longrunning.Operation>(this, METHODID_LABEL_IMAGE))) - .addMethod( - getLabelVideoMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest, - com.google.longrunning.Operation>(this, METHODID_LABEL_VIDEO))) - .addMethod( - getLabelTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.LabelTextRequest, - com.google.longrunning.Operation>(this, METHODID_LABEL_TEXT))) - .addMethod( - getGetExampleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.GetExampleRequest, - com.google.cloud.datalabeling.v1beta1.Example>(this, METHODID_GET_EXAMPLE))) - .addMethod( - getListExamplesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.ListExamplesRequest, - com.google.cloud.datalabeling.v1beta1.ListExamplesResponse>( - this, METHODID_LIST_EXAMPLES))) - .addMethod( - getCreateAnnotationSpecSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet>( - this, METHODID_CREATE_ANNOTATION_SPEC_SET))) - .addMethod( - getGetAnnotationSpecSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet>( - this, METHODID_GET_ANNOTATION_SPEC_SET))) - .addMethod( - getListAnnotationSpecSetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest, - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse>( - this, METHODID_LIST_ANNOTATION_SPEC_SETS))) - .addMethod( - getDeleteAnnotationSpecSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_ANNOTATION_SPEC_SET))) - .addMethod( - getCreateInstructionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest, - com.google.longrunning.Operation>(this, METHODID_CREATE_INSTRUCTION))) - .addMethod( - getGetInstructionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.GetInstructionRequest, - com.google.cloud.datalabeling.v1beta1.Instruction>( - this, METHODID_GET_INSTRUCTION))) - .addMethod( - getListInstructionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest, - com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse>( - this, METHODID_LIST_INSTRUCTIONS))) - .addMethod( - getDeleteInstructionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_INSTRUCTION))) - .addMethod( - getGetEvaluationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest, - com.google.cloud.datalabeling.v1beta1.Evaluation>( - this, METHODID_GET_EVALUATION))) - .addMethod( - getSearchEvaluationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest, - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse>( - this, METHODID_SEARCH_EVALUATIONS))) - .addMethod( - getSearchExampleComparisonsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest, - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse>( - this, METHODID_SEARCH_EXAMPLE_COMPARISONS))) - .addMethod( - getCreateEvaluationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest, - com.google.cloud.datalabeling.v1beta1.EvaluationJob>( - this, METHODID_CREATE_EVALUATION_JOB))) - .addMethod( - getUpdateEvaluationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest, - com.google.cloud.datalabeling.v1beta1.EvaluationJob>( - this, METHODID_UPDATE_EVALUATION_JOB))) - .addMethod( - getGetEvaluationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest, - com.google.cloud.datalabeling.v1beta1.EvaluationJob>( - this, METHODID_GET_EVALUATION_JOB))) - .addMethod( - getPauseEvaluationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest, - com.google.protobuf.Empty>(this, METHODID_PAUSE_EVALUATION_JOB))) - .addMethod( - getResumeEvaluationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest, - com.google.protobuf.Empty>(this, METHODID_RESUME_EVALUATION_JOB))) - .addMethod( - getDeleteEvaluationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_EVALUATION_JOB))) - .addMethod( - getListEvaluationJobsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest, - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse>( - this, METHODID_LIST_EVALUATION_JOBS))) - .build(); - } - } - - /** - * - * - *
-   * Service for the AI Platform Data Labeling API.
-   * 
- */ - public static final class DataLabelingServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private DataLabelingServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataLabelingServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataLabelingServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates dataset. If success return a Dataset resource.
-     * 
- */ - public void createDataset( - com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets dataset by resource name.
-     * 
- */ - public void getDataset( - com.google.cloud.datalabeling.v1beta1.GetDatasetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists datasets under a project. Pagination is supported.
-     * 
- */ - public void listDatasets( - com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDatasetsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a dataset by resource name.
-     * 
- */ - public void deleteDataset( - com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Imports data into dataset based on source locations defined in request.
-     * It can be called multiple times for the same dataset. Each dataset can
-     * only have one long running operation running on it. For example, no
-     * labeling task (also long running operation) can be started while
-     * importing is still ongoing. Vice versa.
-     * 
- */ - public void importData( - com.google.cloud.datalabeling.v1beta1.ImportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportDataMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Exports data and annotations from dataset.
-     * 
- */ - public void exportData( - com.google.cloud.datalabeling.v1beta1.ExportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportDataMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets a data item in a dataset by resource name. This API can be
-     * called after data are imported into dataset.
-     * 
- */ - public void getDataItem( - com.google.cloud.datalabeling.v1beta1.GetDataItemRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDataItemMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists data items in a dataset. This API can be called after data
-     * are imported into dataset. Pagination is supported.
-     * 
- */ - public void listDataItems( - com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDataItemsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets an annotated dataset by resource name.
-     * 
- */ - public void getAnnotatedDataset( - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAnnotatedDatasetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists annotated datasets for a dataset. Pagination is supported.
-     * 
- */ - public void listAnnotatedDatasets( - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAnnotatedDatasetsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an annotated dataset by resource name.
-     * 
- */ - public void deleteAnnotatedDataset( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAnnotatedDatasetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Starts a labeling task for image. The type of image labeling task is
-     * configured by feature in the request.
-     * 
- */ - public void labelImage( - com.google.cloud.datalabeling.v1beta1.LabelImageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLabelImageMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Starts a labeling task for video. The type of video labeling task is
-     * configured by feature in the request.
-     * 
- */ - public void labelVideo( - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLabelVideoMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Starts a labeling task for text. The type of text labeling task is
-     * configured by feature in the request.
-     * 
- */ - public void labelText( - com.google.cloud.datalabeling.v1beta1.LabelTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLabelTextMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets an example by resource name, including both data and annotation.
-     * 
- */ - public void getExample( - com.google.cloud.datalabeling.v1beta1.GetExampleRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetExampleMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists examples in an annotated dataset. Pagination is supported.
-     * 
- */ - public void listExamples( - com.google.cloud.datalabeling.v1beta1.ListExamplesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListExamplesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates an annotation spec set by providing a set of labels.
-     * 
- */ - public void createAnnotationSpecSet( - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAnnotationSpecSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets an annotation spec set by resource name.
-     * 
- */ - public void getAnnotationSpecSet( - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAnnotationSpecSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists annotation spec sets for a project. Pagination is supported.
-     * 
- */ - public void listAnnotationSpecSets( - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAnnotationSpecSetsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an annotation spec set by resource name.
-     * 
- */ - public void deleteAnnotationSpecSet( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAnnotationSpecSetMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates an instruction for how data should be labeled.
-     * 
- */ - public void createInstruction( - com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateInstructionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets an instruction by resource name.
-     * 
- */ - public void getInstruction( - com.google.cloud.datalabeling.v1beta1.GetInstructionRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstructionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists instructions for a project. Pagination is supported.
-     * 
- */ - public void listInstructions( - com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstructionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an instruction object by resource name.
-     * 
- */ - public void deleteInstruction( - com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteInstructionMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets an evaluation by resource name (to search, use
-     * [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
-     * 
- */ - public void getEvaluation( - com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEvaluationMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
-     * 
- */ - public void searchEvaluations( - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchEvaluationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Searches example comparisons from an evaluation. The return format is a
-     * list of example comparisons that show ground truth and prediction(s) for
-     * a single input. Search by providing an evaluation ID.
-     * 
- */ - public void searchExampleComparisons( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchExampleComparisonsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates an evaluation job.
-     * 
- */ - public void createEvaluationJob( - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateEvaluationJobMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an evaluation job. You can only update certain fields of the job's
-     * [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: `humanAnnotationConfig.instruction`,
-     * `exampleCount`, and `exampleSamplePercentage`.
-     * If you want to change any other aspect of the evaluation job, you must
-     * delete the job and create a new one.
-     * 
- */ - public void updateEvaluationJob( - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateEvaluationJobMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets an evaluation job by resource name.
-     * 
- */ - public void getEvaluationJob( - com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEvaluationJobMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Pauses an evaluation job. Pausing an evaluation job that is already in a
-     * `PAUSED` state is a no-op.
-     * 
- */ - public void pauseEvaluationJob( - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPauseEvaluationJobMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Resumes a paused evaluation job. A deleted evaluation job can't be resumed.
-     * Resuming a running or scheduled evaluation job is a no-op.
-     * 
- */ - public void resumeEvaluationJob( - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResumeEvaluationJobMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Stops and deletes an evaluation job.
-     * 
- */ - public void deleteEvaluationJob( - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteEvaluationJobMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all evaluation jobs within a project with possible filters.
-     * Pagination is supported.
-     * 
- */ - public void listEvaluationJobs( - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListEvaluationJobsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service for the AI Platform Data Labeling API.
-   * 
- */ - public static final class DataLabelingServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DataLabelingServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataLabelingServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataLabelingServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates dataset. If success return a Dataset resource.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.Dataset createDataset( - com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDatasetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets dataset by resource name.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.Dataset getDataset( - com.google.cloud.datalabeling.v1beta1.GetDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDatasetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists datasets under a project. Pagination is supported.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse listDatasets( - com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDatasetsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a dataset by resource name.
-     * 
- */ - public com.google.protobuf.Empty deleteDataset( - com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Imports data into dataset based on source locations defined in request.
-     * It can be called multiple times for the same dataset. Each dataset can
-     * only have one long running operation running on it. For example, no
-     * labeling task (also long running operation) can be started while
-     * importing is still ongoing. Vice versa.
-     * 
- */ - public com.google.longrunning.Operation importData( - com.google.cloud.datalabeling.v1beta1.ImportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getImportDataMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Exports data and annotations from dataset.
-     * 
- */ - public com.google.longrunning.Operation exportData( - com.google.cloud.datalabeling.v1beta1.ExportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportDataMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a data item in a dataset by resource name. This API can be
-     * called after data are imported into dataset.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.DataItem getDataItem( - com.google.cloud.datalabeling.v1beta1.GetDataItemRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDataItemMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists data items in a dataset. This API can be called after data
-     * are imported into dataset. Pagination is supported.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse listDataItems( - com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDataItemsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets an annotated dataset by resource name.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset getAnnotatedDataset( - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAnnotatedDatasetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists annotated datasets for a dataset. Pagination is supported.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse - listAnnotatedDatasets( - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAnnotatedDatasetsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an annotated dataset by resource name.
-     * 
- */ - public com.google.protobuf.Empty deleteAnnotatedDataset( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAnnotatedDatasetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Starts a labeling task for image. The type of image labeling task is
-     * configured by feature in the request.
-     * 
- */ - public com.google.longrunning.Operation labelImage( - com.google.cloud.datalabeling.v1beta1.LabelImageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLabelImageMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Starts a labeling task for video. The type of video labeling task is
-     * configured by feature in the request.
-     * 
- */ - public com.google.longrunning.Operation labelVideo( - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLabelVideoMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Starts a labeling task for text. The type of text labeling task is
-     * configured by feature in the request.
-     * 
- */ - public com.google.longrunning.Operation labelText( - com.google.cloud.datalabeling.v1beta1.LabelTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLabelTextMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets an example by resource name, including both data and annotation.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.Example getExample( - com.google.cloud.datalabeling.v1beta1.GetExampleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetExampleMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists examples in an annotated dataset. Pagination is supported.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.ListExamplesResponse listExamples( - com.google.cloud.datalabeling.v1beta1.ListExamplesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListExamplesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates an annotation spec set by providing a set of labels.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet createAnnotationSpecSet( - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateAnnotationSpecSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets an annotation spec set by resource name.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpecSet( - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAnnotationSpecSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists annotation spec sets for a project. Pagination is supported.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse - listAnnotationSpecSets( - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAnnotationSpecSetsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an annotation spec set by resource name.
-     * 
- */ - public com.google.protobuf.Empty deleteAnnotationSpecSet( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAnnotationSpecSetMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates an instruction for how data should be labeled.
-     * 
- */ - public com.google.longrunning.Operation createInstruction( - com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateInstructionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets an instruction by resource name.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.Instruction getInstruction( - com.google.cloud.datalabeling.v1beta1.GetInstructionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetInstructionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists instructions for a project. Pagination is supported.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse listInstructions( - com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListInstructionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an instruction object by resource name.
-     * 
- */ - public com.google.protobuf.Empty deleteInstruction( - com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteInstructionMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets an evaluation by resource name (to search, use
-     * [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.Evaluation getEvaluation( - com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEvaluationMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse searchEvaluations( - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchEvaluationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Searches example comparisons from an evaluation. The return format is a
-     * list of example comparisons that show ground truth and prediction(s) for
-     * a single input. Search by providing an evaluation ID.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - searchExampleComparisons( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchExampleComparisonsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates an evaluation job.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.EvaluationJob createEvaluationJob( - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateEvaluationJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an evaluation job. You can only update certain fields of the job's
-     * [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: `humanAnnotationConfig.instruction`,
-     * `exampleCount`, and `exampleSamplePercentage`.
-     * If you want to change any other aspect of the evaluation job, you must
-     * delete the job and create a new one.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.EvaluationJob updateEvaluationJob( - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateEvaluationJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets an evaluation job by resource name.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.EvaluationJob getEvaluationJob( - com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEvaluationJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Pauses an evaluation job. Pausing an evaluation job that is already in a
-     * `PAUSED` state is a no-op.
-     * 
- */ - public com.google.protobuf.Empty pauseEvaluationJob( - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPauseEvaluationJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Resumes a paused evaluation job. A deleted evaluation job can't be resumed.
-     * Resuming a running or scheduled evaluation job is a no-op.
-     * 
- */ - public com.google.protobuf.Empty resumeEvaluationJob( - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResumeEvaluationJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Stops and deletes an evaluation job.
-     * 
- */ - public com.google.protobuf.Empty deleteEvaluationJob( - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteEvaluationJobMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all evaluation jobs within a project with possible filters.
-     * Pagination is supported.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse listEvaluationJobs( - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEvaluationJobsMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service for the AI Platform Data Labeling API.
-   * 
- */ - public static final class DataLabelingServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DataLabelingServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataLabelingServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataLabelingServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates dataset. If success return a Dataset resource.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datalabeling.v1beta1.Dataset> - createDataset(com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets dataset by resource name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datalabeling.v1beta1.Dataset> - getDataset(com.google.cloud.datalabeling.v1beta1.GetDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists datasets under a project. Pagination is supported.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse> - listDatasets(com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a dataset by resource name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteDataset(com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Imports data into dataset based on source locations defined in request.
-     * It can be called multiple times for the same dataset. Each dataset can
-     * only have one long running operation running on it. For example, no
-     * labeling task (also long running operation) can be started while
-     * importing is still ongoing. Vice versa.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - importData(com.google.cloud.datalabeling.v1beta1.ImportDataRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getImportDataMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Exports data and annotations from dataset.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - exportData(com.google.cloud.datalabeling.v1beta1.ExportDataRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getExportDataMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a data item in a dataset by resource name. This API can be
-     * called after data are imported into dataset.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datalabeling.v1beta1.DataItem> - getDataItem(com.google.cloud.datalabeling.v1beta1.GetDataItemRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDataItemMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists data items in a dataset. This API can be called after data
-     * are imported into dataset. Pagination is supported.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse> - listDataItems(com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDataItemsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets an annotated dataset by resource name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset> - getAnnotatedDataset( - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAnnotatedDatasetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists annotated datasets for a dataset. Pagination is supported.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse> - listAnnotatedDatasets( - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAnnotatedDatasetsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an annotated dataset by resource name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteAnnotatedDataset( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAnnotatedDatasetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Starts a labeling task for image. The type of image labeling task is
-     * configured by feature in the request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - labelImage(com.google.cloud.datalabeling.v1beta1.LabelImageRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLabelImageMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Starts a labeling task for video. The type of video labeling task is
-     * configured by feature in the request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - labelVideo(com.google.cloud.datalabeling.v1beta1.LabelVideoRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLabelVideoMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Starts a labeling task for text. The type of text labeling task is
-     * configured by feature in the request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - labelText(com.google.cloud.datalabeling.v1beta1.LabelTextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLabelTextMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets an example by resource name, including both data and annotation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datalabeling.v1beta1.Example> - getExample(com.google.cloud.datalabeling.v1beta1.GetExampleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetExampleMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists examples in an annotated dataset. Pagination is supported.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datalabeling.v1beta1.ListExamplesResponse> - listExamples(com.google.cloud.datalabeling.v1beta1.ListExamplesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListExamplesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates an annotation spec set by providing a set of labels.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet> - createAnnotationSpecSet( - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateAnnotationSpecSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets an annotation spec set by resource name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet> - getAnnotationSpecSet( - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAnnotationSpecSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists annotation spec sets for a project. Pagination is supported.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse> - listAnnotationSpecSets( - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAnnotationSpecSetsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an annotation spec set by resource name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteAnnotationSpecSet( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAnnotationSpecSetMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates an instruction for how data should be labeled.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - createInstruction(com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateInstructionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets an instruction by resource name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datalabeling.v1beta1.Instruction> - getInstruction(com.google.cloud.datalabeling.v1beta1.GetInstructionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetInstructionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists instructions for a project. Pagination is supported.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse> - listInstructions(com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListInstructionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an instruction object by resource name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteInstruction(com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteInstructionMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets an evaluation by resource name (to search, use
-     * [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datalabeling.v1beta1.Evaluation> - getEvaluation(com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEvaluationMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse> - searchEvaluations(com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchEvaluationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Searches example comparisons from an evaluation. The return format is a
-     * list of example comparisons that show ground truth and prediction(s) for
-     * a single input. Search by providing an evaluation ID.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse> - searchExampleComparisons( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchExampleComparisonsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates an evaluation job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datalabeling.v1beta1.EvaluationJob> - createEvaluationJob( - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateEvaluationJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an evaluation job. You can only update certain fields of the job's
-     * [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: `humanAnnotationConfig.instruction`,
-     * `exampleCount`, and `exampleSamplePercentage`.
-     * If you want to change any other aspect of the evaluation job, you must
-     * delete the job and create a new one.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datalabeling.v1beta1.EvaluationJob> - updateEvaluationJob( - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateEvaluationJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets an evaluation job by resource name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datalabeling.v1beta1.EvaluationJob> - getEvaluationJob(com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEvaluationJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Pauses an evaluation job. Pausing an evaluation job that is already in a
-     * `PAUSED` state is a no-op.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - pauseEvaluationJob( - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPauseEvaluationJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Resumes a paused evaluation job. A deleted evaluation job can't be resumed.
-     * Resuming a running or scheduled evaluation job is a no-op.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - resumeEvaluationJob( - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResumeEvaluationJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Stops and deletes an evaluation job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteEvaluationJob( - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteEvaluationJobMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all evaluation jobs within a project with possible filters.
-     * Pagination is supported.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse> - listEvaluationJobs( - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEvaluationJobsMethod(), 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_DELETE_DATASET = 3; - private static final int METHODID_IMPORT_DATA = 4; - private static final int METHODID_EXPORT_DATA = 5; - private static final int METHODID_GET_DATA_ITEM = 6; - private static final int METHODID_LIST_DATA_ITEMS = 7; - private static final int METHODID_GET_ANNOTATED_DATASET = 8; - private static final int METHODID_LIST_ANNOTATED_DATASETS = 9; - private static final int METHODID_DELETE_ANNOTATED_DATASET = 10; - private static final int METHODID_LABEL_IMAGE = 11; - private static final int METHODID_LABEL_VIDEO = 12; - private static final int METHODID_LABEL_TEXT = 13; - private static final int METHODID_GET_EXAMPLE = 14; - private static final int METHODID_LIST_EXAMPLES = 15; - private static final int METHODID_CREATE_ANNOTATION_SPEC_SET = 16; - private static final int METHODID_GET_ANNOTATION_SPEC_SET = 17; - private static final int METHODID_LIST_ANNOTATION_SPEC_SETS = 18; - private static final int METHODID_DELETE_ANNOTATION_SPEC_SET = 19; - private static final int METHODID_CREATE_INSTRUCTION = 20; - private static final int METHODID_GET_INSTRUCTION = 21; - private static final int METHODID_LIST_INSTRUCTIONS = 22; - private static final int METHODID_DELETE_INSTRUCTION = 23; - private static final int METHODID_GET_EVALUATION = 24; - private static final int METHODID_SEARCH_EVALUATIONS = 25; - private static final int METHODID_SEARCH_EXAMPLE_COMPARISONS = 26; - private static final int METHODID_CREATE_EVALUATION_JOB = 27; - private static final int METHODID_UPDATE_EVALUATION_JOB = 28; - private static final int METHODID_GET_EVALUATION_JOB = 29; - private static final int METHODID_PAUSE_EVALUATION_JOB = 30; - private static final int METHODID_RESUME_EVALUATION_JOB = 31; - private static final int METHODID_DELETE_EVALUATION_JOB = 32; - private static final int METHODID_LIST_EVALUATION_JOBS = 33; - - 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 DataLabelingServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(DataLabelingServiceImplBase 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.datalabeling.v1beta1.CreateDatasetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_DATASET: - serviceImpl.getDataset( - (com.google.cloud.datalabeling.v1beta1.GetDatasetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_DATASETS: - serviceImpl.listDatasets( - (com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse>) - responseObserver); - break; - case METHODID_DELETE_DATASET: - serviceImpl.deleteDataset( - (com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_IMPORT_DATA: - serviceImpl.importData( - (com.google.cloud.datalabeling.v1beta1.ImportDataRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_EXPORT_DATA: - serviceImpl.exportData( - (com.google.cloud.datalabeling.v1beta1.ExportDataRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_DATA_ITEM: - serviceImpl.getDataItem( - (com.google.cloud.datalabeling.v1beta1.GetDataItemRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_DATA_ITEMS: - serviceImpl.listDataItems( - (com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse>) - responseObserver); - break; - case METHODID_GET_ANNOTATED_DATASET: - serviceImpl.getAnnotatedDataset( - (com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_ANNOTATED_DATASETS: - serviceImpl.listAnnotatedDatasets( - (com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse>) - responseObserver); - break; - case METHODID_DELETE_ANNOTATED_DATASET: - serviceImpl.deleteAnnotatedDataset( - (com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LABEL_IMAGE: - serviceImpl.labelImage( - (com.google.cloud.datalabeling.v1beta1.LabelImageRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LABEL_VIDEO: - serviceImpl.labelVideo( - (com.google.cloud.datalabeling.v1beta1.LabelVideoRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LABEL_TEXT: - serviceImpl.labelText( - (com.google.cloud.datalabeling.v1beta1.LabelTextRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_EXAMPLE: - serviceImpl.getExample( - (com.google.cloud.datalabeling.v1beta1.GetExampleRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_EXAMPLES: - serviceImpl.listExamples( - (com.google.cloud.datalabeling.v1beta1.ListExamplesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datalabeling.v1beta1.ListExamplesResponse>) - responseObserver); - break; - case METHODID_CREATE_ANNOTATION_SPEC_SET: - serviceImpl.createAnnotationSpecSet( - (com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_ANNOTATION_SPEC_SET: - serviceImpl.getAnnotationSpecSet( - (com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_ANNOTATION_SPEC_SETS: - serviceImpl.listAnnotationSpecSets( - (com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse>) - responseObserver); - break; - case METHODID_DELETE_ANNOTATION_SPEC_SET: - serviceImpl.deleteAnnotationSpecSet( - (com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_INSTRUCTION: - serviceImpl.createInstruction( - (com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_INSTRUCTION: - serviceImpl.getInstruction( - (com.google.cloud.datalabeling.v1beta1.GetInstructionRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_INSTRUCTIONS: - serviceImpl.listInstructions( - (com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse>) - responseObserver); - break; - case METHODID_DELETE_INSTRUCTION: - serviceImpl.deleteInstruction( - (com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_EVALUATION: - serviceImpl.getEvaluation( - (com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_SEARCH_EVALUATIONS: - serviceImpl.searchEvaluations( - (com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse>) - responseObserver); - break; - case METHODID_SEARCH_EXAMPLE_COMPARISONS: - serviceImpl.searchExampleComparisons( - (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse>) - responseObserver); - break; - case METHODID_CREATE_EVALUATION_JOB: - serviceImpl.createEvaluationJob( - (com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_EVALUATION_JOB: - serviceImpl.updateEvaluationJob( - (com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_EVALUATION_JOB: - serviceImpl.getEvaluationJob( - (com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_PAUSE_EVALUATION_JOB: - serviceImpl.pauseEvaluationJob( - (com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESUME_EVALUATION_JOB: - serviceImpl.resumeEvaluationJob( - (com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_EVALUATION_JOB: - serviceImpl.deleteEvaluationJob( - (com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_EVALUATION_JOBS: - serviceImpl.listEvaluationJobs( - (com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse>) - 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 DataLabelingServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DataLabelingServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("DataLabelingService"); - } - } - - private static final class DataLabelingServiceFileDescriptorSupplier - extends DataLabelingServiceBaseDescriptorSupplier { - DataLabelingServiceFileDescriptorSupplier() {} - } - - private static final class DataLabelingServiceMethodDescriptorSupplier - extends DataLabelingServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - DataLabelingServiceMethodDescriptorSupplier(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 (DataLabelingServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DataLabelingServiceFileDescriptorSupplier()) - .addMethod(getCreateDatasetMethod()) - .addMethod(getGetDatasetMethod()) - .addMethod(getListDatasetsMethod()) - .addMethod(getDeleteDatasetMethod()) - .addMethod(getImportDataMethod()) - .addMethod(getExportDataMethod()) - .addMethod(getGetDataItemMethod()) - .addMethod(getListDataItemsMethod()) - .addMethod(getGetAnnotatedDatasetMethod()) - .addMethod(getListAnnotatedDatasetsMethod()) - .addMethod(getDeleteAnnotatedDatasetMethod()) - .addMethod(getLabelImageMethod()) - .addMethod(getLabelVideoMethod()) - .addMethod(getLabelTextMethod()) - .addMethod(getGetExampleMethod()) - .addMethod(getListExamplesMethod()) - .addMethod(getCreateAnnotationSpecSetMethod()) - .addMethod(getGetAnnotationSpecSetMethod()) - .addMethod(getListAnnotationSpecSetsMethod()) - .addMethod(getDeleteAnnotationSpecSetMethod()) - .addMethod(getCreateInstructionMethod()) - .addMethod(getGetInstructionMethod()) - .addMethod(getListInstructionsMethod()) - .addMethod(getDeleteInstructionMethod()) - .addMethod(getGetEvaluationMethod()) - .addMethod(getSearchEvaluationsMethod()) - .addMethod(getSearchExampleComparisonsMethod()) - .addMethod(getCreateEvaluationJobMethod()) - .addMethod(getUpdateEvaluationJobMethod()) - .addMethod(getGetEvaluationJobMethod()) - .addMethod(getPauseEvaluationJobMethod()) - .addMethod(getResumeEvaluationJobMethod()) - .addMethod(getDeleteEvaluationJobMethod()) - .addMethod(getListEvaluationJobsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClient.java b/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClient.java similarity index 97% rename from google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClient.java rename to owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClient.java index c42eaa02..7ab09cb9 100644 --- a/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClient.java +++ b/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClient.java @@ -64,13 +64,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. *
* @@ -517,7 +517,7 @@ public final ListDatasetsPagedResponse listDatasets(ListDatasetsRequest request) * while (true) { * ListDatasetsResponse response = * dataLabelingServiceClient.listDatasetsCallable().call(request); - * for (Dataset element : response.getResponsesList()) { + * for (Dataset element : response.getDatasetsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1325,7 +1325,7 @@ public final ListDataItemsPagedResponse listDataItems(ListDataItemsRequest reque * while (true) { * ListDataItemsResponse response = * dataLabelingServiceClient.listDataItemsCallable().call(request); - * for (DataItem element : response.getResponsesList()) { + * for (DataItem element : response.getDataItemsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1599,7 +1599,7 @@ public final ListAnnotatedDatasetsPagedResponse listAnnotatedDatasets( * while (true) { * ListAnnotatedDatasetsResponse response = * dataLabelingServiceClient.listAnnotatedDatasetsCallable().call(request); - * for (AnnotatedDataset element : response.getResponsesList()) { + * for (AnnotatedDataset element : response.getAnnotatedDatasetsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -2410,7 +2410,7 @@ public final ListExamplesPagedResponse listExamples(ListExamplesRequest request) * while (true) { * ListExamplesResponse response = * dataLabelingServiceClient.listExamplesCallable().call(request); - * for (Example element : response.getResponsesList()) { + * for (Example element : response.getExamplesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -2795,7 +2795,7 @@ public final ListAnnotationSpecSetsPagedResponse listAnnotationSpecSets( * while (true) { * ListAnnotationSpecSetsResponse response = * dataLabelingServiceClient.listAnnotationSpecSetsCallable().call(request); - * for (AnnotationSpecSet element : response.getResponsesList()) { + * for (AnnotationSpecSet element : response.getAnnotationSpecSetsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -3296,7 +3296,7 @@ public final ListInstructionsPagedResponse listInstructions(ListInstructionsRequ * while (true) { * ListInstructionsResponse response = * dataLabelingServiceClient.listInstructionsCallable().call(request); - * for (Instruction element : response.getResponsesList()) { + * for (Instruction element : response.getInstructionsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -3541,22 +3541,22 @@ public final UnaryCallable getEvaluationCallab * "projects/<var>{project_id}</var>" * @param filter Optional. To search evaluations, you can filter by the following: *
    - *
  • evaluation<span>_</span>job.evaluation_job_id (the last part of + *
  • evaluation<span>_</span>job.evaluation_job_id (the last part of * [EvaluationJob.name][google.cloud.datalabeling.v1beta1.EvaluationJob.name]) - *
  • evaluation<span>_</span>job.model_id (the + *
  • evaluation<span>_</span>job.model_id (the * <var>{model_name}</var> portion of * [EvaluationJob.modelVersion][google.cloud.datalabeling.v1beta1.EvaluationJob.model_version]) - *
  • evaluation<span>_</span>job.evaluation_job_run_time_start (Minimum + *
  • evaluation<span>_</span>job.evaluation_job_run_time_start (Minimum * threshold for the * [evaluationJobRunTime][google.cloud.datalabeling.v1beta1.Evaluation.evaluation_job_run_time] * that created the evaluation) - *
  • evaluation<span>_</span>job.evaluation_job_run_time_end (Maximum + *
  • evaluation<span>_</span>job.evaluation_job_run_time_end (Maximum * threshold for the * [evaluationJobRunTime][google.cloud.datalabeling.v1beta1.Evaluation.evaluation_job_run_time] * that created the evaluation) - *
  • evaluation<span>_</span>job.job_state + *
  • evaluation<span>_</span>job.job_state * ([EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state]) - *
  • annotation<span>_</span>spec.display_name (the Evaluation contains a + *
  • annotation<span>_</span>spec.display_name (the Evaluation contains a * metric for the annotation spec with this * [displayName][google.cloud.datalabeling.v1beta1.AnnotationSpec.display_name]) *
@@ -3606,22 +3606,22 @@ public final SearchEvaluationsPagedResponse searchEvaluations( * "projects/<var>{project_id}</var>" * @param filter Optional. To search evaluations, you can filter by the following: *
    - *
  • evaluation<span>_</span>job.evaluation_job_id (the last part of + *
  • evaluation<span>_</span>job.evaluation_job_id (the last part of * [EvaluationJob.name][google.cloud.datalabeling.v1beta1.EvaluationJob.name]) - *
  • evaluation<span>_</span>job.model_id (the + *
  • evaluation<span>_</span>job.model_id (the * <var>{model_name}</var> portion of * [EvaluationJob.modelVersion][google.cloud.datalabeling.v1beta1.EvaluationJob.model_version]) - *
  • evaluation<span>_</span>job.evaluation_job_run_time_start (Minimum + *
  • evaluation<span>_</span>job.evaluation_job_run_time_start (Minimum * threshold for the * [evaluationJobRunTime][google.cloud.datalabeling.v1beta1.Evaluation.evaluation_job_run_time] * that created the evaluation) - *
  • evaluation<span>_</span>job.evaluation_job_run_time_end (Maximum + *
  • evaluation<span>_</span>job.evaluation_job_run_time_end (Maximum * threshold for the * [evaluationJobRunTime][google.cloud.datalabeling.v1beta1.Evaluation.evaluation_job_run_time] * that created the evaluation) - *
  • evaluation<span>_</span>job.job_state + *
  • evaluation<span>_</span>job.job_state * ([EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state]) - *
  • annotation<span>_</span>spec.display_name (the Evaluation contains a + *
  • annotation<span>_</span>spec.display_name (the Evaluation contains a * metric for the annotation spec with this * [displayName][google.cloud.datalabeling.v1beta1.AnnotationSpec.display_name]) *
@@ -3725,7 +3725,7 @@ public final SearchEvaluationsPagedResponse searchEvaluations(SearchEvaluationsR * while (true) { * SearchEvaluationsResponse response = * dataLabelingServiceClient.searchEvaluationsCallable().call(request); - * for (Evaluation element : response.getResponsesList()) { + * for (Evaluation element : response.getEvaluationsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -3895,7 +3895,7 @@ public final SearchExampleComparisonsPagedResponse searchExampleComparisons( * SearchExampleComparisonsResponse response = * dataLabelingServiceClient.searchExampleComparisonsCallable().call(request); * for (SearchExampleComparisonsResponse.ExampleComparison element : - * response.getResponsesList()) { + * response.getExampleComparisonsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -4049,9 +4049,9 @@ public final EvaluationJob createEvaluationJob(CreateEvaluationJobRequest reques * @param updateMask Optional. Mask for which fields to update. You can only provide the following * fields: *
    - *
  • `evaluationJobConfig.humanAnnotationConfig.instruction` - *
  • `evaluationJobConfig.exampleCount` - *
  • `evaluationJobConfig.exampleSamplePercentage` + *
  • `evaluationJobConfig.humanAnnotationConfig.instruction` + *
  • `evaluationJobConfig.exampleCount` + *
  • `evaluationJobConfig.exampleSamplePercentage` *
*

You can provide more than one of these fields by separating them with commas. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -4705,7 +4705,7 @@ public final ListEvaluationJobsPagedResponse listEvaluationJobs( * while (true) { * ListEvaluationJobsResponse response = * dataLabelingServiceClient.listEvaluationJobsCallable().call(request); - * for (EvaluationJob element : response.getResponsesList()) { + * for (EvaluationJob element : response.getEvaluationJobsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -4755,10 +4755,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( @@ -4807,10 +4804,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) { @@ -4830,10 +4824,7 @@ protected ListDatasetsFixedSizeCollection createCollection( public static class ListDataItemsPagedResponse extends AbstractPagedListResponse< - ListDataItemsRequest, - ListDataItemsResponse, - DataItem, - ListDataItemsPage, + ListDataItemsRequest, ListDataItemsResponse, DataItem, ListDataItemsPage, ListDataItemsFixedSizeCollection> { public static ApiFuture createAsync( @@ -4883,10 +4874,7 @@ public ApiFuture createPageAsync( public static class ListDataItemsFixedSizeCollection extends AbstractFixedSizeCollection< - ListDataItemsRequest, - ListDataItemsResponse, - DataItem, - ListDataItemsPage, + ListDataItemsRequest, ListDataItemsResponse, DataItem, ListDataItemsPage, ListDataItemsFixedSizeCollection> { private ListDataItemsFixedSizeCollection(List pages, int collectionSize) { @@ -4906,11 +4894,8 @@ protected ListDataItemsFixedSizeCollection createCollection( public static class ListAnnotatedDatasetsPagedResponse extends AbstractPagedListResponse< - ListAnnotatedDatasetsRequest, - ListAnnotatedDatasetsResponse, - AnnotatedDataset, - ListAnnotatedDatasetsPage, - ListAnnotatedDatasetsFixedSizeCollection> { + ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, AnnotatedDataset, + ListAnnotatedDatasetsPage, ListAnnotatedDatasetsFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -4931,9 +4916,7 @@ private ListAnnotatedDatasetsPagedResponse(ListAnnotatedDatasetsPage page) { public static class ListAnnotatedDatasetsPage extends AbstractPage< - ListAnnotatedDatasetsRequest, - ListAnnotatedDatasetsResponse, - AnnotatedDataset, + ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, AnnotatedDataset, ListAnnotatedDatasetsPage> { private ListAnnotatedDatasetsPage( @@ -4966,11 +4949,8 @@ public ApiFuture createPageAsync( public static class ListAnnotatedDatasetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListAnnotatedDatasetsRequest, - ListAnnotatedDatasetsResponse, - AnnotatedDataset, - ListAnnotatedDatasetsPage, - ListAnnotatedDatasetsFixedSizeCollection> { + ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, AnnotatedDataset, + ListAnnotatedDatasetsPage, ListAnnotatedDatasetsFixedSizeCollection> { private ListAnnotatedDatasetsFixedSizeCollection( List pages, int collectionSize) { @@ -4990,10 +4970,7 @@ protected ListAnnotatedDatasetsFixedSizeCollection createCollection( public static class ListExamplesPagedResponse extends AbstractPagedListResponse< - ListExamplesRequest, - ListExamplesResponse, - Example, - ListExamplesPage, + ListExamplesRequest, ListExamplesResponse, Example, ListExamplesPage, ListExamplesFixedSizeCollection> { public static ApiFuture createAsync( @@ -5042,10 +5019,7 @@ public ApiFuture createPageAsync( public static class ListExamplesFixedSizeCollection extends AbstractFixedSizeCollection< - ListExamplesRequest, - ListExamplesResponse, - Example, - ListExamplesPage, + ListExamplesRequest, ListExamplesResponse, Example, ListExamplesPage, ListExamplesFixedSizeCollection> { private ListExamplesFixedSizeCollection(List pages, int collectionSize) { @@ -5065,11 +5039,8 @@ protected ListExamplesFixedSizeCollection createCollection( public static class ListAnnotationSpecSetsPagedResponse extends AbstractPagedListResponse< - ListAnnotationSpecSetsRequest, - ListAnnotationSpecSetsResponse, - AnnotationSpecSet, - ListAnnotationSpecSetsPage, - ListAnnotationSpecSetsFixedSizeCollection> { + ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, AnnotationSpecSet, + ListAnnotationSpecSetsPage, ListAnnotationSpecSetsFixedSizeCollection> { public static ApiFuture createAsync( PageContext< @@ -5091,9 +5062,7 @@ private ListAnnotationSpecSetsPagedResponse(ListAnnotationSpecSetsPage page) { public static class ListAnnotationSpecSetsPage extends AbstractPage< - ListAnnotationSpecSetsRequest, - ListAnnotationSpecSetsResponse, - AnnotationSpecSet, + ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, AnnotationSpecSet, ListAnnotationSpecSetsPage> { private ListAnnotationSpecSetsPage( @@ -5129,11 +5098,8 @@ public ApiFuture createPageAsync( public static class ListAnnotationSpecSetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListAnnotationSpecSetsRequest, - ListAnnotationSpecSetsResponse, - AnnotationSpecSet, - ListAnnotationSpecSetsPage, - ListAnnotationSpecSetsFixedSizeCollection> { + ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, AnnotationSpecSet, + ListAnnotationSpecSetsPage, ListAnnotationSpecSetsFixedSizeCollection> { private ListAnnotationSpecSetsFixedSizeCollection( List pages, int collectionSize) { @@ -5153,10 +5119,7 @@ protected ListAnnotationSpecSetsFixedSizeCollection createCollection( public static class ListInstructionsPagedResponse extends AbstractPagedListResponse< - ListInstructionsRequest, - ListInstructionsResponse, - Instruction, - ListInstructionsPage, + ListInstructionsRequest, ListInstructionsResponse, Instruction, ListInstructionsPage, ListInstructionsFixedSizeCollection> { public static ApiFuture createAsync( @@ -5206,10 +5169,7 @@ public ApiFuture createPageAsync( public static class ListInstructionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListInstructionsRequest, - ListInstructionsResponse, - Instruction, - ListInstructionsPage, + ListInstructionsRequest, ListInstructionsResponse, Instruction, ListInstructionsPage, ListInstructionsFixedSizeCollection> { private ListInstructionsFixedSizeCollection( @@ -5230,10 +5190,7 @@ protected ListInstructionsFixedSizeCollection createCollection( public static class SearchEvaluationsPagedResponse extends AbstractPagedListResponse< - SearchEvaluationsRequest, - SearchEvaluationsResponse, - Evaluation, - SearchEvaluationsPage, + SearchEvaluationsRequest, SearchEvaluationsResponse, Evaluation, SearchEvaluationsPage, SearchEvaluationsFixedSizeCollection> { public static ApiFuture createAsync( @@ -5283,10 +5240,7 @@ public ApiFuture createPageAsync( public static class SearchEvaluationsFixedSizeCollection extends AbstractFixedSizeCollection< - SearchEvaluationsRequest, - SearchEvaluationsResponse, - Evaluation, - SearchEvaluationsPage, + SearchEvaluationsRequest, SearchEvaluationsResponse, Evaluation, SearchEvaluationsPage, SearchEvaluationsFixedSizeCollection> { private SearchEvaluationsFixedSizeCollection( @@ -5307,16 +5261,13 @@ protected SearchEvaluationsFixedSizeCollection createCollection( public static class SearchExampleComparisonsPagedResponse extends AbstractPagedListResponse< - SearchExampleComparisonsRequest, - SearchExampleComparisonsResponse, - SearchExampleComparisonsResponse.ExampleComparison, - SearchExampleComparisonsPage, + SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, + SearchExampleComparisonsResponse.ExampleComparison, SearchExampleComparisonsPage, SearchExampleComparisonsFixedSizeCollection> { public static ApiFuture createAsync( PageContext< - SearchExampleComparisonsRequest, - SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, SearchExampleComparisonsResponse.ExampleComparison> context, ApiFuture futureResponse) { @@ -5335,15 +5286,12 @@ private SearchExampleComparisonsPagedResponse(SearchExampleComparisonsPage page) public static class SearchExampleComparisonsPage extends AbstractPage< - SearchExampleComparisonsRequest, - SearchExampleComparisonsResponse, - SearchExampleComparisonsResponse.ExampleComparison, - SearchExampleComparisonsPage> { + SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, + SearchExampleComparisonsResponse.ExampleComparison, SearchExampleComparisonsPage> { private SearchExampleComparisonsPage( PageContext< - SearchExampleComparisonsRequest, - SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, SearchExampleComparisonsResponse.ExampleComparison> context, SearchExampleComparisonsResponse response) { @@ -5357,8 +5305,7 @@ private static SearchExampleComparisonsPage createEmptyPage() { @Override protected SearchExampleComparisonsPage createPage( PageContext< - SearchExampleComparisonsRequest, - SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, SearchExampleComparisonsResponse.ExampleComparison> context, SearchExampleComparisonsResponse response) { @@ -5368,8 +5315,7 @@ protected SearchExampleComparisonsPage createPage( @Override public ApiFuture createPageAsync( PageContext< - SearchExampleComparisonsRequest, - SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, SearchExampleComparisonsResponse.ExampleComparison> context, ApiFuture futureResponse) { @@ -5379,10 +5325,8 @@ public ApiFuture createPageAsync( public static class SearchExampleComparisonsFixedSizeCollection extends AbstractFixedSizeCollection< - SearchExampleComparisonsRequest, - SearchExampleComparisonsResponse, - SearchExampleComparisonsResponse.ExampleComparison, - SearchExampleComparisonsPage, + SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, + SearchExampleComparisonsResponse.ExampleComparison, SearchExampleComparisonsPage, SearchExampleComparisonsFixedSizeCollection> { private SearchExampleComparisonsFixedSizeCollection( @@ -5403,11 +5347,8 @@ protected SearchExampleComparisonsFixedSizeCollection createCollection( public static class ListEvaluationJobsPagedResponse extends AbstractPagedListResponse< - ListEvaluationJobsRequest, - ListEvaluationJobsResponse, - EvaluationJob, - ListEvaluationJobsPage, - ListEvaluationJobsFixedSizeCollection> { + ListEvaluationJobsRequest, ListEvaluationJobsResponse, EvaluationJob, + ListEvaluationJobsPage, ListEvaluationJobsFixedSizeCollection> { public static ApiFuture createAsync( PageContext context, @@ -5427,9 +5368,7 @@ private ListEvaluationJobsPagedResponse(ListEvaluationJobsPage page) { public static class ListEvaluationJobsPage extends AbstractPage< - ListEvaluationJobsRequest, - ListEvaluationJobsResponse, - EvaluationJob, + ListEvaluationJobsRequest, ListEvaluationJobsResponse, EvaluationJob, ListEvaluationJobsPage> { private ListEvaluationJobsPage( @@ -5459,11 +5398,8 @@ public ApiFuture createPageAsync( public static class ListEvaluationJobsFixedSizeCollection extends AbstractFixedSizeCollection< - ListEvaluationJobsRequest, - ListEvaluationJobsResponse, - EvaluationJob, - ListEvaluationJobsPage, - ListEvaluationJobsFixedSizeCollection> { + ListEvaluationJobsRequest, ListEvaluationJobsResponse, EvaluationJob, + ListEvaluationJobsPage, ListEvaluationJobsFixedSizeCollection> { private ListEvaluationJobsFixedSizeCollection( List pages, int collectionSize) { diff --git a/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceSettings.java b/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceSettings.java similarity index 97% rename from google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceSettings.java rename to owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceSettings.java index 195e96a7..cac0366e 100644 --- a/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceSettings.java @@ -36,6 +36,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.datalabeling.v1beta1.stub.DataLabelingServiceStubSettings; @@ -52,9 +53,9 @@ *

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

    - *
  • The default service address (datalabeling.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 (datalabeling.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 @@ -148,8 +149,7 @@ public UnaryCallSettings getDataItemSettings() { /** Returns the object with the settings used for calls to listAnnotatedDatasets. */ public PagedCallSettings< - ListAnnotatedDatasetsRequest, - ListAnnotatedDatasetsResponse, + ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, ListAnnotatedDatasetsPagedResponse> listAnnotatedDatasetsSettings() { return ((DataLabelingServiceStubSettings) getStubSettings()).listAnnotatedDatasetsSettings(); @@ -218,8 +218,7 @@ public UnaryCallSettings getExampleSettings() { /** Returns the object with the settings used for calls to listAnnotationSpecSets. */ public PagedCallSettings< - ListAnnotationSpecSetsRequest, - ListAnnotationSpecSetsResponse, + ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, ListAnnotationSpecSetsPagedResponse> listAnnotationSpecSetsSettings() { return ((DataLabelingServiceStubSettings) getStubSettings()).listAnnotationSpecSetsSettings(); @@ -274,8 +273,7 @@ public UnaryCallSettings getEvaluationSettings /** Returns the object with the settings used for calls to searchExampleComparisons. */ public PagedCallSettings< - SearchExampleComparisonsRequest, - SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, SearchExampleComparisonsPagedResponse> searchExampleComparisonsSettings() { return ((DataLabelingServiceStubSettings) getStubSettings()).searchExampleComparisonsSettings(); @@ -483,8 +481,7 @@ public UnaryCallSettings.Builder getDataItemSettin /** Returns the builder for the settings used for calls to listAnnotatedDatasets. */ public PagedCallSettings.Builder< - ListAnnotatedDatasetsRequest, - ListAnnotatedDatasetsResponse, + ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, ListAnnotatedDatasetsPagedResponse> listAnnotatedDatasetsSettings() { return getStubSettingsBuilder().listAnnotatedDatasetsSettings(); @@ -557,8 +554,7 @@ public UnaryCallSettings.Builder getExampleSettings( /** Returns the builder for the settings used for calls to listAnnotationSpecSets. */ public PagedCallSettings.Builder< - ListAnnotationSpecSetsRequest, - ListAnnotationSpecSetsResponse, + ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, ListAnnotationSpecSetsPagedResponse> listAnnotationSpecSetsSettings() { return getStubSettingsBuilder().listAnnotationSpecSetsSettings(); @@ -614,8 +610,7 @@ public UnaryCallSettings.Builder getEvaluation /** Returns the builder for the settings used for calls to searchExampleComparisons. */ public PagedCallSettings.Builder< - SearchExampleComparisonsRequest, - SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, SearchExampleComparisonsPagedResponse> searchExampleComparisonsSettings() { return getStubSettingsBuilder().searchExampleComparisonsSettings(); diff --git a/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/gapic_metadata.json b/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/gapic_metadata.json similarity index 100% rename from google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/gapic_metadata.json rename to owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/gapic_metadata.json diff --git a/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/package-info.java b/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/package-info.java similarity index 100% rename from google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/package-info.java rename to owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/package-info.java diff --git a/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStub.java similarity index 100% rename from google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStub.java rename to owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStub.java diff --git a/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java b/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java similarity index 97% rename from google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java rename to owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java index 07b6caa0..73ee8561 100644 --- a/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java +++ b/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java @@ -127,9 +127,9 @@ *

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

    - *
  • The default service address (datalabeling.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 (datalabeling.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 @@ -183,8 +183,7 @@ public class DataLabelingServiceStubSettings extends StubSettings getAnnotatedDatasetSettings; private final PagedCallSettings< - ListAnnotatedDatasetsRequest, - ListAnnotatedDatasetsResponse, + ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, ListAnnotatedDatasetsPagedResponse> listAnnotatedDatasetsSettings; private final UnaryCallSettings @@ -207,8 +206,7 @@ public class DataLabelingServiceStubSettings extends StubSettings getAnnotationSpecSetSettings; private final PagedCallSettings< - ListAnnotationSpecSetsRequest, - ListAnnotationSpecSetsResponse, + ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, ListAnnotationSpecSetsPagedResponse> listAnnotationSpecSetsSettings; private final UnaryCallSettings @@ -227,8 +225,7 @@ public class DataLabelingServiceStubSettings extends StubSettings searchEvaluationsSettings; private final PagedCallSettings< - SearchExampleComparisonsRequest, - SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, SearchExampleComparisonsPagedResponse> searchExampleComparisonsSettings; private final UnaryCallSettings @@ -516,13 +513,11 @@ public Iterable extractResources(SearchEvaluationsResponse payload) }; private static final PagedListDescriptor< - SearchExampleComparisonsRequest, - SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, SearchExampleComparisonsResponse.ExampleComparison> SEARCH_EXAMPLE_COMPARISONS_PAGE_STR_DESC = new PagedListDescriptor< - SearchExampleComparisonsRequest, - SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, SearchExampleComparisonsResponse.ExampleComparison>() { @Override public String emptyToken() { @@ -639,13 +634,11 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListAnnotatedDatasetsRequest, - ListAnnotatedDatasetsResponse, + ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, ListAnnotatedDatasetsPagedResponse> LIST_ANNOTATED_DATASETS_PAGE_STR_FACT = new PagedListResponseFactory< - ListAnnotatedDatasetsRequest, - ListAnnotatedDatasetsResponse, + ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, ListAnnotatedDatasetsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -680,13 +673,11 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListAnnotationSpecSetsRequest, - ListAnnotationSpecSetsResponse, + ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, ListAnnotationSpecSetsPagedResponse> LIST_ANNOTATION_SPEC_SETS_PAGE_STR_FACT = new PagedListResponseFactory< - ListAnnotationSpecSetsRequest, - ListAnnotationSpecSetsResponse, + ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, ListAnnotationSpecSetsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -696,8 +687,7 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListAnnotationSpecSetsRequest, - ListAnnotationSpecSetsResponse, + ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, AnnotationSpecSet> pageContext = PageContext.create( @@ -729,8 +719,7 @@ public ApiFuture getFuturePagedResponse( SearchEvaluationsRequest, SearchEvaluationsResponse, SearchEvaluationsPagedResponse> SEARCH_EVALUATIONS_PAGE_STR_FACT = new PagedListResponseFactory< - SearchEvaluationsRequest, - SearchEvaluationsResponse, + SearchEvaluationsRequest, SearchEvaluationsResponse, SearchEvaluationsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -747,13 +736,11 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - SearchExampleComparisonsRequest, - SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, SearchExampleComparisonsPagedResponse> SEARCH_EXAMPLE_COMPARISONS_PAGE_STR_FACT = new PagedListResponseFactory< - SearchExampleComparisonsRequest, - SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, SearchExampleComparisonsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -763,8 +750,7 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - SearchExampleComparisonsRequest, - SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, SearchExampleComparisonsResponse.ExampleComparison> pageContext = PageContext.create( @@ -777,8 +763,7 @@ public ApiFuture getFuturePagedResponse( ListEvaluationJobsRequest, ListEvaluationJobsResponse, ListEvaluationJobsPagedResponse> LIST_EVALUATION_JOBS_PAGE_STR_FACT = new PagedListResponseFactory< - ListEvaluationJobsRequest, - ListEvaluationJobsResponse, + ListEvaluationJobsRequest, ListEvaluationJobsResponse, ListEvaluationJobsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -858,8 +843,7 @@ public UnaryCallSettings getDataItemSettings() { /** Returns the object with the settings used for calls to listAnnotatedDatasets. */ public PagedCallSettings< - ListAnnotatedDatasetsRequest, - ListAnnotatedDatasetsResponse, + ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, ListAnnotatedDatasetsPagedResponse> listAnnotatedDatasetsSettings() { return listAnnotatedDatasetsSettings; @@ -928,8 +912,7 @@ public UnaryCallSettings getExampleSettings() { /** Returns the object with the settings used for calls to listAnnotationSpecSets. */ public PagedCallSettings< - ListAnnotationSpecSetsRequest, - ListAnnotationSpecSetsResponse, + ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, ListAnnotationSpecSetsPagedResponse> listAnnotationSpecSetsSettings() { return listAnnotationSpecSetsSettings; @@ -983,8 +966,7 @@ public UnaryCallSettings getEvaluationSettings /** Returns the object with the settings used for calls to searchExampleComparisons. */ public PagedCallSettings< - SearchExampleComparisonsRequest, - SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, SearchExampleComparisonsPagedResponse> searchExampleComparisonsSettings() { return searchExampleComparisonsSettings; @@ -1172,8 +1154,7 @@ public static class Builder private final UnaryCallSettings.Builder getAnnotatedDatasetSettings; private final PagedCallSettings.Builder< - ListAnnotatedDatasetsRequest, - ListAnnotatedDatasetsResponse, + ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, ListAnnotatedDatasetsPagedResponse> listAnnotatedDatasetsSettings; private final UnaryCallSettings.Builder @@ -1199,8 +1180,7 @@ public static class Builder private final UnaryCallSettings.Builder getAnnotationSpecSetSettings; private final PagedCallSettings.Builder< - ListAnnotationSpecSetsRequest, - ListAnnotationSpecSetsResponse, + ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, ListAnnotationSpecSetsPagedResponse> listAnnotationSpecSetsSettings; private final UnaryCallSettings.Builder @@ -1222,8 +1202,7 @@ public static class Builder SearchEvaluationsRequest, SearchEvaluationsResponse, SearchEvaluationsPagedResponse> searchEvaluationsSettings; private final PagedCallSettings.Builder< - SearchExampleComparisonsRequest, - SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, SearchExampleComparisonsPagedResponse> searchExampleComparisonsSettings; private final UnaryCallSettings.Builder @@ -1875,8 +1854,7 @@ public UnaryCallSettings.Builder getDataItemSettin /** Returns the builder for the settings used for calls to listAnnotatedDatasets. */ public PagedCallSettings.Builder< - ListAnnotatedDatasetsRequest, - ListAnnotatedDatasetsResponse, + ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, ListAnnotatedDatasetsPagedResponse> listAnnotatedDatasetsSettings() { return listAnnotatedDatasetsSettings; @@ -1955,8 +1933,7 @@ public UnaryCallSettings.Builder getExampleSettings( /** Returns the builder for the settings used for calls to listAnnotationSpecSets. */ public PagedCallSettings.Builder< - ListAnnotationSpecSetsRequest, - ListAnnotationSpecSetsResponse, + ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, ListAnnotationSpecSetsPagedResponse> listAnnotationSpecSetsSettings() { return listAnnotationSpecSetsSettings; @@ -2014,8 +1991,7 @@ public UnaryCallSettings.Builder getEvaluation /** Returns the builder for the settings used for calls to searchExampleComparisons. */ public PagedCallSettings.Builder< - SearchExampleComparisonsRequest, - SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, SearchExampleComparisonsPagedResponse> searchExampleComparisonsSettings() { return searchExampleComparisonsSettings; diff --git a/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceCallableFactory.java b/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceCallableFactory.java similarity index 100% rename from google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceCallableFactory.java rename to owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceCallableFactory.java diff --git a/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceStub.java b/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceStub.java similarity index 99% rename from google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceStub.java rename to owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceStub.java index c3c82916..36e0537f 100644 --- a/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceStub.java +++ b/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceStub.java @@ -98,6 +98,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-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClientTest.java b/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClientTest.java similarity index 100% rename from google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClientTest.java rename to owl-bot-staging/v1beta1/google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClientTest.java diff --git a/google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/MockDataLabelingService.java b/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/MockDataLabelingService.java similarity index 100% rename from google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/MockDataLabelingService.java rename to owl-bot-staging/v1beta1/google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/MockDataLabelingService.java diff --git a/google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/MockDataLabelingServiceImpl.java b/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/MockDataLabelingServiceImpl.java similarity index 100% rename from google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/MockDataLabelingServiceImpl.java rename to owl-bot-staging/v1beta1/google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/MockDataLabelingServiceImpl.java diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceGrpc.java new file mode 100644 index 00000000..c4cba344 --- /dev/null +++ b/owl-bot-staging/v1beta1/grpc-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceGrpc.java @@ -0,0 +1,3217 @@ +package com.google.cloud.datalabeling.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Service for the AI Platform Data Labeling API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DataLabelingServiceGrpc { + + private DataLabelingServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.datalabeling.v1beta1.DataLabelingService"; + + // 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.datalabeling.v1beta1.CreateDatasetRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.Dataset.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateDatasetMethod() { + io.grpc.MethodDescriptor getCreateDatasetMethod; + if ((getCreateDatasetMethod = DataLabelingServiceGrpc.getCreateDatasetMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getCreateDatasetMethod = DataLabelingServiceGrpc.getCreateDatasetMethod) == null) { + DataLabelingServiceGrpc.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.datalabeling.v1beta1.CreateDatasetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("CreateDataset")) + .build(); + } + } + } + return getCreateDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataset", + requestType = com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.Dataset.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetDatasetMethod() { + io.grpc.MethodDescriptor getGetDatasetMethod; + if ((getGetDatasetMethod = DataLabelingServiceGrpc.getGetDatasetMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getGetDatasetMethod = DataLabelingServiceGrpc.getGetDatasetMethod) == null) { + DataLabelingServiceGrpc.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.datalabeling.v1beta1.GetDatasetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("GetDataset")) + .build(); + } + } + } + return getGetDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor getListDatasetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDatasets", + requestType = com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListDatasetsMethod() { + io.grpc.MethodDescriptor getListDatasetsMethod; + if ((getListDatasetsMethod = DataLabelingServiceGrpc.getListDatasetsMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getListDatasetsMethod = DataLabelingServiceGrpc.getListDatasetsMethod) == null) { + DataLabelingServiceGrpc.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.datalabeling.v1beta1.ListDatasetsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("ListDatasets")) + .build(); + } + } + } + return getListDatasetsMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDataset", + requestType = com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteDatasetMethod() { + io.grpc.MethodDescriptor getDeleteDatasetMethod; + if ((getDeleteDatasetMethod = DataLabelingServiceGrpc.getDeleteDatasetMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getDeleteDatasetMethod = DataLabelingServiceGrpc.getDeleteDatasetMethod) == null) { + DataLabelingServiceGrpc.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.datalabeling.v1beta1.DeleteDatasetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("DeleteDataset")) + .build(); + } + } + } + return getDeleteDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor getImportDataMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportData", + requestType = com.google.cloud.datalabeling.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 = DataLabelingServiceGrpc.getImportDataMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getImportDataMethod = DataLabelingServiceGrpc.getImportDataMethod) == null) { + DataLabelingServiceGrpc.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.datalabeling.v1beta1.ImportDataRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("ImportData")) + .build(); + } + } + } + return getImportDataMethod; + } + + private static volatile io.grpc.MethodDescriptor getExportDataMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportData", + requestType = com.google.cloud.datalabeling.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 = DataLabelingServiceGrpc.getExportDataMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getExportDataMethod = DataLabelingServiceGrpc.getExportDataMethod) == null) { + DataLabelingServiceGrpc.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.datalabeling.v1beta1.ExportDataRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("ExportData")) + .build(); + } + } + } + return getExportDataMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetDataItemMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataItem", + requestType = com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.DataItem.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetDataItemMethod() { + io.grpc.MethodDescriptor getGetDataItemMethod; + if ((getGetDataItemMethod = DataLabelingServiceGrpc.getGetDataItemMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getGetDataItemMethod = DataLabelingServiceGrpc.getGetDataItemMethod) == null) { + DataLabelingServiceGrpc.getGetDataItemMethod = getGetDataItemMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataItem")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.DataItem.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("GetDataItem")) + .build(); + } + } + } + return getGetDataItemMethod; + } + + private static volatile io.grpc.MethodDescriptor getListDataItemsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDataItems", + requestType = com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListDataItemsMethod() { + io.grpc.MethodDescriptor getListDataItemsMethod; + if ((getListDataItemsMethod = DataLabelingServiceGrpc.getListDataItemsMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getListDataItemsMethod = DataLabelingServiceGrpc.getListDataItemsMethod) == null) { + DataLabelingServiceGrpc.getListDataItemsMethod = getListDataItemsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDataItems")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("ListDataItems")) + .build(); + } + } + } + return getListDataItemsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetAnnotatedDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAnnotatedDataset", + requestType = com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetAnnotatedDatasetMethod() { + io.grpc.MethodDescriptor getGetAnnotatedDatasetMethod; + if ((getGetAnnotatedDatasetMethod = DataLabelingServiceGrpc.getGetAnnotatedDatasetMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getGetAnnotatedDatasetMethod = DataLabelingServiceGrpc.getGetAnnotatedDatasetMethod) == null) { + DataLabelingServiceGrpc.getGetAnnotatedDatasetMethod = getGetAnnotatedDatasetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAnnotatedDataset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("GetAnnotatedDataset")) + .build(); + } + } + } + return getGetAnnotatedDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor getListAnnotatedDatasetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAnnotatedDatasets", + requestType = com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListAnnotatedDatasetsMethod() { + io.grpc.MethodDescriptor getListAnnotatedDatasetsMethod; + if ((getListAnnotatedDatasetsMethod = DataLabelingServiceGrpc.getListAnnotatedDatasetsMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getListAnnotatedDatasetsMethod = DataLabelingServiceGrpc.getListAnnotatedDatasetsMethod) == null) { + DataLabelingServiceGrpc.getListAnnotatedDatasetsMethod = getListAnnotatedDatasetsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAnnotatedDatasets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("ListAnnotatedDatasets")) + .build(); + } + } + } + return getListAnnotatedDatasetsMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteAnnotatedDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAnnotatedDataset", + requestType = com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteAnnotatedDatasetMethod() { + io.grpc.MethodDescriptor getDeleteAnnotatedDatasetMethod; + if ((getDeleteAnnotatedDatasetMethod = DataLabelingServiceGrpc.getDeleteAnnotatedDatasetMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getDeleteAnnotatedDatasetMethod = DataLabelingServiceGrpc.getDeleteAnnotatedDatasetMethod) == null) { + DataLabelingServiceGrpc.getDeleteAnnotatedDatasetMethod = getDeleteAnnotatedDatasetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAnnotatedDataset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("DeleteAnnotatedDataset")) + .build(); + } + } + } + return getDeleteAnnotatedDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor getLabelImageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LabelImage", + requestType = com.google.cloud.datalabeling.v1beta1.LabelImageRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getLabelImageMethod() { + io.grpc.MethodDescriptor getLabelImageMethod; + if ((getLabelImageMethod = DataLabelingServiceGrpc.getLabelImageMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getLabelImageMethod = DataLabelingServiceGrpc.getLabelImageMethod) == null) { + DataLabelingServiceGrpc.getLabelImageMethod = getLabelImageMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LabelImage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.LabelImageRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("LabelImage")) + .build(); + } + } + } + return getLabelImageMethod; + } + + private static volatile io.grpc.MethodDescriptor getLabelVideoMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LabelVideo", + requestType = com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getLabelVideoMethod() { + io.grpc.MethodDescriptor getLabelVideoMethod; + if ((getLabelVideoMethod = DataLabelingServiceGrpc.getLabelVideoMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getLabelVideoMethod = DataLabelingServiceGrpc.getLabelVideoMethod) == null) { + DataLabelingServiceGrpc.getLabelVideoMethod = getLabelVideoMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LabelVideo")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("LabelVideo")) + .build(); + } + } + } + return getLabelVideoMethod; + } + + private static volatile io.grpc.MethodDescriptor getLabelTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LabelText", + requestType = com.google.cloud.datalabeling.v1beta1.LabelTextRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getLabelTextMethod() { + io.grpc.MethodDescriptor getLabelTextMethod; + if ((getLabelTextMethod = DataLabelingServiceGrpc.getLabelTextMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getLabelTextMethod = DataLabelingServiceGrpc.getLabelTextMethod) == null) { + DataLabelingServiceGrpc.getLabelTextMethod = getLabelTextMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LabelText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.LabelTextRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("LabelText")) + .build(); + } + } + } + return getLabelTextMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetExampleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetExample", + requestType = com.google.cloud.datalabeling.v1beta1.GetExampleRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.Example.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetExampleMethod() { + io.grpc.MethodDescriptor getGetExampleMethod; + if ((getGetExampleMethod = DataLabelingServiceGrpc.getGetExampleMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getGetExampleMethod = DataLabelingServiceGrpc.getGetExampleMethod) == null) { + DataLabelingServiceGrpc.getGetExampleMethod = getGetExampleMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExample")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.GetExampleRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("GetExample")) + .build(); + } + } + } + return getGetExampleMethod; + } + + private static volatile io.grpc.MethodDescriptor getListExamplesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListExamples", + requestType = com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListExamplesMethod() { + io.grpc.MethodDescriptor getListExamplesMethod; + if ((getListExamplesMethod = DataLabelingServiceGrpc.getListExamplesMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getListExamplesMethod = DataLabelingServiceGrpc.getListExamplesMethod) == null) { + DataLabelingServiceGrpc.getListExamplesMethod = getListExamplesMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExamples")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("ListExamples")) + .build(); + } + } + } + return getListExamplesMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateAnnotationSpecSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAnnotationSpecSet", + requestType = com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateAnnotationSpecSetMethod() { + io.grpc.MethodDescriptor getCreateAnnotationSpecSetMethod; + if ((getCreateAnnotationSpecSetMethod = DataLabelingServiceGrpc.getCreateAnnotationSpecSetMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getCreateAnnotationSpecSetMethod = DataLabelingServiceGrpc.getCreateAnnotationSpecSetMethod) == null) { + DataLabelingServiceGrpc.getCreateAnnotationSpecSetMethod = getCreateAnnotationSpecSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAnnotationSpecSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("CreateAnnotationSpecSet")) + .build(); + } + } + } + return getCreateAnnotationSpecSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetAnnotationSpecSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAnnotationSpecSet", + requestType = com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetAnnotationSpecSetMethod() { + io.grpc.MethodDescriptor getGetAnnotationSpecSetMethod; + if ((getGetAnnotationSpecSetMethod = DataLabelingServiceGrpc.getGetAnnotationSpecSetMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getGetAnnotationSpecSetMethod = DataLabelingServiceGrpc.getGetAnnotationSpecSetMethod) == null) { + DataLabelingServiceGrpc.getGetAnnotationSpecSetMethod = getGetAnnotationSpecSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAnnotationSpecSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("GetAnnotationSpecSet")) + .build(); + } + } + } + return getGetAnnotationSpecSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getListAnnotationSpecSetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAnnotationSpecSets", + requestType = com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListAnnotationSpecSetsMethod() { + io.grpc.MethodDescriptor getListAnnotationSpecSetsMethod; + if ((getListAnnotationSpecSetsMethod = DataLabelingServiceGrpc.getListAnnotationSpecSetsMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getListAnnotationSpecSetsMethod = DataLabelingServiceGrpc.getListAnnotationSpecSetsMethod) == null) { + DataLabelingServiceGrpc.getListAnnotationSpecSetsMethod = getListAnnotationSpecSetsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAnnotationSpecSets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("ListAnnotationSpecSets")) + .build(); + } + } + } + return getListAnnotationSpecSetsMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteAnnotationSpecSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAnnotationSpecSet", + requestType = com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteAnnotationSpecSetMethod() { + io.grpc.MethodDescriptor getDeleteAnnotationSpecSetMethod; + if ((getDeleteAnnotationSpecSetMethod = DataLabelingServiceGrpc.getDeleteAnnotationSpecSetMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getDeleteAnnotationSpecSetMethod = DataLabelingServiceGrpc.getDeleteAnnotationSpecSetMethod) == null) { + DataLabelingServiceGrpc.getDeleteAnnotationSpecSetMethod = getDeleteAnnotationSpecSetMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAnnotationSpecSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("DeleteAnnotationSpecSet")) + .build(); + } + } + } + return getDeleteAnnotationSpecSetMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateInstructionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateInstruction", + requestType = com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateInstructionMethod() { + io.grpc.MethodDescriptor getCreateInstructionMethod; + if ((getCreateInstructionMethod = DataLabelingServiceGrpc.getCreateInstructionMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getCreateInstructionMethod = DataLabelingServiceGrpc.getCreateInstructionMethod) == null) { + DataLabelingServiceGrpc.getCreateInstructionMethod = getCreateInstructionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstruction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("CreateInstruction")) + .build(); + } + } + } + return getCreateInstructionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetInstructionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInstruction", + requestType = com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.Instruction.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetInstructionMethod() { + io.grpc.MethodDescriptor getGetInstructionMethod; + if ((getGetInstructionMethod = DataLabelingServiceGrpc.getGetInstructionMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getGetInstructionMethod = DataLabelingServiceGrpc.getGetInstructionMethod) == null) { + DataLabelingServiceGrpc.getGetInstructionMethod = getGetInstructionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstruction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("GetInstruction")) + .build(); + } + } + } + return getGetInstructionMethod; + } + + private static volatile io.grpc.MethodDescriptor getListInstructionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInstructions", + requestType = com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListInstructionsMethod() { + io.grpc.MethodDescriptor getListInstructionsMethod; + if ((getListInstructionsMethod = DataLabelingServiceGrpc.getListInstructionsMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getListInstructionsMethod = DataLabelingServiceGrpc.getListInstructionsMethod) == null) { + DataLabelingServiceGrpc.getListInstructionsMethod = getListInstructionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstructions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("ListInstructions")) + .build(); + } + } + } + return getListInstructionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteInstructionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteInstruction", + requestType = com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteInstructionMethod() { + io.grpc.MethodDescriptor getDeleteInstructionMethod; + if ((getDeleteInstructionMethod = DataLabelingServiceGrpc.getDeleteInstructionMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getDeleteInstructionMethod = DataLabelingServiceGrpc.getDeleteInstructionMethod) == null) { + DataLabelingServiceGrpc.getDeleteInstructionMethod = getDeleteInstructionMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstruction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("DeleteInstruction")) + .build(); + } + } + } + return getDeleteInstructionMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetEvaluationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEvaluation", + requestType = com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.Evaluation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetEvaluationMethod() { + io.grpc.MethodDescriptor getGetEvaluationMethod; + if ((getGetEvaluationMethod = DataLabelingServiceGrpc.getGetEvaluationMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getGetEvaluationMethod = DataLabelingServiceGrpc.getGetEvaluationMethod) == null) { + DataLabelingServiceGrpc.getGetEvaluationMethod = getGetEvaluationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEvaluation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.Evaluation.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("GetEvaluation")) + .build(); + } + } + } + return getGetEvaluationMethod; + } + + private static volatile io.grpc.MethodDescriptor getSearchEvaluationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchEvaluations", + requestType = com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSearchEvaluationsMethod() { + io.grpc.MethodDescriptor getSearchEvaluationsMethod; + if ((getSearchEvaluationsMethod = DataLabelingServiceGrpc.getSearchEvaluationsMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getSearchEvaluationsMethod = DataLabelingServiceGrpc.getSearchEvaluationsMethod) == null) { + DataLabelingServiceGrpc.getSearchEvaluationsMethod = getSearchEvaluationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchEvaluations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("SearchEvaluations")) + .build(); + } + } + } + return getSearchEvaluationsMethod; + } + + private static volatile io.grpc.MethodDescriptor getSearchExampleComparisonsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchExampleComparisons", + requestType = com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSearchExampleComparisonsMethod() { + io.grpc.MethodDescriptor getSearchExampleComparisonsMethod; + if ((getSearchExampleComparisonsMethod = DataLabelingServiceGrpc.getSearchExampleComparisonsMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getSearchExampleComparisonsMethod = DataLabelingServiceGrpc.getSearchExampleComparisonsMethod) == null) { + DataLabelingServiceGrpc.getSearchExampleComparisonsMethod = getSearchExampleComparisonsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchExampleComparisons")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("SearchExampleComparisons")) + .build(); + } + } + } + return getSearchExampleComparisonsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateEvaluationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateEvaluationJob", + requestType = com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.EvaluationJob.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateEvaluationJobMethod() { + io.grpc.MethodDescriptor getCreateEvaluationJobMethod; + if ((getCreateEvaluationJobMethod = DataLabelingServiceGrpc.getCreateEvaluationJobMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getCreateEvaluationJobMethod = DataLabelingServiceGrpc.getCreateEvaluationJobMethod) == null) { + DataLabelingServiceGrpc.getCreateEvaluationJobMethod = getCreateEvaluationJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEvaluationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("CreateEvaluationJob")) + .build(); + } + } + } + return getCreateEvaluationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateEvaluationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateEvaluationJob", + requestType = com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.EvaluationJob.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateEvaluationJobMethod() { + io.grpc.MethodDescriptor getUpdateEvaluationJobMethod; + if ((getUpdateEvaluationJobMethod = DataLabelingServiceGrpc.getUpdateEvaluationJobMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getUpdateEvaluationJobMethod = DataLabelingServiceGrpc.getUpdateEvaluationJobMethod) == null) { + DataLabelingServiceGrpc.getUpdateEvaluationJobMethod = getUpdateEvaluationJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateEvaluationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("UpdateEvaluationJob")) + .build(); + } + } + } + return getUpdateEvaluationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetEvaluationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEvaluationJob", + requestType = com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.EvaluationJob.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetEvaluationJobMethod() { + io.grpc.MethodDescriptor getGetEvaluationJobMethod; + if ((getGetEvaluationJobMethod = DataLabelingServiceGrpc.getGetEvaluationJobMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getGetEvaluationJobMethod = DataLabelingServiceGrpc.getGetEvaluationJobMethod) == null) { + DataLabelingServiceGrpc.getGetEvaluationJobMethod = getGetEvaluationJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEvaluationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("GetEvaluationJob")) + .build(); + } + } + } + return getGetEvaluationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getPauseEvaluationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PauseEvaluationJob", + requestType = com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getPauseEvaluationJobMethod() { + io.grpc.MethodDescriptor getPauseEvaluationJobMethod; + if ((getPauseEvaluationJobMethod = DataLabelingServiceGrpc.getPauseEvaluationJobMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getPauseEvaluationJobMethod = DataLabelingServiceGrpc.getPauseEvaluationJobMethod) == null) { + DataLabelingServiceGrpc.getPauseEvaluationJobMethod = getPauseEvaluationJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PauseEvaluationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("PauseEvaluationJob")) + .build(); + } + } + } + return getPauseEvaluationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getResumeEvaluationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResumeEvaluationJob", + requestType = com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getResumeEvaluationJobMethod() { + io.grpc.MethodDescriptor getResumeEvaluationJobMethod; + if ((getResumeEvaluationJobMethod = DataLabelingServiceGrpc.getResumeEvaluationJobMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getResumeEvaluationJobMethod = DataLabelingServiceGrpc.getResumeEvaluationJobMethod) == null) { + DataLabelingServiceGrpc.getResumeEvaluationJobMethod = getResumeEvaluationJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResumeEvaluationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("ResumeEvaluationJob")) + .build(); + } + } + } + return getResumeEvaluationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteEvaluationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteEvaluationJob", + requestType = com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteEvaluationJobMethod() { + io.grpc.MethodDescriptor getDeleteEvaluationJobMethod; + if ((getDeleteEvaluationJobMethod = DataLabelingServiceGrpc.getDeleteEvaluationJobMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getDeleteEvaluationJobMethod = DataLabelingServiceGrpc.getDeleteEvaluationJobMethod) == null) { + DataLabelingServiceGrpc.getDeleteEvaluationJobMethod = getDeleteEvaluationJobMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEvaluationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("DeleteEvaluationJob")) + .build(); + } + } + } + return getDeleteEvaluationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor getListEvaluationJobsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEvaluationJobs", + requestType = com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListEvaluationJobsMethod() { + io.grpc.MethodDescriptor getListEvaluationJobsMethod; + if ((getListEvaluationJobsMethod = DataLabelingServiceGrpc.getListEvaluationJobsMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getListEvaluationJobsMethod = DataLabelingServiceGrpc.getListEvaluationJobsMethod) == null) { + DataLabelingServiceGrpc.getListEvaluationJobsMethod = getListEvaluationJobsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEvaluationJobs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.getDefaultInstance())) + .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("ListEvaluationJobs")) + .build(); + } + } + } + return getListEvaluationJobsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static DataLabelingServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataLabelingServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataLabelingServiceStub(channel, callOptions); + } + }; + return DataLabelingServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DataLabelingServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataLabelingServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataLabelingServiceBlockingStub(channel, callOptions); + } + }; + return DataLabelingServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static DataLabelingServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataLabelingServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataLabelingServiceFutureStub(channel, callOptions); + } + }; + return DataLabelingServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service for the AI Platform Data Labeling API.
+   * 
+ */ + public static abstract class DataLabelingServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Creates dataset. If success return a Dataset resource.
+     * 
+ */ + public void createDataset(com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDatasetMethod(), responseObserver); + } + + /** + *
+     * Gets dataset by resource name.
+     * 
+ */ + public void getDataset(com.google.cloud.datalabeling.v1beta1.GetDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDatasetMethod(), responseObserver); + } + + /** + *
+     * Lists datasets under a project. Pagination is supported.
+     * 
+ */ + public void listDatasets(com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDatasetsMethod(), responseObserver); + } + + /** + *
+     * Deletes a dataset by resource name.
+     * 
+ */ + public void deleteDataset(com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDatasetMethod(), responseObserver); + } + + /** + *
+     * Imports data into dataset based on source locations defined in request.
+     * It can be called multiple times for the same dataset. Each dataset can
+     * only have one long running operation running on it. For example, no
+     * labeling task (also long running operation) can be started while
+     * importing is still ongoing. Vice versa.
+     * 
+ */ + public void importData(com.google.cloud.datalabeling.v1beta1.ImportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportDataMethod(), responseObserver); + } + + /** + *
+     * Exports data and annotations from dataset.
+     * 
+ */ + public void exportData(com.google.cloud.datalabeling.v1beta1.ExportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); + } + + /** + *
+     * Gets a data item in a dataset by resource name. This API can be
+     * called after data are imported into dataset.
+     * 
+ */ + public void getDataItem(com.google.cloud.datalabeling.v1beta1.GetDataItemRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDataItemMethod(), responseObserver); + } + + /** + *
+     * Lists data items in a dataset. This API can be called after data
+     * are imported into dataset. Pagination is supported.
+     * 
+ */ + public void listDataItems(com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDataItemsMethod(), responseObserver); + } + + /** + *
+     * Gets an annotated dataset by resource name.
+     * 
+ */ + public void getAnnotatedDataset(com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAnnotatedDatasetMethod(), responseObserver); + } + + /** + *
+     * Lists annotated datasets for a dataset. Pagination is supported.
+     * 
+ */ + public void listAnnotatedDatasets(com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAnnotatedDatasetsMethod(), responseObserver); + } + + /** + *
+     * Deletes an annotated dataset by resource name.
+     * 
+ */ + public void deleteAnnotatedDataset(com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAnnotatedDatasetMethod(), responseObserver); + } + + /** + *
+     * Starts a labeling task for image. The type of image labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public void labelImage(com.google.cloud.datalabeling.v1beta1.LabelImageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLabelImageMethod(), responseObserver); + } + + /** + *
+     * Starts a labeling task for video. The type of video labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public void labelVideo(com.google.cloud.datalabeling.v1beta1.LabelVideoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLabelVideoMethod(), responseObserver); + } + + /** + *
+     * Starts a labeling task for text. The type of text labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public void labelText(com.google.cloud.datalabeling.v1beta1.LabelTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLabelTextMethod(), responseObserver); + } + + /** + *
+     * Gets an example by resource name, including both data and annotation.
+     * 
+ */ + public void getExample(com.google.cloud.datalabeling.v1beta1.GetExampleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetExampleMethod(), responseObserver); + } + + /** + *
+     * Lists examples in an annotated dataset. Pagination is supported.
+     * 
+ */ + public void listExamples(com.google.cloud.datalabeling.v1beta1.ListExamplesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListExamplesMethod(), responseObserver); + } + + /** + *
+     * Creates an annotation spec set by providing a set of labels.
+     * 
+ */ + public void createAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAnnotationSpecSetMethod(), responseObserver); + } + + /** + *
+     * Gets an annotation spec set by resource name.
+     * 
+ */ + public void getAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAnnotationSpecSetMethod(), responseObserver); + } + + /** + *
+     * Lists annotation spec sets for a project. Pagination is supported.
+     * 
+ */ + public void listAnnotationSpecSets(com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAnnotationSpecSetsMethod(), responseObserver); + } + + /** + *
+     * Deletes an annotation spec set by resource name.
+     * 
+ */ + public void deleteAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAnnotationSpecSetMethod(), responseObserver); + } + + /** + *
+     * Creates an instruction for how data should be labeled.
+     * 
+ */ + public void createInstruction(com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateInstructionMethod(), responseObserver); + } + + /** + *
+     * Gets an instruction by resource name.
+     * 
+ */ + public void getInstruction(com.google.cloud.datalabeling.v1beta1.GetInstructionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstructionMethod(), responseObserver); + } + + /** + *
+     * Lists instructions for a project. Pagination is supported.
+     * 
+ */ + public void listInstructions(com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstructionsMethod(), responseObserver); + } + + /** + *
+     * Deletes an instruction object by resource name.
+     * 
+ */ + public void deleteInstruction(com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteInstructionMethod(), responseObserver); + } + + /** + *
+     * Gets an evaluation by resource name (to search, use
+     * [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
+     * 
+ */ + public void getEvaluation(com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEvaluationMethod(), responseObserver); + } + + /** + *
+     * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
+     * 
+ */ + public void searchEvaluations(com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchEvaluationsMethod(), responseObserver); + } + + /** + *
+     * Searches example comparisons from an evaluation. The return format is a
+     * list of example comparisons that show ground truth and prediction(s) for
+     * a single input. Search by providing an evaluation ID.
+     * 
+ */ + public void searchExampleComparisons(com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchExampleComparisonsMethod(), responseObserver); + } + + /** + *
+     * Creates an evaluation job.
+     * 
+ */ + public void createEvaluationJob(com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateEvaluationJobMethod(), responseObserver); + } + + /** + *
+     * Updates an evaluation job. You can only update certain fields of the job's
+     * [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: `humanAnnotationConfig.instruction`,
+     * `exampleCount`, and `exampleSamplePercentage`.
+     * If you want to change any other aspect of the evaluation job, you must
+     * delete the job and create a new one.
+     * 
+ */ + public void updateEvaluationJob(com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateEvaluationJobMethod(), responseObserver); + } + + /** + *
+     * Gets an evaluation job by resource name.
+     * 
+ */ + public void getEvaluationJob(com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEvaluationJobMethod(), responseObserver); + } + + /** + *
+     * Pauses an evaluation job. Pausing an evaluation job that is already in a
+     * `PAUSED` state is a no-op.
+     * 
+ */ + public void pauseEvaluationJob(com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPauseEvaluationJobMethod(), responseObserver); + } + + /** + *
+     * Resumes a paused evaluation job. A deleted evaluation job can't be resumed.
+     * Resuming a running or scheduled evaluation job is a no-op.
+     * 
+ */ + public void resumeEvaluationJob(com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResumeEvaluationJobMethod(), responseObserver); + } + + /** + *
+     * Stops and deletes an evaluation job.
+     * 
+ */ + public void deleteEvaluationJob(com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteEvaluationJobMethod(), responseObserver); + } + + /** + *
+     * Lists all evaluation jobs within a project with possible filters.
+     * Pagination is supported.
+     * 
+ */ + public void listEvaluationJobs(com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEvaluationJobsMethod(), 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.datalabeling.v1beta1.CreateDatasetRequest, + com.google.cloud.datalabeling.v1beta1.Dataset>( + this, METHODID_CREATE_DATASET))) + .addMethod( + getGetDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.GetDatasetRequest, + com.google.cloud.datalabeling.v1beta1.Dataset>( + this, METHODID_GET_DATASET))) + .addMethod( + getListDatasetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest, + com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse>( + this, METHODID_LIST_DATASETS))) + .addMethod( + getDeleteDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_DATASET))) + .addMethod( + getImportDataMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.ImportDataRequest, + com.google.longrunning.Operation>( + this, METHODID_IMPORT_DATA))) + .addMethod( + getExportDataMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.ExportDataRequest, + com.google.longrunning.Operation>( + this, METHODID_EXPORT_DATA))) + .addMethod( + getGetDataItemMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.GetDataItemRequest, + com.google.cloud.datalabeling.v1beta1.DataItem>( + this, METHODID_GET_DATA_ITEM))) + .addMethod( + getListDataItemsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest, + com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse>( + this, METHODID_LIST_DATA_ITEMS))) + .addMethod( + getGetAnnotatedDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest, + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset>( + this, METHODID_GET_ANNOTATED_DATASET))) + .addMethod( + getListAnnotatedDatasetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest, + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse>( + this, METHODID_LIST_ANNOTATED_DATASETS))) + .addMethod( + getDeleteAnnotatedDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_ANNOTATED_DATASET))) + .addMethod( + getLabelImageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.LabelImageRequest, + com.google.longrunning.Operation>( + this, METHODID_LABEL_IMAGE))) + .addMethod( + getLabelVideoMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest, + com.google.longrunning.Operation>( + this, METHODID_LABEL_VIDEO))) + .addMethod( + getLabelTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.LabelTextRequest, + com.google.longrunning.Operation>( + this, METHODID_LABEL_TEXT))) + .addMethod( + getGetExampleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.GetExampleRequest, + com.google.cloud.datalabeling.v1beta1.Example>( + this, METHODID_GET_EXAMPLE))) + .addMethod( + getListExamplesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.ListExamplesRequest, + com.google.cloud.datalabeling.v1beta1.ListExamplesResponse>( + this, METHODID_LIST_EXAMPLES))) + .addMethod( + getCreateAnnotationSpecSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet>( + this, METHODID_CREATE_ANNOTATION_SPEC_SET))) + .addMethod( + getGetAnnotationSpecSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet>( + this, METHODID_GET_ANNOTATION_SPEC_SET))) + .addMethod( + getListAnnotationSpecSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest, + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse>( + this, METHODID_LIST_ANNOTATION_SPEC_SETS))) + .addMethod( + getDeleteAnnotationSpecSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_ANNOTATION_SPEC_SET))) + .addMethod( + getCreateInstructionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest, + com.google.longrunning.Operation>( + this, METHODID_CREATE_INSTRUCTION))) + .addMethod( + getGetInstructionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.GetInstructionRequest, + com.google.cloud.datalabeling.v1beta1.Instruction>( + this, METHODID_GET_INSTRUCTION))) + .addMethod( + getListInstructionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest, + com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse>( + this, METHODID_LIST_INSTRUCTIONS))) + .addMethod( + getDeleteInstructionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_INSTRUCTION))) + .addMethod( + getGetEvaluationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest, + com.google.cloud.datalabeling.v1beta1.Evaluation>( + this, METHODID_GET_EVALUATION))) + .addMethod( + getSearchEvaluationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest, + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse>( + this, METHODID_SEARCH_EVALUATIONS))) + .addMethod( + getSearchExampleComparisonsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest, + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse>( + this, METHODID_SEARCH_EXAMPLE_COMPARISONS))) + .addMethod( + getCreateEvaluationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest, + com.google.cloud.datalabeling.v1beta1.EvaluationJob>( + this, METHODID_CREATE_EVALUATION_JOB))) + .addMethod( + getUpdateEvaluationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest, + com.google.cloud.datalabeling.v1beta1.EvaluationJob>( + this, METHODID_UPDATE_EVALUATION_JOB))) + .addMethod( + getGetEvaluationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest, + com.google.cloud.datalabeling.v1beta1.EvaluationJob>( + this, METHODID_GET_EVALUATION_JOB))) + .addMethod( + getPauseEvaluationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest, + com.google.protobuf.Empty>( + this, METHODID_PAUSE_EVALUATION_JOB))) + .addMethod( + getResumeEvaluationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest, + com.google.protobuf.Empty>( + this, METHODID_RESUME_EVALUATION_JOB))) + .addMethod( + getDeleteEvaluationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_EVALUATION_JOB))) + .addMethod( + getListEvaluationJobsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest, + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse>( + this, METHODID_LIST_EVALUATION_JOBS))) + .build(); + } + } + + /** + *
+   * Service for the AI Platform Data Labeling API.
+   * 
+ */ + public static final class DataLabelingServiceStub extends io.grpc.stub.AbstractAsyncStub { + private DataLabelingServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataLabelingServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataLabelingServiceStub(channel, callOptions); + } + + /** + *
+     * Creates dataset. If success return a Dataset resource.
+     * 
+ */ + public void createDataset(com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets dataset by resource name.
+     * 
+ */ + public void getDataset(com.google.cloud.datalabeling.v1beta1.GetDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists datasets under a project. Pagination is supported.
+     * 
+ */ + public void listDatasets(com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a dataset by resource name.
+     * 
+ */ + public void deleteDataset(com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Imports data into dataset based on source locations defined in request.
+     * It can be called multiple times for the same dataset. Each dataset can
+     * only have one long running operation running on it. For example, no
+     * labeling task (also long running operation) can be started while
+     * importing is still ongoing. Vice versa.
+     * 
+ */ + public void importData(com.google.cloud.datalabeling.v1beta1.ImportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportDataMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Exports data and annotations from dataset.
+     * 
+ */ + public void exportData(com.google.cloud.datalabeling.v1beta1.ExportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportDataMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a data item in a dataset by resource name. This API can be
+     * called after data are imported into dataset.
+     * 
+ */ + public void getDataItem(com.google.cloud.datalabeling.v1beta1.GetDataItemRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataItemMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists data items in a dataset. This API can be called after data
+     * are imported into dataset. Pagination is supported.
+     * 
+ */ + public void listDataItems(com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDataItemsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets an annotated dataset by resource name.
+     * 
+ */ + public void getAnnotatedDataset(com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAnnotatedDatasetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists annotated datasets for a dataset. Pagination is supported.
+     * 
+ */ + public void listAnnotatedDatasets(com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAnnotatedDatasetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an annotated dataset by resource name.
+     * 
+ */ + public void deleteAnnotatedDataset(com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAnnotatedDatasetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Starts a labeling task for image. The type of image labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public void labelImage(com.google.cloud.datalabeling.v1beta1.LabelImageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLabelImageMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Starts a labeling task for video. The type of video labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public void labelVideo(com.google.cloud.datalabeling.v1beta1.LabelVideoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLabelVideoMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Starts a labeling task for text. The type of text labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public void labelText(com.google.cloud.datalabeling.v1beta1.LabelTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLabelTextMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets an example by resource name, including both data and annotation.
+     * 
+ */ + public void getExample(com.google.cloud.datalabeling.v1beta1.GetExampleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetExampleMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists examples in an annotated dataset. Pagination is supported.
+     * 
+ */ + public void listExamples(com.google.cloud.datalabeling.v1beta1.ListExamplesRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListExamplesMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates an annotation spec set by providing a set of labels.
+     * 
+ */ + public void createAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAnnotationSpecSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets an annotation spec set by resource name.
+     * 
+ */ + public void getAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAnnotationSpecSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists annotation spec sets for a project. Pagination is supported.
+     * 
+ */ + public void listAnnotationSpecSets(com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAnnotationSpecSetsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an annotation spec set by resource name.
+     * 
+ */ + public void deleteAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAnnotationSpecSetMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates an instruction for how data should be labeled.
+     * 
+ */ + public void createInstruction(com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateInstructionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets an instruction by resource name.
+     * 
+ */ + public void getInstruction(com.google.cloud.datalabeling.v1beta1.GetInstructionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInstructionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists instructions for a project. Pagination is supported.
+     * 
+ */ + public void listInstructions(com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListInstructionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes an instruction object by resource name.
+     * 
+ */ + public void deleteInstruction(com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteInstructionMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets an evaluation by resource name (to search, use
+     * [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
+     * 
+ */ + public void getEvaluation(com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEvaluationMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
+     * 
+ */ + public void searchEvaluations(com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchEvaluationsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Searches example comparisons from an evaluation. The return format is a
+     * list of example comparisons that show ground truth and prediction(s) for
+     * a single input. Search by providing an evaluation ID.
+     * 
+ */ + public void searchExampleComparisons(com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchExampleComparisonsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Creates an evaluation job.
+     * 
+ */ + public void createEvaluationJob(com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateEvaluationJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates an evaluation job. You can only update certain fields of the job's
+     * [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: `humanAnnotationConfig.instruction`,
+     * `exampleCount`, and `exampleSamplePercentage`.
+     * If you want to change any other aspect of the evaluation job, you must
+     * delete the job and create a new one.
+     * 
+ */ + public void updateEvaluationJob(com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateEvaluationJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets an evaluation job by resource name.
+     * 
+ */ + public void getEvaluationJob(com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEvaluationJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Pauses an evaluation job. Pausing an evaluation job that is already in a
+     * `PAUSED` state is a no-op.
+     * 
+ */ + public void pauseEvaluationJob(com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPauseEvaluationJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Resumes a paused evaluation job. A deleted evaluation job can't be resumed.
+     * Resuming a running or scheduled evaluation job is a no-op.
+     * 
+ */ + public void resumeEvaluationJob(com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResumeEvaluationJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Stops and deletes an evaluation job.
+     * 
+ */ + public void deleteEvaluationJob(com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteEvaluationJobMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists all evaluation jobs within a project with possible filters.
+     * Pagination is supported.
+     * 
+ */ + public void listEvaluationJobs(com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEvaluationJobsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Service for the AI Platform Data Labeling API.
+   * 
+ */ + public static final class DataLabelingServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private DataLabelingServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataLabelingServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataLabelingServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Creates dataset. If success return a Dataset resource.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.Dataset createDataset(com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDatasetMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets dataset by resource name.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.Dataset getDataset(com.google.cloud.datalabeling.v1beta1.GetDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDatasetMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists datasets under a project. Pagination is supported.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse listDatasets(com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDatasetsMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a dataset by resource name.
+     * 
+ */ + public com.google.protobuf.Empty deleteDataset(com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); + } + + /** + *
+     * Imports data into dataset based on source locations defined in request.
+     * It can be called multiple times for the same dataset. Each dataset can
+     * only have one long running operation running on it. For example, no
+     * labeling task (also long running operation) can be started while
+     * importing is still ongoing. Vice versa.
+     * 
+ */ + public com.google.longrunning.Operation importData(com.google.cloud.datalabeling.v1beta1.ImportDataRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportDataMethod(), getCallOptions(), request); + } + + /** + *
+     * Exports data and annotations from dataset.
+     * 
+ */ + public com.google.longrunning.Operation exportData(com.google.cloud.datalabeling.v1beta1.ExportDataRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportDataMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a data item in a dataset by resource name. This API can be
+     * called after data are imported into dataset.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.DataItem getDataItem(com.google.cloud.datalabeling.v1beta1.GetDataItemRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataItemMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists data items in a dataset. This API can be called after data
+     * are imported into dataset. Pagination is supported.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse listDataItems(com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDataItemsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets an annotated dataset by resource name.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset getAnnotatedDataset(com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAnnotatedDatasetMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists annotated datasets for a dataset. Pagination is supported.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse listAnnotatedDatasets(com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAnnotatedDatasetsMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an annotated dataset by resource name.
+     * 
+ */ + public com.google.protobuf.Empty deleteAnnotatedDataset(com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAnnotatedDatasetMethod(), getCallOptions(), request); + } + + /** + *
+     * Starts a labeling task for image. The type of image labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public com.google.longrunning.Operation labelImage(com.google.cloud.datalabeling.v1beta1.LabelImageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLabelImageMethod(), getCallOptions(), request); + } + + /** + *
+     * Starts a labeling task for video. The type of video labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public com.google.longrunning.Operation labelVideo(com.google.cloud.datalabeling.v1beta1.LabelVideoRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLabelVideoMethod(), getCallOptions(), request); + } + + /** + *
+     * Starts a labeling task for text. The type of text labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public com.google.longrunning.Operation labelText(com.google.cloud.datalabeling.v1beta1.LabelTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLabelTextMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets an example by resource name, including both data and annotation.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.Example getExample(com.google.cloud.datalabeling.v1beta1.GetExampleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetExampleMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists examples in an annotated dataset. Pagination is supported.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.ListExamplesResponse listExamples(com.google.cloud.datalabeling.v1beta1.ListExamplesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListExamplesMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates an annotation spec set by providing a set of labels.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet createAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAnnotationSpecSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets an annotation spec set by resource name.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAnnotationSpecSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists annotation spec sets for a project. Pagination is supported.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse listAnnotationSpecSets(com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAnnotationSpecSetsMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an annotation spec set by resource name.
+     * 
+ */ + public com.google.protobuf.Empty deleteAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAnnotationSpecSetMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates an instruction for how data should be labeled.
+     * 
+ */ + public com.google.longrunning.Operation createInstruction(com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateInstructionMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets an instruction by resource name.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.Instruction getInstruction(com.google.cloud.datalabeling.v1beta1.GetInstructionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstructionMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists instructions for a project. Pagination is supported.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse listInstructions(com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInstructionsMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes an instruction object by resource name.
+     * 
+ */ + public com.google.protobuf.Empty deleteInstruction(com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteInstructionMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets an evaluation by resource name (to search, use
+     * [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.Evaluation getEvaluation(com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEvaluationMethod(), getCallOptions(), request); + } + + /** + *
+     * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse searchEvaluations(com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchEvaluationsMethod(), getCallOptions(), request); + } + + /** + *
+     * Searches example comparisons from an evaluation. The return format is a
+     * list of example comparisons that show ground truth and prediction(s) for
+     * a single input. Search by providing an evaluation ID.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse searchExampleComparisons(com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchExampleComparisonsMethod(), getCallOptions(), request); + } + + /** + *
+     * Creates an evaluation job.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.EvaluationJob createEvaluationJob(com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateEvaluationJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates an evaluation job. You can only update certain fields of the job's
+     * [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: `humanAnnotationConfig.instruction`,
+     * `exampleCount`, and `exampleSamplePercentage`.
+     * If you want to change any other aspect of the evaluation job, you must
+     * delete the job and create a new one.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.EvaluationJob updateEvaluationJob(com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateEvaluationJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets an evaluation job by resource name.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.EvaluationJob getEvaluationJob(com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEvaluationJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Pauses an evaluation job. Pausing an evaluation job that is already in a
+     * `PAUSED` state is a no-op.
+     * 
+ */ + public com.google.protobuf.Empty pauseEvaluationJob(com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPauseEvaluationJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Resumes a paused evaluation job. A deleted evaluation job can't be resumed.
+     * Resuming a running or scheduled evaluation job is a no-op.
+     * 
+ */ + public com.google.protobuf.Empty resumeEvaluationJob(com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResumeEvaluationJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Stops and deletes an evaluation job.
+     * 
+ */ + public com.google.protobuf.Empty deleteEvaluationJob(com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteEvaluationJobMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists all evaluation jobs within a project with possible filters.
+     * Pagination is supported.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse listEvaluationJobs(com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEvaluationJobsMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Service for the AI Platform Data Labeling API.
+   * 
+ */ + public static final class DataLabelingServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private DataLabelingServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataLabelingServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataLabelingServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Creates dataset. If success return a Dataset resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createDataset( + com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets dataset by resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getDataset( + com.google.cloud.datalabeling.v1beta1.GetDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists datasets under a project. Pagination is supported.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listDatasets( + com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a dataset by resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteDataset( + com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request); + } + + /** + *
+     * Imports data into dataset based on source locations defined in request.
+     * It can be called multiple times for the same dataset. Each dataset can
+     * only have one long running operation running on it. For example, no
+     * labeling task (also long running operation) can be started while
+     * importing is still ongoing. Vice versa.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture importData( + com.google.cloud.datalabeling.v1beta1.ImportDataRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportDataMethod(), getCallOptions()), request); + } + + /** + *
+     * Exports data and annotations from dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture exportData( + com.google.cloud.datalabeling.v1beta1.ExportDataRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportDataMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a data item in a dataset by resource name. This API can be
+     * called after data are imported into dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getDataItem( + com.google.cloud.datalabeling.v1beta1.GetDataItemRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDataItemMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists data items in a dataset. This API can be called after data
+     * are imported into dataset. Pagination is supported.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listDataItems( + com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDataItemsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets an annotated dataset by resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getAnnotatedDataset( + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAnnotatedDatasetMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists annotated datasets for a dataset. Pagination is supported.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listAnnotatedDatasets( + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAnnotatedDatasetsMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an annotated dataset by resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteAnnotatedDataset( + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAnnotatedDatasetMethod(), getCallOptions()), request); + } + + /** + *
+     * Starts a labeling task for image. The type of image labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture labelImage( + com.google.cloud.datalabeling.v1beta1.LabelImageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLabelImageMethod(), getCallOptions()), request); + } + + /** + *
+     * Starts a labeling task for video. The type of video labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture labelVideo( + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLabelVideoMethod(), getCallOptions()), request); + } + + /** + *
+     * Starts a labeling task for text. The type of text labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture labelText( + com.google.cloud.datalabeling.v1beta1.LabelTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLabelTextMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets an example by resource name, including both data and annotation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getExample( + com.google.cloud.datalabeling.v1beta1.GetExampleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetExampleMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists examples in an annotated dataset. Pagination is supported.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listExamples( + com.google.cloud.datalabeling.v1beta1.ListExamplesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListExamplesMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates an annotation spec set by providing a set of labels.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createAnnotationSpecSet( + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAnnotationSpecSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets an annotation spec set by resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getAnnotationSpecSet( + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAnnotationSpecSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists annotation spec sets for a project. Pagination is supported.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listAnnotationSpecSets( + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAnnotationSpecSetsMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an annotation spec set by resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteAnnotationSpecSet( + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAnnotationSpecSetMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates an instruction for how data should be labeled.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createInstruction( + com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateInstructionMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets an instruction by resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getInstruction( + com.google.cloud.datalabeling.v1beta1.GetInstructionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInstructionMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists instructions for a project. Pagination is supported.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listInstructions( + com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInstructionsMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes an instruction object by resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteInstruction( + com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteInstructionMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets an evaluation by resource name (to search, use
+     * [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getEvaluation( + com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEvaluationMethod(), getCallOptions()), request); + } + + /** + *
+     * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture searchEvaluations( + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchEvaluationsMethod(), getCallOptions()), request); + } + + /** + *
+     * Searches example comparisons from an evaluation. The return format is a
+     * list of example comparisons that show ground truth and prediction(s) for
+     * a single input. Search by providing an evaluation ID.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture searchExampleComparisons( + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchExampleComparisonsMethod(), getCallOptions()), request); + } + + /** + *
+     * Creates an evaluation job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createEvaluationJob( + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateEvaluationJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates an evaluation job. You can only update certain fields of the job's
+     * [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: `humanAnnotationConfig.instruction`,
+     * `exampleCount`, and `exampleSamplePercentage`.
+     * If you want to change any other aspect of the evaluation job, you must
+     * delete the job and create a new one.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateEvaluationJob( + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateEvaluationJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets an evaluation job by resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getEvaluationJob( + com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEvaluationJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Pauses an evaluation job. Pausing an evaluation job that is already in a
+     * `PAUSED` state is a no-op.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture pauseEvaluationJob( + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPauseEvaluationJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Resumes a paused evaluation job. A deleted evaluation job can't be resumed.
+     * Resuming a running or scheduled evaluation job is a no-op.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture resumeEvaluationJob( + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResumeEvaluationJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Stops and deletes an evaluation job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteEvaluationJob( + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteEvaluationJobMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists all evaluation jobs within a project with possible filters.
+     * Pagination is supported.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listEvaluationJobs( + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEvaluationJobsMethod(), 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_DELETE_DATASET = 3; + private static final int METHODID_IMPORT_DATA = 4; + private static final int METHODID_EXPORT_DATA = 5; + private static final int METHODID_GET_DATA_ITEM = 6; + private static final int METHODID_LIST_DATA_ITEMS = 7; + private static final int METHODID_GET_ANNOTATED_DATASET = 8; + private static final int METHODID_LIST_ANNOTATED_DATASETS = 9; + private static final int METHODID_DELETE_ANNOTATED_DATASET = 10; + private static final int METHODID_LABEL_IMAGE = 11; + private static final int METHODID_LABEL_VIDEO = 12; + private static final int METHODID_LABEL_TEXT = 13; + private static final int METHODID_GET_EXAMPLE = 14; + private static final int METHODID_LIST_EXAMPLES = 15; + private static final int METHODID_CREATE_ANNOTATION_SPEC_SET = 16; + private static final int METHODID_GET_ANNOTATION_SPEC_SET = 17; + private static final int METHODID_LIST_ANNOTATION_SPEC_SETS = 18; + private static final int METHODID_DELETE_ANNOTATION_SPEC_SET = 19; + private static final int METHODID_CREATE_INSTRUCTION = 20; + private static final int METHODID_GET_INSTRUCTION = 21; + private static final int METHODID_LIST_INSTRUCTIONS = 22; + private static final int METHODID_DELETE_INSTRUCTION = 23; + private static final int METHODID_GET_EVALUATION = 24; + private static final int METHODID_SEARCH_EVALUATIONS = 25; + private static final int METHODID_SEARCH_EXAMPLE_COMPARISONS = 26; + private static final int METHODID_CREATE_EVALUATION_JOB = 27; + private static final int METHODID_UPDATE_EVALUATION_JOB = 28; + private static final int METHODID_GET_EVALUATION_JOB = 29; + private static final int METHODID_PAUSE_EVALUATION_JOB = 30; + private static final int METHODID_RESUME_EVALUATION_JOB = 31; + private static final int METHODID_DELETE_EVALUATION_JOB = 32; + private static final int METHODID_LIST_EVALUATION_JOBS = 33; + + 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 DataLabelingServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DataLabelingServiceImplBase 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.datalabeling.v1beta1.CreateDatasetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_DATASET: + serviceImpl.getDataset((com.google.cloud.datalabeling.v1beta1.GetDatasetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DATASETS: + serviceImpl.listDatasets((com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DATASET: + serviceImpl.deleteDataset((com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_DATA: + serviceImpl.importData((com.google.cloud.datalabeling.v1beta1.ImportDataRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_EXPORT_DATA: + serviceImpl.exportData((com.google.cloud.datalabeling.v1beta1.ExportDataRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_DATA_ITEM: + serviceImpl.getDataItem((com.google.cloud.datalabeling.v1beta1.GetDataItemRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DATA_ITEMS: + serviceImpl.listDataItems((com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ANNOTATED_DATASET: + serviceImpl.getAnnotatedDataset((com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ANNOTATED_DATASETS: + serviceImpl.listAnnotatedDatasets((com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ANNOTATED_DATASET: + serviceImpl.deleteAnnotatedDataset((com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LABEL_IMAGE: + serviceImpl.labelImage((com.google.cloud.datalabeling.v1beta1.LabelImageRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LABEL_VIDEO: + serviceImpl.labelVideo((com.google.cloud.datalabeling.v1beta1.LabelVideoRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LABEL_TEXT: + serviceImpl.labelText((com.google.cloud.datalabeling.v1beta1.LabelTextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_EXAMPLE: + serviceImpl.getExample((com.google.cloud.datalabeling.v1beta1.GetExampleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_EXAMPLES: + serviceImpl.listExamples((com.google.cloud.datalabeling.v1beta1.ListExamplesRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_ANNOTATION_SPEC_SET: + serviceImpl.createAnnotationSpecSet((com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ANNOTATION_SPEC_SET: + serviceImpl.getAnnotationSpecSet((com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ANNOTATION_SPEC_SETS: + serviceImpl.listAnnotationSpecSets((com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ANNOTATION_SPEC_SET: + serviceImpl.deleteAnnotationSpecSet((com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_INSTRUCTION: + serviceImpl.createInstruction((com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_INSTRUCTION: + serviceImpl.getInstruction((com.google.cloud.datalabeling.v1beta1.GetInstructionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_INSTRUCTIONS: + serviceImpl.listInstructions((com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_INSTRUCTION: + serviceImpl.deleteInstruction((com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_EVALUATION: + serviceImpl.getEvaluation((com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEARCH_EVALUATIONS: + serviceImpl.searchEvaluations((com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEARCH_EXAMPLE_COMPARISONS: + serviceImpl.searchExampleComparisons((com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_EVALUATION_JOB: + serviceImpl.createEvaluationJob((com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_EVALUATION_JOB: + serviceImpl.updateEvaluationJob((com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_EVALUATION_JOB: + serviceImpl.getEvaluationJob((com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_PAUSE_EVALUATION_JOB: + serviceImpl.pauseEvaluationJob((com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESUME_EVALUATION_JOB: + serviceImpl.resumeEvaluationJob((com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_EVALUATION_JOB: + serviceImpl.deleteEvaluationJob((com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_EVALUATION_JOBS: + serviceImpl.listEvaluationJobs((com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) 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 DataLabelingServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DataLabelingServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DataLabelingService"); + } + } + + private static final class DataLabelingServiceFileDescriptorSupplier + extends DataLabelingServiceBaseDescriptorSupplier { + DataLabelingServiceFileDescriptorSupplier() {} + } + + private static final class DataLabelingServiceMethodDescriptorSupplier + extends DataLabelingServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DataLabelingServiceMethodDescriptorSupplier(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 (DataLabelingServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DataLabelingServiceFileDescriptorSupplier()) + .addMethod(getCreateDatasetMethod()) + .addMethod(getGetDatasetMethod()) + .addMethod(getListDatasetsMethod()) + .addMethod(getDeleteDatasetMethod()) + .addMethod(getImportDataMethod()) + .addMethod(getExportDataMethod()) + .addMethod(getGetDataItemMethod()) + .addMethod(getListDataItemsMethod()) + .addMethod(getGetAnnotatedDatasetMethod()) + .addMethod(getListAnnotatedDatasetsMethod()) + .addMethod(getDeleteAnnotatedDatasetMethod()) + .addMethod(getLabelImageMethod()) + .addMethod(getLabelVideoMethod()) + .addMethod(getLabelTextMethod()) + .addMethod(getGetExampleMethod()) + .addMethod(getListExamplesMethod()) + .addMethod(getCreateAnnotationSpecSetMethod()) + .addMethod(getGetAnnotationSpecSetMethod()) + .addMethod(getListAnnotationSpecSetsMethod()) + .addMethod(getDeleteAnnotationSpecSetMethod()) + .addMethod(getCreateInstructionMethod()) + .addMethod(getGetInstructionMethod()) + .addMethod(getListInstructionsMethod()) + .addMethod(getDeleteInstructionMethod()) + .addMethod(getGetEvaluationMethod()) + .addMethod(getSearchEvaluationsMethod()) + .addMethod(getSearchExampleComparisonsMethod()) + .addMethod(getCreateEvaluationJobMethod()) + .addMethod(getUpdateEvaluationJobMethod()) + .addMethod(getGetEvaluationJobMethod()) + .addMethod(getPauseEvaluationJobMethod()) + .addMethod(getResumeEvaluationJobMethod()) + .addMethod(getDeleteEvaluationJobMethod()) + .addMethod(getListEvaluationJobsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDataset.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDataset.java similarity index 74% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDataset.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDataset.java index 0a030c64..461bae36 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDataset.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDataset.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * AnnotatedDataset is a set holding annotations for data in a Dataset. Each
  * labeling task will generate an AnnotatedDataset under the Dataset that the
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotatedDataset}
  */
-public final class AnnotatedDataset extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AnnotatedDataset extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.AnnotatedDataset)
     AnnotatedDatasetOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AnnotatedDataset.newBuilder() to construct.
   private AnnotatedDataset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AnnotatedDataset() {
     name_ = "";
     displayName_ = "";
@@ -50,15 +32,16 @@ private AnnotatedDataset() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AnnotatedDataset();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AnnotatedDataset(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -78,117 +61,101 @@ private AnnotatedDataset(
           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 24:
-            {
-              int rawValue = input.readEnum();
+            displayName_ = s;
+            break;
+          }
+          case 24: {
+            int rawValue = input.readEnum();
 
-              annotationSource_ = rawValue;
-              break;
-            }
-          case 32:
-            {
-              exampleCount_ = input.readInt64();
-              break;
+            annotationSource_ = rawValue;
+            break;
+          }
+          case 32: {
+
+            exampleCount_ = input.readInt64();
+            break;
+          }
+          case 40: {
+
+            completedExampleCount_ = input.readInt64();
+            break;
+          }
+          case 50: {
+            com.google.cloud.datalabeling.v1beta1.LabelStats.Builder subBuilder = null;
+            if (labelStats_ != null) {
+              subBuilder = labelStats_.toBuilder();
             }
-          case 40:
-            {
-              completedExampleCount_ = input.readInt64();
-              break;
+            labelStats_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelStats.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(labelStats_);
+              labelStats_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              com.google.cloud.datalabeling.v1beta1.LabelStats.Builder subBuilder = null;
-              if (labelStats_ != null) {
-                subBuilder = labelStats_.toBuilder();
-              }
-              labelStats_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.LabelStats.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(labelStats_);
-                labelStats_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            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();
 
-              annotationType_ = rawValue;
-              break;
-            }
-          case 74:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            break;
+          }
+          case 64: {
+            int rawValue = input.readEnum();
 
-              description_ = s;
-              break;
+            annotationType_ = rawValue;
+            break;
+          }
+          case 74: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            description_ = s;
+            break;
+          }
+          case 82: {
+            com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder subBuilder = null;
+            if (metadata_ != null) {
+              subBuilder = metadata_.toBuilder();
             }
-          case 82:
-            {
-              com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder subBuilder =
-                  null;
-              if (metadata_ != null) {
-                subBuilder = metadata_.toBuilder();
-              }
-              metadata_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(metadata_);
-                metadata_ = subBuilder.buildPartial();
-              }
-
-              break;
+            metadata_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(metadata_);
+              metadata_ = subBuilder.buildPartial();
             }
-          case 90:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                blockingResources_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              blockingResources_.add(s);
-              break;
+
+            break;
+          }
+          case 90: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              blockingResources_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            blockingResources_.add(s);
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -196,7 +163,8 @@ private AnnotatedDataset(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } 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)) {
         blockingResources_ = blockingResources_.getUnmodifiableView();
@@ -205,27 +173,22 @@ private AnnotatedDataset(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.class,
-            com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.class, com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Output only. AnnotatedDataset resource name in format of:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -233,7 +196,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -242,15 +204,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. AnnotatedDataset resource name in format of:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -258,15 +219,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 { @@ -277,8 +239,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Output only. The display name of the AnnotatedDataset. It is specified in
    * HumanAnnotationConfig when user starts a labeling task. Maximum of 64
@@ -286,7 +246,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -295,15 +254,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 display name of the AnnotatedDataset. It is specified in
    * HumanAnnotationConfig when user starts a labeling task. Maximum of 64
@@ -311,15 +269,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 { @@ -330,8 +289,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 9; private volatile java.lang.Object description_; /** - * - * *
    * Output only. The description of the AnnotatedDataset. It is specified in
    * HumanAnnotationConfig when user starts a labeling task. Maximum of 10000
@@ -339,7 +296,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
    * 
* * string description = 9; - * * @return The description. */ @java.lang.Override @@ -348,15 +304,14 @@ 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; } } /** - * - * *
    * Output only. The description of the AnnotatedDataset. It is specified in
    * HumanAnnotationConfig when user starts a labeling task. Maximum of 10000
@@ -364,15 +319,16 @@ public java.lang.String getDescription() {
    * 
* * string description = 9; - * * @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 { @@ -383,92 +339,67 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int ANNOTATION_SOURCE_FIELD_NUMBER = 3; private int annotationSource_; /** - * - * *
    * Output only. Source of the annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3; - * * @return The enum numeric value on the wire for annotationSource. */ - @java.lang.Override - public int getAnnotationSourceValue() { + @java.lang.Override public int getAnnotationSourceValue() { return annotationSource_; } /** - * - * *
    * Output only. Source of the annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3; - * * @return The annotationSource. */ - @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSource getAnnotationSource() { + @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSource getAnnotationSource() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationSource result = - com.google.cloud.datalabeling.v1beta1.AnnotationSource.valueOf(annotationSource_); - return result == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSource.UNRECOGNIZED - : result; + com.google.cloud.datalabeling.v1beta1.AnnotationSource result = com.google.cloud.datalabeling.v1beta1.AnnotationSource.valueOf(annotationSource_); + return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSource.UNRECOGNIZED : result; } public static final int ANNOTATION_TYPE_FIELD_NUMBER = 8; private int annotationType_; /** - * - * *
    * Output only. Type of the annotation. It is specified when starting labeling
    * task.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8; - * * @return The enum numeric value on the wire for annotationType. */ - @java.lang.Override - public int getAnnotationTypeValue() { + @java.lang.Override public int getAnnotationTypeValue() { return annotationType_; } /** - * - * *
    * Output only. Type of the annotation. It is specified when starting labeling
    * task.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8; - * * @return The annotationType. */ - @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType() { + @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationType result = - com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); - return result == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED - : result; + com.google.cloud.datalabeling.v1beta1.AnnotationType result = com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); + return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED : result; } public static final int EXAMPLE_COUNT_FIELD_NUMBER = 4; private long exampleCount_; /** - * - * *
    * Output only. Number of examples in the annotated dataset.
    * 
* * int64 example_count = 4; - * * @return The exampleCount. */ @java.lang.Override @@ -479,15 +410,12 @@ public long getExampleCount() { public static final int COMPLETED_EXAMPLE_COUNT_FIELD_NUMBER = 5; private long completedExampleCount_; /** - * - * *
    * Output only. Number of examples that have annotation in the annotated
    * dataset.
    * 
* * int64 completed_example_count = 5; - * * @return The completedExampleCount. */ @java.lang.Override @@ -498,14 +426,11 @@ public long getCompletedExampleCount() { public static final int LABEL_STATS_FIELD_NUMBER = 6; private com.google.cloud.datalabeling.v1beta1.LabelStats labelStats_; /** - * - * *
    * Output only. Per label statistics.
    * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6; - * * @return Whether the labelStats field is set. */ @java.lang.Override @@ -513,25 +438,18 @@ public boolean hasLabelStats() { return labelStats_ != null; } /** - * - * *
    * Output only. Per label statistics.
    * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6; - * * @return The labelStats. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelStats getLabelStats() { - return labelStats_ == null - ? com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() - : labelStats_; + return labelStats_ == null ? com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() : labelStats_; } /** - * - * *
    * Output only. Per label statistics.
    * 
@@ -546,14 +464,11 @@ public com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder getLabelStatsOr public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Time the AnnotatedDataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 7; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -561,14 +476,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Time the AnnotatedDataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 7; - * * @return The createTime. */ @java.lang.Override @@ -576,8 +488,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Time the AnnotatedDataset was created.
    * 
@@ -592,14 +502,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int METADATA_FIELD_NUMBER = 10; private com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata_; /** - * - * *
    * Output only. Additional information about AnnotatedDataset.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; - * * @return Whether the metadata field is set. */ @java.lang.Override @@ -607,25 +514,18 @@ public boolean hasMetadata() { return metadata_ != null; } /** - * - * *
    * Output only. Additional information about AnnotatedDataset.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; - * * @return The metadata. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata getMetadata() { - return metadata_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.getDefaultInstance() : metadata_; } /** - * - * *
    * Output only. Additional information about AnnotatedDataset.
    * 
@@ -633,53 +533,44 @@ public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata getMetadat * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder - getMetadataOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder getMetadataOrBuilder() { return getMetadata(); } public static final int BLOCKING_RESOURCES_FIELD_NUMBER = 11; private com.google.protobuf.LazyStringList blockingResources_; /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotated dataset.
    * 
* * repeated string blocking_resources = 11; - * * @return A list containing the blockingResources. */ - public com.google.protobuf.ProtocolStringList getBlockingResourcesList() { + public com.google.protobuf.ProtocolStringList + getBlockingResourcesList() { return blockingResources_; } /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotated dataset.
    * 
* * repeated string blocking_resources = 11; - * * @return The count of blockingResources. */ public int getBlockingResourcesCount() { return blockingResources_.size(); } /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotated dataset.
    * 
* * repeated string blocking_resources = 11; - * * @param index The index of the element to return. * @return The blockingResources at the given index. */ @@ -687,24 +578,21 @@ public java.lang.String getBlockingResources(int index) { return blockingResources_.get(index); } /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotated dataset.
    * 
* * repeated string blocking_resources = 11; - * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - public com.google.protobuf.ByteString getBlockingResourcesBytes(int index) { + public com.google.protobuf.ByteString + getBlockingResourcesBytes(int index) { return blockingResources_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -716,16 +604,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (annotationSource_ - != com.google.cloud.datalabeling.v1beta1.AnnotationSource.ANNOTATION_SOURCE_UNSPECIFIED - .getNumber()) { + if (annotationSource_ != com.google.cloud.datalabeling.v1beta1.AnnotationSource.ANNOTATION_SOURCE_UNSPECIFIED.getNumber()) { output.writeEnum(3, annotationSource_); } if (exampleCount_ != 0L) { @@ -740,9 +627,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createTime_ != null) { output.writeMessage(7, getCreateTime()); } - if (annotationType_ - != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED - .getNumber()) { + if (annotationType_ != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(8, annotationType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { @@ -769,33 +654,36 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (annotationSource_ - != com.google.cloud.datalabeling.v1beta1.AnnotationSource.ANNOTATION_SOURCE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, annotationSource_); + if (annotationSource_ != com.google.cloud.datalabeling.v1beta1.AnnotationSource.ANNOTATION_SOURCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, annotationSource_); } if (exampleCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, exampleCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, exampleCount_); } if (completedExampleCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, completedExampleCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, completedExampleCount_); } if (labelStats_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getLabelStats()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getLabelStats()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreateTime()); } - if (annotationType_ - != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, annotationType_); + if (annotationType_ != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(8, annotationType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, description_); } if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getMetadata()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getMetadata()); } { int dataSize = 0; @@ -813,34 +701,42 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.AnnotatedDataset)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset other = - (com.google.cloud.datalabeling.v1beta1.AnnotatedDataset) obj; + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset other = (com.google.cloud.datalabeling.v1beta1.AnnotatedDataset) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (annotationSource_ != other.annotationSource_) return false; if (annotationType_ != other.annotationType_) return false; - if (getExampleCount() != other.getExampleCount()) return false; - if (getCompletedExampleCount() != other.getCompletedExampleCount()) return false; + if (getExampleCount() + != other.getExampleCount()) return false; + if (getCompletedExampleCount() + != other.getCompletedExampleCount()) return false; if (hasLabelStats() != other.hasLabelStats()) return false; if (hasLabelStats()) { - if (!getLabelStats().equals(other.getLabelStats())) return false; + if (!getLabelStats() + .equals(other.getLabelStats())) 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 (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; + if (!getMetadata() + .equals(other.getMetadata())) return false; } - if (!getBlockingResourcesList().equals(other.getBlockingResourcesList())) return false; + if (!getBlockingResourcesList() + .equals(other.getBlockingResourcesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -863,9 +759,11 @@ public int hashCode() { hash = (37 * hash) + ANNOTATION_TYPE_FIELD_NUMBER; hash = (53 * hash) + annotationType_; hash = (37 * hash) + EXAMPLE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getExampleCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getExampleCount()); hash = (37 * hash) + COMPLETED_EXAMPLE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCompletedExampleCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCompletedExampleCount()); if (hasLabelStats()) { hash = (37 * hash) + LABEL_STATS_FIELD_NUMBER; hash = (53 * hash) + getLabelStats().hashCode(); @@ -888,104 +786,96 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset 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.datalabeling.v1beta1.AnnotatedDataset parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.AnnotatedDataset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * AnnotatedDataset is a set holding annotations for data in a Dataset. Each
    * labeling task will generate an AnnotatedDataset under the Dataset that the
@@ -994,23 +884,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotatedDataset}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.AnnotatedDataset)
       com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.class,
-              com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.class, com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.newBuilder()
@@ -1018,15 +906,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();
@@ -1068,9 +957,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor;
     }
 
     @java.lang.Override
@@ -1089,8 +978,7 @@ public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.AnnotatedDataset result =
-          new com.google.cloud.datalabeling.v1beta1.AnnotatedDataset(this);
+      com.google.cloud.datalabeling.v1beta1.AnnotatedDataset result = new com.google.cloud.datalabeling.v1beta1.AnnotatedDataset(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.displayName_ = displayName_;
@@ -1127,39 +1015,38 @@ public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.AnnotatedDataset) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotatedDataset) other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotatedDataset)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1167,8 +1054,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.AnnotatedDataset other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1231,8 +1117,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.datalabeling.v1beta1.AnnotatedDataset) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.datalabeling.v1beta1.AnnotatedDataset) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1241,13 +1126,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. AnnotatedDataset resource name in format of:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -1255,13 +1137,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; @@ -1270,8 +1152,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. AnnotatedDataset resource name in format of:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -1279,14 +1159,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 { @@ -1294,8 +1175,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. AnnotatedDataset resource name in format of:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -1303,22 +1182,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. AnnotatedDataset resource name in format of:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -1326,18 +1203,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. AnnotatedDataset resource name in format of:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -1345,16 +1219,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; @@ -1362,8 +1236,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Output only. The display name of the AnnotatedDataset. It is specified in
      * HumanAnnotationConfig when user starts a labeling task. Maximum of 64
@@ -1371,13 +1243,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; @@ -1386,8 +1258,6 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Output only. The display name of the AnnotatedDataset. It is specified in
      * HumanAnnotationConfig when user starts a labeling task. Maximum of 64
@@ -1395,14 +1265,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 { @@ -1410,8 +1281,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Output only. The display name of the AnnotatedDataset. It is specified in
      * HumanAnnotationConfig when user starts a labeling task. Maximum of 64
@@ -1419,22 +1288,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; } /** - * - * *
      * Output only. The display name of the AnnotatedDataset. It is specified in
      * HumanAnnotationConfig when user starts a labeling task. Maximum of 64
@@ -1442,18 +1309,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; } /** - * - * *
      * Output only. The display name of the AnnotatedDataset. It is specified in
      * HumanAnnotationConfig when user starts a labeling task. Maximum of 64
@@ -1461,16 +1325,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; @@ -1478,8 +1342,6 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Output only. The description of the AnnotatedDataset. It is specified in
      * HumanAnnotationConfig when user starts a labeling task. Maximum of 10000
@@ -1487,13 +1349,13 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string description = 9; - * * @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; @@ -1502,8 +1364,6 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Output only. The description of the AnnotatedDataset. It is specified in
      * HumanAnnotationConfig when user starts a labeling task. Maximum of 10000
@@ -1511,14 +1371,15 @@ public java.lang.String getDescription() {
      * 
* * string description = 9; - * * @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 { @@ -1526,8 +1387,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Output only. The description of the AnnotatedDataset. It is specified in
      * HumanAnnotationConfig when user starts a labeling task. Maximum of 10000
@@ -1535,22 +1394,20 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
      * 
* * string description = 9; - * * @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; } /** - * - * *
      * Output only. The description of the AnnotatedDataset. It is specified in
      * HumanAnnotationConfig when user starts a labeling task. Maximum of 10000
@@ -1558,18 +1415,15 @@ public Builder setDescription(java.lang.String value) {
      * 
* * string description = 9; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Output only. The description of the AnnotatedDataset. It is specified in
      * HumanAnnotationConfig when user starts a labeling task. Maximum of 10000
@@ -1577,16 +1431,16 @@ public Builder clearDescription() {
      * 
* * string description = 9; - * * @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; @@ -1594,93 +1448,73 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private int annotationSource_ = 0; /** - * - * *
      * Output only. Source of the annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3; - * * @return The enum numeric value on the wire for annotationSource. */ - @java.lang.Override - public int getAnnotationSourceValue() { + @java.lang.Override public int getAnnotationSourceValue() { return annotationSource_; } /** - * - * *
      * Output only. Source of the annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3; - * * @param value The enum numeric value on the wire for annotationSource to set. * @return This builder for chaining. */ public Builder setAnnotationSourceValue(int value) { - + annotationSource_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Source of the annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3; - * * @return The annotationSource. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSource getAnnotationSource() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationSource result = - com.google.cloud.datalabeling.v1beta1.AnnotationSource.valueOf(annotationSource_); - return result == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSource.UNRECOGNIZED - : result; + com.google.cloud.datalabeling.v1beta1.AnnotationSource result = com.google.cloud.datalabeling.v1beta1.AnnotationSource.valueOf(annotationSource_); + return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSource.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Source of the annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3; - * * @param value The annotationSource to set. * @return This builder for chaining. */ - public Builder setAnnotationSource( - com.google.cloud.datalabeling.v1beta1.AnnotationSource value) { + public Builder setAnnotationSource(com.google.cloud.datalabeling.v1beta1.AnnotationSource value) { if (value == null) { throw new NullPointerException(); } - + annotationSource_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. Source of the annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3; - * * @return This builder for chaining. */ public Builder clearAnnotationSource() { - + annotationSource_ = 0; onChanged(); return this; @@ -1688,71 +1522,55 @@ public Builder clearAnnotationSource() { private int annotationType_ = 0; /** - * - * *
      * Output only. Type of the annotation. It is specified when starting labeling
      * task.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8; - * * @return The enum numeric value on the wire for annotationType. */ - @java.lang.Override - public int getAnnotationTypeValue() { + @java.lang.Override public int getAnnotationTypeValue() { return annotationType_; } /** - * - * *
      * Output only. Type of the annotation. It is specified when starting labeling
      * task.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8; - * * @param value The enum numeric value on the wire for annotationType to set. * @return This builder for chaining. */ public Builder setAnnotationTypeValue(int value) { - + annotationType_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Type of the annotation. It is specified when starting labeling
      * task.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8; - * * @return The annotationType. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationType result = - com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); - return result == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED - : result; + com.google.cloud.datalabeling.v1beta1.AnnotationType result = com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); + return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Type of the annotation. It is specified when starting labeling
      * task.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8; - * * @param value The annotationType to set. * @return This builder for chaining. */ @@ -1760,40 +1578,34 @@ public Builder setAnnotationType(com.google.cloud.datalabeling.v1beta1.Annotatio if (value == null) { throw new NullPointerException(); } - + annotationType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. Type of the annotation. It is specified when starting labeling
      * task.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8; - * * @return This builder for chaining. */ public Builder clearAnnotationType() { - + annotationType_ = 0; onChanged(); return this; } - private long exampleCount_; + private long exampleCount_ ; /** - * - * *
      * Output only. Number of examples in the annotated dataset.
      * 
* * int64 example_count = 4; - * * @return The exampleCount. */ @java.lang.Override @@ -1801,52 +1613,43 @@ public long getExampleCount() { return exampleCount_; } /** - * - * *
      * Output only. Number of examples in the annotated dataset.
      * 
* * int64 example_count = 4; - * * @param value The exampleCount to set. * @return This builder for chaining. */ public Builder setExampleCount(long value) { - + exampleCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Number of examples in the annotated dataset.
      * 
* * int64 example_count = 4; - * * @return This builder for chaining. */ public Builder clearExampleCount() { - + exampleCount_ = 0L; onChanged(); return this; } - private long completedExampleCount_; + private long completedExampleCount_ ; /** - * - * *
      * Output only. Number of examples that have annotation in the annotated
      * dataset.
      * 
* * int64 completed_example_count = 5; - * * @return The completedExampleCount. */ @java.lang.Override @@ -1854,38 +1657,32 @@ public long getCompletedExampleCount() { return completedExampleCount_; } /** - * - * *
      * Output only. Number of examples that have annotation in the annotated
      * dataset.
      * 
* * int64 completed_example_count = 5; - * * @param value The completedExampleCount to set. * @return This builder for chaining. */ public Builder setCompletedExampleCount(long value) { - + completedExampleCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Number of examples that have annotation in the annotated
      * dataset.
      * 
* * int64 completed_example_count = 5; - * * @return This builder for chaining. */ public Builder clearCompletedExampleCount() { - + completedExampleCount_ = 0L; onChanged(); return this; @@ -1893,47 +1690,34 @@ public Builder clearCompletedExampleCount() { private com.google.cloud.datalabeling.v1beta1.LabelStats labelStats_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelStats, - com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, - com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder> - labelStatsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelStats, com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder> labelStatsBuilder_; /** - * - * *
      * Output only. Per label statistics.
      * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6; - * * @return Whether the labelStats field is set. */ public boolean hasLabelStats() { return labelStatsBuilder_ != null || labelStats_ != null; } /** - * - * *
      * Output only. Per label statistics.
      * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6; - * * @return The labelStats. */ public com.google.cloud.datalabeling.v1beta1.LabelStats getLabelStats() { if (labelStatsBuilder_ == null) { - return labelStats_ == null - ? com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() - : labelStats_; + return labelStats_ == null ? com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() : labelStats_; } else { return labelStatsBuilder_.getMessage(); } } /** - * - * *
      * Output only. Per label statistics.
      * 
@@ -1954,8 +1738,6 @@ public Builder setLabelStats(com.google.cloud.datalabeling.v1beta1.LabelStats va return this; } /** - * - * *
      * Output only. Per label statistics.
      * 
@@ -1974,8 +1756,6 @@ public Builder setLabelStats( return this; } /** - * - * *
      * Output only. Per label statistics.
      * 
@@ -1986,9 +1766,7 @@ public Builder mergeLabelStats(com.google.cloud.datalabeling.v1beta1.LabelStats if (labelStatsBuilder_ == null) { if (labelStats_ != null) { labelStats_ = - com.google.cloud.datalabeling.v1beta1.LabelStats.newBuilder(labelStats_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.LabelStats.newBuilder(labelStats_).mergeFrom(value).buildPartial(); } else { labelStats_ = value; } @@ -2000,8 +1778,6 @@ public Builder mergeLabelStats(com.google.cloud.datalabeling.v1beta1.LabelStats return this; } /** - * - * *
      * Output only. Per label statistics.
      * 
@@ -2020,8 +1796,6 @@ public Builder clearLabelStats() { return this; } /** - * - * *
      * Output only. Per label statistics.
      * 
@@ -2029,13 +1803,11 @@ public Builder clearLabelStats() { * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6; */ public com.google.cloud.datalabeling.v1beta1.LabelStats.Builder getLabelStatsBuilder() { - + onChanged(); return getLabelStatsFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Per label statistics.
      * 
@@ -2046,14 +1818,11 @@ public com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder getLabelStatsOr if (labelStatsBuilder_ != null) { return labelStatsBuilder_.getMessageOrBuilder(); } else { - return labelStats_ == null - ? com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() - : labelStats_; + return labelStats_ == null ? + com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() : labelStats_; } } /** - * - * *
      * Output only. Per label statistics.
      * 
@@ -2061,17 +1830,14 @@ public com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder getLabelStatsOr * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelStats, - com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, - com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelStats, com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder> getLabelStatsFieldBuilder() { if (labelStatsBuilder_ == null) { - labelStatsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelStats, - com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, - com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder>( - getLabelStats(), getParentForChildren(), isClean()); + labelStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelStats, com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder>( + getLabelStats(), + getParentForChildren(), + isClean()); labelStats_ = null; } return labelStatsBuilder_; @@ -2079,47 +1845,34 @@ public com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder getLabelStatsOr 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 the AnnotatedDataset was created.
      * 
* * .google.protobuf.Timestamp create_time = 7; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Time the AnnotatedDataset was created.
      * 
* * .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. Time the AnnotatedDataset was created.
      * 
@@ -2140,15 +1893,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time the AnnotatedDataset was created.
      * 
* * .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(); @@ -2159,8 +1911,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time the AnnotatedDataset was created.
      * 
@@ -2171,7 +1921,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; } @@ -2183,8 +1933,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time the AnnotatedDataset was created.
      * 
@@ -2203,8 +1951,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Time the AnnotatedDataset was created.
      * 
@@ -2212,13 +1958,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 7; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time the AnnotatedDataset was created.
      * 
@@ -2229,14 +1973,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 the AnnotatedDataset was created.
      * 
@@ -2244,17 +1985,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_; @@ -2262,55 +2000,41 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata, - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder> - metadataBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata, com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder, com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder> metadataBuilder_; /** - * - * *
      * Output only. Additional information about AnnotatedDataset.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; - * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** - * - * *
      * Output only. Additional information about AnnotatedDataset.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; - * * @return The metadata. */ public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** - * - * *
      * Output only. Additional information about AnnotatedDataset.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; */ - public Builder setMetadata( - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata value) { + public Builder setMetadata(com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2324,8 +2048,6 @@ public Builder setMetadata( return this; } /** - * - * *
      * Output only. Additional information about AnnotatedDataset.
      * 
@@ -2344,22 +2066,17 @@ public Builder setMetadata( return this; } /** - * - * *
      * Output only. Additional information about AnnotatedDataset.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; */ - public Builder mergeMetadata( - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata value) { + public Builder mergeMetadata(com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata value) { if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); } else { metadata_ = value; } @@ -2371,8 +2088,6 @@ public Builder mergeMetadata( return this; } /** - * - * *
      * Output only. Additional information about AnnotatedDataset.
      * 
@@ -2391,42 +2106,33 @@ public Builder clearMetadata() { return this; } /** - * - * *
      * Output only. Additional information about AnnotatedDataset.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; */ - public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder - getMetadataBuilder() { - + public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder getMetadataBuilder() { + onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Additional information about AnnotatedDataset.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; */ - public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder - getMetadataOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { - return metadata_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.getDefaultInstance() - : metadata_; + return metadata_ == null ? + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.getDefaultInstance() : metadata_; } } /** - * - * *
      * Output only. Additional information about AnnotatedDataset.
      * 
@@ -2434,71 +2140,58 @@ public Builder clearMetadata() { * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata, - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata, com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder, com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata, - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata, com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder, com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); metadata_ = null; } return metadataBuilder_; } - private com.google.protobuf.LazyStringList blockingResources_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList blockingResources_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureBlockingResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { blockingResources_ = new com.google.protobuf.LazyStringArrayList(blockingResources_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotated dataset.
      * 
* * repeated string blocking_resources = 11; - * * @return A list containing the blockingResources. */ - public com.google.protobuf.ProtocolStringList getBlockingResourcesList() { + public com.google.protobuf.ProtocolStringList + getBlockingResourcesList() { return blockingResources_.getUnmodifiableView(); } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotated dataset.
      * 
* * repeated string blocking_resources = 11; - * * @return The count of blockingResources. */ public int getBlockingResourcesCount() { return blockingResources_.size(); } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotated dataset.
      * 
* * repeated string blocking_resources = 11; - * * @param index The index of the element to return. * @return The blockingResources at the given index. */ @@ -2506,95 +2199,85 @@ public java.lang.String getBlockingResources(int index) { return blockingResources_.get(index); } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotated dataset.
      * 
* * repeated string blocking_resources = 11; - * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - public com.google.protobuf.ByteString getBlockingResourcesBytes(int index) { + public com.google.protobuf.ByteString + getBlockingResourcesBytes(int index) { return blockingResources_.getByteString(index); } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotated dataset.
      * 
* * repeated string blocking_resources = 11; - * * @param index The index to set the value at. * @param value The blockingResources to set. * @return This builder for chaining. */ - public Builder setBlockingResources(int index, java.lang.String value) { + public Builder setBlockingResources( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlockingResourcesIsMutable(); + throw new NullPointerException(); + } + ensureBlockingResourcesIsMutable(); blockingResources_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotated dataset.
      * 
* * repeated string blocking_resources = 11; - * * @param value The blockingResources to add. * @return This builder for chaining. */ - public Builder addBlockingResources(java.lang.String value) { + public Builder addBlockingResources( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlockingResourcesIsMutable(); + throw new NullPointerException(); + } + ensureBlockingResourcesIsMutable(); blockingResources_.add(value); onChanged(); return this; } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotated dataset.
      * 
* * repeated string blocking_resources = 11; - * * @param values The blockingResources to add. * @return This builder for chaining. */ - public Builder addAllBlockingResources(java.lang.Iterable values) { + public Builder addAllBlockingResources( + java.lang.Iterable values) { ensureBlockingResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blockingResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blockingResources_); onChanged(); return this; } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotated dataset.
      * 
* * repeated string blocking_resources = 11; - * * @return This builder for chaining. */ public Builder clearBlockingResources() { @@ -2604,31 +2287,29 @@ public Builder clearBlockingResources() { return this; } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotated dataset.
      * 
* * repeated string blocking_resources = 11; - * * @param value The bytes of the blockingResources to add. * @return This builder for chaining. */ - public Builder addBlockingResourcesBytes(com.google.protobuf.ByteString value) { + public Builder addBlockingResourcesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureBlockingResourcesIsMutable(); blockingResources_.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); } @@ -2638,12 +2319,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.AnnotatedDataset) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.AnnotatedDataset) private static final com.google.cloud.datalabeling.v1beta1.AnnotatedDataset DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.AnnotatedDataset(); } @@ -2652,16 +2333,16 @@ public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotatedDataset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotatedDataset(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotatedDataset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotatedDataset(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2676,4 +2357,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadata.java similarity index 62% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadata.java index f89b663e..39c6a59c 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadata.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Metadata on AnnotatedDataset.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata} */ -public final class AnnotatedDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnnotatedDatasetMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata) AnnotatedDatasetMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnnotatedDatasetMetadata.newBuilder() to construct. private AnnotatedDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AnnotatedDatasetMetadata() {} + private AnnotatedDatasetMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnnotatedDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AnnotatedDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,252 +52,166 @@ private AnnotatedDatasetMetadata( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (humanAnnotationConfig_ != null) { - subBuilder = humanAnnotationConfig_.toBuilder(); - } - humanAnnotationConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(humanAnnotationConfig_); - humanAnnotationConfig_ = subBuilder.buildPartial(); - } + case 10: { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (humanAnnotationConfig_ != null) { + subBuilder = humanAnnotationConfig_.toBuilder(); + } + humanAnnotationConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(humanAnnotationConfig_); + humanAnnotationConfig_ = subBuilder.buildPartial(); + } - break; + break; + } + case 18: { + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder subBuilder = null; + if (annotationRequestConfigCase_ == 2) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) annotationRequestConfig_).toBuilder(); + } + annotationRequestConfig_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) annotationRequestConfig_); + annotationRequestConfig_ = subBuilder.buildPartial(); + } + annotationRequestConfigCase_ = 2; + break; + } + case 26: { + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder subBuilder = null; + if (annotationRequestConfigCase_ == 3) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_).toBuilder(); } - case 18: - { - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder subBuilder = - null; - if (annotationRequestConfigCase_ == 2) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - annotationRequestConfig_) - .toBuilder(); - } - annotationRequestConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - annotationRequestConfig_); - annotationRequestConfig_ = subBuilder.buildPartial(); - } - annotationRequestConfigCase_ = 2; - break; + annotationRequestConfig_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_); + annotationRequestConfig_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder subBuilder = null; - if (annotationRequestConfigCase_ == 3) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) - annotationRequestConfig_) - .toBuilder(); - } - annotationRequestConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) - annotationRequestConfig_); - annotationRequestConfig_ = subBuilder.buildPartial(); - } - annotationRequestConfigCase_ = 3; - break; + annotationRequestConfigCase_ = 3; + break; + } + case 34: { + com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder subBuilder = null; + if (annotationRequestConfigCase_ == 4) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_).toBuilder(); } - case 34: - { - com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder subBuilder = null; - if (annotationRequestConfigCase_ == 4) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.PolylineConfig) - annotationRequestConfig_) - .toBuilder(); - } - annotationRequestConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.PolylineConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.PolylineConfig) - annotationRequestConfig_); - annotationRequestConfig_ = subBuilder.buildPartial(); - } - annotationRequestConfigCase_ = 4; - break; + annotationRequestConfig_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.PolylineConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_); + annotationRequestConfig_ = subBuilder.buildPartial(); } - case 42: - { - com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder subBuilder = null; - if (annotationRequestConfigCase_ == 5) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.SegmentationConfig) - annotationRequestConfig_) - .toBuilder(); - } - annotationRequestConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.SegmentationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) - annotationRequestConfig_); - annotationRequestConfig_ = subBuilder.buildPartial(); - } - annotationRequestConfigCase_ = 5; - break; + annotationRequestConfigCase_ = 4; + break; + } + case 42: { + com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder subBuilder = null; + if (annotationRequestConfigCase_ == 5) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_).toBuilder(); } - case 50: - { - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder subBuilder = - null; - if (annotationRequestConfigCase_ == 6) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - annotationRequestConfig_) - .toBuilder(); - } - annotationRequestConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - annotationRequestConfig_); - annotationRequestConfig_ = subBuilder.buildPartial(); - } - annotationRequestConfigCase_ = 6; - break; + annotationRequestConfig_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.SegmentationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_); + annotationRequestConfig_ = subBuilder.buildPartial(); } - case 58: - { - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder subBuilder = null; - if (annotationRequestConfigCase_ == 7) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) - annotationRequestConfig_) - .toBuilder(); - } - annotationRequestConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) - annotationRequestConfig_); - annotationRequestConfig_ = subBuilder.buildPartial(); - } - annotationRequestConfigCase_ = 7; - break; + annotationRequestConfigCase_ = 5; + break; + } + case 50: { + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder subBuilder = null; + if (annotationRequestConfigCase_ == 6) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) annotationRequestConfig_).toBuilder(); } - case 66: - { - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder subBuilder = null; - if (annotationRequestConfigCase_ == 8) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) - annotationRequestConfig_) - .toBuilder(); - } - annotationRequestConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) - annotationRequestConfig_); - annotationRequestConfig_ = subBuilder.buildPartial(); - } - annotationRequestConfigCase_ = 8; - break; + annotationRequestConfig_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) annotationRequestConfig_); + annotationRequestConfig_ = subBuilder.buildPartial(); } - case 74: - { - com.google.cloud.datalabeling.v1beta1.EventConfig.Builder subBuilder = null; - if (annotationRequestConfigCase_ == 9) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_) - .toBuilder(); - } - annotationRequestConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.EventConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_); - annotationRequestConfig_ = subBuilder.buildPartial(); - } - annotationRequestConfigCase_ = 9; - break; + annotationRequestConfigCase_ = 6; + break; + } + case 58: { + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder subBuilder = null; + if (annotationRequestConfigCase_ == 7) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_).toBuilder(); } - case 82: - { - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder subBuilder = - null; - if (annotationRequestConfigCase_ == 10) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) - annotationRequestConfig_) - .toBuilder(); - } - annotationRequestConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) - annotationRequestConfig_); - annotationRequestConfig_ = subBuilder.buildPartial(); - } - annotationRequestConfigCase_ = 10; - break; + annotationRequestConfig_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_); + annotationRequestConfig_ = subBuilder.buildPartial(); } - case 90: - { - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder subBuilder = - null; - if (annotationRequestConfigCase_ == 11) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) - annotationRequestConfig_) - .toBuilder(); - } - annotationRequestConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) - annotationRequestConfig_); - annotationRequestConfig_ = subBuilder.buildPartial(); - } - annotationRequestConfigCase_ = 11; - break; + annotationRequestConfigCase_ = 7; + break; + } + case 66: { + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder subBuilder = null; + if (annotationRequestConfigCase_ == 8) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + annotationRequestConfig_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_); + annotationRequestConfig_ = subBuilder.buildPartial(); + } + annotationRequestConfigCase_ = 8; + break; + } + case 74: { + com.google.cloud.datalabeling.v1beta1.EventConfig.Builder subBuilder = null; + if (annotationRequestConfigCase_ == 9) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_).toBuilder(); } + annotationRequestConfig_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.EventConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_); + annotationRequestConfig_ = subBuilder.buildPartial(); + } + annotationRequestConfigCase_ = 9; + break; + } + case 82: { + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder subBuilder = null; + if (annotationRequestConfigCase_ == 10) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) annotationRequestConfig_).toBuilder(); + } + annotationRequestConfig_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) annotationRequestConfig_); + annotationRequestConfig_ = subBuilder.buildPartial(); + } + annotationRequestConfigCase_ = 10; + break; + } + case 90: { + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder subBuilder = null; + if (annotationRequestConfigCase_ == 11) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) annotationRequestConfig_).toBuilder(); + } + annotationRequestConfig_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) annotationRequestConfig_); + annotationRequestConfig_ = subBuilder.buildPartial(); + } + annotationRequestConfigCase_ = 11; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -321,34 +219,30 @@ private AnnotatedDatasetMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.class, - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.class, com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder.class); } private int annotationRequestConfigCase_ = 0; private java.lang.Object annotationRequestConfig_; - public enum AnnotationRequestConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { IMAGE_CLASSIFICATION_CONFIG(2), BOUNDING_POLY_CONFIG(3), @@ -362,7 +256,6 @@ public enum AnnotationRequestConfigCase TEXT_ENTITY_EXTRACTION_CONFIG(11), ANNOTATIONREQUESTCONFIG_NOT_SET(0); private final int value; - private AnnotationRequestConfigCase(int value) { this.value = value; } @@ -378,54 +271,38 @@ public static AnnotationRequestConfigCase valueOf(int value) { public static AnnotationRequestConfigCase forNumber(int value) { switch (value) { - case 2: - return IMAGE_CLASSIFICATION_CONFIG; - case 3: - return BOUNDING_POLY_CONFIG; - case 4: - return POLYLINE_CONFIG; - case 5: - return SEGMENTATION_CONFIG; - case 6: - return VIDEO_CLASSIFICATION_CONFIG; - case 7: - return OBJECT_DETECTION_CONFIG; - case 8: - return OBJECT_TRACKING_CONFIG; - case 9: - return EVENT_CONFIG; - case 10: - return TEXT_CLASSIFICATION_CONFIG; - case 11: - return TEXT_ENTITY_EXTRACTION_CONFIG; - case 0: - return ANNOTATIONREQUESTCONFIG_NOT_SET; - default: - return null; + case 2: return IMAGE_CLASSIFICATION_CONFIG; + case 3: return BOUNDING_POLY_CONFIG; + case 4: return POLYLINE_CONFIG; + case 5: return SEGMENTATION_CONFIG; + case 6: return VIDEO_CLASSIFICATION_CONFIG; + case 7: return OBJECT_DETECTION_CONFIG; + case 8: return OBJECT_TRACKING_CONFIG; + case 9: return EVENT_CONFIG; + case 10: return TEXT_CLASSIFICATION_CONFIG; + case 11: return TEXT_ENTITY_EXTRACTION_CONFIG; + case 0: return ANNOTATIONREQUESTCONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public AnnotationRequestConfigCase getAnnotationRequestConfigCase() { - return AnnotationRequestConfigCase.forNumber(annotationRequestConfigCase_); + public AnnotationRequestConfigCase + getAnnotationRequestConfigCase() { + return AnnotationRequestConfigCase.forNumber( + annotationRequestConfigCase_); } public static final int IMAGE_CLASSIFICATION_CONFIG_FIELD_NUMBER = 2; /** - * - * *
    * Configuration for image classification task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; * @return Whether the imageClassificationConfig field is set. */ @java.lang.Override @@ -433,58 +310,42 @@ public boolean hasImageClassificationConfig() { return annotationRequestConfigCase_ == 2; } /** - * - * *
    * Configuration for image classification task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; * @return The imageClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig - getImageClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageClassificationConfig() { if (annotationRequestConfigCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } /** - * - * *
    * Configuration for image classification task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder - getImageClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder getImageClassificationConfigOrBuilder() { if (annotationRequestConfigCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } public static final int BOUNDING_POLY_CONFIG_FIELD_NUMBER = 3; /** - * - * *
    * Configuration for image bounding box and bounding poly task.
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; - * * @return Whether the boundingPolyConfig field is set. */ @java.lang.Override @@ -492,26 +353,21 @@ public boolean hasBoundingPolyConfig() { return annotationRequestConfigCase_ == 3; } /** - * - * *
    * Configuration for image bounding box and bounding poly task.
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; - * * @return The boundingPolyConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyConfig() { if (annotationRequestConfigCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance(); } /** - * - * *
    * Configuration for image bounding box and bounding poly task.
    * 
@@ -519,24 +375,20 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyC * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder - getBoundingPolyConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoundingPolyConfigOrBuilder() { if (annotationRequestConfigCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance(); } public static final int POLYLINE_CONFIG_FIELD_NUMBER = 4; /** - * - * *
    * Configuration for image polyline task.
    * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 4; - * * @return Whether the polylineConfig field is set. */ @java.lang.Override @@ -544,26 +396,21 @@ public boolean hasPolylineConfig() { return annotationRequestConfigCase_ == 4; } /** - * - * *
    * Configuration for image polyline task.
    * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 4; - * * @return The polylineConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PolylineConfig getPolylineConfig() { if (annotationRequestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance(); } /** - * - * *
    * Configuration for image polyline task.
    * 
@@ -571,24 +418,20 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig getPolylineConfig() * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 4; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder - getPolylineConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder getPolylineConfigOrBuilder() { if (annotationRequestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance(); } public static final int SEGMENTATION_CONFIG_FIELD_NUMBER = 5; /** - * - * *
    * Configuration for image segmentation task.
    * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; - * * @return Whether the segmentationConfig field is set. */ @java.lang.Override @@ -596,26 +439,21 @@ public boolean hasSegmentationConfig() { return annotationRequestConfigCase_ == 5; } /** - * - * *
    * Configuration for image segmentation task.
    * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; - * * @return The segmentationConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SegmentationConfig getSegmentationConfig() { if (annotationRequestConfigCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance(); } /** - * - * *
    * Configuration for image segmentation task.
    * 
@@ -623,26 +461,20 @@ public com.google.cloud.datalabeling.v1beta1.SegmentationConfig getSegmentationC * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder - getSegmentationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder getSegmentationConfigOrBuilder() { if (annotationRequestConfigCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance(); } public static final int VIDEO_CLASSIFICATION_CONFIG_FIELD_NUMBER = 6; /** - * - * *
    * Configuration for video classification task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; * @return Whether the videoClassificationConfig field is set. */ @java.lang.Override @@ -650,59 +482,42 @@ public boolean hasVideoClassificationConfig() { return annotationRequestConfigCase_ == 6; } /** - * - * *
    * Configuration for video classification task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; * @return The videoClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - getVideoClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig getVideoClassificationConfig() { if (annotationRequestConfigCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); } /** - * - * *
    * Configuration for video classification task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder - getVideoClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder getVideoClassificationConfigOrBuilder() { if (annotationRequestConfigCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); } public static final int OBJECT_DETECTION_CONFIG_FIELD_NUMBER = 7; /** - * - * *
    * Configuration for video object detection task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; * @return Whether the objectDetectionConfig field is set. */ @java.lang.Override @@ -710,54 +525,42 @@ public boolean hasObjectDetectionConfig() { return annotationRequestConfigCase_ == 7; } /** - * - * *
    * Configuration for video object detection task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; * @return The objectDetectionConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig getObjectDetectionConfig() { if (annotationRequestConfigCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); } /** - * - * *
    * Configuration for video object detection task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder - getObjectDetectionConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder getObjectDetectionConfigOrBuilder() { if (annotationRequestConfigCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); } public static final int OBJECT_TRACKING_CONFIG_FIELD_NUMBER = 8; /** - * - * *
    * Configuration for video object tracking task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; * @return Whether the objectTrackingConfig field is set. */ @java.lang.Override @@ -765,53 +568,42 @@ public boolean hasObjectTrackingConfig() { return annotationRequestConfigCase_ == 8; } /** - * - * *
    * Configuration for video object tracking task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; * @return The objectTrackingConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig getObjectTrackingConfig() { if (annotationRequestConfigCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); } /** - * - * *
    * Configuration for video object tracking task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder - getObjectTrackingConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder getObjectTrackingConfigOrBuilder() { if (annotationRequestConfigCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); } public static final int EVENT_CONFIG_FIELD_NUMBER = 9; /** - * - * *
    * Configuration for video event labeling task.
    * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 9; - * * @return Whether the eventConfig field is set. */ @java.lang.Override @@ -819,26 +611,21 @@ public boolean hasEventConfig() { return annotationRequestConfigCase_ == 9; } /** - * - * *
    * Configuration for video event labeling task.
    * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 9; - * * @return The eventConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EventConfig getEventConfig() { if (annotationRequestConfigCase_ == 9) { - return (com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance(); } /** - * - * *
    * Configuration for video event labeling task.
    * 
@@ -848,23 +635,18 @@ public com.google.cloud.datalabeling.v1beta1.EventConfig getEventConfig() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder getEventConfigOrBuilder() { if (annotationRequestConfigCase_ == 9) { - return (com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance(); } public static final int TEXT_CLASSIFICATION_CONFIG_FIELD_NUMBER = 10; /** - * - * *
    * Configuration for text classification task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; * @return Whether the textClassificationConfig field is set. */ @java.lang.Override @@ -872,60 +654,42 @@ public boolean hasTextClassificationConfig() { return annotationRequestConfigCase_ == 10; } /** - * - * *
    * Configuration for text classification task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; * @return The textClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig - getTextClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextClassificationConfig() { if (annotationRequestConfigCase_ == 10) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } /** - * - * *
    * Configuration for text classification task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder - getTextClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder getTextClassificationConfigOrBuilder() { if (annotationRequestConfigCase_ == 10) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } public static final int TEXT_ENTITY_EXTRACTION_CONFIG_FIELD_NUMBER = 11; /** - * - * *
    * Configuration for text entity extraction task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; - * - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; * @return Whether the textEntityExtractionConfig field is set. */ @java.lang.Override @@ -933,44 +697,31 @@ public boolean hasTextEntityExtractionConfig() { return annotationRequestConfigCase_ == 11; } /** - * - * *
    * Configuration for text entity extraction task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; - * - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; * @return The textEntityExtractionConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig - getTextEntityExtractionConfig() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig getTextEntityExtractionConfig() { if (annotationRequestConfigCase_ == 11) { - return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); } /** - * - * *
    * Configuration for text entity extraction task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder - getTextEntityExtractionConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder getTextEntityExtractionConfigOrBuilder() { if (annotationRequestConfigCase_ == 11) { - return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); } @@ -978,16 +729,12 @@ public boolean hasTextEntityExtractionConfig() { public static final int HUMAN_ANNOTATION_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig humanAnnotationConfig_; /** - * - * *
    * HumanAnnotationConfig used when requesting the human labeling task for this
    * AnnotatedDataset.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; * @return Whether the humanAnnotationConfig field is set. */ @java.lang.Override @@ -995,43 +742,32 @@ public boolean hasHumanAnnotationConfig() { return humanAnnotationConfig_ != null; } /** - * - * *
    * HumanAnnotationConfig used when requesting the human labeling task for this
    * AnnotatedDataset.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; * @return The humanAnnotationConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getHumanAnnotationConfig() { - return humanAnnotationConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : humanAnnotationConfig_; + return humanAnnotationConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : humanAnnotationConfig_; } /** - * - * *
    * HumanAnnotationConfig used when requesting the human labeling task for this
    * AnnotatedDataset.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getHumanAnnotationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getHumanAnnotationConfigOrBuilder() { return getHumanAnnotationConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1043,58 +779,40 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (humanAnnotationConfig_ != null) { output.writeMessage(1, getHumanAnnotationConfig()); } if (annotationRequestConfigCase_ == 2) { - output.writeMessage( - 2, - (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - annotationRequestConfig_); + output.writeMessage(2, (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 3) { - output.writeMessage( - 3, (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_); + output.writeMessage(3, (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 4) { - output.writeMessage( - 4, (com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_); + output.writeMessage(4, (com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 5) { - output.writeMessage( - 5, (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_); + output.writeMessage(5, (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 6) { - output.writeMessage( - 6, - (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - annotationRequestConfig_); + output.writeMessage(6, (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 7) { - output.writeMessage( - 7, - (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_); + output.writeMessage(7, (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 8) { - output.writeMessage( - 8, (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_); + output.writeMessage(8, (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 9) { - output.writeMessage( - 9, (com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_); + output.writeMessage(9, (com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 10) { - output.writeMessage( - 10, - (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) - annotationRequestConfig_); + output.writeMessage(10, (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 11) { - output.writeMessage( - 11, - (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) - annotationRequestConfig_); + output.writeMessage(11, (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) annotationRequestConfig_); } unknownFields.writeTo(output); } @@ -1106,72 +824,48 @@ public int getSerializedSize() { size = 0; if (humanAnnotationConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHumanAnnotationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getHumanAnnotationConfig()); } if (annotationRequestConfigCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, - (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - annotationRequestConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, - (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, - (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, - (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - annotationRequestConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, - (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) - annotationRequestConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, - (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) - annotationRequestConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, (com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 10) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, - (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) - annotationRequestConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 11) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, - (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) - annotationRequestConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) annotationRequestConfig_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1181,54 +875,59 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata other = - (com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata) obj; + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata other = (com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata) obj; if (hasHumanAnnotationConfig() != other.hasHumanAnnotationConfig()) return false; if (hasHumanAnnotationConfig()) { - if (!getHumanAnnotationConfig().equals(other.getHumanAnnotationConfig())) return false; + if (!getHumanAnnotationConfig() + .equals(other.getHumanAnnotationConfig())) return false; } - if (!getAnnotationRequestConfigCase().equals(other.getAnnotationRequestConfigCase())) - return false; + if (!getAnnotationRequestConfigCase().equals(other.getAnnotationRequestConfigCase())) return false; switch (annotationRequestConfigCase_) { case 2: - if (!getImageClassificationConfig().equals(other.getImageClassificationConfig())) - return false; + if (!getImageClassificationConfig() + .equals(other.getImageClassificationConfig())) return false; break; case 3: - if (!getBoundingPolyConfig().equals(other.getBoundingPolyConfig())) return false; + if (!getBoundingPolyConfig() + .equals(other.getBoundingPolyConfig())) return false; break; case 4: - if (!getPolylineConfig().equals(other.getPolylineConfig())) return false; + if (!getPolylineConfig() + .equals(other.getPolylineConfig())) return false; break; case 5: - if (!getSegmentationConfig().equals(other.getSegmentationConfig())) return false; + if (!getSegmentationConfig() + .equals(other.getSegmentationConfig())) return false; break; case 6: - if (!getVideoClassificationConfig().equals(other.getVideoClassificationConfig())) - return false; + if (!getVideoClassificationConfig() + .equals(other.getVideoClassificationConfig())) return false; break; case 7: - if (!getObjectDetectionConfig().equals(other.getObjectDetectionConfig())) return false; + if (!getObjectDetectionConfig() + .equals(other.getObjectDetectionConfig())) return false; break; case 8: - if (!getObjectTrackingConfig().equals(other.getObjectTrackingConfig())) return false; + if (!getObjectTrackingConfig() + .equals(other.getObjectTrackingConfig())) return false; break; case 9: - if (!getEventConfig().equals(other.getEventConfig())) return false; + if (!getEventConfig() + .equals(other.getEventConfig())) return false; break; case 10: - if (!getTextClassificationConfig().equals(other.getTextClassificationConfig())) - return false; + if (!getTextClassificationConfig() + .equals(other.getTextClassificationConfig())) return false; break; case 11: - if (!getTextEntityExtractionConfig().equals(other.getTextEntityExtractionConfig())) - return false; + if (!getTextEntityExtractionConfig() + .equals(other.getTextEntityExtractionConfig())) return false; break; case 0: default: @@ -1298,127 +997,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata 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.datalabeling.v1beta1.AnnotatedDatasetMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 on AnnotatedDataset.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata) com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.class, - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.class, com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.newBuilder() @@ -1426,15 +1115,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(); @@ -1450,14 +1140,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.getDefaultInstance(); } @@ -1472,8 +1161,7 @@ public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata result = - new com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata(this); + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata result = new com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata(this); if (annotationRequestConfigCase_ == 2) { if (imageClassificationConfigBuilder_ == null) { result.annotationRequestConfig_ = annotationRequestConfig_; @@ -1558,39 +1246,38 @@ public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata 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.datalabeling.v1beta1.AnnotatedDatasetMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata)other); } else { super.mergeFrom(other); return this; @@ -1598,67 +1285,54 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata other) { - if (other - == com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.getDefaultInstance()) return this; if (other.hasHumanAnnotationConfig()) { mergeHumanAnnotationConfig(other.getHumanAnnotationConfig()); } switch (other.getAnnotationRequestConfigCase()) { - case IMAGE_CLASSIFICATION_CONFIG: - { - mergeImageClassificationConfig(other.getImageClassificationConfig()); - break; - } - case BOUNDING_POLY_CONFIG: - { - mergeBoundingPolyConfig(other.getBoundingPolyConfig()); - break; - } - case POLYLINE_CONFIG: - { - mergePolylineConfig(other.getPolylineConfig()); - break; - } - case SEGMENTATION_CONFIG: - { - mergeSegmentationConfig(other.getSegmentationConfig()); - break; - } - case VIDEO_CLASSIFICATION_CONFIG: - { - mergeVideoClassificationConfig(other.getVideoClassificationConfig()); - break; - } - case OBJECT_DETECTION_CONFIG: - { - mergeObjectDetectionConfig(other.getObjectDetectionConfig()); - break; - } - case OBJECT_TRACKING_CONFIG: - { - mergeObjectTrackingConfig(other.getObjectTrackingConfig()); - break; - } - case EVENT_CONFIG: - { - mergeEventConfig(other.getEventConfig()); - break; - } - case TEXT_CLASSIFICATION_CONFIG: - { - mergeTextClassificationConfig(other.getTextClassificationConfig()); - break; - } - case TEXT_ENTITY_EXTRACTION_CONFIG: - { - mergeTextEntityExtractionConfig(other.getTextEntityExtractionConfig()); - break; - } - case ANNOTATIONREQUESTCONFIG_NOT_SET: - { - break; - } + case IMAGE_CLASSIFICATION_CONFIG: { + mergeImageClassificationConfig(other.getImageClassificationConfig()); + break; + } + case BOUNDING_POLY_CONFIG: { + mergeBoundingPolyConfig(other.getBoundingPolyConfig()); + break; + } + case POLYLINE_CONFIG: { + mergePolylineConfig(other.getPolylineConfig()); + break; + } + case SEGMENTATION_CONFIG: { + mergeSegmentationConfig(other.getSegmentationConfig()); + break; + } + case VIDEO_CLASSIFICATION_CONFIG: { + mergeVideoClassificationConfig(other.getVideoClassificationConfig()); + break; + } + case OBJECT_DETECTION_CONFIG: { + mergeObjectDetectionConfig(other.getObjectDetectionConfig()); + break; + } + case OBJECT_TRACKING_CONFIG: { + mergeObjectTrackingConfig(other.getObjectTrackingConfig()); + break; + } + case EVENT_CONFIG: { + mergeEventConfig(other.getEventConfig()); + break; + } + case TEXT_CLASSIFICATION_CONFIG: { + mergeTextClassificationConfig(other.getTextClassificationConfig()); + break; + } + case TEXT_ENTITY_EXTRACTION_CONFIG: { + mergeTextEntityExtractionConfig(other.getTextEntityExtractionConfig()); + break; + } + case ANNOTATIONREQUESTCONFIG_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1679,9 +1353,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1690,12 +1362,12 @@ public Builder mergeFrom( } return this; } - private int annotationRequestConfigCase_ = 0; private java.lang.Object annotationRequestConfig_; - - public AnnotationRequestConfigCase getAnnotationRequestConfigCase() { - return AnnotationRequestConfigCase.forNumber(annotationRequestConfigCase_); + public AnnotationRequestConfigCase + getAnnotationRequestConfigCase() { + return AnnotationRequestConfigCase.forNumber( + annotationRequestConfigCase_); } public Builder clearAnnotationRequestConfig() { @@ -1705,22 +1377,15 @@ public Builder clearAnnotationRequestConfig() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder> - imageClassificationConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder> imageClassificationConfigBuilder_; /** - * - * *
      * Configuration for image classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; * @return Whether the imageClassificationConfig field is set. */ @java.lang.Override @@ -1728,25 +1393,18 @@ public boolean hasImageClassificationConfig() { return annotationRequestConfigCase_ == 2; } /** - * - * *
      * Configuration for image classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; * @return The imageClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig - getImageClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageClassificationConfig() { if (imageClassificationConfigBuilder_ == null) { if (annotationRequestConfigCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } else { @@ -1757,18 +1415,13 @@ public boolean hasImageClassificationConfig() { } } /** - * - * *
      * Configuration for image classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; */ - public Builder setImageClassificationConfig( - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { + public Builder setImageClassificationConfig(com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { if (imageClassificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1782,15 +1435,11 @@ public Builder setImageClassificationConfig( return this; } /** - * - * *
      * Configuration for image classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; */ public Builder setImageClassificationConfig( com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder builderForValue) { @@ -1804,29 +1453,18 @@ public Builder setImageClassificationConfig( return this; } /** - * - * *
      * Configuration for image classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; */ - public Builder mergeImageClassificationConfig( - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { + public Builder mergeImageClassificationConfig(com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { if (imageClassificationConfigBuilder_ == null) { - if (annotationRequestConfigCase_ == 2 - && annotationRequestConfig_ - != com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig - .getDefaultInstance()) { - annotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.newBuilder( - (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - annotationRequestConfig_) - .mergeFrom(value) - .buildPartial(); + if (annotationRequestConfigCase_ == 2 && + annotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance()) { + annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) annotationRequestConfig_) + .mergeFrom(value).buildPartial(); } else { annotationRequestConfig_ = value; } @@ -1842,15 +1480,11 @@ public Builder mergeImageClassificationConfig( return this; } /** - * - * *
      * Configuration for image classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; */ public Builder clearImageClassificationConfig() { if (imageClassificationConfigBuilder_ == null) { @@ -1869,96 +1503,67 @@ public Builder clearImageClassificationConfig() { return this; } /** - * - * *
      * Configuration for image classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; */ - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder - getImageClassificationConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder getImageClassificationConfigBuilder() { return getImageClassificationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for image classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder - getImageClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder getImageClassificationConfigOrBuilder() { if ((annotationRequestConfigCase_ == 2) && (imageClassificationConfigBuilder_ != null)) { return imageClassificationConfigBuilder_.getMessageOrBuilder(); } else { if (annotationRequestConfigCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } } /** - * - * *
      * Configuration for image classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder> getImageClassificationConfigFieldBuilder() { if (imageClassificationConfigBuilder_ == null) { if (!(annotationRequestConfigCase_ == 2)) { - annotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); + annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } - imageClassificationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - annotationRequestConfig_, + imageClassificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) annotationRequestConfig_, getParentForChildren(), isClean()); annotationRequestConfig_ = null; } annotationRequestConfigCase_ = 2; - onChanged(); - ; + onChanged();; return imageClassificationConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder> - boundingPolyConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder> boundingPolyConfigBuilder_; /** - * - * *
      * Configuration for image bounding box and bounding poly task.
      * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; - * * @return Whether the boundingPolyConfig field is set. */ @java.lang.Override @@ -1966,22 +1571,18 @@ public boolean hasBoundingPolyConfig() { return annotationRequestConfigCase_ == 3; } /** - * - * *
      * Configuration for image bounding box and bounding poly task.
      * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; - * * @return The boundingPolyConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyConfig() { if (boundingPolyConfigBuilder_ == null) { if (annotationRequestConfigCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance(); } else { @@ -1992,16 +1593,13 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyC } } /** - * - * *
      * Configuration for image bounding box and bounding poly task.
      * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; */ - public Builder setBoundingPolyConfig( - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) { + public Builder setBoundingPolyConfig(com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) { if (boundingPolyConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2015,8 +1613,6 @@ public Builder setBoundingPolyConfig( return this; } /** - * - * *
      * Configuration for image bounding box and bounding poly task.
      * 
@@ -2035,26 +1631,18 @@ public Builder setBoundingPolyConfig( return this; } /** - * - * *
      * Configuration for image bounding box and bounding poly task.
      * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; */ - public Builder mergeBoundingPolyConfig( - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) { + public Builder mergeBoundingPolyConfig(com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) { if (boundingPolyConfigBuilder_ == null) { - if (annotationRequestConfigCase_ == 3 - && annotationRequestConfig_ - != com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance()) { - annotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.newBuilder( - (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) - annotationRequestConfig_) - .mergeFrom(value) - .buildPartial(); + if (annotationRequestConfigCase_ == 3 && + annotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance()) { + annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_) + .mergeFrom(value).buildPartial(); } else { annotationRequestConfig_ = value; } @@ -2070,8 +1658,6 @@ public Builder mergeBoundingPolyConfig( return this; } /** - * - * *
      * Configuration for image bounding box and bounding poly task.
      * 
@@ -2095,21 +1681,16 @@ public Builder clearBoundingPolyConfig() { return this; } /** - * - * *
      * Configuration for image bounding box and bounding poly task.
      * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; */ - public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder - getBoundingPolyConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder getBoundingPolyConfigBuilder() { return getBoundingPolyConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for image bounding box and bounding poly task.
      * 
@@ -2117,21 +1698,17 @@ public Builder clearBoundingPolyConfig() { * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder - getBoundingPolyConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoundingPolyConfigOrBuilder() { if ((annotationRequestConfigCase_ == 3) && (boundingPolyConfigBuilder_ != null)) { return boundingPolyConfigBuilder_.getMessageOrBuilder(); } else { if (annotationRequestConfigCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance(); } } /** - * - * *
      * Configuration for image bounding box and bounding poly task.
      * 
@@ -2139,45 +1716,32 @@ public Builder clearBoundingPolyConfig() { * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder> getBoundingPolyConfigFieldBuilder() { if (boundingPolyConfigBuilder_ == null) { if (!(annotationRequestConfigCase_ == 3)) { - annotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance(); + annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance(); } - boundingPolyConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder>( + boundingPolyConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder>( (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_, getParentForChildren(), isClean()); annotationRequestConfig_ = null; } annotationRequestConfigCase_ = 3; - onChanged(); - ; + onChanged();; return boundingPolyConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.PolylineConfig, - com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder, - com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder> - polylineConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.PolylineConfig, com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder, com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder> polylineConfigBuilder_; /** - * - * *
      * Configuration for image polyline task.
      * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 4; - * * @return Whether the polylineConfig field is set. */ @java.lang.Override @@ -2185,14 +1749,11 @@ public boolean hasPolylineConfig() { return annotationRequestConfigCase_ == 4; } /** - * - * *
      * Configuration for image polyline task.
      * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 4; - * * @return The polylineConfig. */ @java.lang.Override @@ -2210,8 +1771,6 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig getPolylineConfig() } } /** - * - * *
      * Configuration for image polyline task.
      * 
@@ -2232,8 +1791,6 @@ public Builder setPolylineConfig(com.google.cloud.datalabeling.v1beta1.PolylineC return this; } /** - * - * *
      * Configuration for image polyline task.
      * 
@@ -2252,8 +1809,6 @@ public Builder setPolylineConfig( return this; } /** - * - * *
      * Configuration for image polyline task.
      * 
@@ -2262,15 +1817,10 @@ public Builder setPolylineConfig( */ public Builder mergePolylineConfig(com.google.cloud.datalabeling.v1beta1.PolylineConfig value) { if (polylineConfigBuilder_ == null) { - if (annotationRequestConfigCase_ == 4 - && annotationRequestConfig_ - != com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance()) { - annotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.PolylineConfig.newBuilder( - (com.google.cloud.datalabeling.v1beta1.PolylineConfig) - annotationRequestConfig_) - .mergeFrom(value) - .buildPartial(); + if (annotationRequestConfigCase_ == 4 && + annotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance()) { + annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.PolylineConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_) + .mergeFrom(value).buildPartial(); } else { annotationRequestConfig_ = value; } @@ -2286,8 +1836,6 @@ public Builder mergePolylineConfig(com.google.cloud.datalabeling.v1beta1.Polylin return this; } /** - * - * *
      * Configuration for image polyline task.
      * 
@@ -2311,8 +1859,6 @@ public Builder clearPolylineConfig() { return this; } /** - * - * *
      * Configuration for image polyline task.
      * 
@@ -2323,8 +1869,6 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder getPolylineC return getPolylineConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for image polyline task.
      * 
@@ -2332,8 +1876,7 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder getPolylineC * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 4; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder - getPolylineConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder getPolylineConfigOrBuilder() { if ((annotationRequestConfigCase_ == 4) && (polylineConfigBuilder_ != null)) { return polylineConfigBuilder_.getMessageOrBuilder(); } else { @@ -2344,8 +1887,6 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder getPolylineC } } /** - * - * *
      * Configuration for image polyline task.
      * 
@@ -2353,45 +1894,32 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder getPolylineC * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.PolylineConfig, - com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder, - com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.PolylineConfig, com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder, com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder> getPolylineConfigFieldBuilder() { if (polylineConfigBuilder_ == null) { if (!(annotationRequestConfigCase_ == 4)) { - annotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance(); + annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance(); } - polylineConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.PolylineConfig, - com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder, - com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder>( + polylineConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.PolylineConfig, com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder, com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder>( (com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_, getParentForChildren(), isClean()); annotationRequestConfig_ = null; } annotationRequestConfigCase_ = 4; - onChanged(); - ; + onChanged();; return polylineConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SegmentationConfig, - com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder> - segmentationConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.SegmentationConfig, com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder, com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder> segmentationConfigBuilder_; /** - * - * *
      * Configuration for image segmentation task.
      * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; - * * @return Whether the segmentationConfig field is set. */ @java.lang.Override @@ -2399,22 +1927,18 @@ public boolean hasSegmentationConfig() { return annotationRequestConfigCase_ == 5; } /** - * - * *
      * Configuration for image segmentation task.
      * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; - * * @return The segmentationConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SegmentationConfig getSegmentationConfig() { if (segmentationConfigBuilder_ == null) { if (annotationRequestConfigCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance(); } else { @@ -2425,16 +1949,13 @@ public com.google.cloud.datalabeling.v1beta1.SegmentationConfig getSegmentationC } } /** - * - * *
      * Configuration for image segmentation task.
      * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; */ - public Builder setSegmentationConfig( - com.google.cloud.datalabeling.v1beta1.SegmentationConfig value) { + public Builder setSegmentationConfig(com.google.cloud.datalabeling.v1beta1.SegmentationConfig value) { if (segmentationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2448,8 +1969,6 @@ public Builder setSegmentationConfig( return this; } /** - * - * *
      * Configuration for image segmentation task.
      * 
@@ -2468,26 +1987,18 @@ public Builder setSegmentationConfig( return this; } /** - * - * *
      * Configuration for image segmentation task.
      * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; */ - public Builder mergeSegmentationConfig( - com.google.cloud.datalabeling.v1beta1.SegmentationConfig value) { + public Builder mergeSegmentationConfig(com.google.cloud.datalabeling.v1beta1.SegmentationConfig value) { if (segmentationConfigBuilder_ == null) { - if (annotationRequestConfigCase_ == 5 - && annotationRequestConfig_ - != com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance()) { - annotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.SegmentationConfig.newBuilder( - (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) - annotationRequestConfig_) - .mergeFrom(value) - .buildPartial(); + if (annotationRequestConfigCase_ == 5 && + annotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance()) { + annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.SegmentationConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_) + .mergeFrom(value).buildPartial(); } else { annotationRequestConfig_ = value; } @@ -2503,8 +2014,6 @@ public Builder mergeSegmentationConfig( return this; } /** - * - * *
      * Configuration for image segmentation task.
      * 
@@ -2528,21 +2037,16 @@ public Builder clearSegmentationConfig() { return this; } /** - * - * *
      * Configuration for image segmentation task.
      * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; */ - public com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder - getSegmentationConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder getSegmentationConfigBuilder() { return getSegmentationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for image segmentation task.
      * 
@@ -2550,21 +2054,17 @@ public Builder clearSegmentationConfig() { * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder - getSegmentationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder getSegmentationConfigOrBuilder() { if ((annotationRequestConfigCase_ == 5) && (segmentationConfigBuilder_ != null)) { return segmentationConfigBuilder_.getMessageOrBuilder(); } else { if (annotationRequestConfigCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance(); } } /** - * - * *
      * Configuration for image segmentation task.
      * 
@@ -2572,47 +2072,32 @@ public Builder clearSegmentationConfig() { * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SegmentationConfig, - com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.SegmentationConfig, com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder, com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder> getSegmentationConfigFieldBuilder() { if (segmentationConfigBuilder_ == null) { if (!(annotationRequestConfigCase_ == 5)) { - annotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance(); + annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance(); } - segmentationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SegmentationConfig, - com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder>( + segmentationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.SegmentationConfig, com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder, com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder>( (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_, getParentForChildren(), isClean()); annotationRequestConfig_ = null; } annotationRequestConfigCase_ = 5; - onChanged(); - ; + onChanged();; return segmentationConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder> - videoClassificationConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder> videoClassificationConfigBuilder_; /** - * - * *
      * Configuration for video classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; * @return Whether the videoClassificationConfig field is set. */ @java.lang.Override @@ -2620,25 +2105,18 @@ public boolean hasVideoClassificationConfig() { return annotationRequestConfigCase_ == 6; } /** - * - * *
      * Configuration for video classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; * @return The videoClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - getVideoClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig getVideoClassificationConfig() { if (videoClassificationConfigBuilder_ == null) { if (annotationRequestConfigCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); } else { @@ -2649,18 +2127,13 @@ public boolean hasVideoClassificationConfig() { } } /** - * - * *
      * Configuration for video classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; */ - public Builder setVideoClassificationConfig( - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig value) { + public Builder setVideoClassificationConfig(com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig value) { if (videoClassificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2674,15 +2147,11 @@ public Builder setVideoClassificationConfig( return this; } /** - * - * *
      * Configuration for video classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; */ public Builder setVideoClassificationConfig( com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder builderForValue) { @@ -2696,29 +2165,18 @@ public Builder setVideoClassificationConfig( return this; } /** - * - * *
      * Configuration for video classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; */ - public Builder mergeVideoClassificationConfig( - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig value) { + public Builder mergeVideoClassificationConfig(com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig value) { if (videoClassificationConfigBuilder_ == null) { - if (annotationRequestConfigCase_ == 6 - && annotationRequestConfig_ - != com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .getDefaultInstance()) { - annotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.newBuilder( - (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - annotationRequestConfig_) - .mergeFrom(value) - .buildPartial(); + if (annotationRequestConfigCase_ == 6 && + annotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance()) { + annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) annotationRequestConfig_) + .mergeFrom(value).buildPartial(); } else { annotationRequestConfig_ = value; } @@ -2734,15 +2192,11 @@ public Builder mergeVideoClassificationConfig( return this; } /** - * - * *
      * Configuration for video classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; */ public Builder clearVideoClassificationConfig() { if (videoClassificationConfigBuilder_ == null) { @@ -2761,97 +2215,67 @@ public Builder clearVideoClassificationConfig() { return this; } /** - * - * *
      * Configuration for video classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; */ - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder - getVideoClassificationConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder getVideoClassificationConfigBuilder() { return getVideoClassificationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for video classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder - getVideoClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder getVideoClassificationConfigOrBuilder() { if ((annotationRequestConfigCase_ == 6) && (videoClassificationConfigBuilder_ != null)) { return videoClassificationConfigBuilder_.getMessageOrBuilder(); } else { if (annotationRequestConfigCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); } } /** - * - * *
      * Configuration for video classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder> getVideoClassificationConfigFieldBuilder() { if (videoClassificationConfigBuilder_ == null) { if (!(annotationRequestConfigCase_ == 6)) { - annotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); + annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); } - videoClassificationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - annotationRequestConfig_, + videoClassificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) annotationRequestConfig_, getParentForChildren(), isClean()); annotationRequestConfig_ = null; } annotationRequestConfigCase_ = 6; - onChanged(); - ; + onChanged();; return videoClassificationConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder> - objectDetectionConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder> objectDetectionConfigBuilder_; /** - * - * *
      * Configuration for video object detection task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; * @return Whether the objectDetectionConfig field is set. */ @java.lang.Override @@ -2859,23 +2283,18 @@ public boolean hasObjectDetectionConfig() { return annotationRequestConfigCase_ == 7; } /** - * - * *
      * Configuration for video object detection task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; * @return The objectDetectionConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig getObjectDetectionConfig() { if (objectDetectionConfigBuilder_ == null) { if (annotationRequestConfigCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); } else { @@ -2886,17 +2305,13 @@ public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig getObjectDete } } /** - * - * *
      * Configuration for video object detection task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; */ - public Builder setObjectDetectionConfig( - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig value) { + public Builder setObjectDetectionConfig(com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig value) { if (objectDetectionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2910,14 +2325,11 @@ public Builder setObjectDetectionConfig( return this; } /** - * - * *
      * Configuration for video object detection task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; */ public Builder setObjectDetectionConfig( com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder builderForValue) { @@ -2931,28 +2343,18 @@ public Builder setObjectDetectionConfig( return this; } /** - * - * *
      * Configuration for video object detection task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; */ - public Builder mergeObjectDetectionConfig( - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig value) { + public Builder mergeObjectDetectionConfig(com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig value) { if (objectDetectionConfigBuilder_ == null) { - if (annotationRequestConfigCase_ == 7 - && annotationRequestConfig_ - != com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig - .getDefaultInstance()) { - annotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.newBuilder( - (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) - annotationRequestConfig_) - .mergeFrom(value) - .buildPartial(); + if (annotationRequestConfigCase_ == 7 && + annotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance()) { + annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_) + .mergeFrom(value).buildPartial(); } else { annotationRequestConfig_ = value; } @@ -2968,14 +2370,11 @@ public Builder mergeObjectDetectionConfig( return this; } /** - * - * *
      * Configuration for video object detection task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; */ public Builder clearObjectDetectionConfig() { if (objectDetectionConfigBuilder_ == null) { @@ -2994,94 +2393,67 @@ public Builder clearObjectDetectionConfig() { return this; } /** - * - * *
      * Configuration for video object detection task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; */ - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder - getObjectDetectionConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder getObjectDetectionConfigBuilder() { return getObjectDetectionConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for video object detection task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder - getObjectDetectionConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder getObjectDetectionConfigOrBuilder() { if ((annotationRequestConfigCase_ == 7) && (objectDetectionConfigBuilder_ != null)) { return objectDetectionConfigBuilder_.getMessageOrBuilder(); } else { if (annotationRequestConfigCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); } } /** - * - * *
      * Configuration for video object detection task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder> getObjectDetectionConfigFieldBuilder() { if (objectDetectionConfigBuilder_ == null) { if (!(annotationRequestConfigCase_ == 7)) { - annotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); + annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); } - objectDetectionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) - annotationRequestConfig_, + objectDetectionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_, getParentForChildren(), isClean()); annotationRequestConfig_ = null; } annotationRequestConfigCase_ = 7; - onChanged(); - ; + onChanged();; return objectDetectionConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder> - objectTrackingConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder> objectTrackingConfigBuilder_; /** - * - * *
      * Configuration for video object tracking task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; * @return Whether the objectTrackingConfig field is set. */ @java.lang.Override @@ -3089,23 +2461,18 @@ public boolean hasObjectTrackingConfig() { return annotationRequestConfigCase_ == 8; } /** - * - * *
      * Configuration for video object tracking task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; * @return The objectTrackingConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig getObjectTrackingConfig() { if (objectTrackingConfigBuilder_ == null) { if (annotationRequestConfigCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); } else { @@ -3116,17 +2483,13 @@ public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig getObjectTrack } } /** - * - * *
      * Configuration for video object tracking task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; */ - public Builder setObjectTrackingConfig( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig value) { + public Builder setObjectTrackingConfig(com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig value) { if (objectTrackingConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3140,14 +2503,11 @@ public Builder setObjectTrackingConfig( return this; } /** - * - * *
      * Configuration for video object tracking task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; */ public Builder setObjectTrackingConfig( com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder builderForValue) { @@ -3161,28 +2521,18 @@ public Builder setObjectTrackingConfig( return this; } /** - * - * *
      * Configuration for video object tracking task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; */ - public Builder mergeObjectTrackingConfig( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig value) { + public Builder mergeObjectTrackingConfig(com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig value) { if (objectTrackingConfigBuilder_ == null) { - if (annotationRequestConfigCase_ == 8 - && annotationRequestConfig_ - != com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig - .getDefaultInstance()) { - annotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.newBuilder( - (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) - annotationRequestConfig_) - .mergeFrom(value) - .buildPartial(); + if (annotationRequestConfigCase_ == 8 && + annotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance()) { + annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_) + .mergeFrom(value).buildPartial(); } else { annotationRequestConfig_ = value; } @@ -3198,14 +2548,11 @@ public Builder mergeObjectTrackingConfig( return this; } /** - * - * *
      * Configuration for video object tracking task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; */ public Builder clearObjectTrackingConfig() { if (objectTrackingConfigBuilder_ == null) { @@ -3224,93 +2571,67 @@ public Builder clearObjectTrackingConfig() { return this; } /** - * - * *
      * Configuration for video object tracking task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; */ - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder - getObjectTrackingConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder getObjectTrackingConfigBuilder() { return getObjectTrackingConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for video object tracking task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder - getObjectTrackingConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder getObjectTrackingConfigOrBuilder() { if ((annotationRequestConfigCase_ == 8) && (objectTrackingConfigBuilder_ != null)) { return objectTrackingConfigBuilder_.getMessageOrBuilder(); } else { if (annotationRequestConfigCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); } } /** - * - * *
      * Configuration for video object tracking task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder> getObjectTrackingConfigFieldBuilder() { if (objectTrackingConfigBuilder_ == null) { if (!(annotationRequestConfigCase_ == 8)) { - annotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); + annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); } - objectTrackingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) - annotationRequestConfig_, + objectTrackingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_, getParentForChildren(), isClean()); annotationRequestConfig_ = null; } annotationRequestConfigCase_ = 8; - onChanged(); - ; + onChanged();; return objectTrackingConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EventConfig, - com.google.cloud.datalabeling.v1beta1.EventConfig.Builder, - com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder> - eventConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.EventConfig, com.google.cloud.datalabeling.v1beta1.EventConfig.Builder, com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder> eventConfigBuilder_; /** - * - * *
      * Configuration for video event labeling task.
      * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 9; - * * @return Whether the eventConfig field is set. */ @java.lang.Override @@ -3318,14 +2639,11 @@ public boolean hasEventConfig() { return annotationRequestConfigCase_ == 9; } /** - * - * *
      * Configuration for video event labeling task.
      * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 9; - * * @return The eventConfig. */ @java.lang.Override @@ -3343,8 +2661,6 @@ public com.google.cloud.datalabeling.v1beta1.EventConfig getEventConfig() { } } /** - * - * *
      * Configuration for video event labeling task.
      * 
@@ -3365,8 +2681,6 @@ public Builder setEventConfig(com.google.cloud.datalabeling.v1beta1.EventConfig return this; } /** - * - * *
      * Configuration for video event labeling task.
      * 
@@ -3385,8 +2699,6 @@ public Builder setEventConfig( return this; } /** - * - * *
      * Configuration for video event labeling task.
      * 
@@ -3395,14 +2707,10 @@ public Builder setEventConfig( */ public Builder mergeEventConfig(com.google.cloud.datalabeling.v1beta1.EventConfig value) { if (eventConfigBuilder_ == null) { - if (annotationRequestConfigCase_ == 9 - && annotationRequestConfig_ - != com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance()) { - annotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.EventConfig.newBuilder( - (com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_) - .mergeFrom(value) - .buildPartial(); + if (annotationRequestConfigCase_ == 9 && + annotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance()) { + annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.EventConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_) + .mergeFrom(value).buildPartial(); } else { annotationRequestConfig_ = value; } @@ -3418,8 +2726,6 @@ public Builder mergeEventConfig(com.google.cloud.datalabeling.v1beta1.EventConfi return this; } /** - * - * *
      * Configuration for video event labeling task.
      * 
@@ -3443,8 +2749,6 @@ public Builder clearEventConfig() { return this; } /** - * - * *
      * Configuration for video event labeling task.
      * 
@@ -3455,8 +2759,6 @@ public com.google.cloud.datalabeling.v1beta1.EventConfig.Builder getEventConfigB return getEventConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for video event labeling task.
      * 
@@ -3475,8 +2777,6 @@ public com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder getEventConfig } } /** - * - * *
      * Configuration for video event labeling task.
      * 
@@ -3484,47 +2784,32 @@ public com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder getEventConfig * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EventConfig, - com.google.cloud.datalabeling.v1beta1.EventConfig.Builder, - com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.EventConfig, com.google.cloud.datalabeling.v1beta1.EventConfig.Builder, com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder> getEventConfigFieldBuilder() { if (eventConfigBuilder_ == null) { if (!(annotationRequestConfigCase_ == 9)) { - annotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance(); + annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance(); } - eventConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EventConfig, - com.google.cloud.datalabeling.v1beta1.EventConfig.Builder, - com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder>( + eventConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.EventConfig, com.google.cloud.datalabeling.v1beta1.EventConfig.Builder, com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder>( (com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_, getParentForChildren(), isClean()); annotationRequestConfig_ = null; } annotationRequestConfigCase_ = 9; - onChanged(); - ; + onChanged();; return eventConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder> - textClassificationConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder> textClassificationConfigBuilder_; /** - * - * *
      * Configuration for text classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; * @return Whether the textClassificationConfig field is set. */ @java.lang.Override @@ -3532,25 +2817,18 @@ public boolean hasTextClassificationConfig() { return annotationRequestConfigCase_ == 10; } /** - * - * *
      * Configuration for text classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; * @return The textClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig - getTextClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextClassificationConfig() { if (textClassificationConfigBuilder_ == null) { if (annotationRequestConfigCase_ == 10) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } else { @@ -3561,18 +2839,13 @@ public boolean hasTextClassificationConfig() { } } /** - * - * *
      * Configuration for text classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; */ - public Builder setTextClassificationConfig( - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { + public Builder setTextClassificationConfig(com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { if (textClassificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3586,15 +2859,11 @@ public Builder setTextClassificationConfig( return this; } /** - * - * *
      * Configuration for text classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; */ public Builder setTextClassificationConfig( com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder builderForValue) { @@ -3608,29 +2877,18 @@ public Builder setTextClassificationConfig( return this; } /** - * - * *
      * Configuration for text classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; */ - public Builder mergeTextClassificationConfig( - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { + public Builder mergeTextClassificationConfig(com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { if (textClassificationConfigBuilder_ == null) { - if (annotationRequestConfigCase_ == 10 - && annotationRequestConfig_ - != com.google.cloud.datalabeling.v1beta1.TextClassificationConfig - .getDefaultInstance()) { - annotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.newBuilder( - (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) - annotationRequestConfig_) - .mergeFrom(value) - .buildPartial(); + if (annotationRequestConfigCase_ == 10 && + annotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance()) { + annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) annotationRequestConfig_) + .mergeFrom(value).buildPartial(); } else { annotationRequestConfig_ = value; } @@ -3646,15 +2904,11 @@ public Builder mergeTextClassificationConfig( return this; } /** - * - * *
      * Configuration for text classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; */ public Builder clearTextClassificationConfig() { if (textClassificationConfigBuilder_ == null) { @@ -3673,98 +2927,67 @@ public Builder clearTextClassificationConfig() { return this; } /** - * - * *
      * Configuration for text classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; */ - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder - getTextClassificationConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder getTextClassificationConfigBuilder() { return getTextClassificationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for text classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder - getTextClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder getTextClassificationConfigOrBuilder() { if ((annotationRequestConfigCase_ == 10) && (textClassificationConfigBuilder_ != null)) { return textClassificationConfigBuilder_.getMessageOrBuilder(); } else { if (annotationRequestConfigCase_ == 10) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } } /** - * - * *
      * Configuration for text classification task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder> getTextClassificationConfigFieldBuilder() { if (textClassificationConfigBuilder_ == null) { if (!(annotationRequestConfigCase_ == 10)) { - annotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); + annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } - textClassificationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) - annotationRequestConfig_, + textClassificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) annotationRequestConfig_, getParentForChildren(), isClean()); annotationRequestConfig_ = null; } annotationRequestConfigCase_ = 10; - onChanged(); - ; + onChanged();; return textClassificationConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder> - textEntityExtractionConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder> textEntityExtractionConfigBuilder_; /** - * - * *
      * Configuration for text entity extraction task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; - * - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; * @return Whether the textEntityExtractionConfig field is set. */ @java.lang.Override @@ -3772,49 +2995,35 @@ public boolean hasTextEntityExtractionConfig() { return annotationRequestConfigCase_ == 11; } /** - * - * *
      * Configuration for text entity extraction task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; - * - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; * @return The textEntityExtractionConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig - getTextEntityExtractionConfig() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig getTextEntityExtractionConfig() { if (textEntityExtractionConfigBuilder_ == null) { if (annotationRequestConfigCase_ == 11) { - return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) annotationRequestConfig_; } - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); } else { if (annotationRequestConfigCase_ == 11) { return textEntityExtractionConfigBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); } } /** - * - * *
      * Configuration for text entity extraction task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; */ - public Builder setTextEntityExtractionConfig( - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig value) { + public Builder setTextEntityExtractionConfig(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig value) { if (textEntityExtractionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3828,15 +3037,11 @@ public Builder setTextEntityExtractionConfig( return this; } /** - * - * *
      * Configuration for text entity extraction task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; */ public Builder setTextEntityExtractionConfig( com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder builderForValue) { @@ -3850,29 +3055,18 @@ public Builder setTextEntityExtractionConfig( return this; } /** - * - * *
      * Configuration for text entity extraction task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; */ - public Builder mergeTextEntityExtractionConfig( - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig value) { + public Builder mergeTextEntityExtractionConfig(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig value) { if (textEntityExtractionConfigBuilder_ == null) { - if (annotationRequestConfigCase_ == 11 - && annotationRequestConfig_ - != com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig - .getDefaultInstance()) { - annotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.newBuilder( - (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) - annotationRequestConfig_) - .mergeFrom(value) - .buildPartial(); + if (annotationRequestConfigCase_ == 11 && + annotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance()) { + annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) annotationRequestConfig_) + .mergeFrom(value).buildPartial(); } else { annotationRequestConfig_ = value; } @@ -3888,15 +3082,11 @@ public Builder mergeTextEntityExtractionConfig( return this; } /** - * - * *
      * Configuration for text entity extraction task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; */ public Builder clearTextEntityExtractionConfig() { if (textEntityExtractionConfigBuilder_ == null) { @@ -3915,140 +3105,99 @@ public Builder clearTextEntityExtractionConfig() { return this; } /** - * - * *
      * Configuration for text entity extraction task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; */ - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder - getTextEntityExtractionConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder getTextEntityExtractionConfigBuilder() { return getTextEntityExtractionConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for text entity extraction task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder - getTextEntityExtractionConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder getTextEntityExtractionConfigOrBuilder() { if ((annotationRequestConfigCase_ == 11) && (textEntityExtractionConfigBuilder_ != null)) { return textEntityExtractionConfigBuilder_.getMessageOrBuilder(); } else { if (annotationRequestConfigCase_ == 11) { - return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) - annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) annotationRequestConfig_; } - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); } } /** - * - * *
      * Configuration for text entity extraction task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder> getTextEntityExtractionConfigFieldBuilder() { if (textEntityExtractionConfigBuilder_ == null) { if (!(annotationRequestConfigCase_ == 11)) { - annotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); + annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); } - textEntityExtractionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) - annotationRequestConfig_, + textEntityExtractionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) annotationRequestConfig_, getParentForChildren(), isClean()); annotationRequestConfig_ = null; } annotationRequestConfigCase_ = 11; - onChanged(); - ; + onChanged();; return textEntityExtractionConfigBuilder_; } private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig humanAnnotationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> - humanAnnotationConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> humanAnnotationConfigBuilder_; /** - * - * *
      * HumanAnnotationConfig used when requesting the human labeling task for this
      * AnnotatedDataset.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; * @return Whether the humanAnnotationConfig field is set. */ public boolean hasHumanAnnotationConfig() { return humanAnnotationConfigBuilder_ != null || humanAnnotationConfig_ != null; } /** - * - * *
      * HumanAnnotationConfig used when requesting the human labeling task for this
      * AnnotatedDataset.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; * @return The humanAnnotationConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getHumanAnnotationConfig() { if (humanAnnotationConfigBuilder_ == null) { - return humanAnnotationConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : humanAnnotationConfig_; + return humanAnnotationConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : humanAnnotationConfig_; } else { return humanAnnotationConfigBuilder_.getMessage(); } } /** - * - * *
      * HumanAnnotationConfig used when requesting the human labeling task for this
      * AnnotatedDataset.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; */ - public Builder setHumanAnnotationConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setHumanAnnotationConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (humanAnnotationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4062,15 +3211,12 @@ public Builder setHumanAnnotationConfig( return this; } /** - * - * *
      * HumanAnnotationConfig used when requesting the human labeling task for this
      * AnnotatedDataset.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; */ public Builder setHumanAnnotationConfig( com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder builderForValue) { @@ -4084,25 +3230,18 @@ public Builder setHumanAnnotationConfig( return this; } /** - * - * *
      * HumanAnnotationConfig used when requesting the human labeling task for this
      * AnnotatedDataset.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; */ - public Builder mergeHumanAnnotationConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeHumanAnnotationConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (humanAnnotationConfigBuilder_ == null) { if (humanAnnotationConfig_ != null) { humanAnnotationConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder( - humanAnnotationConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(humanAnnotationConfig_).mergeFrom(value).buildPartial(); } else { humanAnnotationConfig_ = value; } @@ -4114,15 +3253,12 @@ public Builder mergeHumanAnnotationConfig( return this; } /** - * - * *
      * HumanAnnotationConfig used when requesting the human labeling task for this
      * AnnotatedDataset.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; */ public Builder clearHumanAnnotationConfig() { if (humanAnnotationConfigBuilder_ == null) { @@ -4136,73 +3272,58 @@ public Builder clearHumanAnnotationConfig() { return this; } /** - * - * *
      * HumanAnnotationConfig used when requesting the human labeling task for this
      * AnnotatedDataset.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder - getHumanAnnotationConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getHumanAnnotationConfigBuilder() { + onChanged(); return getHumanAnnotationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * HumanAnnotationConfig used when requesting the human labeling task for this
      * AnnotatedDataset.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getHumanAnnotationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getHumanAnnotationConfigOrBuilder() { if (humanAnnotationConfigBuilder_ != null) { return humanAnnotationConfigBuilder_.getMessageOrBuilder(); } else { - return humanAnnotationConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : humanAnnotationConfig_; + return humanAnnotationConfig_ == null ? + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : humanAnnotationConfig_; } } /** - * - * *
      * HumanAnnotationConfig used when requesting the human labeling task for this
      * AnnotatedDataset.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getHumanAnnotationConfigFieldBuilder() { if (humanAnnotationConfigBuilder_ == null) { - humanAnnotationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getHumanAnnotationConfig(), getParentForChildren(), isClean()); + humanAnnotationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getHumanAnnotationConfig(), + getParentForChildren(), + isClean()); humanAnnotationConfig_ = null; } return humanAnnotationConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4212,32 +3333,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata) - private static final com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotatedDatasetMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotatedDatasetMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotatedDatasetMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotatedDatasetMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4249,8 +3368,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadataOrBuilder.java similarity index 70% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadataOrBuilder.java index c21880c0..6d49f31b 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadataOrBuilder.java @@ -1,133 +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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; -public interface AnnotatedDatasetMetadataOrBuilder - extends +public interface AnnotatedDatasetMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Configuration for image classification task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; * @return Whether the imageClassificationConfig field is set. */ boolean hasImageClassificationConfig(); /** - * - * *
    * Configuration for image classification task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; * @return The imageClassificationConfig. */ com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageClassificationConfig(); /** - * - * *
    * Configuration for image classification task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; */ - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder - getImageClassificationConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder getImageClassificationConfigOrBuilder(); /** - * - * *
    * Configuration for image bounding box and bounding poly task.
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; - * * @return Whether the boundingPolyConfig field is set. */ boolean hasBoundingPolyConfig(); /** - * - * *
    * Configuration for image bounding box and bounding poly task.
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; - * * @return The boundingPolyConfig. */ com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyConfig(); /** - * - * *
    * Configuration for image bounding box and bounding poly task.
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; */ - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder - getBoundingPolyConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoundingPolyConfigOrBuilder(); /** - * - * *
    * Configuration for image polyline task.
    * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 4; - * * @return Whether the polylineConfig field is set. */ boolean hasPolylineConfig(); /** - * - * *
    * Configuration for image polyline task.
    * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 4; - * * @return The polylineConfig. */ com.google.cloud.datalabeling.v1beta1.PolylineConfig getPolylineConfig(); /** - * - * *
    * Configuration for image polyline task.
    * 
@@ -137,188 +89,132 @@ public interface AnnotatedDatasetMetadataOrBuilder com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder getPolylineConfigOrBuilder(); /** - * - * *
    * Configuration for image segmentation task.
    * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; - * * @return Whether the segmentationConfig field is set. */ boolean hasSegmentationConfig(); /** - * - * *
    * Configuration for image segmentation task.
    * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; - * * @return The segmentationConfig. */ com.google.cloud.datalabeling.v1beta1.SegmentationConfig getSegmentationConfig(); /** - * - * *
    * Configuration for image segmentation task.
    * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; */ - com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder - getSegmentationConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder getSegmentationConfigOrBuilder(); /** - * - * *
    * Configuration for video classification task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; * @return Whether the videoClassificationConfig field is set. */ boolean hasVideoClassificationConfig(); /** - * - * *
    * Configuration for video classification task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; * @return The videoClassificationConfig. */ com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig getVideoClassificationConfig(); /** - * - * *
    * Configuration for video classification task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; */ - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder - getVideoClassificationConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder getVideoClassificationConfigOrBuilder(); /** - * - * *
    * Configuration for video object detection task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; * @return Whether the objectDetectionConfig field is set. */ boolean hasObjectDetectionConfig(); /** - * - * *
    * Configuration for video object detection task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; * @return The objectDetectionConfig. */ com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig getObjectDetectionConfig(); /** - * - * *
    * Configuration for video object detection task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; */ - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder - getObjectDetectionConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder getObjectDetectionConfigOrBuilder(); /** - * - * *
    * Configuration for video object tracking task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; * @return Whether the objectTrackingConfig field is set. */ boolean hasObjectTrackingConfig(); /** - * - * *
    * Configuration for video object tracking task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; * @return The objectTrackingConfig. */ com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig getObjectTrackingConfig(); /** - * - * *
    * Configuration for video object tracking task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; */ - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder - getObjectTrackingConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder getObjectTrackingConfigOrBuilder(); /** - * - * *
    * Configuration for video event labeling task.
    * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 9; - * * @return Whether the eventConfig field is set. */ boolean hasEventConfig(); /** - * - * *
    * Configuration for video event labeling task.
    * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 9; - * * @return The eventConfig. */ com.google.cloud.datalabeling.v1beta1.EventConfig getEventConfig(); /** - * - * *
    * Configuration for video event labeling task.
    * 
@@ -328,131 +224,88 @@ public interface AnnotatedDatasetMetadataOrBuilder com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder getEventConfigOrBuilder(); /** - * - * *
    * Configuration for text classification task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; * @return Whether the textClassificationConfig field is set. */ boolean hasTextClassificationConfig(); /** - * - * *
    * Configuration for text classification task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; * @return The textClassificationConfig. */ com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextClassificationConfig(); /** - * - * *
    * Configuration for text classification task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; */ - com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder - getTextClassificationConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder getTextClassificationConfigOrBuilder(); /** - * - * *
    * Configuration for text entity extraction task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; - * - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; * @return Whether the textEntityExtractionConfig field is set. */ boolean hasTextEntityExtractionConfig(); /** - * - * *
    * Configuration for text entity extraction task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; - * - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; * @return The textEntityExtractionConfig. */ com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig getTextEntityExtractionConfig(); /** - * - * *
    * Configuration for text entity extraction task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; */ - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder - getTextEntityExtractionConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder getTextEntityExtractionConfigOrBuilder(); /** - * - * *
    * HumanAnnotationConfig used when requesting the human labeling task for this
    * AnnotatedDataset.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; * @return Whether the humanAnnotationConfig field is set. */ boolean hasHumanAnnotationConfig(); /** - * - * *
    * HumanAnnotationConfig used when requesting the human labeling task for this
    * AnnotatedDataset.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; * @return The humanAnnotationConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getHumanAnnotationConfig(); /** - * - * *
    * HumanAnnotationConfig used when requesting the human labeling task for this
    * AnnotatedDataset.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; */ - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getHumanAnnotationConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getHumanAnnotationConfigOrBuilder(); - public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.AnnotationRequestConfigCase - getAnnotationRequestConfigCase(); + public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.AnnotationRequestConfigCase getAnnotationRequestConfigCase(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetName.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetName.java similarity index 100% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetName.java diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetOrBuilder.java similarity index 84% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetOrBuilder.java index d1cd45c3..b16b44c5 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetOrBuilder.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; -public interface AnnotatedDatasetOrBuilder - extends +public interface AnnotatedDatasetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.AnnotatedDataset) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. AnnotatedDataset resource name in format of:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -33,13 +15,10 @@ public interface AnnotatedDatasetOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. AnnotatedDataset resource name in format of:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -47,14 +26,12 @@ public interface AnnotatedDatasetOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The display name of the AnnotatedDataset. It is specified in
    * HumanAnnotationConfig when user starts a labeling task. Maximum of 64
@@ -62,13 +39,10 @@ public interface AnnotatedDatasetOrBuilder
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Output only. The display name of the AnnotatedDataset. It is specified in
    * HumanAnnotationConfig when user starts a labeling task. Maximum of 64
@@ -76,14 +50,12 @@ public interface AnnotatedDatasetOrBuilder
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Output only. The description of the AnnotatedDataset. It is specified in
    * HumanAnnotationConfig when user starts a labeling task. Maximum of 10000
@@ -91,13 +63,10 @@ public interface AnnotatedDatasetOrBuilder
    * 
* * string description = 9; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Output only. The description of the AnnotatedDataset. It is specified in
    * HumanAnnotationConfig when user starts a labeling task. Maximum of 10000
@@ -105,117 +74,91 @@ public interface AnnotatedDatasetOrBuilder
    * 
* * string description = 9; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. Source of the annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3; - * * @return The enum numeric value on the wire for annotationSource. */ int getAnnotationSourceValue(); /** - * - * *
    * Output only. Source of the annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3; - * * @return The annotationSource. */ com.google.cloud.datalabeling.v1beta1.AnnotationSource getAnnotationSource(); /** - * - * *
    * Output only. Type of the annotation. It is specified when starting labeling
    * task.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8; - * * @return The enum numeric value on the wire for annotationType. */ int getAnnotationTypeValue(); /** - * - * *
    * Output only. Type of the annotation. It is specified when starting labeling
    * task.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8; - * * @return The annotationType. */ com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType(); /** - * - * *
    * Output only. Number of examples in the annotated dataset.
    * 
* * int64 example_count = 4; - * * @return The exampleCount. */ long getExampleCount(); /** - * - * *
    * Output only. Number of examples that have annotation in the annotated
    * dataset.
    * 
* * int64 completed_example_count = 5; - * * @return The completedExampleCount. */ long getCompletedExampleCount(); /** - * - * *
    * Output only. Per label statistics.
    * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6; - * * @return Whether the labelStats field is set. */ boolean hasLabelStats(); /** - * - * *
    * Output only. Per label statistics.
    * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6; - * * @return The labelStats. */ com.google.cloud.datalabeling.v1beta1.LabelStats getLabelStats(); /** - * - * *
    * Output only. Per label statistics.
    * 
@@ -225,32 +168,24 @@ public interface AnnotatedDatasetOrBuilder com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder getLabelStatsOrBuilder(); /** - * - * *
    * Output only. Time the AnnotatedDataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 7; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Time the AnnotatedDataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 7; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Time the AnnotatedDataset was created.
    * 
@@ -260,32 +195,24 @@ public interface AnnotatedDatasetOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Additional information about AnnotatedDataset.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; - * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** - * - * *
    * Output only. Additional information about AnnotatedDataset.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; - * * @return The metadata. */ com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata getMetadata(); /** - * - * *
    * Output only. Additional information about AnnotatedDataset.
    * 
@@ -295,57 +222,47 @@ public interface AnnotatedDatasetOrBuilder com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder getMetadataOrBuilder(); /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotated dataset.
    * 
* * repeated string blocking_resources = 11; - * * @return A list containing the blockingResources. */ - java.util.List getBlockingResourcesList(); + java.util.List + getBlockingResourcesList(); /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotated dataset.
    * 
* * repeated string blocking_resources = 11; - * * @return The count of blockingResources. */ int getBlockingResourcesCount(); /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotated dataset.
    * 
* * repeated string blocking_resources = 11; - * * @param index The index of the element to return. * @return The blockingResources at the given index. */ java.lang.String getBlockingResources(int index); /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotated dataset.
    * 
* * repeated string blocking_resources = 11; - * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - com.google.protobuf.ByteString getBlockingResourcesBytes(int index); + com.google.protobuf.ByteString + getBlockingResourcesBytes(int index); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Annotation.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Annotation.java similarity index 71% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Annotation.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Annotation.java index 87f58fd5..bcc94956 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Annotation.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Annotation.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Annotation for Example. Each example may have one or more annotations. For
  * example in image classification problem, each image might have one or more
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.Annotation}
  */
-public final class Annotation extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Annotation extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.Annotation)
     AnnotationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Annotation.newBuilder() to construct.
   private Annotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Annotation() {
     name_ = "";
     annotationSource_ = 0;
@@ -47,15 +29,16 @@ private Annotation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Annotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Annotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,68 +57,57 @@ private Annotation(
           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 16:
-            {
-              int rawValue = input.readEnum();
+            name_ = s;
+            break;
+          }
+          case 16: {
+            int rawValue = input.readEnum();
 
-              annotationSource_ = rawValue;
-              break;
-            }
-          case 26:
-            {
-              com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder subBuilder = null;
-              if (annotationValue_ != null) {
-                subBuilder = annotationValue_.toBuilder();
-              }
-              annotationValue_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.AnnotationValue.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(annotationValue_);
-                annotationValue_ = subBuilder.buildPartial();
-              }
-
-              break;
+            annotationSource_ = rawValue;
+            break;
+          }
+          case 26: {
+            com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder subBuilder = null;
+            if (annotationValue_ != null) {
+              subBuilder = annotationValue_.toBuilder();
             }
-          case 34:
-            {
-              com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder subBuilder = null;
-              if (annotationMetadata_ != null) {
-                subBuilder = annotationMetadata_.toBuilder();
-              }
-              annotationMetadata_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(annotationMetadata_);
-                annotationMetadata_ = subBuilder.buildPartial();
-              }
-
-              break;
+            annotationValue_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationValue.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(annotationValue_);
+              annotationValue_ = subBuilder.buildPartial();
             }
-          case 48:
-            {
-              int rawValue = input.readEnum();
 
-              annotationSentiment_ = rawValue;
-              break;
+            break;
+          }
+          case 34: {
+            com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder subBuilder = null;
+            if (annotationMetadata_ != null) {
+              subBuilder = annotationMetadata_.toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            annotationMetadata_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(annotationMetadata_);
+              annotationMetadata_ = subBuilder.buildPartial();
             }
+
+            break;
+          }
+          case 48: {
+            int rawValue = input.readEnum();
+
+            annotationSentiment_ = rawValue;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -143,40 +115,35 @@ private Annotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_Annotation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Annotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_Annotation_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Annotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.Annotation.class,
-            com.google.cloud.datalabeling.v1beta1.Annotation.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.Annotation.class, com.google.cloud.datalabeling.v1beta1.Annotation.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Output only. Unique name of this annotation, format is:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_id}
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -185,30 +152,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. Unique name of this annotation, format is:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_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 { @@ -219,53 +186,39 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ANNOTATION_SOURCE_FIELD_NUMBER = 2; private int annotationSource_; /** - * - * *
    * Output only. The source of the annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2; - * * @return The enum numeric value on the wire for annotationSource. */ - @java.lang.Override - public int getAnnotationSourceValue() { + @java.lang.Override public int getAnnotationSourceValue() { return annotationSource_; } /** - * - * *
    * Output only. The source of the annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2; - * * @return The annotationSource. */ - @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSource getAnnotationSource() { + @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSource getAnnotationSource() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationSource result = - com.google.cloud.datalabeling.v1beta1.AnnotationSource.valueOf(annotationSource_); - return result == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSource.UNRECOGNIZED - : result; + com.google.cloud.datalabeling.v1beta1.AnnotationSource result = com.google.cloud.datalabeling.v1beta1.AnnotationSource.valueOf(annotationSource_); + return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSource.UNRECOGNIZED : result; } public static final int ANNOTATION_VALUE_FIELD_NUMBER = 3; private com.google.cloud.datalabeling.v1beta1.AnnotationValue annotationValue_; /** - * - * *
    * Output only. This is the actual annotation value, e.g classification,
    * bounding box values are stored here.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3; - * * @return Whether the annotationValue field is set. */ @java.lang.Override @@ -273,26 +226,19 @@ public boolean hasAnnotationValue() { return annotationValue_ != null; } /** - * - * *
    * Output only. This is the actual annotation value, e.g classification,
    * bounding box values are stored here.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3; - * * @return The annotationValue. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationValue getAnnotationValue() { - return annotationValue_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationValue.getDefaultInstance() - : annotationValue_; + return annotationValue_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationValue.getDefaultInstance() : annotationValue_; } /** - * - * *
    * Output only. This is the actual annotation value, e.g classification,
    * bounding box values are stored here.
@@ -301,23 +247,19 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationValue getAnnotationValue(
    * .google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder
-      getAnnotationValueOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder getAnnotationValueOrBuilder() {
     return getAnnotationValue();
   }
 
   public static final int ANNOTATION_METADATA_FIELD_NUMBER = 4;
   private com.google.cloud.datalabeling.v1beta1.AnnotationMetadata annotationMetadata_;
   /**
-   *
-   *
    * 
    * Output only. Annotation metadata, including information like votes
    * for labels.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4; - * * @return Whether the annotationMetadata field is set. */ @java.lang.Override @@ -325,26 +267,19 @@ public boolean hasAnnotationMetadata() { return annotationMetadata_ != null; } /** - * - * *
    * Output only. Annotation metadata, including information like votes
    * for labels.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4; - * * @return The annotationMetadata. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationMetadata getAnnotationMetadata() { - return annotationMetadata_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.getDefaultInstance() - : annotationMetadata_; + return annotationMetadata_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.getDefaultInstance() : annotationMetadata_; } /** - * - * *
    * Output only. Annotation metadata, including information like votes
    * for labels.
@@ -353,51 +288,38 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationMetadata getAnnotationMet
    * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder
-      getAnnotationMetadataOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder getAnnotationMetadataOrBuilder() {
     return getAnnotationMetadata();
   }
 
   public static final int ANNOTATION_SENTIMENT_FIELD_NUMBER = 6;
   private int annotationSentiment_;
   /**
-   *
-   *
    * 
    * Output only. Sentiment for this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6; - * * @return The enum numeric value on the wire for annotationSentiment. */ - @java.lang.Override - public int getAnnotationSentimentValue() { + @java.lang.Override public int getAnnotationSentimentValue() { return annotationSentiment_; } /** - * - * *
    * Output only. Sentiment for this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6; - * * @return The annotationSentiment. */ - @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSentiment getAnnotationSentiment() { + @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSentiment getAnnotationSentiment() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationSentiment result = - com.google.cloud.datalabeling.v1beta1.AnnotationSentiment.valueOf(annotationSentiment_); - return result == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSentiment.UNRECOGNIZED - : result; + com.google.cloud.datalabeling.v1beta1.AnnotationSentiment result = com.google.cloud.datalabeling.v1beta1.AnnotationSentiment.valueOf(annotationSentiment_); + return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSentiment.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -409,13 +331,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (annotationSource_ - != com.google.cloud.datalabeling.v1beta1.AnnotationSource.ANNOTATION_SOURCE_UNSPECIFIED - .getNumber()) { + if (annotationSource_ != com.google.cloud.datalabeling.v1beta1.AnnotationSource.ANNOTATION_SOURCE_UNSPECIFIED.getNumber()) { output.writeEnum(2, annotationSource_); } if (annotationValue_ != null) { @@ -424,10 +345,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (annotationMetadata_ != null) { output.writeMessage(4, getAnnotationMetadata()); } - if (annotationSentiment_ - != com.google.cloud.datalabeling.v1beta1.AnnotationSentiment - .ANNOTATION_SENTIMENT_UNSPECIFIED - .getNumber()) { + if (annotationSentiment_ != com.google.cloud.datalabeling.v1beta1.AnnotationSentiment.ANNOTATION_SENTIMENT_UNSPECIFIED.getNumber()) { output.writeEnum(6, annotationSentiment_); } unknownFields.writeTo(output); @@ -442,22 +360,21 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (annotationSource_ - != com.google.cloud.datalabeling.v1beta1.AnnotationSource.ANNOTATION_SOURCE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, annotationSource_); + if (annotationSource_ != com.google.cloud.datalabeling.v1beta1.AnnotationSource.ANNOTATION_SOURCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, annotationSource_); } if (annotationValue_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAnnotationValue()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAnnotationValue()); } if (annotationMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAnnotationMetadata()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAnnotationMetadata()); } - if (annotationSentiment_ - != com.google.cloud.datalabeling.v1beta1.AnnotationSentiment - .ANNOTATION_SENTIMENT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, annotationSentiment_); + if (annotationSentiment_ != com.google.cloud.datalabeling.v1beta1.AnnotationSentiment.ANNOTATION_SENTIMENT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, annotationSentiment_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -467,23 +384,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.datalabeling.v1beta1.Annotation)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.Annotation other = - (com.google.cloud.datalabeling.v1beta1.Annotation) obj; + com.google.cloud.datalabeling.v1beta1.Annotation other = (com.google.cloud.datalabeling.v1beta1.Annotation) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (annotationSource_ != other.annotationSource_) return false; if (hasAnnotationValue() != other.hasAnnotationValue()) return false; if (hasAnnotationValue()) { - if (!getAnnotationValue().equals(other.getAnnotationValue())) return false; + if (!getAnnotationValue() + .equals(other.getAnnotationValue())) return false; } if (hasAnnotationMetadata() != other.hasAnnotationMetadata()) return false; if (hasAnnotationMetadata()) { - if (!getAnnotationMetadata().equals(other.getAnnotationMetadata())) return false; + if (!getAnnotationMetadata() + .equals(other.getAnnotationMetadata())) return false; } if (annotationSentiment_ != other.annotationSentiment_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -516,104 +435,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.Annotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.Annotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.Annotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.Annotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Example. Each example may have one or more annotations. For
    * example in image classification problem, each image might have one or more
@@ -622,23 +534,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.Annotation}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.Annotation)
       com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_Annotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Annotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_Annotation_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Annotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.Annotation.class,
-              com.google.cloud.datalabeling.v1beta1.Annotation.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.Annotation.class, com.google.cloud.datalabeling.v1beta1.Annotation.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.Annotation.newBuilder()
@@ -646,15 +556,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();
@@ -680,9 +591,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_Annotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Annotation_descriptor;
     }
 
     @java.lang.Override
@@ -701,8 +612,7 @@ public com.google.cloud.datalabeling.v1beta1.Annotation build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.Annotation buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.Annotation result =
-          new com.google.cloud.datalabeling.v1beta1.Annotation(this);
+      com.google.cloud.datalabeling.v1beta1.Annotation result = new com.google.cloud.datalabeling.v1beta1.Annotation(this);
       result.name_ = name_;
       result.annotationSource_ = annotationSource_;
       if (annotationValueBuilder_ == null) {
@@ -724,39 +634,38 @@ public com.google.cloud.datalabeling.v1beta1.Annotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.Annotation) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Annotation) other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Annotation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -764,8 +673,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.Annotation other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.Annotation.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.Annotation.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -813,21 +721,19 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. Unique name of this annotation, format is:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_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; @@ -836,22 +742,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Unique name of this annotation, format is:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_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 { @@ -859,64 +764,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Unique name of this annotation, format is:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_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. Unique name of this annotation, format is:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_id}
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. Unique name of this annotation, format is:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_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; @@ -924,93 +822,73 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private int annotationSource_ = 0; /** - * - * *
      * Output only. The source of the annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2; - * * @return The enum numeric value on the wire for annotationSource. */ - @java.lang.Override - public int getAnnotationSourceValue() { + @java.lang.Override public int getAnnotationSourceValue() { return annotationSource_; } /** - * - * *
      * Output only. The source of the annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2; - * * @param value The enum numeric value on the wire for annotationSource to set. * @return This builder for chaining. */ public Builder setAnnotationSourceValue(int value) { - + annotationSource_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The source of the annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2; - * * @return The annotationSource. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSource getAnnotationSource() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationSource result = - com.google.cloud.datalabeling.v1beta1.AnnotationSource.valueOf(annotationSource_); - return result == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSource.UNRECOGNIZED - : result; + com.google.cloud.datalabeling.v1beta1.AnnotationSource result = com.google.cloud.datalabeling.v1beta1.AnnotationSource.valueOf(annotationSource_); + return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSource.UNRECOGNIZED : result; } /** - * - * *
      * Output only. The source of the annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2; - * * @param value The annotationSource to set. * @return This builder for chaining. */ - public Builder setAnnotationSource( - com.google.cloud.datalabeling.v1beta1.AnnotationSource value) { + public Builder setAnnotationSource(com.google.cloud.datalabeling.v1beta1.AnnotationSource value) { if (value == null) { throw new NullPointerException(); } - + annotationSource_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. The source of the annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2; - * * @return This builder for chaining. */ public Builder clearAnnotationSource() { - + annotationSource_ = 0; onChanged(); return this; @@ -1018,49 +896,36 @@ public Builder clearAnnotationSource() { private com.google.cloud.datalabeling.v1beta1.AnnotationValue annotationValue_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationValue, - com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder> - annotationValueBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationValue, com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder> annotationValueBuilder_; /** - * - * *
      * Output only. This is the actual annotation value, e.g classification,
      * bounding box values are stored here.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3; - * * @return Whether the annotationValue field is set. */ public boolean hasAnnotationValue() { return annotationValueBuilder_ != null || annotationValue_ != null; } /** - * - * *
      * Output only. This is the actual annotation value, e.g classification,
      * bounding box values are stored here.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3; - * * @return The annotationValue. */ public com.google.cloud.datalabeling.v1beta1.AnnotationValue getAnnotationValue() { if (annotationValueBuilder_ == null) { - return annotationValue_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationValue.getDefaultInstance() - : annotationValue_; + return annotationValue_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationValue.getDefaultInstance() : annotationValue_; } else { return annotationValueBuilder_.getMessage(); } } /** - * - * *
      * Output only. This is the actual annotation value, e.g classification,
      * bounding box values are stored here.
@@ -1082,8 +947,6 @@ public Builder setAnnotationValue(com.google.cloud.datalabeling.v1beta1.Annotati
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. This is the actual annotation value, e.g classification,
      * bounding box values are stored here.
@@ -1103,8 +966,6 @@ public Builder setAnnotationValue(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. This is the actual annotation value, e.g classification,
      * bounding box values are stored here.
@@ -1112,14 +973,11 @@ public Builder setAnnotationValue(
      *
      * .google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3;
      */
-    public Builder mergeAnnotationValue(
-        com.google.cloud.datalabeling.v1beta1.AnnotationValue value) {
+    public Builder mergeAnnotationValue(com.google.cloud.datalabeling.v1beta1.AnnotationValue value) {
       if (annotationValueBuilder_ == null) {
         if (annotationValue_ != null) {
           annotationValue_ =
-              com.google.cloud.datalabeling.v1beta1.AnnotationValue.newBuilder(annotationValue_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.datalabeling.v1beta1.AnnotationValue.newBuilder(annotationValue_).mergeFrom(value).buildPartial();
         } else {
           annotationValue_ = value;
         }
@@ -1131,8 +989,6 @@ public Builder mergeAnnotationValue(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. This is the actual annotation value, e.g classification,
      * bounding box values are stored here.
@@ -1152,8 +1008,6 @@ public Builder clearAnnotationValue() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. This is the actual annotation value, e.g classification,
      * bounding box values are stored here.
@@ -1161,15 +1015,12 @@ public Builder clearAnnotationValue() {
      *
      * .google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3;
      */
-    public com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder
-        getAnnotationValueBuilder() {
-
+    public com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder getAnnotationValueBuilder() {
+      
       onChanged();
       return getAnnotationValueFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. This is the actual annotation value, e.g classification,
      * bounding box values are stored here.
@@ -1177,19 +1028,15 @@ public Builder clearAnnotationValue() {
      *
      * .google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3;
      */
-    public com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder
-        getAnnotationValueOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder getAnnotationValueOrBuilder() {
       if (annotationValueBuilder_ != null) {
         return annotationValueBuilder_.getMessageOrBuilder();
       } else {
-        return annotationValue_ == null
-            ? com.google.cloud.datalabeling.v1beta1.AnnotationValue.getDefaultInstance()
-            : annotationValue_;
+        return annotationValue_ == null ?
+            com.google.cloud.datalabeling.v1beta1.AnnotationValue.getDefaultInstance() : annotationValue_;
       }
     }
     /**
-     *
-     *
      * 
      * Output only. This is the actual annotation value, e.g classification,
      * bounding box values are stored here.
@@ -1198,17 +1045,14 @@ public Builder clearAnnotationValue() {
      * .google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.AnnotationValue,
-            com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder,
-            com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder>
+        com.google.cloud.datalabeling.v1beta1.AnnotationValue, com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder> 
         getAnnotationValueFieldBuilder() {
       if (annotationValueBuilder_ == null) {
-        annotationValueBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.datalabeling.v1beta1.AnnotationValue,
-                com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder,
-                com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder>(
-                getAnnotationValue(), getParentForChildren(), isClean());
+        annotationValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.datalabeling.v1beta1.AnnotationValue, com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder>(
+                getAnnotationValue(),
+                getParentForChildren(),
+                isClean());
         annotationValue_ = null;
       }
       return annotationValueBuilder_;
@@ -1216,49 +1060,36 @@ public Builder clearAnnotationValue() {
 
     private com.google.cloud.datalabeling.v1beta1.AnnotationMetadata annotationMetadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.AnnotationMetadata,
-            com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder,
-            com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder>
-        annotationMetadataBuilder_;
+        com.google.cloud.datalabeling.v1beta1.AnnotationMetadata, com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder> annotationMetadataBuilder_;
     /**
-     *
-     *
      * 
      * Output only. Annotation metadata, including information like votes
      * for labels.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4; - * * @return Whether the annotationMetadata field is set. */ public boolean hasAnnotationMetadata() { return annotationMetadataBuilder_ != null || annotationMetadata_ != null; } /** - * - * *
      * Output only. Annotation metadata, including information like votes
      * for labels.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4; - * * @return The annotationMetadata. */ public com.google.cloud.datalabeling.v1beta1.AnnotationMetadata getAnnotationMetadata() { if (annotationMetadataBuilder_ == null) { - return annotationMetadata_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.getDefaultInstance() - : annotationMetadata_; + return annotationMetadata_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.getDefaultInstance() : annotationMetadata_; } else { return annotationMetadataBuilder_.getMessage(); } } /** - * - * *
      * Output only. Annotation metadata, including information like votes
      * for labels.
@@ -1266,8 +1097,7 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationMetadata getAnnotationMet
      *
      * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;
      */
-    public Builder setAnnotationMetadata(
-        com.google.cloud.datalabeling.v1beta1.AnnotationMetadata value) {
+    public Builder setAnnotationMetadata(com.google.cloud.datalabeling.v1beta1.AnnotationMetadata value) {
       if (annotationMetadataBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1281,8 +1111,6 @@ public Builder setAnnotationMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Annotation metadata, including information like votes
      * for labels.
@@ -1302,8 +1130,6 @@ public Builder setAnnotationMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Annotation metadata, including information like votes
      * for labels.
@@ -1311,15 +1137,11 @@ public Builder setAnnotationMetadata(
      *
      * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;
      */
-    public Builder mergeAnnotationMetadata(
-        com.google.cloud.datalabeling.v1beta1.AnnotationMetadata value) {
+    public Builder mergeAnnotationMetadata(com.google.cloud.datalabeling.v1beta1.AnnotationMetadata value) {
       if (annotationMetadataBuilder_ == null) {
         if (annotationMetadata_ != null) {
           annotationMetadata_ =
-              com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.newBuilder(
-                      annotationMetadata_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.newBuilder(annotationMetadata_).mergeFrom(value).buildPartial();
         } else {
           annotationMetadata_ = value;
         }
@@ -1331,8 +1153,6 @@ public Builder mergeAnnotationMetadata(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Annotation metadata, including information like votes
      * for labels.
@@ -1352,8 +1172,6 @@ public Builder clearAnnotationMetadata() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Annotation metadata, including information like votes
      * for labels.
@@ -1361,15 +1179,12 @@ public Builder clearAnnotationMetadata() {
      *
      * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;
      */
-    public com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder
-        getAnnotationMetadataBuilder() {
-
+    public com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder getAnnotationMetadataBuilder() {
+      
       onChanged();
       return getAnnotationMetadataFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. Annotation metadata, including information like votes
      * for labels.
@@ -1377,19 +1192,15 @@ public Builder clearAnnotationMetadata() {
      *
      * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;
      */
-    public com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder
-        getAnnotationMetadataOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder getAnnotationMetadataOrBuilder() {
       if (annotationMetadataBuilder_ != null) {
         return annotationMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return annotationMetadata_ == null
-            ? com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.getDefaultInstance()
-            : annotationMetadata_;
+        return annotationMetadata_ == null ?
+            com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.getDefaultInstance() : annotationMetadata_;
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Annotation metadata, including information like votes
      * for labels.
@@ -1398,17 +1209,14 @@ public Builder clearAnnotationMetadata() {
      * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.AnnotationMetadata,
-            com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder,
-            com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder>
+        com.google.cloud.datalabeling.v1beta1.AnnotationMetadata, com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder> 
         getAnnotationMetadataFieldBuilder() {
       if (annotationMetadataBuilder_ == null) {
-        annotationMetadataBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.datalabeling.v1beta1.AnnotationMetadata,
-                com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder,
-                com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder>(
-                getAnnotationMetadata(), getParentForChildren(), isClean());
+        annotationMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.datalabeling.v1beta1.AnnotationMetadata, com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder>(
+                getAnnotationMetadata(),
+                getParentForChildren(),
+                isClean());
         annotationMetadata_ = null;
       }
       return annotationMetadataBuilder_;
@@ -1416,100 +1224,80 @@ public Builder clearAnnotationMetadata() {
 
     private int annotationSentiment_ = 0;
     /**
-     *
-     *
      * 
      * Output only. Sentiment for this annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6; - * * @return The enum numeric value on the wire for annotationSentiment. */ - @java.lang.Override - public int getAnnotationSentimentValue() { + @java.lang.Override public int getAnnotationSentimentValue() { return annotationSentiment_; } /** - * - * *
      * Output only. Sentiment for this annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6; - * * @param value The enum numeric value on the wire for annotationSentiment to set. * @return This builder for chaining. */ public Builder setAnnotationSentimentValue(int value) { - + annotationSentiment_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Sentiment for this annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6; - * * @return The annotationSentiment. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSentiment getAnnotationSentiment() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationSentiment result = - com.google.cloud.datalabeling.v1beta1.AnnotationSentiment.valueOf(annotationSentiment_); - return result == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSentiment.UNRECOGNIZED - : result; + com.google.cloud.datalabeling.v1beta1.AnnotationSentiment result = com.google.cloud.datalabeling.v1beta1.AnnotationSentiment.valueOf(annotationSentiment_); + return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSentiment.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Sentiment for this annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6; - * * @param value The annotationSentiment to set. * @return This builder for chaining. */ - public Builder setAnnotationSentiment( - com.google.cloud.datalabeling.v1beta1.AnnotationSentiment value) { + public Builder setAnnotationSentiment(com.google.cloud.datalabeling.v1beta1.AnnotationSentiment value) { if (value == null) { throw new NullPointerException(); } - + annotationSentiment_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. Sentiment for this annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6; - * * @return This builder for chaining. */ public Builder clearAnnotationSentiment() { - + annotationSentiment_ = 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); } @@ -1519,12 +1307,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.Annotation) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Annotation) private static final com.google.cloud.datalabeling.v1beta1.Annotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.Annotation(); } @@ -1533,16 +1321,16 @@ public static com.google.cloud.datalabeling.v1beta1.Annotation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Annotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Annotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Annotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Annotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1557,4 +1345,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.Annotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadata.java similarity index 68% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadata.java index d779acc1..5212561c 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadata.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Additional information associated with the annotation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotationMetadata} */ -public final class AnnotationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnnotationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.AnnotationMetadata) AnnotationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnnotationMetadata.newBuilder() to construct. private AnnotationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AnnotationMetadata() {} + private AnnotationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnnotationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AnnotationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,30 +52,26 @@ private AnnotationMetadata( case 0: done = true; break; - case 18: - { - com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder subBuilder = null; - if (operatorMetadata_ != null) { - subBuilder = operatorMetadata_.toBuilder(); - } - operatorMetadata_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.OperatorMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(operatorMetadata_); - operatorMetadata_ = subBuilder.buildPartial(); - } - - break; + case 18: { + com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder subBuilder = null; + if (operatorMetadata_ != null) { + subBuilder = operatorMetadata_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + operatorMetadata_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.OperatorMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(operatorMetadata_); + operatorMetadata_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,39 +79,34 @@ private AnnotationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.class, - com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.class, com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder.class); } public static final int OPERATOR_METADATA_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.OperatorMetadata operatorMetadata_; /** - * - * *
    * Metadata related to human labeling.
    * 
* * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; - * * @return Whether the operatorMetadata field is set. */ @java.lang.Override @@ -139,25 +114,18 @@ public boolean hasOperatorMetadata() { return operatorMetadata_ != null; } /** - * - * *
    * Metadata related to human labeling.
    * 
* * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; - * * @return The operatorMetadata. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.OperatorMetadata getOperatorMetadata() { - return operatorMetadata_ == null - ? com.google.cloud.datalabeling.v1beta1.OperatorMetadata.getDefaultInstance() - : operatorMetadata_; + return operatorMetadata_ == null ? com.google.cloud.datalabeling.v1beta1.OperatorMetadata.getDefaultInstance() : operatorMetadata_; } /** - * - * *
    * Metadata related to human labeling.
    * 
@@ -165,13 +133,11 @@ public com.google.cloud.datalabeling.v1beta1.OperatorMetadata getOperatorMetadat * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.OperatorMetadataOrBuilder - getOperatorMetadataOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.OperatorMetadataOrBuilder getOperatorMetadataOrBuilder() { return getOperatorMetadata(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,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 (operatorMetadata_ != null) { output.writeMessage(2, getOperatorMetadata()); } @@ -197,7 +164,8 @@ public int getSerializedSize() { size = 0; if (operatorMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOperatorMetadata()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getOperatorMetadata()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -207,17 +175,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.datalabeling.v1beta1.AnnotationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.AnnotationMetadata other = - (com.google.cloud.datalabeling.v1beta1.AnnotationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.AnnotationMetadata other = (com.google.cloud.datalabeling.v1beta1.AnnotationMetadata) obj; if (hasOperatorMetadata() != other.hasOperatorMetadata()) return false; if (hasOperatorMetadata()) { - if (!getOperatorMetadata().equals(other.getOperatorMetadata())) return false; + if (!getOperatorMetadata() + .equals(other.getOperatorMetadata())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -240,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata 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.datalabeling.v1beta1.AnnotationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.AnnotationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.AnnotationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Additional information associated with the annotation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.AnnotationMetadata) com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.class, - com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.class, com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.newBuilder() @@ -368,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(); @@ -390,9 +349,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor; } @java.lang.Override @@ -411,8 +370,7 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationMetadata build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.AnnotationMetadata result = - new com.google.cloud.datalabeling.v1beta1.AnnotationMetadata(this); + com.google.cloud.datalabeling.v1beta1.AnnotationMetadata result = new com.google.cloud.datalabeling.v1beta1.AnnotationMetadata(this); if (operatorMetadataBuilder_ == null) { result.operatorMetadata_ = operatorMetadata_; } else { @@ -426,39 +384,38 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.AnnotationMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotationMetadata) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotationMetadata)other); } else { super.mergeFrom(other); return this; @@ -466,8 +423,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.AnnotationMetadata other) { - if (other == com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.getDefaultInstance()) return this; if (other.hasOperatorMetadata()) { mergeOperatorMetadata(other.getOperatorMetadata()); } @@ -490,8 +446,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.AnnotationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.AnnotationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -503,55 +458,41 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.OperatorMetadata operatorMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.OperatorMetadata, - com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.OperatorMetadataOrBuilder> - operatorMetadataBuilder_; + com.google.cloud.datalabeling.v1beta1.OperatorMetadata, com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder, com.google.cloud.datalabeling.v1beta1.OperatorMetadataOrBuilder> operatorMetadataBuilder_; /** - * - * *
      * Metadata related to human labeling.
      * 
* * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; - * * @return Whether the operatorMetadata field is set. */ public boolean hasOperatorMetadata() { return operatorMetadataBuilder_ != null || operatorMetadata_ != null; } /** - * - * *
      * Metadata related to human labeling.
      * 
* * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; - * * @return The operatorMetadata. */ public com.google.cloud.datalabeling.v1beta1.OperatorMetadata getOperatorMetadata() { if (operatorMetadataBuilder_ == null) { - return operatorMetadata_ == null - ? com.google.cloud.datalabeling.v1beta1.OperatorMetadata.getDefaultInstance() - : operatorMetadata_; + return operatorMetadata_ == null ? com.google.cloud.datalabeling.v1beta1.OperatorMetadata.getDefaultInstance() : operatorMetadata_; } else { return operatorMetadataBuilder_.getMessage(); } } /** - * - * *
      * Metadata related to human labeling.
      * 
* * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; */ - public Builder setOperatorMetadata( - com.google.cloud.datalabeling.v1beta1.OperatorMetadata value) { + public Builder setOperatorMetadata(com.google.cloud.datalabeling.v1beta1.OperatorMetadata value) { if (operatorMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -565,8 +506,6 @@ public Builder setOperatorMetadata( return this; } /** - * - * *
      * Metadata related to human labeling.
      * 
@@ -585,22 +524,17 @@ public Builder setOperatorMetadata( return this; } /** - * - * *
      * Metadata related to human labeling.
      * 
* * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; */ - public Builder mergeOperatorMetadata( - com.google.cloud.datalabeling.v1beta1.OperatorMetadata value) { + public Builder mergeOperatorMetadata(com.google.cloud.datalabeling.v1beta1.OperatorMetadata value) { if (operatorMetadataBuilder_ == null) { if (operatorMetadata_ != null) { operatorMetadata_ = - com.google.cloud.datalabeling.v1beta1.OperatorMetadata.newBuilder(operatorMetadata_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.OperatorMetadata.newBuilder(operatorMetadata_).mergeFrom(value).buildPartial(); } else { operatorMetadata_ = value; } @@ -612,8 +546,6 @@ public Builder mergeOperatorMetadata( return this; } /** - * - * *
      * Metadata related to human labeling.
      * 
@@ -632,42 +564,33 @@ public Builder clearOperatorMetadata() { return this; } /** - * - * *
      * Metadata related to human labeling.
      * 
* * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; */ - public com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder - getOperatorMetadataBuilder() { - + public com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder getOperatorMetadataBuilder() { + onChanged(); return getOperatorMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Metadata related to human labeling.
      * 
* * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; */ - public com.google.cloud.datalabeling.v1beta1.OperatorMetadataOrBuilder - getOperatorMetadataOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.OperatorMetadataOrBuilder getOperatorMetadataOrBuilder() { if (operatorMetadataBuilder_ != null) { return operatorMetadataBuilder_.getMessageOrBuilder(); } else { - return operatorMetadata_ == null - ? com.google.cloud.datalabeling.v1beta1.OperatorMetadata.getDefaultInstance() - : operatorMetadata_; + return operatorMetadata_ == null ? + com.google.cloud.datalabeling.v1beta1.OperatorMetadata.getDefaultInstance() : operatorMetadata_; } } /** - * - * *
      * Metadata related to human labeling.
      * 
@@ -675,24 +598,21 @@ public Builder clearOperatorMetadata() { * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.OperatorMetadata, - com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.OperatorMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.OperatorMetadata, com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder, com.google.cloud.datalabeling.v1beta1.OperatorMetadataOrBuilder> getOperatorMetadataFieldBuilder() { if (operatorMetadataBuilder_ == null) { - operatorMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.OperatorMetadata, - com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.OperatorMetadataOrBuilder>( - getOperatorMetadata(), getParentForChildren(), isClean()); + operatorMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.OperatorMetadata, com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder, com.google.cloud.datalabeling.v1beta1.OperatorMetadataOrBuilder>( + getOperatorMetadata(), + getParentForChildren(), + isClean()); operatorMetadata_ = null; } return operatorMetadataBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -702,12 +622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.AnnotationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.AnnotationMetadata) private static final com.google.cloud.datalabeling.v1beta1.AnnotationMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.AnnotationMetadata(); } @@ -716,16 +636,16 @@ public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -740,4 +660,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.AnnotationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadataOrBuilder.java similarity index 62% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadataOrBuilder.java index 0b92556d..f8158b66 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadataOrBuilder.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface AnnotationMetadataOrBuilder - extends +public interface AnnotationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.AnnotationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Metadata related to human labeling.
    * 
* * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; - * * @return Whether the operatorMetadata field is set. */ boolean hasOperatorMetadata(); /** - * - * *
    * Metadata related to human labeling.
    * 
* * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; - * * @return The operatorMetadata. */ com.google.cloud.datalabeling.v1beta1.OperatorMetadata getOperatorMetadata(); /** - * - * *
    * Metadata related to human labeling.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOrBuilder.java similarity index 82% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOrBuilder.java index 6685e29d..534083a5 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOrBuilder.java @@ -1,109 +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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface AnnotationOrBuilder - extends +public interface AnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.Annotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Unique name of this annotation, format is:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_id}
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Unique name of this annotation, format is:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_id}
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. The source of the annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2; - * * @return The enum numeric value on the wire for annotationSource. */ int getAnnotationSourceValue(); /** - * - * *
    * Output only. The source of the annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2; - * * @return The annotationSource. */ com.google.cloud.datalabeling.v1beta1.AnnotationSource getAnnotationSource(); /** - * - * *
    * Output only. This is the actual annotation value, e.g classification,
    * bounding box values are stored here.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3; - * * @return Whether the annotationValue field is set. */ boolean hasAnnotationValue(); /** - * - * *
    * Output only. This is the actual annotation value, e.g classification,
    * bounding box values are stored here.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3; - * * @return The annotationValue. */ com.google.cloud.datalabeling.v1beta1.AnnotationValue getAnnotationValue(); /** - * - * *
    * Output only. This is the actual annotation value, e.g classification,
    * bounding box values are stored here.
@@ -114,34 +79,26 @@ public interface AnnotationOrBuilder
   com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder getAnnotationValueOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. Annotation metadata, including information like votes
    * for labels.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4; - * * @return Whether the annotationMetadata field is set. */ boolean hasAnnotationMetadata(); /** - * - * *
    * Output only. Annotation metadata, including information like votes
    * for labels.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4; - * * @return The annotationMetadata. */ com.google.cloud.datalabeling.v1beta1.AnnotationMetadata getAnnotationMetadata(); /** - * - * *
    * Output only. Annotation metadata, including information like votes
    * for labels.
@@ -149,30 +106,23 @@ public interface AnnotationOrBuilder
    *
    * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;
    */
-  com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder
-      getAnnotationMetadataOrBuilder();
+  com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder getAnnotationMetadataOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. Sentiment for this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6; - * * @return The enum numeric value on the wire for annotationSentiment. */ int getAnnotationSentimentValue(); /** - * - * *
    * Output only. Sentiment for this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6; - * * @return The annotationSentiment. */ com.google.cloud.datalabeling.v1beta1.AnnotationSentiment getAnnotationSentiment(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOuterClass.java new file mode 100644 index 00000000..310f4365 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOuterClass.java @@ -0,0 +1,432 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/annotation.proto + +package com.google.cloud.datalabeling.v1beta1; + +public final class AnnotationOuterClass { + private AnnotationOuterClass() {} + 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_datalabeling_v1beta1_Annotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_Annotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_Vertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_Polyline_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_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/datalabeling/v1beta1/anno" + + "tation.proto\022!google.cloud.datalabeling." + + "v1beta1\032\034google/api/annotations.proto\032\031g" + + "oogle/api/resource.proto\032;google/cloud/d" + + "atalabeling/v1beta1/annotation_spec_set." + + "proto\032\036google/protobuf/duration.proto\"\342\002" + + "\n\nAnnotation\022\014\n\004name\030\001 \001(\t\022N\n\021annotation" + + "_source\030\002 \001(\01623.google.cloud.datalabelin" + + "g.v1beta1.AnnotationSource\022L\n\020annotation" + + "_value\030\003 \001(\01322.google.cloud.datalabeling" + + ".v1beta1.AnnotationValue\022R\n\023annotation_m" + + "etadata\030\004 \001(\01325.google.cloud.datalabelin" + + "g.v1beta1.AnnotationMetadata\022T\n\024annotati" + + "on_sentiment\030\006 \001(\01626.google.cloud.datala" + + "beling.v1beta1.AnnotationSentiment\"\321\007\n\017A" + + "nnotationValue\022k\n\037image_classification_a" + + "nnotation\030\001 \001(\0132@.google.cloud.datalabel" + + "ing.v1beta1.ImageClassificationAnnotatio" + + "nH\000\022h\n\036image_bounding_poly_annotation\030\002 " + + "\001(\0132>.google.cloud.datalabeling.v1beta1." + + "ImageBoundingPolyAnnotationH\000\022_\n\031image_p" + + "olyline_annotation\030\010 \001(\0132:.google.cloud." + + "datalabeling.v1beta1.ImagePolylineAnnota" + + "tionH\000\022g\n\035image_segmentation_annotation\030" + + "\t \001(\0132>.google.cloud.datalabeling.v1beta" + + "1.ImageSegmentationAnnotationH\000\022i\n\036text_" + + "classification_annotation\030\003 \001(\0132?.google" + + ".cloud.datalabeling.v1beta1.TextClassifi" + + "cationAnnotationH\000\022n\n!text_entity_extrac" + + "tion_annotation\030\n \001(\0132A.google.cloud.dat" + + "alabeling.v1beta1.TextEntityExtractionAn" + + "notationH\000\022k\n\037video_classification_annot" + + "ation\030\004 \001(\0132@.google.cloud.datalabeling." + + "v1beta1.VideoClassificationAnnotationH\000\022" + + "l\n video_object_tracking_annotation\030\005 \001(" + + "\0132@.google.cloud.datalabeling.v1beta1.Vi" + + "deoObjectTrackingAnnotationH\000\022Y\n\026video_e" + + "vent_annotation\030\006 \001(\01327.google.cloud.dat" + + "alabeling.v1beta1.VideoEventAnnotationH\000" + + "B\014\n\nvalue_type\"k\n\035ImageClassificationAnn" + + "otation\022J\n\017annotation_spec\030\001 \001(\01321.googl" + + "e.cloud.datalabeling.v1beta1.AnnotationS" + + "pec\"\036\n\006Vertex\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020N" + + "ormalizedVertex\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"K\n" + + "\014BoundingPoly\022;\n\010vertices\030\001 \003(\0132).google" + + ".cloud.datalabeling.v1beta1.Vertex\"j\n\026No" + + "rmalizedBoundingPoly\022P\n\023normalized_verti" + + "ces\030\001 \003(\01323.google.cloud.datalabeling.v1" + + "beta1.NormalizedVertex\"\242\002\n\033ImageBounding" + + "PolyAnnotation\022H\n\rbounding_poly\030\002 \001(\0132/." + + "google.cloud.datalabeling.v1beta1.Boundi" + + "ngPolyH\000\022]\n\030normalized_bounding_poly\030\003 \001" + + "(\01329.google.cloud.datalabeling.v1beta1.N" + + "ormalizedBoundingPolyH\000\022J\n\017annotation_sp" + + "ec\030\001 \001(\01321.google.cloud.datalabeling.v1b" + + "eta1.AnnotationSpecB\016\n\014bounded_area\"G\n\010P" + + "olyline\022;\n\010vertices\030\001 \003(\0132).google.cloud" + + ".datalabeling.v1beta1.Vertex\"f\n\022Normaliz" + + "edPolyline\022P\n\023normalized_vertices\030\001 \003(\0132" + + "3.google.cloud.datalabeling.v1beta1.Norm" + + "alizedVertex\"\204\002\n\027ImagePolylineAnnotation" + + "\022?\n\010polyline\030\002 \001(\0132+.google.cloud.datala" + + "beling.v1beta1.PolylineH\000\022T\n\023normalized_" + + "polyline\030\003 \001(\01325.google.cloud.datalabeli" + + "ng.v1beta1.NormalizedPolylineH\000\022J\n\017annot" + + "ation_spec\030\001 \001(\01321.google.cloud.datalabe" + + "ling.v1beta1.AnnotationSpecB\006\n\004poly\"\242\002\n\033" + + "ImageSegmentationAnnotation\022o\n\021annotatio" + + "n_colors\030\001 \003(\0132T.google.cloud.datalabeli" + + "ng.v1beta1.ImageSegmentationAnnotation.A" + + "nnotationColorsEntry\022\021\n\tmime_type\030\002 \001(\t\022" + + "\023\n\013image_bytes\030\003 \001(\014\032j\n\025AnnotationColors" + + "Entry\022\013\n\003key\030\001 \001(\t\022@\n\005value\030\002 \001(\01321.goog" + + "le.cloud.datalabeling.v1beta1.Annotation" + + "Spec:\0028\001\"j\n\034TextClassificationAnnotation" + + "\022J\n\017annotation_spec\030\001 \001(\01321.google.cloud" + + ".datalabeling.v1beta1.AnnotationSpec\"\276\001\n" + + "\036TextEntityExtractionAnnotation\022J\n\017annot" + + "ation_spec\030\001 \001(\01321.google.cloud.datalabe" + + "ling.v1beta1.AnnotationSpec\022P\n\022sequentia" + + "l_segment\030\002 \001(\01324.google.cloud.datalabel" + + "ing.v1beta1.SequentialSegment\"/\n\021Sequent" + + "ialSegment\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"w" + + "\n\013TimeSegment\0224\n\021start_time_offset\030\001 \001(\013" + + "2\031.google.protobuf.Duration\0222\n\017end_time_" + + "offset\030\002 \001(\0132\031.google.protobuf.Duration\"" + + "\261\001\n\035VideoClassificationAnnotation\022D\n\014tim" + + "e_segment\030\001 \001(\0132..google.cloud.datalabel" + + "ing.v1beta1.TimeSegment\022J\n\017annotation_sp" + + "ec\030\002 \001(\01321.google.cloud.datalabeling.v1b" + + "eta1.AnnotationSpec\"\376\001\n\023ObjectTrackingFr" + + "ame\022H\n\rbounding_poly\030\001 \001(\0132/.google.clou" + + "d.datalabeling.v1beta1.BoundingPolyH\000\022]\n" + + "\030normalized_bounding_poly\030\002 \001(\01329.google" + + ".cloud.datalabeling.v1beta1.NormalizedBo" + + "undingPolyH\000\022.\n\013time_offset\030\003 \001(\0132\031.goog" + + "le.protobuf.DurationB\016\n\014bounded_area\"\211\002\n" + + "\035VideoObjectTrackingAnnotation\022J\n\017annota" + + "tion_spec\030\001 \001(\01321.google.cloud.datalabel" + + "ing.v1beta1.AnnotationSpec\022D\n\014time_segme" + + "nt\030\002 \001(\0132..google.cloud.datalabeling.v1b" + + "eta1.TimeSegment\022V\n\026object_tracking_fram" + + "es\030\003 \003(\01326.google.cloud.datalabeling.v1b" + + "eta1.ObjectTrackingFrame\"\250\001\n\024VideoEventA" + + "nnotation\022J\n\017annotation_spec\030\001 \001(\01321.goo" + + "gle.cloud.datalabeling.v1beta1.Annotatio" + + "nSpec\022D\n\014time_segment\030\002 \001(\0132..google.clo" + + "ud.datalabeling.v1beta1.TimeSegment\"d\n\022A" + + "nnotationMetadata\022N\n\021operator_metadata\030\002" + + " \001(\01323.google.cloud.datalabeling.v1beta1" + + ".OperatorMetadata\"]\n\020OperatorMetadata\022\r\n" + + "\005score\030\001 \001(\002\022\023\n\013total_votes\030\002 \001(\005\022\023\n\013lab" + + "el_votes\030\003 \001(\005\022\020\n\010comments\030\004 \003(\t*C\n\020Anno" + + "tationSource\022!\n\035ANNOTATION_SOURCE_UNSPEC" + + "IFIED\020\000\022\014\n\010OPERATOR\020\003*W\n\023AnnotationSenti" + + "ment\022$\n ANNOTATION_SENTIMENT_UNSPECIFIED" + + "\020\000\022\014\n\010NEGATIVE\020\001\022\014\n\010POSITIVE\020\002*\221\004\n\016Annot" + + "ationType\022\037\n\033ANNOTATION_TYPE_UNSPECIFIED" + + "\020\000\022#\n\037IMAGE_CLASSIFICATION_ANNOTATION\020\001\022" + + "!\n\035IMAGE_BOUNDING_BOX_ANNOTATION\020\002\022*\n&IM" + + "AGE_ORIENTED_BOUNDING_BOX_ANNOTATION\020\r\022\"" + + "\n\036IMAGE_BOUNDING_POLY_ANNOTATION\020\n\022\035\n\031IM" + + "AGE_POLYLINE_ANNOTATION\020\013\022!\n\035IMAGE_SEGME" + + "NTATION_ANNOTATION\020\014\022)\n%VIDEO_SHOTS_CLAS" + + "SIFICATION_ANNOTATION\020\003\022$\n VIDEO_OBJECT_" + + "TRACKING_ANNOTATION\020\004\022%\n!VIDEO_OBJECT_DE" + + "TECTION_ANNOTATION\020\005\022\032\n\026VIDEO_EVENT_ANNO" + + "TATION\020\006\022\"\n\036TEXT_CLASSIFICATION_ANNOTATI" + + "ON\020\010\022%\n!TEXT_ENTITY_EXTRACTION_ANNOTATIO" + + "N\020\t\022%\n!GENERAL_CLASSIFICATION_ANNOTATION" + + "\020\016B\347\001\n%com.google.cloud.datalabeling.v1b" + + "eta1P\001ZMgoogle.golang.org/genproto/googl" + + "eapis/cloud/datalabeling/v1beta1;datalab" + + "eling\252\002!Google.Cloud.DataLabeling.V1Beta" + + "1\312\002!Google\\Cloud\\DataLabeling\\V1beta1\352\002$" + + "Google::Cloud::DataLabeling::V1beta1b\006pr" + + "oto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_google_cloud_datalabeling_v1beta1_Annotation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_Annotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_Annotation_descriptor, + new java.lang.String[] { "Name", "AnnotationSource", "AnnotationValue", "AnnotationMetadata", "AnnotationSentiment", }); + internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor, + new java.lang.String[] { "ImageClassificationAnnotation", "ImageBoundingPolyAnnotation", "ImagePolylineAnnotation", "ImageSegmentationAnnotation", "TextClassificationAnnotation", "TextEntityExtractionAnnotation", "VideoClassificationAnnotation", "VideoObjectTrackingAnnotation", "VideoEventAnnotation", "ValueType", }); + internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor, + new java.lang.String[] { "AnnotationSpec", }); + internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datalabeling_v1beta1_Vertex_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor, + new java.lang.String[] { "X", "Y", }); + internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor, + new java.lang.String[] { "X", "Y", }); + internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor, + new java.lang.String[] { "Vertices", }); + internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor, + new java.lang.String[] { "NormalizedVertices", }); + internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor, + new java.lang.String[] { "BoundingPoly", "NormalizedBoundingPoly", "AnnotationSpec", "BoundedArea", }); + internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_datalabeling_v1beta1_Polyline_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor, + new java.lang.String[] { "Vertices", }); + internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor, + new java.lang.String[] { "NormalizedVertices", }); + internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor, + new java.lang.String[] { "Polyline", "NormalizedPolyline", "AnnotationSpec", "Poly", }); + internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor, + new java.lang.String[] { "AnnotationColors", "MimeType", "ImageBytes", }); + internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_descriptor = + internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor, + new java.lang.String[] { "AnnotationSpec", }); + internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor, + new java.lang.String[] { "AnnotationSpec", "SequentialSegment", }); + internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor, + new java.lang.String[] { "Start", "End", }); + internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor, + new java.lang.String[] { "StartTimeOffset", "EndTimeOffset", }); + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor, + new java.lang.String[] { "TimeSegment", "AnnotationSpec", }); + internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor, + new java.lang.String[] { "BoundingPoly", "NormalizedBoundingPoly", "TimeOffset", "BoundedArea", }); + internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor, + new java.lang.String[] { "AnnotationSpec", "TimeSegment", "ObjectTrackingFrames", }); + internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor, + new java.lang.String[] { "AnnotationSpec", "TimeSegment", }); + internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor, + new java.lang.String[] { "OperatorMetadata", }); + internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor, + new java.lang.String[] { "Score", "TotalVotes", "LabelVotes", "Comments", }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSentiment.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSentiment.java similarity index 63% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSentiment.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSentiment.java index f25903ed..8f008603 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSentiment.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSentiment.java @@ -1,30 +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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -/** Protobuf enum {@code google.cloud.datalabeling.v1beta1.AnnotationSentiment} */ -public enum AnnotationSentiment implements com.google.protobuf.ProtocolMessageEnum { - /** ANNOTATION_SENTIMENT_UNSPECIFIED = 0; */ +/** + * Protobuf enum {@code google.cloud.datalabeling.v1beta1.AnnotationSentiment} + */ +public enum AnnotationSentiment + implements com.google.protobuf.ProtocolMessageEnum { + /** + * ANNOTATION_SENTIMENT_UNSPECIFIED = 0; + */ ANNOTATION_SENTIMENT_UNSPECIFIED(0), /** - * - * *
    * This annotation describes negatively about the data.
    * 
@@ -33,8 +21,6 @@ public enum AnnotationSentiment implements com.google.protobuf.ProtocolMessageEn */ NEGATIVE(1), /** - * - * *
    * This label describes positively about the data.
    * 
@@ -45,11 +31,11 @@ public enum AnnotationSentiment implements com.google.protobuf.ProtocolMessageEn UNRECOGNIZED(-1), ; - /** ANNOTATION_SENTIMENT_UNSPECIFIED = 0; */ + /** + * ANNOTATION_SENTIMENT_UNSPECIFIED = 0; + */ public static final int ANNOTATION_SENTIMENT_UNSPECIFIED_VALUE = 0; /** - * - * *
    * This annotation describes negatively about the data.
    * 
@@ -58,8 +44,6 @@ public enum AnnotationSentiment implements com.google.protobuf.ProtocolMessageEn */ public static final int NEGATIVE_VALUE = 1; /** - * - * *
    * This label describes positively about the data.
    * 
@@ -68,6 +52,7 @@ public enum AnnotationSentiment implements com.google.protobuf.ProtocolMessageEn */ public static final int POSITIVE_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -92,14 +77,10 @@ public static AnnotationSentiment valueOf(int value) { */ public static AnnotationSentiment forNumber(int value) { switch (value) { - case 0: - return ANNOTATION_SENTIMENT_UNSPECIFIED; - case 1: - return NEGATIVE; - case 2: - return POSITIVE; - default: - return null; + case 0: return ANNOTATION_SENTIMENT_UNSPECIFIED; + case 1: return NEGATIVE; + case 2: return POSITIVE; + default: return null; } } @@ -107,31 +88,29 @@ public static AnnotationSentiment forNumber(int value) { internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AnnotationSentiment findValueByNumber(int number) { - return AnnotationSentiment.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + AnnotationSentiment> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AnnotationSentiment findValueByNumber(int number) { + return AnnotationSentiment.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.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor().getEnumTypes().get(1); } private static final AnnotationSentiment[] VALUES = values(); @@ -139,7 +118,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static AnnotationSentiment 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; @@ -155,3 +135,4 @@ private AnnotationSentiment(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.datalabeling.v1beta1.AnnotationSentiment) } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSource.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSource.java similarity index 61% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSource.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSource.java index 9564169a..8380051f 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSource.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSource.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Specifies where the annotation comes from (whether it was provided by a
  * human labeler or a different source).
@@ -28,12 +11,13 @@
  *
  * Protobuf enum {@code google.cloud.datalabeling.v1beta1.AnnotationSource}
  */
-public enum AnnotationSource implements com.google.protobuf.ProtocolMessageEnum {
-  /** ANNOTATION_SOURCE_UNSPECIFIED = 0; */
+public enum AnnotationSource
+    implements com.google.protobuf.ProtocolMessageEnum {
+  /**
+   * ANNOTATION_SOURCE_UNSPECIFIED = 0;
+   */
   ANNOTATION_SOURCE_UNSPECIFIED(0),
   /**
-   *
-   *
    * 
    * Answer is provided by a human contributor.
    * 
@@ -44,11 +28,11 @@ public enum AnnotationSource implements com.google.protobuf.ProtocolMessageEnum UNRECOGNIZED(-1), ; - /** ANNOTATION_SOURCE_UNSPECIFIED = 0; */ + /** + * ANNOTATION_SOURCE_UNSPECIFIED = 0; + */ public static final int ANNOTATION_SOURCE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Answer is provided by a human contributor.
    * 
@@ -57,6 +41,7 @@ public enum AnnotationSource implements com.google.protobuf.ProtocolMessageEnum */ public static final int OPERATOR_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -81,49 +66,48 @@ public static AnnotationSource valueOf(int value) { */ public static AnnotationSource forNumber(int value) { switch (value) { - case 0: - return ANNOTATION_SOURCE_UNSPECIFIED; - case 3: - return OPERATOR; - default: - return null; + case 0: return ANNOTATION_SOURCE_UNSPECIFIED; + case 3: return OPERATOR; + 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 AnnotationSource findValueByNumber(int number) { - return AnnotationSource.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + AnnotationSource> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AnnotationSource findValueByNumber(int number) { + return AnnotationSource.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.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor().getEnumTypes().get(0); } private static final AnnotationSource[] VALUES = values(); - public static AnnotationSource valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static AnnotationSource 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; @@ -139,3 +123,4 @@ private AnnotationSource(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.datalabeling.v1beta1.AnnotationSource) } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpec.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpec.java similarity index 72% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpec.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpec.java index 7d1aee9d..fc777efc 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpec.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpec.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/datalabeling/v1beta1/annotation_spec_set.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Container of information related to one possible annotation that can be used
  * in a labeling task. For example, an image classification task where images
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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() {
     displayName_ = "";
     description_ = "";
@@ -47,15 +29,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)
@@ -74,27 +57,25 @@ private AnnotationSpec(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              displayName_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            displayName_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              description_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            description_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -102,39 +83,34 @@ private AnnotationSpec(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.AnnotationSpec.class,
-            com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.AnnotationSpec.class, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder.class);
   }
 
   public static final int DISPLAY_NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object displayName_;
   /**
-   *
-   *
    * 
    * Required. The display name of the AnnotationSpec. Maximum of 64 characters.
    * 
* * string display_name = 1; - * * @return The displayName. */ @java.lang.Override @@ -143,29 +119,29 @@ 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 display name of the AnnotationSpec. Maximum of 64 characters.
    * 
* * string display_name = 1; - * * @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 { @@ -176,15 +152,12 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * Optional. User-provided description of the annotation specification.
    * The description can be up to 10,000 characters long.
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -193,30 +166,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; } } /** - * - * *
    * Optional. User-provided description of the annotation specification.
    * The description can be up to 10,000 characters long.
    * 
* * string description = 2; - * * @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 { @@ -225,7 +198,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,7 +209,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(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); } @@ -267,16 +240,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.datalabeling.v1beta1.AnnotationSpec)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.AnnotationSpec other = - (com.google.cloud.datalabeling.v1beta1.AnnotationSpec) obj; + com.google.cloud.datalabeling.v1beta1.AnnotationSpec other = (com.google.cloud.datalabeling.v1beta1.AnnotationSpec) obj; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -298,103 +272,96 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.AnnotationSpec 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.datalabeling.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.datalabeling.v1beta1.AnnotationSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.AnnotationSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.AnnotationSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.AnnotationSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.AnnotationSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.AnnotationSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.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; } /** - * - * *
    * Container of information related to one possible annotation that can be used
    * in a labeling task. For example, an image classification task where images
@@ -404,23 +371,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.AnnotationSpec)
       com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.AnnotationSpec.class,
-              com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.AnnotationSpec.class, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder()
@@ -428,15 +393,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();
@@ -448,9 +414,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor;
     }
 
     @java.lang.Override
@@ -469,8 +435,7 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.AnnotationSpec buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.AnnotationSpec result =
-          new com.google.cloud.datalabeling.v1beta1.AnnotationSpec(this);
+      com.google.cloud.datalabeling.v1beta1.AnnotationSpec result = new com.google.cloud.datalabeling.v1beta1.AnnotationSpec(this);
       result.displayName_ = displayName_;
       result.description_ = description_;
       onBuilt();
@@ -481,39 +446,38 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.AnnotationSpec) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotationSpec) other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotationSpec)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -521,8 +485,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.AnnotationSpec other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance()) return this;
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
         onChanged();
@@ -550,8 +513,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.datalabeling.v1beta1.AnnotationSpec) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.datalabeling.v1beta1.AnnotationSpec) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -563,20 +525,18 @@ public Builder mergeFrom(
 
     private java.lang.Object displayName_ = "";
     /**
-     *
-     *
      * 
      * Required. The display name of the AnnotationSpec. Maximum of 64 characters.
      * 
* * string display_name = 1; - * * @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; @@ -585,21 +545,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. The display name of the AnnotationSpec. Maximum of 64 characters.
      * 
* * string display_name = 1; - * * @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 { @@ -607,61 +566,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. The display name of the AnnotationSpec. Maximum of 64 characters.
      * 
* * string display_name = 1; - * * @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 display name of the AnnotationSpec. Maximum of 64 characters.
      * 
* * string display_name = 1; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Required. The display name of the AnnotationSpec. Maximum of 64 characters.
      * 
* * string display_name = 1; - * * @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; @@ -669,21 +621,19 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. User-provided description of the annotation specification.
      * The description can be up to 10,000 characters long.
      * 
* * string description = 2; - * * @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; @@ -692,22 +642,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. User-provided description of the annotation specification.
      * The description can be up to 10,000 characters long.
      * 
* * string description = 2; - * * @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 { @@ -715,71 +664,64 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. User-provided description of the annotation specification.
      * The description can be up to 10,000 characters long.
      * 
* * string description = 2; - * * @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; } /** - * - * *
      * Optional. User-provided description of the annotation specification.
      * The description can be up to 10,000 characters long.
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Optional. User-provided description of the annotation specification.
      * The description can be up to 10,000 characters long.
      * 
* * string description = 2; - * * @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; } - @java.lang.Override - 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 +731,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.AnnotationSpec) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.AnnotationSpec) private static final com.google.cloud.datalabeling.v1beta1.AnnotationSpec DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.AnnotationSpec(); } @@ -803,16 +745,16 @@ public static com.google.cloud.datalabeling.v1beta1.AnnotationSpec getDefaultIns 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; @@ -827,4 +769,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecOrBuilder.java similarity index 61% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecOrBuilder.java index 90a4007d..5db7dfdf 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecOrBuilder.java @@ -1,77 +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/datalabeling/v1beta1/annotation_spec_set.proto package com.google.cloud.datalabeling.v1beta1; -public interface AnnotationSpecOrBuilder - extends +public interface AnnotationSpecOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.AnnotationSpec) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The display name of the AnnotationSpec. Maximum of 64 characters.
    * 
* * string display_name = 1; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. The display name of the AnnotationSpec. Maximum of 64 characters.
    * 
* * string display_name = 1; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Optional. User-provided description of the annotation specification.
    * The description can be up to 10,000 characters long.
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. User-provided description of the annotation specification.
    * The description can be up to 10,000 characters long.
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSet.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSet.java similarity index 77% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSet.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSet.java index 33363c6b..b67c40aa 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSet.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSet.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/datalabeling/v1beta1/annotation_spec_set.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * An AnnotationSpecSet is a collection of label definitions. For example, in
  * image classification tasks, you define a set of possible labels for images as
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotationSpecSet}
  */
-public final class AnnotationSpecSet extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class AnnotationSpecSet extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.AnnotationSpecSet)
     AnnotationSpecSetOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use AnnotationSpecSet.newBuilder() to construct.
   private AnnotationSpecSet(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private AnnotationSpecSet() {
     name_ = "";
     displayName_ = "";
@@ -49,15 +31,16 @@ private AnnotationSpecSet() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new AnnotationSpecSet();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private AnnotationSpecSet(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -77,57 +60,49 @@ private AnnotationSpecSet(
           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;
-            }
-          case 34:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                annotationSpecs_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              annotationSpecs_.add(
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(),
-                      extensionRegistry));
-              break;
+            description_ = s;
+            break;
+          }
+          case 34: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              annotationSpecs_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                blockingResources_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              blockingResources_.add(s);
-              break;
+            annotationSpecs_.add(
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry));
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              blockingResources_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            blockingResources_.add(s);
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -135,7 +110,8 @@ private AnnotationSpecSet(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } 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)) {
         annotationSpecs_ = java.util.Collections.unmodifiableList(annotationSpecs_);
@@ -147,34 +123,28 @@ private AnnotationSpecSet(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.class,
-            com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.class, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Output only. The AnnotationSpecSet resource name in the following format:
    * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -183,30 +153,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 AnnotationSpecSet resource name in the following format:
    * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
    * 
* * 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 { @@ -217,15 +187,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Required. The display name for AnnotationSpecSet that you define when you
    * create it. Maximum of 64 characters.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -234,30 +201,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 display name for AnnotationSpecSet that you define when you
    * create it. Maximum of 64 characters.
    * 
* * 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 { @@ -268,15 +235,12 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * Optional. User-provided description of the annotation specification set.
    * The description can be up to 10,000 characters long.
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -285,30 +249,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; } } /** - * - * *
    * Optional. User-provided description of the annotation specification set.
    * The description can be up to 10,000 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 { @@ -319,8 +283,6 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int ANNOTATION_SPECS_FIELD_NUMBER = 4; private java.util.List annotationSpecs_; /** - * - * *
    * Required. The array of AnnotationSpecs that you define when you create the
    * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -329,13 +291,10 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
    */
   @java.lang.Override
-  public java.util.List
-      getAnnotationSpecsList() {
+  public java.util.List getAnnotationSpecsList() {
     return annotationSpecs_;
   }
   /**
-   *
-   *
    * 
    * Required. The array of AnnotationSpecs that you define when you create the
    * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -344,13 +303,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() {
    * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getAnnotationSpecsOrBuilderList() {
     return annotationSpecs_;
   }
   /**
-   *
-   *
    * 
    * Required. The array of AnnotationSpecs that you define when you create the
    * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -363,8 +320,6 @@ public int getAnnotationSpecsCount() {
     return annotationSpecs_.size();
   }
   /**
-   *
-   *
    * 
    * Required. The array of AnnotationSpecs that you define when you create the
    * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -377,8 +332,6 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpecs(i
     return annotationSpecs_.get(index);
   }
   /**
-   *
-   *
    * 
    * Required. The array of AnnotationSpecs that you define when you create the
    * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -395,45 +348,37 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotati
   public static final int BLOCKING_RESOURCES_FIELD_NUMBER = 5;
   private com.google.protobuf.LazyStringList blockingResources_;
   /**
-   *
-   *
    * 
    * Output only. The names of any related resources that are blocking changes
    * to the annotation spec set.
    * 
* * repeated string blocking_resources = 5; - * * @return A list containing the blockingResources. */ - public com.google.protobuf.ProtocolStringList getBlockingResourcesList() { + public com.google.protobuf.ProtocolStringList + getBlockingResourcesList() { return blockingResources_; } /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotation spec set.
    * 
* * repeated string blocking_resources = 5; - * * @return The count of blockingResources. */ public int getBlockingResourcesCount() { return blockingResources_.size(); } /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotation spec set.
    * 
* * repeated string blocking_resources = 5; - * * @param index The index of the element to return. * @return The blockingResources at the given index. */ @@ -441,24 +386,21 @@ public java.lang.String getBlockingResources(int index) { return blockingResources_.get(index); } /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotation spec set.
    * 
* * repeated string blocking_resources = 5; - * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - public com.google.protobuf.ByteString getBlockingResourcesBytes(int index) { + public com.google.protobuf.ByteString + getBlockingResourcesBytes(int index) { return blockingResources_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -470,7 +412,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_); } @@ -505,7 +448,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } for (int i = 0; i < annotationSpecs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, annotationSpecs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, annotationSpecs_.get(i)); } { int dataSize = 0; @@ -523,19 +467,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.datalabeling.v1beta1.AnnotationSpecSet)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet other = - (com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getAnnotationSpecsList().equals(other.getAnnotationSpecsList())) return false; - if (!getBlockingResourcesList().equals(other.getBlockingResourcesList())) return false; + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet other = (com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (!getAnnotationSpecsList() + .equals(other.getAnnotationSpecsList())) return false; + if (!getBlockingResourcesList() + .equals(other.getBlockingResourcesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -567,104 +515,96 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet 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.datalabeling.v1beta1.AnnotationSpecSet parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 AnnotationSpecSet is a collection of label definitions. For example, in
    * image classification tasks, you define a set of possible labels for images as
@@ -673,23 +613,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotationSpecSet}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.AnnotationSpecSet)
       com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.class,
-              com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.class, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.newBuilder()
@@ -697,17 +635,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) {
         getAnnotationSpecsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -729,9 +667,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_descriptor;
     }
 
     @java.lang.Override
@@ -750,8 +688,7 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet result =
-          new com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet(this);
+      com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet result = new com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.displayName_ = displayName_;
@@ -778,39 +715,38 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet) other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -818,8 +754,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -850,10 +785,9 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet
             annotationSpecsBuilder_ = null;
             annotationSpecs_ = other.annotationSpecs_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            annotationSpecsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getAnnotationSpecsFieldBuilder()
-                    : null;
+            annotationSpecsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getAnnotationSpecsFieldBuilder() : null;
           } else {
             annotationSpecsBuilder_.addAllMessages(other.annotationSpecs_);
           }
@@ -888,8 +822,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -898,26 +831,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. The AnnotationSpecSet resource name in the following format:
      * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
      * 
* * 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; @@ -926,22 +856,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. The AnnotationSpecSet resource name in the following format:
      * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
      * 
* * 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 { @@ -949,64 +878,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. The AnnotationSpecSet resource name in the following format:
      * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
      * 
* * 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 AnnotationSpecSet resource name in the following format:
      * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. The AnnotationSpecSet resource name in the following format:
      * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
      * 
* * 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; @@ -1014,21 +936,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. The display name for AnnotationSpecSet that you define when you
      * create it. Maximum of 64 characters.
      * 
* * 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; @@ -1037,22 +957,21 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. The display name for AnnotationSpecSet that you define when you
      * create it. Maximum of 64 characters.
      * 
* * 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 { @@ -1060,64 +979,57 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. The display name for AnnotationSpecSet that you define when you
      * create it. Maximum of 64 characters.
      * 
* * 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 display name for AnnotationSpecSet that you define when you
      * create it. Maximum of 64 characters.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Required. The display name for AnnotationSpecSet that you define when you
      * create it. Maximum of 64 characters.
      * 
* * 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; @@ -1125,21 +1037,19 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. User-provided description of the annotation specification set.
      * The description can be up to 10,000 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; @@ -1148,22 +1058,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. User-provided description of the annotation specification set.
      * The description can be up to 10,000 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 { @@ -1171,90 +1080,75 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. User-provided description of the annotation specification set.
      * The description can be up to 10,000 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; } /** - * - * *
      * Optional. User-provided description of the annotation specification set.
      * The description can be up to 10,000 characters long.
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Optional. User-provided description of the annotation specification set.
      * The description can be up to 10,000 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 java.util.List annotationSpecs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAnnotationSpecsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - annotationSpecs_ = - new java.util.ArrayList( - annotationSpecs_); + annotationSpecs_ = new java.util.ArrayList(annotationSpecs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> - annotationSpecsBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecsBuilder_; /** - * - * *
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1262,8 +1156,7 @@ private void ensureAnnotationSpecsIsMutable() {
      *
      * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
      */
-    public java.util.List
-        getAnnotationSpecsList() {
+    public java.util.List getAnnotationSpecsList() {
       if (annotationSpecsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(annotationSpecs_);
       } else {
@@ -1271,8 +1164,6 @@ private void ensureAnnotationSpecsIsMutable() {
       }
     }
     /**
-     *
-     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1288,8 +1179,6 @@ public int getAnnotationSpecsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1305,8 +1194,6 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpecs(i
       }
     }
     /**
-     *
-     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1329,8 +1216,6 @@ public Builder setAnnotationSpecs(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1350,8 +1235,6 @@ public Builder setAnnotationSpecs(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1373,8 +1256,6 @@ public Builder addAnnotationSpecs(com.google.cloud.datalabeling.v1beta1.Annotati
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1397,8 +1278,6 @@ public Builder addAnnotationSpecs(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1418,8 +1297,6 @@ public Builder addAnnotationSpecs(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1439,8 +1316,6 @@ public Builder addAnnotationSpecs(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1452,7 +1327,8 @@ public Builder addAllAnnotationSpecs(
         java.lang.Iterable values) {
       if (annotationSpecsBuilder_ == null) {
         ensureAnnotationSpecsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationSpecs_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, annotationSpecs_);
         onChanged();
       } else {
         annotationSpecsBuilder_.addAllMessages(values);
@@ -1460,8 +1336,6 @@ public Builder addAllAnnotationSpecs(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1480,8 +1354,6 @@ public Builder clearAnnotationSpecs() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1500,8 +1372,6 @@ public Builder removeAnnotationSpecs(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1514,8 +1384,6 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio
       return getAnnotationSpecsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1523,17 +1391,14 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio
      *
      * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
      */
-    public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder
-        getAnnotationSpecsOrBuilder(int index) {
+    public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecsOrBuilder(
+        int index) {
       if (annotationSpecsBuilder_ == null) {
-        return annotationSpecs_.get(index);
-      } else {
+        return annotationSpecs_.get(index);  } else {
         return annotationSpecsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1541,8 +1406,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio
      *
      * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
      */
-    public java.util.List
-        getAnnotationSpecsOrBuilderList() {
+    public java.util.List 
+         getAnnotationSpecsOrBuilderList() {
       if (annotationSpecsBuilder_ != null) {
         return annotationSpecsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1550,8 +1415,6 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio
       }
     }
     /**
-     *
-     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1559,14 +1422,11 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio
      *
      * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
      */
-    public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder
-        addAnnotationSpecsBuilder() {
-      return getAnnotationSpecsFieldBuilder()
-          .addBuilder(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance());
+    public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder addAnnotationSpecsBuilder() {
+      return getAnnotationSpecsFieldBuilder().addBuilder(
+          com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1576,13 +1436,10 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio
      */
     public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder addAnnotationSpecsBuilder(
         int index) {
-      return getAnnotationSpecsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance());
+      return getAnnotationSpecsFieldBuilder().addBuilder(
+          index, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1590,22 +1447,16 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder addAnnotatio
      *
      * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
      */
-    public java.util.List
-        getAnnotationSpecsBuilderList() {
+    public java.util.List 
+         getAnnotationSpecsBuilderList() {
       return getAnnotationSpecsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.AnnotationSpec,
-            com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder,
-            com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>
+        com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> 
         getAnnotationSpecsFieldBuilder() {
       if (annotationSpecsBuilder_ == null) {
-        annotationSpecsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.datalabeling.v1beta1.AnnotationSpec,
-                com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder,
-                com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>(
+        annotationSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>(
                 annotationSpecs_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1615,55 +1466,45 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder addAnnotatio
       return annotationSpecsBuilder_;
     }
 
-    private com.google.protobuf.LazyStringList blockingResources_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
-
+    private com.google.protobuf.LazyStringList blockingResources_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     private void ensureBlockingResourcesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
         blockingResources_ = new com.google.protobuf.LazyStringArrayList(blockingResources_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * Output only. The names of any related resources that are blocking changes
      * to the annotation spec set.
      * 
* * repeated string blocking_resources = 5; - * * @return A list containing the blockingResources. */ - public com.google.protobuf.ProtocolStringList getBlockingResourcesList() { + public com.google.protobuf.ProtocolStringList + getBlockingResourcesList() { return blockingResources_.getUnmodifiableView(); } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotation spec set.
      * 
* * repeated string blocking_resources = 5; - * * @return The count of blockingResources. */ public int getBlockingResourcesCount() { return blockingResources_.size(); } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotation spec set.
      * 
* * repeated string blocking_resources = 5; - * * @param index The index of the element to return. * @return The blockingResources at the given index. */ @@ -1671,95 +1512,85 @@ public java.lang.String getBlockingResources(int index) { return blockingResources_.get(index); } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotation spec set.
      * 
* * repeated string blocking_resources = 5; - * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - public com.google.protobuf.ByteString getBlockingResourcesBytes(int index) { + public com.google.protobuf.ByteString + getBlockingResourcesBytes(int index) { return blockingResources_.getByteString(index); } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotation spec set.
      * 
* * repeated string blocking_resources = 5; - * * @param index The index to set the value at. * @param value The blockingResources to set. * @return This builder for chaining. */ - public Builder setBlockingResources(int index, java.lang.String value) { + public Builder setBlockingResources( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlockingResourcesIsMutable(); + throw new NullPointerException(); + } + ensureBlockingResourcesIsMutable(); blockingResources_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotation spec set.
      * 
* * repeated string blocking_resources = 5; - * * @param value The blockingResources to add. * @return This builder for chaining. */ - public Builder addBlockingResources(java.lang.String value) { + public Builder addBlockingResources( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlockingResourcesIsMutable(); + throw new NullPointerException(); + } + ensureBlockingResourcesIsMutable(); blockingResources_.add(value); onChanged(); return this; } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotation spec set.
      * 
* * repeated string blocking_resources = 5; - * * @param values The blockingResources to add. * @return This builder for chaining. */ - public Builder addAllBlockingResources(java.lang.Iterable values) { + public Builder addAllBlockingResources( + java.lang.Iterable values) { ensureBlockingResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blockingResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blockingResources_); onChanged(); return this; } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotation spec set.
      * 
* * repeated string blocking_resources = 5; - * * @return This builder for chaining. */ public Builder clearBlockingResources() { @@ -1769,31 +1600,29 @@ public Builder clearBlockingResources() { return this; } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotation spec set.
      * 
* * repeated string blocking_resources = 5; - * * @param value The bytes of the blockingResources to add. * @return This builder for chaining. */ - public Builder addBlockingResourcesBytes(com.google.protobuf.ByteString value) { + public Builder addBlockingResourcesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureBlockingResourcesIsMutable(); blockingResources_.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); } @@ -1803,12 +1632,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.AnnotationSpecSet) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.AnnotationSpecSet) private static final com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet(); } @@ -1817,16 +1646,16 @@ public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotationSpecSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotationSpecSet(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotationSpecSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotationSpecSet(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1841,4 +1670,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetName.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetName.java similarity index 100% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetName.java diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOrBuilder.java similarity index 81% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOrBuilder.java index 83bcec55..98c02da1 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOrBuilder.java @@ -1,112 +1,79 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/annotation_spec_set.proto package com.google.cloud.datalabeling.v1beta1; -public interface AnnotationSpecSetOrBuilder - extends +public interface AnnotationSpecSetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.AnnotationSpecSet) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The AnnotationSpecSet resource name in the following format:
    * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. The AnnotationSpecSet resource name in the following format:
    * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The display name for AnnotationSpecSet that you define when you
    * create it. Maximum of 64 characters.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. The display name for AnnotationSpecSet that you define when you
    * create it. Maximum of 64 characters.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Optional. User-provided description of the annotation specification set.
    * The description can be up to 10,000 characters long.
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. User-provided description of the annotation specification set.
    * The description can be up to 10,000 characters long.
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Required. The array of AnnotationSpecs that you define when you create the
    * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -114,10 +81,9 @@ public interface AnnotationSpecSetOrBuilder
    *
    * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
    */
-  java.util.List getAnnotationSpecsList();
+  java.util.List 
+      getAnnotationSpecsList();
   /**
-   *
-   *
    * 
    * Required. The array of AnnotationSpecs that you define when you create the
    * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -127,8 +93,6 @@ public interface AnnotationSpecSetOrBuilder
    */
   com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpecs(int index);
   /**
-   *
-   *
    * 
    * Required. The array of AnnotationSpecs that you define when you create the
    * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -138,8 +102,6 @@ public interface AnnotationSpecSetOrBuilder
    */
   int getAnnotationSpecsCount();
   /**
-   *
-   *
    * 
    * Required. The array of AnnotationSpecs that you define when you create the
    * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -147,11 +109,9 @@ public interface AnnotationSpecSetOrBuilder
    *
    * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
    */
-  java.util.List
+  java.util.List 
       getAnnotationSpecsOrBuilderList();
   /**
-   *
-   *
    * 
    * Required. The array of AnnotationSpecs that you define when you create the
    * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -163,57 +123,47 @@ com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecs
       int index);
 
   /**
-   *
-   *
    * 
    * Output only. The names of any related resources that are blocking changes
    * to the annotation spec set.
    * 
* * repeated string blocking_resources = 5; - * * @return A list containing the blockingResources. */ - java.util.List getBlockingResourcesList(); + java.util.List + getBlockingResourcesList(); /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotation spec set.
    * 
* * repeated string blocking_resources = 5; - * * @return The count of blockingResources. */ int getBlockingResourcesCount(); /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotation spec set.
    * 
* * repeated string blocking_resources = 5; - * * @param index The index of the element to return. * @return The blockingResources at the given index. */ java.lang.String getBlockingResources(int index); /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotation spec set.
    * 
* * repeated string blocking_resources = 5; - * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - com.google.protobuf.ByteString getBlockingResourcesBytes(int index); + com.google.protobuf.ByteString + getBlockingResourcesBytes(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOuterClass.java new file mode 100644 index 00000000..5eafd3b2 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOuterClass.java @@ -0,0 +1,84 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/annotation_spec_set.proto + +package com.google.cloud.datalabeling.v1beta1; + +public final class AnnotationSpecSetOuterClass { + private AnnotationSpecSetOuterClass() {} + 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_datalabeling_v1beta1_AnnotationSpecSet_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_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 = { + "\n;google/cloud/datalabeling/v1beta1/anno" + + "tation_spec_set.proto\022!google.cloud.data" + + "labeling.v1beta1\032\034google/api/annotations" + + ".proto\032\031google/api/resource.proto\"\246\002\n\021An" + + "notationSpecSet\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\022K\n\020anno" + + "tation_specs\030\004 \003(\01321.google.cloud.datala" + + "beling.v1beta1.AnnotationSpec\022\032\n\022blockin" + + "g_resources\030\005 \003(\t:o\352Al\n-datalabeling.goo" + + "gleapis.com/AnnotationSpecSet\022;projects/" + + "{project}/annotationSpecSets/{annotation" + + "_spec_set}\";\n\016AnnotationSpec\022\024\n\014display_" + + "name\030\001 \001(\t\022\023\n\013description\030\002 \001(\tB\347\001\n%com." + + "google.cloud.datalabeling.v1beta1P\001ZMgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/datalabeling/v1beta1;datalabeling\252\002!Goo" + + "gle.Cloud.DataLabeling.V1Beta1\312\002!Google\\" + + "Cloud\\DataLabeling\\V1beta1\352\002$Google::Clo" + + "ud::DataLabeling::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Description", "AnnotationSpecs", "BlockingResources", }); + internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor, + new java.lang.String[] { "DisplayName", "Description", }); + 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.AnnotationsProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationType.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationType.java similarity index 73% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationType.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationType.java index 64c20e62..19499bf2 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationType.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationType.java @@ -1,30 +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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -/** Protobuf enum {@code google.cloud.datalabeling.v1beta1.AnnotationType} */ -public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { - /** ANNOTATION_TYPE_UNSPECIFIED = 0; */ +/** + * Protobuf enum {@code google.cloud.datalabeling.v1beta1.AnnotationType} + */ +public enum AnnotationType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * ANNOTATION_TYPE_UNSPECIFIED = 0; + */ ANNOTATION_TYPE_UNSPECIFIED(0), /** - * - * *
    * Classification annotations in an image. Allowed for continuous evaluation.
    * 
@@ -33,8 +21,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { */ IMAGE_CLASSIFICATION_ANNOTATION(1), /** - * - * *
    * Bounding box annotations in an image. A form of image object detection.
    * Allowed for continuous evaluation.
@@ -44,8 +30,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum {
    */
   IMAGE_BOUNDING_BOX_ANNOTATION(2),
   /**
-   *
-   *
    * 
    * Oriented bounding box. The box does not have to be parallel to horizontal
    * line.
@@ -55,8 +39,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum {
    */
   IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION(13),
   /**
-   *
-   *
    * 
    * Bounding poly annotations in an image.
    * 
@@ -65,8 +47,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { */ IMAGE_BOUNDING_POLY_ANNOTATION(10), /** - * - * *
    * Polyline annotations in an image.
    * 
@@ -75,8 +55,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { */ IMAGE_POLYLINE_ANNOTATION(11), /** - * - * *
    * Segmentation annotations in an image.
    * 
@@ -85,8 +63,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { */ IMAGE_SEGMENTATION_ANNOTATION(12), /** - * - * *
    * Classification annotations in video shots.
    * 
@@ -95,8 +71,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { */ VIDEO_SHOTS_CLASSIFICATION_ANNOTATION(3), /** - * - * *
    * Video object tracking annotation.
    * 
@@ -105,8 +79,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { */ VIDEO_OBJECT_TRACKING_ANNOTATION(4), /** - * - * *
    * Video object detection annotation.
    * 
@@ -115,8 +87,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { */ VIDEO_OBJECT_DETECTION_ANNOTATION(5), /** - * - * *
    * Video event annotation.
    * 
@@ -125,8 +95,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { */ VIDEO_EVENT_ANNOTATION(6), /** - * - * *
    * Classification for text. Allowed for continuous evaluation.
    * 
@@ -135,8 +103,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { */ TEXT_CLASSIFICATION_ANNOTATION(8), /** - * - * *
    * Entity extraction for text.
    * 
@@ -145,8 +111,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { */ TEXT_ENTITY_EXTRACTION_ANNOTATION(9), /** - * - * *
    * General classification. Allowed for continuous evaluation.
    * 
@@ -157,11 +121,11 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; - /** ANNOTATION_TYPE_UNSPECIFIED = 0; */ + /** + * ANNOTATION_TYPE_UNSPECIFIED = 0; + */ public static final int ANNOTATION_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Classification annotations in an image. Allowed for continuous evaluation.
    * 
@@ -170,8 +134,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IMAGE_CLASSIFICATION_ANNOTATION_VALUE = 1; /** - * - * *
    * Bounding box annotations in an image. A form of image object detection.
    * Allowed for continuous evaluation.
@@ -181,8 +143,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int IMAGE_BOUNDING_BOX_ANNOTATION_VALUE = 2;
   /**
-   *
-   *
    * 
    * Oriented bounding box. The box does not have to be parallel to horizontal
    * line.
@@ -192,8 +152,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION_VALUE = 13;
   /**
-   *
-   *
    * 
    * Bounding poly annotations in an image.
    * 
@@ -202,8 +160,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IMAGE_BOUNDING_POLY_ANNOTATION_VALUE = 10; /** - * - * *
    * Polyline annotations in an image.
    * 
@@ -212,8 +168,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IMAGE_POLYLINE_ANNOTATION_VALUE = 11; /** - * - * *
    * Segmentation annotations in an image.
    * 
@@ -222,8 +176,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int IMAGE_SEGMENTATION_ANNOTATION_VALUE = 12; /** - * - * *
    * Classification annotations in video shots.
    * 
@@ -232,8 +184,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VIDEO_SHOTS_CLASSIFICATION_ANNOTATION_VALUE = 3; /** - * - * *
    * Video object tracking annotation.
    * 
@@ -242,8 +192,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VIDEO_OBJECT_TRACKING_ANNOTATION_VALUE = 4; /** - * - * *
    * Video object detection annotation.
    * 
@@ -252,8 +200,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VIDEO_OBJECT_DETECTION_ANNOTATION_VALUE = 5; /** - * - * *
    * Video event annotation.
    * 
@@ -262,8 +208,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VIDEO_EVENT_ANNOTATION_VALUE = 6; /** - * - * *
    * Classification for text. Allowed for continuous evaluation.
    * 
@@ -272,8 +216,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TEXT_CLASSIFICATION_ANNOTATION_VALUE = 8; /** - * - * *
    * Entity extraction for text.
    * 
@@ -282,8 +224,6 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TEXT_ENTITY_EXTRACTION_ANNOTATION_VALUE = 9; /** - * - * *
    * General classification. Allowed for continuous evaluation.
    * 
@@ -292,6 +232,7 @@ public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GENERAL_CLASSIFICATION_ANNOTATION_VALUE = 14; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -316,73 +257,60 @@ public static AnnotationType valueOf(int value) { */ public static AnnotationType forNumber(int value) { switch (value) { - case 0: - return ANNOTATION_TYPE_UNSPECIFIED; - case 1: - return IMAGE_CLASSIFICATION_ANNOTATION; - case 2: - return IMAGE_BOUNDING_BOX_ANNOTATION; - case 13: - return IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION; - case 10: - return IMAGE_BOUNDING_POLY_ANNOTATION; - case 11: - return IMAGE_POLYLINE_ANNOTATION; - case 12: - return IMAGE_SEGMENTATION_ANNOTATION; - case 3: - return VIDEO_SHOTS_CLASSIFICATION_ANNOTATION; - case 4: - return VIDEO_OBJECT_TRACKING_ANNOTATION; - case 5: - return VIDEO_OBJECT_DETECTION_ANNOTATION; - case 6: - return VIDEO_EVENT_ANNOTATION; - case 8: - return TEXT_CLASSIFICATION_ANNOTATION; - case 9: - return TEXT_ENTITY_EXTRACTION_ANNOTATION; - case 14: - return GENERAL_CLASSIFICATION_ANNOTATION; - default: - return null; + case 0: return ANNOTATION_TYPE_UNSPECIFIED; + case 1: return IMAGE_CLASSIFICATION_ANNOTATION; + case 2: return IMAGE_BOUNDING_BOX_ANNOTATION; + case 13: return IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION; + case 10: return IMAGE_BOUNDING_POLY_ANNOTATION; + case 11: return IMAGE_POLYLINE_ANNOTATION; + case 12: return IMAGE_SEGMENTATION_ANNOTATION; + case 3: return VIDEO_SHOTS_CLASSIFICATION_ANNOTATION; + case 4: return VIDEO_OBJECT_TRACKING_ANNOTATION; + case 5: return VIDEO_OBJECT_DETECTION_ANNOTATION; + case 6: return VIDEO_EVENT_ANNOTATION; + case 8: return TEXT_CLASSIFICATION_ANNOTATION; + case 9: return TEXT_ENTITY_EXTRACTION_ANNOTATION; + case 14: return GENERAL_CLASSIFICATION_ANNOTATION; + 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< + AnnotationType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AnnotationType findValueByNumber(int number) { + return AnnotationType.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AnnotationType findValueByNumber(int number) { - return AnnotationType.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.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor() - .getEnumTypes() - .get(2); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor().getEnumTypes().get(2); } private static final AnnotationType[] VALUES = values(); - public static AnnotationType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static AnnotationType 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; @@ -398,3 +326,4 @@ private AnnotationType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.datalabeling.v1beta1.AnnotationType) } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValue.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValue.java similarity index 57% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValue.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValue.java index 14a1b57d..1d14eeef 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValue.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValue.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Annotation value for an example.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotationValue} */ -public final class AnnotationValue extends com.google.protobuf.GeneratedMessageV3 - implements +public final class AnnotationValue extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.AnnotationValue) AnnotationValueOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use AnnotationValue.newBuilder() to construct. private AnnotationValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private AnnotationValue() {} + private AnnotationValue() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnnotationValue(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AnnotationValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,211 +52,139 @@ private AnnotationValue( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder - subBuilder = null; - if (valueTypeCase_ == 1) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) - valueType_) - .toBuilder(); - } - valueType_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) - valueType_); - valueType_ = subBuilder.buildPartial(); - } - valueTypeCase_ = 1; - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder subBuilder = null; + if (valueTypeCase_ == 1) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_).toBuilder(); + } + valueType_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_); + valueType_ = subBuilder.buildPartial(); + } + valueTypeCase_ = 1; + break; + } + case 18: { + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder subBuilder = null; + if (valueTypeCase_ == 2) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_).toBuilder(); + } + valueType_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_); + valueType_ = subBuilder.buildPartial(); + } + valueTypeCase_ = 2; + break; + } + case 26: { + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder subBuilder = null; + if (valueTypeCase_ == 3) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_).toBuilder(); } - case 18: - { - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder subBuilder = - null; - if (valueTypeCase_ == 2) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_) - .toBuilder(); - } - valueType_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_); - valueType_ = subBuilder.buildPartial(); - } - valueTypeCase_ = 2; - break; + valueType_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_); + valueType_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder - subBuilder = null; - if (valueTypeCase_ == 3) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) - valueType_) - .toBuilder(); - } - valueType_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) - valueType_); - valueType_ = subBuilder.buildPartial(); - } - valueTypeCase_ = 3; - break; + valueTypeCase_ = 3; + break; + } + case 34: { + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder subBuilder = null; + if (valueTypeCase_ == 4) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_).toBuilder(); } - case 34: - { - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder - subBuilder = null; - if (valueTypeCase_ == 4) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) - valueType_) - .toBuilder(); - } - valueType_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) - valueType_); - valueType_ = subBuilder.buildPartial(); - } - valueTypeCase_ = 4; - break; + valueType_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_); + valueType_ = subBuilder.buildPartial(); } - case 42: - { - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder - subBuilder = null; - if (valueTypeCase_ == 5) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) - valueType_) - .toBuilder(); - } - valueType_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) - valueType_); - valueType_ = subBuilder.buildPartial(); - } - valueTypeCase_ = 5; - break; + valueTypeCase_ = 4; + break; + } + case 42: { + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder subBuilder = null; + if (valueTypeCase_ == 5) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_).toBuilder(); } - case 50: - { - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder subBuilder = null; - if (valueTypeCase_ == 6) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_) - .toBuilder(); - } - valueType_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_); - valueType_ = subBuilder.buildPartial(); - } - valueTypeCase_ = 6; - break; + valueType_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_); + valueType_ = subBuilder.buildPartial(); } - case 66: - { - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder subBuilder = - null; - if (valueTypeCase_ == 8) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_) - .toBuilder(); - } - valueType_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_); - valueType_ = subBuilder.buildPartial(); - } - valueTypeCase_ = 8; - break; + valueTypeCase_ = 5; + break; + } + case 50: { + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder subBuilder = null; + if (valueTypeCase_ == 6) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_).toBuilder(); } - case 74: - { - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder subBuilder = - null; - if (valueTypeCase_ == 9) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_) - .toBuilder(); - } - valueType_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_); - valueType_ = subBuilder.buildPartial(); - } - valueTypeCase_ = 9; - break; + valueType_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_); + valueType_ = subBuilder.buildPartial(); } - case 82: - { - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder - subBuilder = null; - if (valueTypeCase_ == 10) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) - valueType_) - .toBuilder(); - } - valueType_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) - valueType_); - valueType_ = subBuilder.buildPartial(); - } - valueTypeCase_ = 10; - break; + valueTypeCase_ = 6; + break; + } + case 66: { + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder subBuilder = null; + if (valueTypeCase_ == 8) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + valueType_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_); + valueType_ = subBuilder.buildPartial(); } + valueTypeCase_ = 8; + break; + } + case 74: { + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder subBuilder = null; + if (valueTypeCase_ == 9) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_).toBuilder(); + } + valueType_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_); + valueType_ = subBuilder.buildPartial(); + } + valueTypeCase_ = 9; + break; + } + case 82: { + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder subBuilder = null; + if (valueTypeCase_ == 10) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_).toBuilder(); + } + valueType_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_); + valueType_ = subBuilder.buildPartial(); + } + valueTypeCase_ = 10; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -280,34 +192,30 @@ private AnnotationValue( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.AnnotationValue.class, - com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder.class); + com.google.cloud.datalabeling.v1beta1.AnnotationValue.class, com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder.class); } private int valueTypeCase_ = 0; private java.lang.Object valueType_; - public enum ValueTypeCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { IMAGE_CLASSIFICATION_ANNOTATION(1), IMAGE_BOUNDING_POLY_ANNOTATION(2), @@ -320,7 +228,6 @@ public enum ValueTypeCase VIDEO_EVENT_ANNOTATION(6), VALUETYPE_NOT_SET(0); private final int value; - private ValueTypeCase(int value) { this.value = value; } @@ -336,52 +243,37 @@ public static ValueTypeCase valueOf(int value) { public static ValueTypeCase forNumber(int value) { switch (value) { - case 1: - return IMAGE_CLASSIFICATION_ANNOTATION; - case 2: - return IMAGE_BOUNDING_POLY_ANNOTATION; - case 8: - return IMAGE_POLYLINE_ANNOTATION; - case 9: - return IMAGE_SEGMENTATION_ANNOTATION; - case 3: - return TEXT_CLASSIFICATION_ANNOTATION; - case 10: - return TEXT_ENTITY_EXTRACTION_ANNOTATION; - case 4: - return VIDEO_CLASSIFICATION_ANNOTATION; - case 5: - return VIDEO_OBJECT_TRACKING_ANNOTATION; - case 6: - return VIDEO_EVENT_ANNOTATION; - case 0: - return VALUETYPE_NOT_SET; - default: - return null; + case 1: return IMAGE_CLASSIFICATION_ANNOTATION; + case 2: return IMAGE_BOUNDING_POLY_ANNOTATION; + case 8: return IMAGE_POLYLINE_ANNOTATION; + case 9: return IMAGE_SEGMENTATION_ANNOTATION; + case 3: return TEXT_CLASSIFICATION_ANNOTATION; + case 10: return TEXT_ENTITY_EXTRACTION_ANNOTATION; + case 4: return VIDEO_CLASSIFICATION_ANNOTATION; + case 5: return VIDEO_OBJECT_TRACKING_ANNOTATION; + case 6: return VIDEO_EVENT_ANNOTATION; + case 0: return VALUETYPE_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public ValueTypeCase getValueTypeCase() { - return ValueTypeCase.forNumber(valueTypeCase_); + public ValueTypeCase + getValueTypeCase() { + return ValueTypeCase.forNumber( + valueTypeCase_); } public static final int IMAGE_CLASSIFICATION_ANNOTATION_FIELD_NUMBER = 1; /** - * - * *
    * Annotation value for image classification case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; * @return Whether the imageClassificationAnnotation field is set. */ @java.lang.Override @@ -389,59 +281,43 @@ public boolean hasImageClassificationAnnotation() { return valueTypeCase_ == 1; } /** - * - * *
    * Annotation value for image classification case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; * @return The imageClassificationAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation - getImageClassificationAnnotation() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation getImageClassificationAnnotation() { if (valueTypeCase_ == 1) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.getDefaultInstance(); } /** - * - * *
    * Annotation value for image classification case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder - getImageClassificationAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder getImageClassificationAnnotationOrBuilder() { if (valueTypeCase_ == 1) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.getDefaultInstance(); } public static final int IMAGE_BOUNDING_POLY_ANNOTATION_FIELD_NUMBER = 2; /** - * - * *
    * Annotation value for image bounding box, oriented bounding box
    * and polygon cases.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; - * - * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; * @return Whether the imageBoundingPolyAnnotation field is set. */ @java.lang.Override @@ -449,52 +325,39 @@ public boolean hasImageBoundingPolyAnnotation() { return valueTypeCase_ == 2; } /** - * - * *
    * Annotation value for image bounding box, oriented bounding box
    * and polygon cases.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; - * - * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; * @return The imageBoundingPolyAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation - getImageBoundingPolyAnnotation() { + public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation getImageBoundingPolyAnnotation() { if (valueTypeCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.getDefaultInstance(); } /** - * - * *
    * Annotation value for image bounding box, oriented bounding box
    * and polygon cases.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; - * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder - getImageBoundingPolyAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder getImageBoundingPolyAnnotationOrBuilder() { if (valueTypeCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.getDefaultInstance(); } public static final int IMAGE_POLYLINE_ANNOTATION_FIELD_NUMBER = 8; /** - * - * *
    * Annotation value for image polyline cases.
    * Polyline here is different from BoundingPoly. It is formed by
@@ -502,9 +365,7 @@ public boolean hasImageBoundingPolyAnnotation() {
    * The line segments can cross each other.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; - * - * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; * @return Whether the imagePolylineAnnotation field is set. */ @java.lang.Override @@ -512,8 +373,6 @@ public boolean hasImagePolylineAnnotation() { return valueTypeCase_ == 8; } /** - * - * *
    * Annotation value for image polyline cases.
    * Polyline here is different from BoundingPoly. It is formed by
@@ -521,22 +380,17 @@ public boolean hasImagePolylineAnnotation() {
    * The line segments can cross each other.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; - * - * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; * @return The imagePolylineAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation - getImagePolylineAnnotation() { + public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation getImagePolylineAnnotation() { if (valueTypeCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.getDefaultInstance(); } /** - * - * *
    * Annotation value for image polyline cases.
    * Polyline here is different from BoundingPoly. It is formed by
@@ -544,30 +398,23 @@ public boolean hasImagePolylineAnnotation() {
    * The line segments can cross each other.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; - * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder - getImagePolylineAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder getImagePolylineAnnotationOrBuilder() { if (valueTypeCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.getDefaultInstance(); } public static final int IMAGE_SEGMENTATION_ANNOTATION_FIELD_NUMBER = 9; /** - * - * *
    * Annotation value for image segmentation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; - * - * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; * @return Whether the imageSegmentationAnnotation field is set. */ @java.lang.Override @@ -575,58 +422,42 @@ public boolean hasImageSegmentationAnnotation() { return valueTypeCase_ == 9; } /** - * - * *
    * Annotation value for image segmentation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; - * - * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; * @return The imageSegmentationAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation - getImageSegmentationAnnotation() { + public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation getImageSegmentationAnnotation() { if (valueTypeCase_ == 9) { - return (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.getDefaultInstance(); } /** - * - * *
    * Annotation value for image segmentation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; - * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder - getImageSegmentationAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder getImageSegmentationAnnotationOrBuilder() { if (valueTypeCase_ == 9) { - return (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.getDefaultInstance(); } public static final int TEXT_CLASSIFICATION_ANNOTATION_FIELD_NUMBER = 3; /** - * - * *
    * Annotation value for text classification case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; * @return Whether the textClassificationAnnotation field is set. */ @java.lang.Override @@ -634,58 +465,42 @@ public boolean hasTextClassificationAnnotation() { return valueTypeCase_ == 3; } /** - * - * *
    * Annotation value for text classification case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; * @return The textClassificationAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation - getTextClassificationAnnotation() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation getTextClassificationAnnotation() { if (valueTypeCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.getDefaultInstance(); } /** - * - * *
    * Annotation value for text classification case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder - getTextClassificationAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder getTextClassificationAnnotationOrBuilder() { if (valueTypeCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.getDefaultInstance(); } public static final int TEXT_ENTITY_EXTRACTION_ANNOTATION_FIELD_NUMBER = 10; /** - * - * *
    * Annotation value for text entity extraction case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; - * - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; * @return Whether the textEntityExtractionAnnotation field is set. */ @java.lang.Override @@ -693,60 +508,42 @@ public boolean hasTextEntityExtractionAnnotation() { return valueTypeCase_ == 10; } /** - * - * *
    * Annotation value for text entity extraction case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; - * - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; * @return The textEntityExtractionAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation - getTextEntityExtractionAnnotation() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation getTextEntityExtractionAnnotation() { if (valueTypeCase_ == 10) { - return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.getDefaultInstance(); } /** - * - * *
    * Annotation value for text entity extraction case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder - getTextEntityExtractionAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder getTextEntityExtractionAnnotationOrBuilder() { if (valueTypeCase_ == 10) { - return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.getDefaultInstance(); } public static final int VIDEO_CLASSIFICATION_ANNOTATION_FIELD_NUMBER = 4; /** - * - * *
    * Annotation value for video classification case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; - * - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; * @return Whether the videoClassificationAnnotation field is set. */ @java.lang.Override @@ -754,58 +551,42 @@ public boolean hasVideoClassificationAnnotation() { return valueTypeCase_ == 4; } /** - * - * *
    * Annotation value for video classification case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; - * - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; * @return The videoClassificationAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation - getVideoClassificationAnnotation() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation getVideoClassificationAnnotation() { if (valueTypeCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.getDefaultInstance(); } /** - * - * *
    * Annotation value for video classification case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder - getVideoClassificationAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder getVideoClassificationAnnotationOrBuilder() { if (valueTypeCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.getDefaultInstance(); } public static final int VIDEO_OBJECT_TRACKING_ANNOTATION_FIELD_NUMBER = 5; /** - * - * *
    * Annotation value for video object detection and tracking case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; - * - * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; * @return Whether the videoObjectTrackingAnnotation field is set. */ @java.lang.Override @@ -813,57 +594,42 @@ public boolean hasVideoObjectTrackingAnnotation() { return valueTypeCase_ == 5; } /** - * - * *
    * Annotation value for video object detection and tracking case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; - * - * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; * @return The videoObjectTrackingAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation - getVideoObjectTrackingAnnotation() { + public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation getVideoObjectTrackingAnnotation() { if (valueTypeCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); } /** - * - * *
    * Annotation value for video object detection and tracking case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; - * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder - getVideoObjectTrackingAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder getVideoObjectTrackingAnnotationOrBuilder() { if (valueTypeCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); } public static final int VIDEO_EVENT_ANNOTATION_FIELD_NUMBER = 6; /** - * - * *
    * Annotation value for video event case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; - * - * + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; * @return Whether the videoEventAnnotation field is set. */ @java.lang.Override @@ -871,45 +637,36 @@ public boolean hasVideoEventAnnotation() { return valueTypeCase_ == 6; } /** - * - * *
    * Annotation value for video event case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; - * - * + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; * @return The videoEventAnnotation. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation getVideoEventAnnotation() { if (valueTypeCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.getDefaultInstance(); } /** - * - * *
    * Annotation value for video event case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; - * + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder - getVideoEventAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder getVideoEventAnnotationOrBuilder() { if (valueTypeCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -921,42 +678,34 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (valueTypeCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_); + output.writeMessage(1, (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_); } if (valueTypeCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_); + output.writeMessage(2, (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_); } if (valueTypeCase_ == 3) { - output.writeMessage( - 3, (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_); + output.writeMessage(3, (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_); } if (valueTypeCase_ == 4) { - output.writeMessage( - 4, (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_); + output.writeMessage(4, (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_); } if (valueTypeCase_ == 5) { - output.writeMessage( - 5, (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_); + output.writeMessage(5, (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_); } if (valueTypeCase_ == 6) { - output.writeMessage( - 6, (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_); + output.writeMessage(6, (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_); } if (valueTypeCase_ == 8) { - output.writeMessage( - 8, (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_); + output.writeMessage(8, (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_); } if (valueTypeCase_ == 9) { - output.writeMessage( - 9, (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_); + output.writeMessage(9, (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_); } if (valueTypeCase_ == 10) { - output.writeMessage( - 10, (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_); + output.writeMessage(10, (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_); } unknownFields.writeTo(output); } @@ -968,50 +717,40 @@ public int getSerializedSize() { size = 0; if (valueTypeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_); } if (valueTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_); } if (valueTypeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_); } if (valueTypeCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_); } if (valueTypeCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_); } if (valueTypeCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_); } if (valueTypeCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_); } if (valueTypeCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_); } if (valueTypeCase_ == 10) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 10, - (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1021,49 +760,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.datalabeling.v1beta1.AnnotationValue)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.AnnotationValue other = - (com.google.cloud.datalabeling.v1beta1.AnnotationValue) obj; + com.google.cloud.datalabeling.v1beta1.AnnotationValue other = (com.google.cloud.datalabeling.v1beta1.AnnotationValue) obj; if (!getValueTypeCase().equals(other.getValueTypeCase())) return false; switch (valueTypeCase_) { case 1: - if (!getImageClassificationAnnotation().equals(other.getImageClassificationAnnotation())) - return false; + if (!getImageClassificationAnnotation() + .equals(other.getImageClassificationAnnotation())) return false; break; case 2: - if (!getImageBoundingPolyAnnotation().equals(other.getImageBoundingPolyAnnotation())) - return false; + if (!getImageBoundingPolyAnnotation() + .equals(other.getImageBoundingPolyAnnotation())) return false; break; case 8: - if (!getImagePolylineAnnotation().equals(other.getImagePolylineAnnotation())) return false; + if (!getImagePolylineAnnotation() + .equals(other.getImagePolylineAnnotation())) return false; break; case 9: - if (!getImageSegmentationAnnotation().equals(other.getImageSegmentationAnnotation())) - return false; + if (!getImageSegmentationAnnotation() + .equals(other.getImageSegmentationAnnotation())) return false; break; case 3: - if (!getTextClassificationAnnotation().equals(other.getTextClassificationAnnotation())) - return false; + if (!getTextClassificationAnnotation() + .equals(other.getTextClassificationAnnotation())) return false; break; case 10: - if (!getTextEntityExtractionAnnotation().equals(other.getTextEntityExtractionAnnotation())) - return false; + if (!getTextEntityExtractionAnnotation() + .equals(other.getTextEntityExtractionAnnotation())) return false; break; case 4: - if (!getVideoClassificationAnnotation().equals(other.getVideoClassificationAnnotation())) - return false; + if (!getVideoClassificationAnnotation() + .equals(other.getVideoClassificationAnnotation())) return false; break; case 5: - if (!getVideoObjectTrackingAnnotation().equals(other.getVideoObjectTrackingAnnotation())) - return false; + if (!getVideoObjectTrackingAnnotation() + .equals(other.getVideoObjectTrackingAnnotation())) return false; break; case 6: - if (!getVideoEventAnnotation().equals(other.getVideoEventAnnotation())) return false; + if (!getVideoEventAnnotation() + .equals(other.getVideoEventAnnotation())) return false; break; case 0: default: @@ -1125,127 +865,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.AnnotationValue 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.datalabeling.v1beta1.AnnotationValue parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.AnnotationValue prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.AnnotationValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 value for an example.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotationValue} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.AnnotationValue) com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.AnnotationValue.class, - com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder.class); + com.google.cloud.datalabeling.v1beta1.AnnotationValue.class, com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.AnnotationValue.newBuilder() @@ -1253,15 +983,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 +1002,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor; } @java.lang.Override @@ -1292,8 +1023,7 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationValue build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationValue buildPartial() { - com.google.cloud.datalabeling.v1beta1.AnnotationValue result = - new com.google.cloud.datalabeling.v1beta1.AnnotationValue(this); + com.google.cloud.datalabeling.v1beta1.AnnotationValue result = new com.google.cloud.datalabeling.v1beta1.AnnotationValue(this); if (valueTypeCase_ == 1) { if (imageClassificationAnnotationBuilder_ == null) { result.valueType_ = valueType_; @@ -1366,39 +1096,38 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationValue buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.AnnotationValue) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotationValue) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotationValue)other); } else { super.mergeFrom(other); return this; @@ -1406,58 +1135,47 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.AnnotationValue other) { - if (other == com.google.cloud.datalabeling.v1beta1.AnnotationValue.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.AnnotationValue.getDefaultInstance()) return this; switch (other.getValueTypeCase()) { - case IMAGE_CLASSIFICATION_ANNOTATION: - { - mergeImageClassificationAnnotation(other.getImageClassificationAnnotation()); - break; - } - case IMAGE_BOUNDING_POLY_ANNOTATION: - { - mergeImageBoundingPolyAnnotation(other.getImageBoundingPolyAnnotation()); - break; - } - case IMAGE_POLYLINE_ANNOTATION: - { - mergeImagePolylineAnnotation(other.getImagePolylineAnnotation()); - break; - } - case IMAGE_SEGMENTATION_ANNOTATION: - { - mergeImageSegmentationAnnotation(other.getImageSegmentationAnnotation()); - break; - } - case TEXT_CLASSIFICATION_ANNOTATION: - { - mergeTextClassificationAnnotation(other.getTextClassificationAnnotation()); - break; - } - case TEXT_ENTITY_EXTRACTION_ANNOTATION: - { - mergeTextEntityExtractionAnnotation(other.getTextEntityExtractionAnnotation()); - break; - } - case VIDEO_CLASSIFICATION_ANNOTATION: - { - mergeVideoClassificationAnnotation(other.getVideoClassificationAnnotation()); - break; - } - case VIDEO_OBJECT_TRACKING_ANNOTATION: - { - mergeVideoObjectTrackingAnnotation(other.getVideoObjectTrackingAnnotation()); - break; - } - case VIDEO_EVENT_ANNOTATION: - { - mergeVideoEventAnnotation(other.getVideoEventAnnotation()); - break; - } - case VALUETYPE_NOT_SET: - { - break; - } + case IMAGE_CLASSIFICATION_ANNOTATION: { + mergeImageClassificationAnnotation(other.getImageClassificationAnnotation()); + break; + } + case IMAGE_BOUNDING_POLY_ANNOTATION: { + mergeImageBoundingPolyAnnotation(other.getImageBoundingPolyAnnotation()); + break; + } + case IMAGE_POLYLINE_ANNOTATION: { + mergeImagePolylineAnnotation(other.getImagePolylineAnnotation()); + break; + } + case IMAGE_SEGMENTATION_ANNOTATION: { + mergeImageSegmentationAnnotation(other.getImageSegmentationAnnotation()); + break; + } + case TEXT_CLASSIFICATION_ANNOTATION: { + mergeTextClassificationAnnotation(other.getTextClassificationAnnotation()); + break; + } + case TEXT_ENTITY_EXTRACTION_ANNOTATION: { + mergeTextEntityExtractionAnnotation(other.getTextEntityExtractionAnnotation()); + break; + } + case VIDEO_CLASSIFICATION_ANNOTATION: { + mergeVideoClassificationAnnotation(other.getVideoClassificationAnnotation()); + break; + } + case VIDEO_OBJECT_TRACKING_ANNOTATION: { + mergeVideoObjectTrackingAnnotation(other.getVideoObjectTrackingAnnotation()); + break; + } + case VIDEO_EVENT_ANNOTATION: { + mergeVideoEventAnnotation(other.getVideoEventAnnotation()); + break; + } + case VALUETYPE_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1478,8 +1196,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.AnnotationValue) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.AnnotationValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1488,12 +1205,12 @@ public Builder mergeFrom( } return this; } - private int valueTypeCase_ = 0; private java.lang.Object valueType_; - - public ValueTypeCase getValueTypeCase() { - return ValueTypeCase.forNumber(valueTypeCase_); + public ValueTypeCase + getValueTypeCase() { + return ValueTypeCase.forNumber( + valueTypeCase_); } public Builder clearValueType() { @@ -1503,22 +1220,15 @@ public Builder clearValueType() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation, - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder> - imageClassificationAnnotationBuilder_; + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation, com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder> imageClassificationAnnotationBuilder_; /** - * - * *
      * Annotation value for image classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; * @return Whether the imageClassificationAnnotation field is set. */ @java.lang.Override @@ -1526,48 +1236,35 @@ public boolean hasImageClassificationAnnotation() { return valueTypeCase_ == 1; } /** - * - * *
      * Annotation value for image classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; * @return The imageClassificationAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation - getImageClassificationAnnotation() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation getImageClassificationAnnotation() { if (imageClassificationAnnotationBuilder_ == null) { if (valueTypeCase_ == 1) { return (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.getDefaultInstance(); } else { if (valueTypeCase_ == 1) { return imageClassificationAnnotationBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.getDefaultInstance(); } } /** - * - * *
      * Annotation value for image classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; */ - public Builder setImageClassificationAnnotation( - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation value) { + public Builder setImageClassificationAnnotation(com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation value) { if (imageClassificationAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1581,19 +1278,14 @@ public Builder setImageClassificationAnnotation( return this; } /** - * - * *
      * Annotation value for image classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; */ public Builder setImageClassificationAnnotation( - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder - builderForValue) { + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder builderForValue) { if (imageClassificationAnnotationBuilder_ == null) { valueType_ = builderForValue.build(); onChanged(); @@ -1604,29 +1296,18 @@ public Builder setImageClassificationAnnotation( return this; } /** - * - * *
      * Annotation value for image classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; */ - public Builder mergeImageClassificationAnnotation( - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation value) { + public Builder mergeImageClassificationAnnotation(com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation value) { if (imageClassificationAnnotationBuilder_ == null) { - if (valueTypeCase_ == 1 - && valueType_ - != com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation - .getDefaultInstance()) { - valueType_ = - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.newBuilder( - (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) - valueType_) - .mergeFrom(value) - .buildPartial(); + if (valueTypeCase_ == 1 && + valueType_ != com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.getDefaultInstance()) { + valueType_ = com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.newBuilder((com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_) + .mergeFrom(value).buildPartial(); } else { valueType_ = value; } @@ -1642,15 +1323,11 @@ public Builder mergeImageClassificationAnnotation( return this; } /** - * - * *
      * Annotation value for image classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; */ public Builder clearImageClassificationAnnotation() { if (imageClassificationAnnotationBuilder_ == null) { @@ -1669,99 +1346,68 @@ public Builder clearImageClassificationAnnotation() { return this; } /** - * - * *
      * Annotation value for image classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; */ - public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder - getImageClassificationAnnotationBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder getImageClassificationAnnotationBuilder() { return getImageClassificationAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * Annotation value for image classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder - getImageClassificationAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder getImageClassificationAnnotationOrBuilder() { if ((valueTypeCase_ == 1) && (imageClassificationAnnotationBuilder_ != null)) { return imageClassificationAnnotationBuilder_.getMessageOrBuilder(); } else { if (valueTypeCase_ == 1) { return (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.getDefaultInstance(); } } /** - * - * *
      * Annotation value for image classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation, - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder> + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation, com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder> getImageClassificationAnnotationFieldBuilder() { if (imageClassificationAnnotationBuilder_ == null) { if (!(valueTypeCase_ == 1)) { - valueType_ = - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation - .getDefaultInstance(); - } - imageClassificationAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation, - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder>( + valueType_ = com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.getDefaultInstance(); + } + imageClassificationAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation, com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder>( (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_, getParentForChildren(), isClean()); valueType_ = null; } valueTypeCase_ = 1; - onChanged(); - ; + onChanged();; return imageClassificationAnnotationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation, - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder> - imageBoundingPolyAnnotationBuilder_; + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation, com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder> imageBoundingPolyAnnotationBuilder_; /** - * - * *
      * Annotation value for image bounding box, oriented bounding box
      * and polygon cases.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; - * - * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; * @return Whether the imageBoundingPolyAnnotation field is set. */ @java.lang.Override @@ -1769,50 +1415,37 @@ public boolean hasImageBoundingPolyAnnotation() { return valueTypeCase_ == 2; } /** - * - * *
      * Annotation value for image bounding box, oriented bounding box
      * and polygon cases.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; - * - * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; * @return The imageBoundingPolyAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation - getImageBoundingPolyAnnotation() { + public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation getImageBoundingPolyAnnotation() { if (imageBoundingPolyAnnotationBuilder_ == null) { if (valueTypeCase_ == 2) { return (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.getDefaultInstance(); } else { if (valueTypeCase_ == 2) { return imageBoundingPolyAnnotationBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.getDefaultInstance(); } } /** - * - * *
      * Annotation value for image bounding box, oriented bounding box
      * and polygon cases.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; - * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; */ - public Builder setImageBoundingPolyAnnotation( - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation value) { + public Builder setImageBoundingPolyAnnotation(com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation value) { if (imageBoundingPolyAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1826,16 +1459,12 @@ public Builder setImageBoundingPolyAnnotation( return this; } /** - * - * *
      * Annotation value for image bounding box, oriented bounding box
      * and polygon cases.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; - * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; */ public Builder setImageBoundingPolyAnnotation( com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder builderForValue) { @@ -1849,30 +1478,19 @@ public Builder setImageBoundingPolyAnnotation( return this; } /** - * - * *
      * Annotation value for image bounding box, oriented bounding box
      * and polygon cases.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; - * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; */ - public Builder mergeImageBoundingPolyAnnotation( - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation value) { + public Builder mergeImageBoundingPolyAnnotation(com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation value) { if (imageBoundingPolyAnnotationBuilder_ == null) { - if (valueTypeCase_ == 2 - && valueType_ - != com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation - .getDefaultInstance()) { - valueType_ = - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.newBuilder( - (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) - valueType_) - .mergeFrom(value) - .buildPartial(); + if (valueTypeCase_ == 2 && + valueType_ != com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.getDefaultInstance()) { + valueType_ = com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.newBuilder((com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_) + .mergeFrom(value).buildPartial(); } else { valueType_ = value; } @@ -1888,16 +1506,12 @@ public Builder mergeImageBoundingPolyAnnotation( return this; } /** - * - * *
      * Annotation value for image bounding box, oriented bounding box
      * and polygon cases.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; - * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; */ public Builder clearImageBoundingPolyAnnotation() { if (imageBoundingPolyAnnotationBuilder_ == null) { @@ -1916,93 +1530,65 @@ public Builder clearImageBoundingPolyAnnotation() { return this; } /** - * - * *
      * Annotation value for image bounding box, oriented bounding box
      * and polygon cases.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; - * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; */ - public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder - getImageBoundingPolyAnnotationBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder getImageBoundingPolyAnnotationBuilder() { return getImageBoundingPolyAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * Annotation value for image bounding box, oriented bounding box
      * and polygon cases.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; - * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder - getImageBoundingPolyAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder getImageBoundingPolyAnnotationOrBuilder() { if ((valueTypeCase_ == 2) && (imageBoundingPolyAnnotationBuilder_ != null)) { return imageBoundingPolyAnnotationBuilder_.getMessageOrBuilder(); } else { if (valueTypeCase_ == 2) { return (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.getDefaultInstance(); } } /** - * - * *
      * Annotation value for image bounding box, oriented bounding box
      * and polygon cases.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; - * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation, - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder> + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation, com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder> getImageBoundingPolyAnnotationFieldBuilder() { if (imageBoundingPolyAnnotationBuilder_ == null) { if (!(valueTypeCase_ == 2)) { - valueType_ = - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation - .getDefaultInstance(); - } - imageBoundingPolyAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation, - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder>( + valueType_ = com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.getDefaultInstance(); + } + imageBoundingPolyAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation, com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder>( (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_, getParentForChildren(), isClean()); valueType_ = null; } valueTypeCase_ = 2; - onChanged(); - ; + onChanged();; return imageBoundingPolyAnnotationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation, - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder> - imagePolylineAnnotationBuilder_; + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation, com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder> imagePolylineAnnotationBuilder_; /** - * - * *
      * Annotation value for image polyline cases.
      * Polyline here is different from BoundingPoly. It is formed by
@@ -2010,10 +1596,7 @@ public Builder clearImageBoundingPolyAnnotation() {
      * The line segments can cross each other.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; - * - * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; * @return Whether the imagePolylineAnnotation field is set. */ @java.lang.Override @@ -2021,8 +1604,6 @@ public boolean hasImagePolylineAnnotation() { return valueTypeCase_ == 8; } /** - * - * *
      * Annotation value for image polyline cases.
      * Polyline here is different from BoundingPoly. It is formed by
@@ -2030,15 +1611,11 @@ public boolean hasImagePolylineAnnotation() {
      * The line segments can cross each other.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; - * - * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; * @return The imagePolylineAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation - getImagePolylineAnnotation() { + public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation getImagePolylineAnnotation() { if (imagePolylineAnnotationBuilder_ == null) { if (valueTypeCase_ == 8) { return (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_; @@ -2052,8 +1629,6 @@ public boolean hasImagePolylineAnnotation() { } } /** - * - * *
      * Annotation value for image polyline cases.
      * Polyline here is different from BoundingPoly. It is formed by
@@ -2061,12 +1636,9 @@ public boolean hasImagePolylineAnnotation() {
      * The line segments can cross each other.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; - * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; */ - public Builder setImagePolylineAnnotation( - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation value) { + public Builder setImagePolylineAnnotation(com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation value) { if (imagePolylineAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2080,8 +1652,6 @@ public Builder setImagePolylineAnnotation( return this; } /** - * - * *
      * Annotation value for image polyline cases.
      * Polyline here is different from BoundingPoly. It is formed by
@@ -2089,9 +1659,7 @@ public Builder setImagePolylineAnnotation(
      * The line segments can cross each other.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; - * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; */ public Builder setImagePolylineAnnotation( com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder builderForValue) { @@ -2105,8 +1673,6 @@ public Builder setImagePolylineAnnotation( return this; } /** - * - * *
      * Annotation value for image polyline cases.
      * Polyline here is different from BoundingPoly. It is formed by
@@ -2114,22 +1680,14 @@ public Builder setImagePolylineAnnotation(
      * The line segments can cross each other.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; - * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; */ - public Builder mergeImagePolylineAnnotation( - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation value) { + public Builder mergeImagePolylineAnnotation(com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation value) { if (imagePolylineAnnotationBuilder_ == null) { - if (valueTypeCase_ == 8 - && valueType_ - != com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation - .getDefaultInstance()) { - valueType_ = - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.newBuilder( - (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_) - .mergeFrom(value) - .buildPartial(); + if (valueTypeCase_ == 8 && + valueType_ != com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.getDefaultInstance()) { + valueType_ = com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.newBuilder((com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_) + .mergeFrom(value).buildPartial(); } else { valueType_ = value; } @@ -2145,8 +1703,6 @@ public Builder mergeImagePolylineAnnotation( return this; } /** - * - * *
      * Annotation value for image polyline cases.
      * Polyline here is different from BoundingPoly. It is formed by
@@ -2154,9 +1710,7 @@ public Builder mergeImagePolylineAnnotation(
      * The line segments can cross each other.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; - * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; */ public Builder clearImagePolylineAnnotation() { if (imagePolylineAnnotationBuilder_ == null) { @@ -2175,8 +1729,6 @@ public Builder clearImagePolylineAnnotation() { return this; } /** - * - * *
      * Annotation value for image polyline cases.
      * Polyline here is different from BoundingPoly. It is formed by
@@ -2184,17 +1736,12 @@ public Builder clearImagePolylineAnnotation() {
      * The line segments can cross each other.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; - * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; */ - public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder - getImagePolylineAnnotationBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder getImagePolylineAnnotationBuilder() { return getImagePolylineAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * Annotation value for image polyline cases.
      * Polyline here is different from BoundingPoly. It is formed by
@@ -2202,13 +1749,10 @@ public Builder clearImagePolylineAnnotation() {
      * The line segments can cross each other.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; - * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder - getImagePolylineAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder getImagePolylineAnnotationOrBuilder() { if ((valueTypeCase_ == 8) && (imagePolylineAnnotationBuilder_ != null)) { return imagePolylineAnnotationBuilder_.getMessageOrBuilder(); } else { @@ -2219,8 +1763,6 @@ public Builder clearImagePolylineAnnotation() { } } /** - * - * *
      * Annotation value for image polyline cases.
      * Polyline here is different from BoundingPoly. It is formed by
@@ -2228,52 +1770,35 @@ public Builder clearImagePolylineAnnotation() {
      * The line segments can cross each other.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; - * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation, - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder> + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation, com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder> getImagePolylineAnnotationFieldBuilder() { if (imagePolylineAnnotationBuilder_ == null) { if (!(valueTypeCase_ == 8)) { - valueType_ = - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.getDefaultInstance(); - } - imagePolylineAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation, - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder>( + valueType_ = com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.getDefaultInstance(); + } + imagePolylineAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation, com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder>( (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_, getParentForChildren(), isClean()); valueType_ = null; } valueTypeCase_ = 8; - onChanged(); - ; + onChanged();; return imagePolylineAnnotationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation, - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder> - imageSegmentationAnnotationBuilder_; + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation, com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder> imageSegmentationAnnotationBuilder_; /** - * - * *
      * Annotation value for image segmentation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; - * - * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; * @return Whether the imageSegmentationAnnotation field is set. */ @java.lang.Override @@ -2281,48 +1806,35 @@ public boolean hasImageSegmentationAnnotation() { return valueTypeCase_ == 9; } /** - * - * *
      * Annotation value for image segmentation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; - * - * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; * @return The imageSegmentationAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation - getImageSegmentationAnnotation() { + public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation getImageSegmentationAnnotation() { if (imageSegmentationAnnotationBuilder_ == null) { if (valueTypeCase_ == 9) { return (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.getDefaultInstance(); } else { if (valueTypeCase_ == 9) { return imageSegmentationAnnotationBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.getDefaultInstance(); } } /** - * - * *
      * Annotation value for image segmentation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; - * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; */ - public Builder setImageSegmentationAnnotation( - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation value) { + public Builder setImageSegmentationAnnotation(com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation value) { if (imageSegmentationAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2336,15 +1848,11 @@ public Builder setImageSegmentationAnnotation( return this; } /** - * - * *
      * Annotation value for image segmentation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; - * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; */ public Builder setImageSegmentationAnnotation( com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder builderForValue) { @@ -2358,29 +1866,18 @@ public Builder setImageSegmentationAnnotation( return this; } /** - * - * *
      * Annotation value for image segmentation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; - * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; */ - public Builder mergeImageSegmentationAnnotation( - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation value) { + public Builder mergeImageSegmentationAnnotation(com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation value) { if (imageSegmentationAnnotationBuilder_ == null) { - if (valueTypeCase_ == 9 - && valueType_ - != com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation - .getDefaultInstance()) { - valueType_ = - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.newBuilder( - (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) - valueType_) - .mergeFrom(value) - .buildPartial(); + if (valueTypeCase_ == 9 && + valueType_ != com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.getDefaultInstance()) { + valueType_ = com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.newBuilder((com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_) + .mergeFrom(value).buildPartial(); } else { valueType_ = value; } @@ -2396,15 +1893,11 @@ public Builder mergeImageSegmentationAnnotation( return this; } /** - * - * *
      * Annotation value for image segmentation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; - * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; */ public Builder clearImageSegmentationAnnotation() { if (imageSegmentationAnnotationBuilder_ == null) { @@ -2423,98 +1916,67 @@ public Builder clearImageSegmentationAnnotation() { return this; } /** - * - * *
      * Annotation value for image segmentation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; - * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; */ - public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder - getImageSegmentationAnnotationBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder getImageSegmentationAnnotationBuilder() { return getImageSegmentationAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * Annotation value for image segmentation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; - * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder - getImageSegmentationAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder getImageSegmentationAnnotationOrBuilder() { if ((valueTypeCase_ == 9) && (imageSegmentationAnnotationBuilder_ != null)) { return imageSegmentationAnnotationBuilder_.getMessageOrBuilder(); } else { if (valueTypeCase_ == 9) { return (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.getDefaultInstance(); } } /** - * - * *
      * Annotation value for image segmentation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; - * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation, - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder> + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation, com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder> getImageSegmentationAnnotationFieldBuilder() { if (imageSegmentationAnnotationBuilder_ == null) { if (!(valueTypeCase_ == 9)) { - valueType_ = - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation - .getDefaultInstance(); - } - imageSegmentationAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation, - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder>( + valueType_ = com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.getDefaultInstance(); + } + imageSegmentationAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation, com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder>( (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_, getParentForChildren(), isClean()); valueType_ = null; } valueTypeCase_ = 9; - onChanged(); - ; + onChanged();; return imageSegmentationAnnotationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation, - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder> - textClassificationAnnotationBuilder_; + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation, com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder> textClassificationAnnotationBuilder_; /** - * - * *
      * Annotation value for text classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; * @return Whether the textClassificationAnnotation field is set. */ @java.lang.Override @@ -2522,48 +1984,35 @@ public boolean hasTextClassificationAnnotation() { return valueTypeCase_ == 3; } /** - * - * *
      * Annotation value for text classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; * @return The textClassificationAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation - getTextClassificationAnnotation() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation getTextClassificationAnnotation() { if (textClassificationAnnotationBuilder_ == null) { if (valueTypeCase_ == 3) { return (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.getDefaultInstance(); } else { if (valueTypeCase_ == 3) { return textClassificationAnnotationBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.getDefaultInstance(); } } /** - * - * *
      * Annotation value for text classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; */ - public Builder setTextClassificationAnnotation( - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation value) { + public Builder setTextClassificationAnnotation(com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation value) { if (textClassificationAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2577,19 +2026,14 @@ public Builder setTextClassificationAnnotation( return this; } /** - * - * *
      * Annotation value for text classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; */ public Builder setTextClassificationAnnotation( - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder - builderForValue) { + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder builderForValue) { if (textClassificationAnnotationBuilder_ == null) { valueType_ = builderForValue.build(); onChanged(); @@ -2600,29 +2044,18 @@ public Builder setTextClassificationAnnotation( return this; } /** - * - * *
      * Annotation value for text classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; */ - public Builder mergeTextClassificationAnnotation( - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation value) { + public Builder mergeTextClassificationAnnotation(com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation value) { if (textClassificationAnnotationBuilder_ == null) { - if (valueTypeCase_ == 3 - && valueType_ - != com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation - .getDefaultInstance()) { - valueType_ = - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.newBuilder( - (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) - valueType_) - .mergeFrom(value) - .buildPartial(); + if (valueTypeCase_ == 3 && + valueType_ != com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.getDefaultInstance()) { + valueType_ = com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.newBuilder((com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_) + .mergeFrom(value).buildPartial(); } else { valueType_ = value; } @@ -2638,15 +2071,11 @@ public Builder mergeTextClassificationAnnotation( return this; } /** - * - * *
      * Annotation value for text classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; */ public Builder clearTextClassificationAnnotation() { if (textClassificationAnnotationBuilder_ == null) { @@ -2665,98 +2094,67 @@ public Builder clearTextClassificationAnnotation() { return this; } /** - * - * *
      * Annotation value for text classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; */ - public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder - getTextClassificationAnnotationBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder getTextClassificationAnnotationBuilder() { return getTextClassificationAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * Annotation value for text classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder - getTextClassificationAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder getTextClassificationAnnotationOrBuilder() { if ((valueTypeCase_ == 3) && (textClassificationAnnotationBuilder_ != null)) { return textClassificationAnnotationBuilder_.getMessageOrBuilder(); } else { if (valueTypeCase_ == 3) { return (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.getDefaultInstance(); } } /** - * - * *
      * Annotation value for text classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation, - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder> + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation, com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder> getTextClassificationAnnotationFieldBuilder() { if (textClassificationAnnotationBuilder_ == null) { if (!(valueTypeCase_ == 3)) { - valueType_ = - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation - .getDefaultInstance(); - } - textClassificationAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation, - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder>( + valueType_ = com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.getDefaultInstance(); + } + textClassificationAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation, com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder>( (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_, getParentForChildren(), isClean()); valueType_ = null; } valueTypeCase_ = 3; - onChanged(); - ; + onChanged();; return textClassificationAnnotationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation, - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder> - textEntityExtractionAnnotationBuilder_; + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder> textEntityExtractionAnnotationBuilder_; /** - * - * *
      * Annotation value for text entity extraction case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; - * - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; * @return Whether the textEntityExtractionAnnotation field is set. */ @java.lang.Override @@ -2764,48 +2162,35 @@ public boolean hasTextEntityExtractionAnnotation() { return valueTypeCase_ == 10; } /** - * - * *
      * Annotation value for text entity extraction case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; - * - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; * @return The textEntityExtractionAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation - getTextEntityExtractionAnnotation() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation getTextEntityExtractionAnnotation() { if (textEntityExtractionAnnotationBuilder_ == null) { if (valueTypeCase_ == 10) { return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.getDefaultInstance(); } else { if (valueTypeCase_ == 10) { return textEntityExtractionAnnotationBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.getDefaultInstance(); } } /** - * - * *
      * Annotation value for text entity extraction case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; */ - public Builder setTextEntityExtractionAnnotation( - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation value) { + public Builder setTextEntityExtractionAnnotation(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation value) { if (textEntityExtractionAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2819,19 +2204,14 @@ public Builder setTextEntityExtractionAnnotation( return this; } /** - * - * *
      * Annotation value for text entity extraction case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; */ public Builder setTextEntityExtractionAnnotation( - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder - builderForValue) { + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder builderForValue) { if (textEntityExtractionAnnotationBuilder_ == null) { valueType_ = builderForValue.build(); onChanged(); @@ -2842,29 +2222,18 @@ public Builder setTextEntityExtractionAnnotation( return this; } /** - * - * *
      * Annotation value for text entity extraction case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; */ - public Builder mergeTextEntityExtractionAnnotation( - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation value) { + public Builder mergeTextEntityExtractionAnnotation(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation value) { if (textEntityExtractionAnnotationBuilder_ == null) { - if (valueTypeCase_ == 10 - && valueType_ - != com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation - .getDefaultInstance()) { - valueType_ = - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.newBuilder( - (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) - valueType_) - .mergeFrom(value) - .buildPartial(); + if (valueTypeCase_ == 10 && + valueType_ != com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.getDefaultInstance()) { + valueType_ = com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.newBuilder((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_) + .mergeFrom(value).buildPartial(); } else { valueType_ = value; } @@ -2880,15 +2249,11 @@ public Builder mergeTextEntityExtractionAnnotation( return this; } /** - * - * *
      * Annotation value for text entity extraction case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; */ public Builder clearTextEntityExtractionAnnotation() { if (textEntityExtractionAnnotationBuilder_ == null) { @@ -2907,98 +2272,67 @@ public Builder clearTextEntityExtractionAnnotation() { return this; } /** - * - * *
      * Annotation value for text entity extraction case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; */ - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder - getTextEntityExtractionAnnotationBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder getTextEntityExtractionAnnotationBuilder() { return getTextEntityExtractionAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * Annotation value for text entity extraction case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder - getTextEntityExtractionAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder getTextEntityExtractionAnnotationOrBuilder() { if ((valueTypeCase_ == 10) && (textEntityExtractionAnnotationBuilder_ != null)) { return textEntityExtractionAnnotationBuilder_.getMessageOrBuilder(); } else { if (valueTypeCase_ == 10) { return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.getDefaultInstance(); } } /** - * - * *
      * Annotation value for text entity extraction case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation, - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder> + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder> getTextEntityExtractionAnnotationFieldBuilder() { if (textEntityExtractionAnnotationBuilder_ == null) { if (!(valueTypeCase_ == 10)) { - valueType_ = - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation - .getDefaultInstance(); - } - textEntityExtractionAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation, - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder>( + valueType_ = com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.getDefaultInstance(); + } + textEntityExtractionAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder>( (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_, getParentForChildren(), isClean()); valueType_ = null; } valueTypeCase_ = 10; - onChanged(); - ; + onChanged();; return textEntityExtractionAnnotationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation, - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder> - videoClassificationAnnotationBuilder_; + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation, com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder> videoClassificationAnnotationBuilder_; /** - * - * *
      * Annotation value for video classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; - * - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; * @return Whether the videoClassificationAnnotation field is set. */ @java.lang.Override @@ -3006,48 +2340,35 @@ public boolean hasVideoClassificationAnnotation() { return valueTypeCase_ == 4; } /** - * - * *
      * Annotation value for video classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; - * - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; * @return The videoClassificationAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation - getVideoClassificationAnnotation() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation getVideoClassificationAnnotation() { if (videoClassificationAnnotationBuilder_ == null) { if (valueTypeCase_ == 4) { return (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.getDefaultInstance(); } else { if (valueTypeCase_ == 4) { return videoClassificationAnnotationBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.getDefaultInstance(); } } /** - * - * *
      * Annotation value for video classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; */ - public Builder setVideoClassificationAnnotation( - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation value) { + public Builder setVideoClassificationAnnotation(com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation value) { if (videoClassificationAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3061,19 +2382,14 @@ public Builder setVideoClassificationAnnotation( return this; } /** - * - * *
      * Annotation value for video classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; */ public Builder setVideoClassificationAnnotation( - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder - builderForValue) { + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder builderForValue) { if (videoClassificationAnnotationBuilder_ == null) { valueType_ = builderForValue.build(); onChanged(); @@ -3084,29 +2400,18 @@ public Builder setVideoClassificationAnnotation( return this; } /** - * - * *
      * Annotation value for video classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; */ - public Builder mergeVideoClassificationAnnotation( - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation value) { + public Builder mergeVideoClassificationAnnotation(com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation value) { if (videoClassificationAnnotationBuilder_ == null) { - if (valueTypeCase_ == 4 - && valueType_ - != com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation - .getDefaultInstance()) { - valueType_ = - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.newBuilder( - (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) - valueType_) - .mergeFrom(value) - .buildPartial(); + if (valueTypeCase_ == 4 && + valueType_ != com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.getDefaultInstance()) { + valueType_ = com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.newBuilder((com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_) + .mergeFrom(value).buildPartial(); } else { valueType_ = value; } @@ -3122,15 +2427,11 @@ public Builder mergeVideoClassificationAnnotation( return this; } /** - * - * *
      * Annotation value for video classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; */ public Builder clearVideoClassificationAnnotation() { if (videoClassificationAnnotationBuilder_ == null) { @@ -3149,98 +2450,67 @@ public Builder clearVideoClassificationAnnotation() { return this; } /** - * - * *
      * Annotation value for video classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; */ - public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder - getVideoClassificationAnnotationBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder getVideoClassificationAnnotationBuilder() { return getVideoClassificationAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * Annotation value for video classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder - getVideoClassificationAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder getVideoClassificationAnnotationOrBuilder() { if ((valueTypeCase_ == 4) && (videoClassificationAnnotationBuilder_ != null)) { return videoClassificationAnnotationBuilder_.getMessageOrBuilder(); } else { if (valueTypeCase_ == 4) { return (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.getDefaultInstance(); } } /** - * - * *
      * Annotation value for video classification case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation, - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder> + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation, com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder> getVideoClassificationAnnotationFieldBuilder() { if (videoClassificationAnnotationBuilder_ == null) { if (!(valueTypeCase_ == 4)) { - valueType_ = - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation - .getDefaultInstance(); - } - videoClassificationAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation, - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder>( + valueType_ = com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.getDefaultInstance(); + } + videoClassificationAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation, com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder>( (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_, getParentForChildren(), isClean()); valueType_ = null; } valueTypeCase_ = 4; - onChanged(); - ; + onChanged();; return videoClassificationAnnotationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation, - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder> - videoObjectTrackingAnnotationBuilder_; + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation, com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder> videoObjectTrackingAnnotationBuilder_; /** - * - * *
      * Annotation value for video object detection and tracking case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; - * - * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; * @return Whether the videoObjectTrackingAnnotation field is set. */ @java.lang.Override @@ -3248,48 +2518,35 @@ public boolean hasVideoObjectTrackingAnnotation() { return valueTypeCase_ == 5; } /** - * - * *
      * Annotation value for video object detection and tracking case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; - * - * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; * @return The videoObjectTrackingAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation - getVideoObjectTrackingAnnotation() { + public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation getVideoObjectTrackingAnnotation() { if (videoObjectTrackingAnnotationBuilder_ == null) { if (valueTypeCase_ == 5) { return (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); } else { if (valueTypeCase_ == 5) { return videoObjectTrackingAnnotationBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); } } /** - * - * *
      * Annotation value for video object detection and tracking case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; - * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; */ - public Builder setVideoObjectTrackingAnnotation( - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation value) { + public Builder setVideoObjectTrackingAnnotation(com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation value) { if (videoObjectTrackingAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3303,19 +2560,14 @@ public Builder setVideoObjectTrackingAnnotation( return this; } /** - * - * *
      * Annotation value for video object detection and tracking case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; - * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; */ public Builder setVideoObjectTrackingAnnotation( - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder - builderForValue) { + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder builderForValue) { if (videoObjectTrackingAnnotationBuilder_ == null) { valueType_ = builderForValue.build(); onChanged(); @@ -3326,29 +2578,18 @@ public Builder setVideoObjectTrackingAnnotation( return this; } /** - * - * *
      * Annotation value for video object detection and tracking case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; - * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; */ - public Builder mergeVideoObjectTrackingAnnotation( - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation value) { + public Builder mergeVideoObjectTrackingAnnotation(com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation value) { if (videoObjectTrackingAnnotationBuilder_ == null) { - if (valueTypeCase_ == 5 - && valueType_ - != com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation - .getDefaultInstance()) { - valueType_ = - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.newBuilder( - (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) - valueType_) - .mergeFrom(value) - .buildPartial(); + if (valueTypeCase_ == 5 && + valueType_ != com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance()) { + valueType_ = com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.newBuilder((com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_) + .mergeFrom(value).buildPartial(); } else { valueType_ = value; } @@ -3364,15 +2605,11 @@ public Builder mergeVideoObjectTrackingAnnotation( return this; } /** - * - * *
      * Annotation value for video object detection and tracking case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; - * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; */ public Builder clearVideoObjectTrackingAnnotation() { if (videoObjectTrackingAnnotationBuilder_ == null) { @@ -3391,97 +2628,67 @@ public Builder clearVideoObjectTrackingAnnotation() { return this; } /** - * - * *
      * Annotation value for video object detection and tracking case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; - * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; */ - public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder - getVideoObjectTrackingAnnotationBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder getVideoObjectTrackingAnnotationBuilder() { return getVideoObjectTrackingAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * Annotation value for video object detection and tracking case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; - * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder - getVideoObjectTrackingAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder getVideoObjectTrackingAnnotationOrBuilder() { if ((valueTypeCase_ == 5) && (videoObjectTrackingAnnotationBuilder_ != null)) { return videoObjectTrackingAnnotationBuilder_.getMessageOrBuilder(); } else { if (valueTypeCase_ == 5) { return (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); } } /** - * - * *
      * Annotation value for video object detection and tracking case.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; - * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation, - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder> + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation, com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder> getVideoObjectTrackingAnnotationFieldBuilder() { if (videoObjectTrackingAnnotationBuilder_ == null) { if (!(valueTypeCase_ == 5)) { - valueType_ = - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation - .getDefaultInstance(); - } - videoObjectTrackingAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation, - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder>( + valueType_ = com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); + } + videoObjectTrackingAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation, com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder>( (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_, getParentForChildren(), isClean()); valueType_ = null; } valueTypeCase_ = 5; - onChanged(); - ; + onChanged();; return videoObjectTrackingAnnotationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation, - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder> - videoEventAnnotationBuilder_; + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation, com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder> videoEventAnnotationBuilder_; /** - * - * *
      * Annotation value for video event case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; - * - * + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; * @return Whether the videoEventAnnotation field is set. */ @java.lang.Override @@ -3489,15 +2696,11 @@ public boolean hasVideoEventAnnotation() { return valueTypeCase_ == 6; } /** - * - * *
      * Annotation value for video event case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; - * - * + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; * @return The videoEventAnnotation. */ @java.lang.Override @@ -3515,17 +2718,13 @@ public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation getVideoEventA } } /** - * - * *
      * Annotation value for video event case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; - * + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; */ - public Builder setVideoEventAnnotation( - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation value) { + public Builder setVideoEventAnnotation(com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation value) { if (videoEventAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3539,14 +2738,11 @@ public Builder setVideoEventAnnotation( return this; } /** - * - * *
      * Annotation value for video event case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; - * + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; */ public Builder setVideoEventAnnotation( com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder builderForValue) { @@ -3560,27 +2756,18 @@ public Builder setVideoEventAnnotation( return this; } /** - * - * *
      * Annotation value for video event case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; - * + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; */ - public Builder mergeVideoEventAnnotation( - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation value) { + public Builder mergeVideoEventAnnotation(com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation value) { if (videoEventAnnotationBuilder_ == null) { - if (valueTypeCase_ == 6 - && valueType_ - != com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation - .getDefaultInstance()) { - valueType_ = - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.newBuilder( - (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_) - .mergeFrom(value) - .buildPartial(); + if (valueTypeCase_ == 6 && + valueType_ != com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.getDefaultInstance()) { + valueType_ = com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.newBuilder((com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_) + .mergeFrom(value).buildPartial(); } else { valueType_ = value; } @@ -3596,14 +2783,11 @@ public Builder mergeVideoEventAnnotation( return this; } /** - * - * *
      * Annotation value for video event case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; - * + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; */ public Builder clearVideoEventAnnotation() { if (videoEventAnnotationBuilder_ == null) { @@ -3622,32 +2806,24 @@ public Builder clearVideoEventAnnotation() { return this; } /** - * - * *
      * Annotation value for video event case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; - * + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; */ - public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder - getVideoEventAnnotationBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder getVideoEventAnnotationBuilder() { return getVideoEventAnnotationFieldBuilder().getBuilder(); } /** - * - * *
      * Annotation value for video event case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; - * + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder - getVideoEventAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder getVideoEventAnnotationOrBuilder() { if ((valueTypeCase_ == 6) && (videoEventAnnotationBuilder_ != null)) { return videoEventAnnotationBuilder_.getMessageOrBuilder(); } else { @@ -3658,43 +2834,33 @@ public Builder clearVideoEventAnnotation() { } } /** - * - * *
      * Annotation value for video event case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; - * + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation, - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder> + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation, com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder> getVideoEventAnnotationFieldBuilder() { if (videoEventAnnotationBuilder_ == null) { if (!(valueTypeCase_ == 6)) { - valueType_ = - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.getDefaultInstance(); - } - videoEventAnnotationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation, - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder, - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder>( + valueType_ = com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.getDefaultInstance(); + } + videoEventAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation, com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder>( (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_, getParentForChildren(), isClean()); valueType_ = null; } valueTypeCase_ = 6; - onChanged(); - ; + onChanged();; return videoEventAnnotationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3704,12 +2870,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.AnnotationValue) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.AnnotationValue) private static final com.google.cloud.datalabeling.v1beta1.AnnotationValue DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.AnnotationValue(); } @@ -3718,16 +2884,16 @@ public static com.google.cloud.datalabeling.v1beta1.AnnotationValue getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotationValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotationValue(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotationValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotationValue(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3742,4 +2908,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.AnnotationValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValueOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValueOrBuilder.java similarity index 57% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValueOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValueOrBuilder.java index 2490ed61..f9fe74fb 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValueOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValueOrBuilder.java @@ -1,120 +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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface AnnotationValueOrBuilder - extends +public interface AnnotationValueOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.AnnotationValue) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Annotation value for image classification case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; * @return Whether the imageClassificationAnnotation field is set. */ boolean hasImageClassificationAnnotation(); /** - * - * *
    * Annotation value for image classification case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; * @return The imageClassificationAnnotation. */ - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation - getImageClassificationAnnotation(); + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation getImageClassificationAnnotation(); /** - * - * *
    * Annotation value for image classification case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; */ - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder - getImageClassificationAnnotationOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder getImageClassificationAnnotationOrBuilder(); /** - * - * *
    * Annotation value for image bounding box, oriented bounding box
    * and polygon cases.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; - * - * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; * @return Whether the imageBoundingPolyAnnotation field is set. */ boolean hasImageBoundingPolyAnnotation(); /** - * - * *
    * Annotation value for image bounding box, oriented bounding box
    * and polygon cases.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; - * - * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; * @return The imageBoundingPolyAnnotation. */ - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation - getImageBoundingPolyAnnotation(); + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation getImageBoundingPolyAnnotation(); /** - * - * *
    * Annotation value for image bounding box, oriented bounding box
    * and polygon cases.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; - * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; */ - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder - getImageBoundingPolyAnnotationOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder getImageBoundingPolyAnnotationOrBuilder(); /** - * - * *
    * Annotation value for image polyline cases.
    * Polyline here is different from BoundingPoly. It is formed by
@@ -122,15 +72,11 @@ public interface AnnotationValueOrBuilder
    * The line segments can cross each other.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; - * - * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; * @return Whether the imagePolylineAnnotation field is set. */ boolean hasImagePolylineAnnotation(); /** - * - * *
    * Annotation value for image polyline cases.
    * Polyline here is different from BoundingPoly. It is formed by
@@ -138,15 +84,11 @@ public interface AnnotationValueOrBuilder
    * The line segments can cross each other.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; - * - * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; * @return The imagePolylineAnnotation. */ com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation getImagePolylineAnnotation(); /** - * - * *
    * Annotation value for image polyline cases.
    * Polyline here is different from BoundingPoly. It is formed by
@@ -154,265 +96,171 @@ public interface AnnotationValueOrBuilder
    * The line segments can cross each other.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; - * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; */ - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder - getImagePolylineAnnotationOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder getImagePolylineAnnotationOrBuilder(); /** - * - * *
    * Annotation value for image segmentation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; - * - * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; * @return Whether the imageSegmentationAnnotation field is set. */ boolean hasImageSegmentationAnnotation(); /** - * - * *
    * Annotation value for image segmentation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; - * - * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; * @return The imageSegmentationAnnotation. */ - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation - getImageSegmentationAnnotation(); + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation getImageSegmentationAnnotation(); /** - * - * *
    * Annotation value for image segmentation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; - * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; */ - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder - getImageSegmentationAnnotationOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder getImageSegmentationAnnotationOrBuilder(); /** - * - * *
    * Annotation value for text classification case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; * @return Whether the textClassificationAnnotation field is set. */ boolean hasTextClassificationAnnotation(); /** - * - * *
    * Annotation value for text classification case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; * @return The textClassificationAnnotation. */ - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation - getTextClassificationAnnotation(); + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation getTextClassificationAnnotation(); /** - * - * *
    * Annotation value for text classification case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; */ - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder - getTextClassificationAnnotationOrBuilder(); + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder getTextClassificationAnnotationOrBuilder(); /** - * - * *
    * Annotation value for text entity extraction case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; - * - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; * @return Whether the textEntityExtractionAnnotation field is set. */ boolean hasTextEntityExtractionAnnotation(); /** - * - * *
    * Annotation value for text entity extraction case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; - * - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; * @return The textEntityExtractionAnnotation. */ - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation - getTextEntityExtractionAnnotation(); + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation getTextEntityExtractionAnnotation(); /** - * - * *
    * Annotation value for text entity extraction case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; */ - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder - getTextEntityExtractionAnnotationOrBuilder(); + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder getTextEntityExtractionAnnotationOrBuilder(); /** - * - * *
    * Annotation value for video classification case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; - * - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; * @return Whether the videoClassificationAnnotation field is set. */ boolean hasVideoClassificationAnnotation(); /** - * - * *
    * Annotation value for video classification case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; - * - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; * @return The videoClassificationAnnotation. */ - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation - getVideoClassificationAnnotation(); + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation getVideoClassificationAnnotation(); /** - * - * *
    * Annotation value for video classification case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; */ - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder - getVideoClassificationAnnotationOrBuilder(); + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder getVideoClassificationAnnotationOrBuilder(); /** - * - * *
    * Annotation value for video object detection and tracking case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; - * - * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; * @return Whether the videoObjectTrackingAnnotation field is set. */ boolean hasVideoObjectTrackingAnnotation(); /** - * - * *
    * Annotation value for video object detection and tracking case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; - * - * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; * @return The videoObjectTrackingAnnotation. */ - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation - getVideoObjectTrackingAnnotation(); + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation getVideoObjectTrackingAnnotation(); /** - * - * *
    * Annotation value for video object detection and tracking case.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; - * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; */ - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder - getVideoObjectTrackingAnnotationOrBuilder(); + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder getVideoObjectTrackingAnnotationOrBuilder(); /** - * - * *
    * Annotation value for video event case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; - * - * + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; * @return Whether the videoEventAnnotation field is set. */ boolean hasVideoEventAnnotation(); /** - * - * *
    * Annotation value for video event case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; - * - * + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; * @return The videoEventAnnotation. */ com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation getVideoEventAnnotation(); /** - * - * *
    * Annotation value for video event case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; - * + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; */ - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder - getVideoEventAnnotationOrBuilder(); + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder getVideoEventAnnotationOrBuilder(); public com.google.cloud.datalabeling.v1beta1.AnnotationValue.ValueTypeCase getValueTypeCase(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Attempt.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Attempt.java similarity index 73% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Attempt.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Attempt.java index d1329b0f..76c1c338 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Attempt.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Attempt.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/datalabeling/v1beta1/evaluation_job.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Records a failed evaluation job run.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.Attempt} */ -public final class Attempt extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Attempt extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.Attempt) AttemptOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Attempt.newBuilder() to construct. private Attempt(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Attempt() { 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 Attempt(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Attempt( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,38 +54,35 @@ private Attempt( case 0: done = true; break; - case 10: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (attemptTime_ != null) { - subBuilder = attemptTime_.toBuilder(); - } - attemptTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attemptTime_); - attemptTime_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (attemptTime_ != null) { + subBuilder = attemptTime_.toBuilder(); } - 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; + attemptTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attemptTime_); + attemptTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + 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; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,7 +90,8 @@ private Attempt( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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_); @@ -119,27 +100,23 @@ private Attempt( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_Attempt_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Attempt_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.Attempt.class, - com.google.cloud.datalabeling.v1beta1.Attempt.Builder.class); + com.google.cloud.datalabeling.v1beta1.Attempt.class, com.google.cloud.datalabeling.v1beta1.Attempt.Builder.class); } public static final int ATTEMPT_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp attemptTime_; /** * .google.protobuf.Timestamp attempt_time = 1; - * * @return Whether the attemptTime field is set. */ @java.lang.Override @@ -148,14 +125,15 @@ public boolean hasAttemptTime() { } /** * .google.protobuf.Timestamp attempt_time = 1; - * * @return The attemptTime. */ @java.lang.Override public com.google.protobuf.Timestamp getAttemptTime() { return attemptTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : attemptTime_; } - /** .google.protobuf.Timestamp attempt_time = 1; */ + /** + * .google.protobuf.Timestamp attempt_time = 1; + */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getAttemptTimeOrBuilder() { return getAttemptTime(); @@ -164,8 +142,6 @@ public com.google.protobuf.TimestampOrBuilder getAttemptTimeOrBuilder() { public static final int PARTIAL_FAILURES_FIELD_NUMBER = 2; private java.util.List partialFailures_; /** - * - * *
    * Details of errors that occurred.
    * 
@@ -177,8 +153,6 @@ public java.util.List getPartialFailuresList() { return partialFailures_; } /** - * - * *
    * Details of errors that occurred.
    * 
@@ -186,13 +160,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_; } /** - * - * *
    * Details of errors that occurred.
    * 
@@ -204,8 +176,6 @@ public int getPartialFailuresCount() { return partialFailures_.size(); } /** - * - * *
    * Details of errors that occurred.
    * 
@@ -217,8 +187,6 @@ public com.google.rpc.Status getPartialFailures(int index) { return partialFailures_.get(index); } /** - * - * *
    * Details of errors that occurred.
    * 
@@ -226,12 +194,12 @@ 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); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -243,7 +211,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 (attemptTime_ != null) { output.writeMessage(1, getAttemptTime()); } @@ -260,10 +229,12 @@ public int getSerializedSize() { size = 0; if (attemptTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAttemptTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAttemptTime()); } 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)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -273,19 +244,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.datalabeling.v1beta1.Attempt)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.Attempt other = - (com.google.cloud.datalabeling.v1beta1.Attempt) obj; + com.google.cloud.datalabeling.v1beta1.Attempt other = (com.google.cloud.datalabeling.v1beta1.Attempt) obj; if (hasAttemptTime() != other.hasAttemptTime()) return false; if (hasAttemptTime()) { - if (!getAttemptTime().equals(other.getAttemptTime())) return false; + if (!getAttemptTime() + .equals(other.getAttemptTime())) return false; } - if (!getPartialFailuresList().equals(other.getPartialFailuresList())) return false; + if (!getPartialFailuresList() + .equals(other.getPartialFailuresList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -310,127 +282,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.Attempt parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datalabeling.v1beta1.Attempt parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.Attempt parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Attempt parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.Attempt parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Attempt parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.Attempt parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Attempt 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.datalabeling.v1beta1.Attempt parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.Attempt parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.Attempt parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.Attempt parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Attempt parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.Attempt parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.Attempt prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Records a failed evaluation job run.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.Attempt} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.Attempt) com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_Attempt_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Attempt_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.Attempt.class, - com.google.cloud.datalabeling.v1beta1.Attempt.Builder.class); + com.google.cloud.datalabeling.v1beta1.Attempt.class, com.google.cloud.datalabeling.v1beta1.Attempt.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.Attempt.newBuilder() @@ -438,17 +401,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(); @@ -468,9 +431,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor; } @java.lang.Override @@ -489,8 +452,7 @@ public com.google.cloud.datalabeling.v1beta1.Attempt build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.Attempt buildPartial() { - com.google.cloud.datalabeling.v1beta1.Attempt result = - new com.google.cloud.datalabeling.v1beta1.Attempt(this); + com.google.cloud.datalabeling.v1beta1.Attempt result = new com.google.cloud.datalabeling.v1beta1.Attempt(this); int from_bitField0_ = bitField0_; if (attemptTimeBuilder_ == null) { result.attemptTime_ = attemptTime_; @@ -514,39 +476,38 @@ public com.google.cloud.datalabeling.v1beta1.Attempt buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.Attempt) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.Attempt) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.Attempt)other); } else { super.mergeFrom(other); return this; @@ -576,10 +537,9 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.Attempt 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_); } @@ -613,18 +573,13 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.protobuf.Timestamp attemptTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - attemptTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> attemptTimeBuilder_; /** * .google.protobuf.Timestamp attempt_time = 1; - * * @return Whether the attemptTime field is set. */ public boolean hasAttemptTime() { @@ -632,19 +587,18 @@ public boolean hasAttemptTime() { } /** * .google.protobuf.Timestamp attempt_time = 1; - * * @return The attemptTime. */ public com.google.protobuf.Timestamp getAttemptTime() { if (attemptTimeBuilder_ == null) { - return attemptTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : attemptTime_; + return attemptTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : attemptTime_; } else { return attemptTimeBuilder_.getMessage(); } } - /** .google.protobuf.Timestamp attempt_time = 1; */ + /** + * .google.protobuf.Timestamp attempt_time = 1; + */ public Builder setAttemptTime(com.google.protobuf.Timestamp value) { if (attemptTimeBuilder_ == null) { if (value == null) { @@ -658,8 +612,11 @@ public Builder setAttemptTime(com.google.protobuf.Timestamp value) { return this; } - /** .google.protobuf.Timestamp attempt_time = 1; */ - public Builder setAttemptTime(com.google.protobuf.Timestamp.Builder builderForValue) { + /** + * .google.protobuf.Timestamp attempt_time = 1; + */ + public Builder setAttemptTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (attemptTimeBuilder_ == null) { attemptTime_ = builderForValue.build(); onChanged(); @@ -669,14 +626,14 @@ public Builder setAttemptTime(com.google.protobuf.Timestamp.Builder builderForVa return this; } - /** .google.protobuf.Timestamp attempt_time = 1; */ + /** + * .google.protobuf.Timestamp attempt_time = 1; + */ public Builder mergeAttemptTime(com.google.protobuf.Timestamp value) { if (attemptTimeBuilder_ == null) { if (attemptTime_ != null) { attemptTime_ = - com.google.protobuf.Timestamp.newBuilder(attemptTime_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Timestamp.newBuilder(attemptTime_).mergeFrom(value).buildPartial(); } else { attemptTime_ = value; } @@ -687,7 +644,9 @@ public Builder mergeAttemptTime(com.google.protobuf.Timestamp value) { return this; } - /** .google.protobuf.Timestamp attempt_time = 1; */ + /** + * .google.protobuf.Timestamp attempt_time = 1; + */ public Builder clearAttemptTime() { if (attemptTimeBuilder_ == null) { attemptTime_ = null; @@ -699,57 +658,55 @@ public Builder clearAttemptTime() { return this; } - /** .google.protobuf.Timestamp attempt_time = 1; */ + /** + * .google.protobuf.Timestamp attempt_time = 1; + */ public com.google.protobuf.Timestamp.Builder getAttemptTimeBuilder() { - + onChanged(); return getAttemptTimeFieldBuilder().getBuilder(); } - /** .google.protobuf.Timestamp attempt_time = 1; */ + /** + * .google.protobuf.Timestamp attempt_time = 1; + */ public com.google.protobuf.TimestampOrBuilder getAttemptTimeOrBuilder() { if (attemptTimeBuilder_ != null) { return attemptTimeBuilder_.getMessageOrBuilder(); } else { - return attemptTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : attemptTime_; + return attemptTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : attemptTime_; } } - /** .google.protobuf.Timestamp attempt_time = 1; */ + /** + * .google.protobuf.Timestamp attempt_time = 1; + */ 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> getAttemptTimeFieldBuilder() { if (attemptTimeBuilder_ == null) { - attemptTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getAttemptTime(), getParentForChildren(), isClean()); + attemptTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getAttemptTime(), + getParentForChildren(), + isClean()); attemptTime_ = null; } return attemptTimeBuilder_; } 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_; /** - * - * *
      * Details of errors that occurred.
      * 
@@ -764,8 +721,6 @@ public java.util.List getPartialFailuresList() { } } /** - * - * *
      * Details of errors that occurred.
      * 
@@ -780,8 +735,6 @@ public int getPartialFailuresCount() { } } /** - * - * *
      * Details of errors that occurred.
      * 
@@ -796,15 +749,14 @@ public com.google.rpc.Status getPartialFailures(int index) { } } /** - * - * *
      * Details of errors that occurred.
      * 
* * 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(); @@ -818,15 +770,14 @@ public Builder setPartialFailures(int index, com.google.rpc.Status value) { return this; } /** - * - * *
      * Details of errors that occurred.
      * 
* * 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()); @@ -837,8 +788,6 @@ public Builder setPartialFailures(int index, com.google.rpc.Status.Builder build return this; } /** - * - * *
      * Details of errors that occurred.
      * 
@@ -859,15 +808,14 @@ public Builder addPartialFailures(com.google.rpc.Status value) { return this; } /** - * - * *
      * Details of errors that occurred.
      * 
* * 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(); @@ -881,15 +829,14 @@ public Builder addPartialFailures(int index, com.google.rpc.Status value) { return this; } /** - * - * *
      * Details of errors that occurred.
      * 
* * 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()); @@ -900,15 +847,14 @@ public Builder addPartialFailures(com.google.rpc.Status.Builder builderForValue) return this; } /** - * - * *
      * Details of errors that occurred.
      * 
* * 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()); @@ -919,8 +865,6 @@ public Builder addPartialFailures(int index, com.google.rpc.Status.Builder build return this; } /** - * - * *
      * Details of errors that occurred.
      * 
@@ -931,7 +875,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); @@ -939,8 +884,6 @@ public Builder addAllPartialFailures( return this; } /** - * - * *
      * Details of errors that occurred.
      * 
@@ -958,8 +901,6 @@ public Builder clearPartialFailures() { return this; } /** - * - * *
      * Details of errors that occurred.
      * 
@@ -977,44 +918,39 @@ public Builder removePartialFailures(int index) { return this; } /** - * - * *
      * Details of errors that occurred.
      * 
* * 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); } /** - * - * *
      * Details of errors that occurred.
      * 
* * 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); } } /** - * - * *
      * Details of errors that occurred.
      * 
* * repeated .google.rpc.Status partial_failures = 2; */ - public java.util.List - getPartialFailuresOrBuilderList() { + public java.util.List + getPartialFailuresOrBuilderList() { if (partialFailuresBuilder_ != null) { return partialFailuresBuilder_.getMessageOrBuilderList(); } else { @@ -1022,8 +958,6 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) { } } /** - * - * *
      * Details of errors that occurred.
      * 
@@ -1031,44 +965,38 @@ 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()); } /** - * - * *
      * Details of errors that occurred.
      * 
* * 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()); } /** - * - * *
      * Details of errors that occurred.
      * 
* * 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(), @@ -1077,9 +1005,9 @@ public java.util.List getPartialFailuresBuilderLi } return partialFailuresBuilder_; } - @java.lang.Override - 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 +1017,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.Attempt) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Attempt) private static final com.google.cloud.datalabeling.v1beta1.Attempt DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.Attempt(); } @@ -1103,16 +1031,16 @@ public static com.google.cloud.datalabeling.v1beta1.Attempt getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Attempt parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Attempt(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Attempt parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Attempt(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1127,4 +1055,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.Attempt getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AttemptOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AttemptOrBuilder.java similarity index 60% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AttemptOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AttemptOrBuilder.java index 401d8ea4..457f3476 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AttemptOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AttemptOrBuilder.java @@ -1,56 +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/datalabeling/v1beta1/evaluation_job.proto package com.google.cloud.datalabeling.v1beta1; -public interface AttemptOrBuilder - extends +public interface AttemptOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.Attempt) com.google.protobuf.MessageOrBuilder { /** * .google.protobuf.Timestamp attempt_time = 1; - * * @return Whether the attemptTime field is set. */ boolean hasAttemptTime(); /** * .google.protobuf.Timestamp attempt_time = 1; - * * @return The attemptTime. */ com.google.protobuf.Timestamp getAttemptTime(); - /** .google.protobuf.Timestamp attempt_time = 1; */ + /** + * .google.protobuf.Timestamp attempt_time = 1; + */ com.google.protobuf.TimestampOrBuilder getAttemptTimeOrBuilder(); /** - * - * *
    * Details of errors that occurred.
    * 
* * repeated .google.rpc.Status partial_failures = 2; */ - java.util.List getPartialFailuresList(); + java.util.List + getPartialFailuresList(); /** - * - * *
    * Details of errors that occurred.
    * 
@@ -59,8 +40,6 @@ public interface AttemptOrBuilder */ com.google.rpc.Status getPartialFailures(int index); /** - * - * *
    * Details of errors that occurred.
    * 
@@ -69,23 +48,21 @@ public interface AttemptOrBuilder */ int getPartialFailuresCount(); /** - * - * *
    * Details of errors that occurred.
    * 
* * repeated .google.rpc.Status partial_failures = 2; */ - java.util.List getPartialFailuresOrBuilderList(); + java.util.List + getPartialFailuresOrBuilderList(); /** - * - * *
    * Details of errors that occurred.
    * 
* * repeated .google.rpc.Status partial_failures = 2; */ - com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index); + com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder( + int index); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySource.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySource.java similarity index 75% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySource.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySource.java index 97aea797..f4ce6b81 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySource.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySource.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * The BigQuery location for input data. If used in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob], this
  * is where the service saves the prediction input and output sampled from the
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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)
@@ -72,20 +55,19 @@ 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) {
@@ -93,33 +75,29 @@ private BigQuerySource(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.BigQuerySource.class,
-            com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.BigQuerySource.class, com.google.cloud.datalabeling.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 2,000 characters long. If you
    * specify the URI of a table that does not exist, Data Labeling Service
@@ -135,7 +113,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string input_uri = 1; - * * @return The inputUri. */ @java.lang.Override @@ -144,15 +121,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 2,000 characters long. If you
    * specify the URI of a table that does not exist, Data Labeling Service
@@ -168,15 +144,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 { @@ -185,7 +162,6 @@ public com.google.protobuf.ByteString getInputUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -197,7 +173,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_); } @@ -221,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.datalabeling.v1beta1.BigQuerySource)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.BigQuerySource other = - (com.google.cloud.datalabeling.v1beta1.BigQuerySource) obj; + com.google.cloud.datalabeling.v1beta1.BigQuerySource other = (com.google.cloud.datalabeling.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; } @@ -249,103 +226,96 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.BigQuerySource 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.datalabeling.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.datalabeling.v1beta1.BigQuerySource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.BigQuerySource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.BigQuerySource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.BigQuerySource parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.BigQuerySource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.BigQuerySource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.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 input data. If used in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob], this
    * is where the service saves the prediction input and output sampled from the
@@ -354,23 +324,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.BigQuerySource)
       com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.BigQuerySource.class,
-              com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.BigQuerySource.class, com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.BigQuerySource.newBuilder()
@@ -378,15 +346,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();
@@ -396,9 +365,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor;
     }
 
     @java.lang.Override
@@ -417,8 +386,7 @@ public com.google.cloud.datalabeling.v1beta1.BigQuerySource build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.BigQuerySource buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.BigQuerySource result =
-          new com.google.cloud.datalabeling.v1beta1.BigQuerySource(this);
+      com.google.cloud.datalabeling.v1beta1.BigQuerySource result = new com.google.cloud.datalabeling.v1beta1.BigQuerySource(this);
       result.inputUri_ = inputUri_;
       onBuilt();
       return result;
@@ -428,39 +396,38 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.BigQuerySource) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.BigQuerySource) other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.BigQuerySource)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -468,8 +435,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.BigQuerySource other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.BigQuerySource.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.BigQuerySource.getDefaultInstance()) return this;
       if (!other.getInputUri().isEmpty()) {
         inputUri_ = other.inputUri_;
         onChanged();
@@ -493,8 +459,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.datalabeling.v1beta1.BigQuerySource) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.datalabeling.v1beta1.BigQuerySource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -506,8 +471,6 @@ public Builder mergeFrom(
 
     private java.lang.Object inputUri_ = "";
     /**
-     *
-     *
      * 
      * Required. BigQuery URI to a table, up to 2,000 characters long. If you
      * specify the URI of a table that does not exist, Data Labeling Service
@@ -523,13 +486,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; @@ -538,8 +501,6 @@ public java.lang.String getInputUri() { } } /** - * - * *
      * Required. BigQuery URI to a table, up to 2,000 characters long. If you
      * specify the URI of a table that does not exist, Data Labeling Service
@@ -555,14 +516,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 { @@ -570,8 +532,6 @@ public com.google.protobuf.ByteString getInputUriBytes() { } } /** - * - * *
      * Required. BigQuery URI to a table, up to 2,000 characters long. If you
      * specify the URI of a table that does not exist, Data Labeling Service
@@ -587,22 +547,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 2,000 characters long. If you
      * specify the URI of a table that does not exist, Data Labeling Service
@@ -618,18 +576,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 2,000 characters long. If you
      * specify the URI of a table that does not exist, Data Labeling Service
@@ -645,23 +600,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); } @@ -671,12 +626,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.BigQuerySource) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.BigQuerySource) private static final com.google.cloud.datalabeling.v1beta1.BigQuerySource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.BigQuerySource(); } @@ -685,16 +640,16 @@ public static com.google.cloud.datalabeling.v1beta1.BigQuerySource getDefaultIns 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; @@ -709,4 +664,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.BigQuerySource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySourceOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySourceOrBuilder.java similarity index 73% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySourceOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySourceOrBuilder.java index 42db8dee..c829cf2a 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySourceOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; -public interface BigQuerySourceOrBuilder - extends +public interface BigQuerySourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.BigQuerySource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. BigQuery URI to a table, up to 2,000 characters long. If you
    * specify the URI of a table that does not exist, Data Labeling Service
@@ -41,13 +23,10 @@ public interface BigQuerySourceOrBuilder
    * 
* * string input_uri = 1; - * * @return The inputUri. */ java.lang.String getInputUri(); /** - * - * *
    * Required. BigQuery URI to a table, up to 2,000 characters long. If you
    * specify the URI of a table that does not exist, Data Labeling Service
@@ -63,8 +42,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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptions.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptions.java similarity index 65% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptions.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptions.java index 5fc8ad19..41e3c7ce 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptions.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptions.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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Options regarding evaluation between bounding boxes.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions} */ -public final class BoundingBoxEvaluationOptions extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BoundingBoxEvaluationOptions extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) BoundingBoxEvaluationOptionsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BoundingBoxEvaluationOptions.newBuilder() to construct. private BoundingBoxEvaluationOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private BoundingBoxEvaluationOptions() {} + private BoundingBoxEvaluationOptions() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BoundingBoxEvaluationOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BoundingBoxEvaluationOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,18 +52,18 @@ private BoundingBoxEvaluationOptions( case 0: done = true; break; - case 13: - { - iouThreshold_ = input.readFloat(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 13: { + + iouThreshold_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,33 +71,29 @@ private BoundingBoxEvaluationOptions( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.class, - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder.class); + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.class, com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder.class); } public static final int IOU_THRESHOLD_FIELD_NUMBER = 1; private float iouThreshold_; /** - * - * *
    * Minimum
    * [intersection-over-union
@@ -123,7 +103,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * float iou_threshold = 1; - * * @return The iouThreshold. */ @java.lang.Override @@ -132,7 +111,6 @@ public float getIouThreshold() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -144,7 +122,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 (java.lang.Float.floatToRawIntBits(iouThreshold_) != 0) { output.writeFloat(1, iouThreshold_); } @@ -158,7 +137,8 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(iouThreshold_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, iouThreshold_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, iouThreshold_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -168,16 +148,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.datalabeling.v1beta1.BoundingBoxEvaluationOptions)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions other = - (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) obj; + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions other = (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) obj; if (java.lang.Float.floatToIntBits(getIouThreshold()) - != java.lang.Float.floatToIntBits(other.getIouThreshold())) return false; + != java.lang.Float.floatToIntBits( + other.getIouThreshold())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -190,152 +170,142 @@ 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions 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.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions - 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.datalabeling.v1beta1.BoundingBoxEvaluationOptions 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.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Options regarding evaluation between bounding boxes.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.class, - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder.class); + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.class, com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.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(); @@ -345,16 +315,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.getDefaultInstance(); } @java.lang.Override @@ -368,8 +336,7 @@ public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions build( @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions buildPartial() { - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions result = - new com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions(this); + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions result = new com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions(this); result.iouThreshold_ = iouThreshold_; onBuilt(); return result; @@ -379,51 +346,46 @@ public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions 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.datalabeling.v1beta1.BoundingBoxEvaluationOptions) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions other) { - if (other - == com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions other) { + if (other == com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.getDefaultInstance()) return this; if (other.getIouThreshold() != 0F) { setIouThreshold(other.getIouThreshold()); } @@ -446,9 +408,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,10 +418,8 @@ public Builder mergeFrom( return this; } - private float iouThreshold_; + private float iouThreshold_ ; /** - * - * *
      * Minimum
      * [intersection-over-union
@@ -471,7 +429,6 @@ public Builder mergeFrom(
      * 
* * float iou_threshold = 1; - * * @return The iouThreshold. */ @java.lang.Override @@ -479,8 +436,6 @@ public float getIouThreshold() { return iouThreshold_; } /** - * - * *
      * Minimum
      * [intersection-over-union
@@ -490,19 +445,16 @@ public float getIouThreshold() {
      * 
* * 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; } /** - * - * *
      * Minimum
      * [intersection-over-union
@@ -512,18 +464,17 @@ public Builder setIouThreshold(float value) {
      * 
* * float iou_threshold = 1; - * * @return This builder for chaining. */ public Builder clearIouThreshold() { - + iouThreshold_ = 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); } @@ -533,32 +484,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) - private static final com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions(); } - public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoundingBoxEvaluationOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoundingBoxEvaluationOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoundingBoxEvaluationOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BoundingBoxEvaluationOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -570,8 +519,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptionsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptionsOrBuilder.java similarity index 50% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptionsOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptionsOrBuilder.java index c293d0b6..0023eb42 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptionsOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptionsOrBuilder.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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; -public interface BoundingBoxEvaluationOptionsOrBuilder - extends +public interface BoundingBoxEvaluationOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Minimum
    * [intersection-over-union
@@ -35,7 +17,6 @@ public interface BoundingBoxEvaluationOptionsOrBuilder
    * 
* * float iou_threshold = 1; - * * @return The iouThreshold. */ float getIouThreshold(); diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPoly.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPoly.java similarity index 73% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPoly.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPoly.java index 3120bae9..5e9f5109 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPoly.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPoly.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * A bounding polygon in the image.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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() { vertices_ = 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) @@ -71,24 +54,22 @@ private BoundingPoly( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - vertices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - vertices_.add( - input.readMessage( - com.google.cloud.datalabeling.v1beta1.Vertex.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + vertices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + vertices_.add( + input.readMessage(com.google.cloud.datalabeling.v1beta1.Vertex.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,7 +77,8 @@ private BoundingPoly( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { vertices_ = java.util.Collections.unmodifiableList(vertices_); @@ -105,27 +87,22 @@ private BoundingPoly( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.BoundingPoly.class, - com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder.class); + com.google.cloud.datalabeling.v1beta1.BoundingPoly.class, com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder.class); } public static final int VERTICES_FIELD_NUMBER = 1; private java.util.List vertices_; /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -137,8 +114,6 @@ public java.util.List getVerticesL return vertices_; } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -146,13 +121,11 @@ public java.util.List getVerticesL * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVerticesOrBuilderList() { return vertices_; } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -164,8 +137,6 @@ public int getVerticesCount() { return vertices_.size(); } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -177,8 +148,6 @@ public com.google.cloud.datalabeling.v1beta1.Vertex getVertices(int index) { return vertices_.get(index); } /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -186,12 +155,12 @@ public com.google.cloud.datalabeling.v1beta1.Vertex getVertices(int index) { * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder( + int index) { return vertices_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,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 < vertices_.size(); i++) { output.writeMessage(1, vertices_.get(i)); } @@ -217,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < vertices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, vertices_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, vertices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -227,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.datalabeling.v1beta1.BoundingPoly)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.BoundingPoly other = - (com.google.cloud.datalabeling.v1beta1.BoundingPoly) obj; + com.google.cloud.datalabeling.v1beta1.BoundingPoly other = (com.google.cloud.datalabeling.v1beta1.BoundingPoly) obj; - if (!getVerticesList().equals(other.getVerticesList())) return false; + if (!getVerticesList() + .equals(other.getVerticesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -257,126 +228,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.BoundingPoly 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.datalabeling.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.datalabeling.v1beta1.BoundingPoly parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.BoundingPoly parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.BoundingPoly parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.BoundingPoly parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.BoundingPoly parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.BoundingPoly parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.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 in the image.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.BoundingPoly) com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.BoundingPoly.class, - com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder.class); + com.google.cloud.datalabeling.v1beta1.BoundingPoly.class, com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.BoundingPoly.newBuilder() @@ -384,17 +346,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) { getVerticesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -408,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor; } @java.lang.Override @@ -429,8 +391,7 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPoly build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BoundingPoly buildPartial() { - com.google.cloud.datalabeling.v1beta1.BoundingPoly result = - new com.google.cloud.datalabeling.v1beta1.BoundingPoly(this); + com.google.cloud.datalabeling.v1beta1.BoundingPoly result = new com.google.cloud.datalabeling.v1beta1.BoundingPoly(this); int from_bitField0_ = bitField0_; if (verticesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -449,39 +410,38 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.BoundingPoly) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.BoundingPoly) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.BoundingPoly)other); } else { super.mergeFrom(other); return this; @@ -489,8 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.BoundingPoly other) { - if (other == com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance()) return this; if (verticesBuilder_ == null) { if (!other.vertices_.isEmpty()) { if (vertices_.isEmpty()) { @@ -509,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.BoundingPoly othe verticesBuilder_ = null; vertices_ = other.vertices_; bitField0_ = (bitField0_ & ~0x00000001); - verticesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVerticesFieldBuilder() - : null; + verticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVerticesFieldBuilder() : null; } else { verticesBuilder_.addAllMessages(other.vertices_); } @@ -537,8 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.BoundingPoly) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.BoundingPoly) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -547,29 +504,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List vertices_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureVerticesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - vertices_ = - new java.util.ArrayList(vertices_); + vertices_ = new java.util.ArrayList(vertices_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Vertex, - com.google.cloud.datalabeling.v1beta1.Vertex.Builder, - com.google.cloud.datalabeling.v1beta1.VertexOrBuilder> - verticesBuilder_; + com.google.cloud.datalabeling.v1beta1.Vertex, com.google.cloud.datalabeling.v1beta1.Vertex.Builder, com.google.cloud.datalabeling.v1beta1.VertexOrBuilder> verticesBuilder_; /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -584,8 +533,6 @@ public java.util.List getVerticesL } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -600,8 +547,6 @@ public int getVerticesCount() { } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -616,15 +561,14 @@ public com.google.cloud.datalabeling.v1beta1.Vertex getVertices(int index) { } } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public Builder setVertices(int index, com.google.cloud.datalabeling.v1beta1.Vertex value) { + public Builder setVertices( + int index, com.google.cloud.datalabeling.v1beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -638,8 +582,6 @@ public Builder setVertices(int index, com.google.cloud.datalabeling.v1beta1.Vert return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -658,8 +600,6 @@ public Builder setVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -680,15 +620,14 @@ public Builder addVertices(com.google.cloud.datalabeling.v1beta1.Vertex value) { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public Builder addVertices(int index, com.google.cloud.datalabeling.v1beta1.Vertex value) { + public Builder addVertices( + int index, com.google.cloud.datalabeling.v1beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -702,8 +641,6 @@ public Builder addVertices(int index, com.google.cloud.datalabeling.v1beta1.Vert return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -722,8 +659,6 @@ public Builder addVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -742,8 +677,6 @@ public Builder addVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -754,7 +687,8 @@ public Builder addAllVertices( java.lang.Iterable values) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, vertices_); onChanged(); } else { verticesBuilder_.addAllMessages(values); @@ -762,8 +696,6 @@ public Builder addAllVertices( return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -781,8 +713,6 @@ public Builder clearVertices() { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -800,44 +730,39 @@ public Builder removeVertices(int index) { return this; } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public com.google.cloud.datalabeling.v1beta1.Vertex.Builder getVerticesBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.Vertex.Builder getVerticesBuilder( + int index) { return getVerticesFieldBuilder().getBuilder(index); } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder( + int index) { if (verticesBuilder_ == null) { - return vertices_.get(index); - } else { + return vertices_.get(index); } else { return verticesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesOrBuilderList() { + public java.util.List + getVerticesOrBuilderList() { if (verticesBuilder_ != null) { return verticesBuilder_.getMessageOrBuilderList(); } else { @@ -845,8 +770,6 @@ public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilde } } /** - * - * *
      * The bounding polygon vertices.
      * 
@@ -854,55 +777,49 @@ public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilde * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ public com.google.cloud.datalabeling.v1beta1.Vertex.Builder addVerticesBuilder() { - return getVerticesFieldBuilder() - .addBuilder(com.google.cloud.datalabeling.v1beta1.Vertex.getDefaultInstance()); + return getVerticesFieldBuilder().addBuilder( + com.google.cloud.datalabeling.v1beta1.Vertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public com.google.cloud.datalabeling.v1beta1.Vertex.Builder addVerticesBuilder(int index) { - return getVerticesFieldBuilder() - .addBuilder(index, com.google.cloud.datalabeling.v1beta1.Vertex.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.Vertex.Builder addVerticesBuilder( + int index) { + return getVerticesFieldBuilder().addBuilder( + index, com.google.cloud.datalabeling.v1beta1.Vertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesBuilderList() { + public java.util.List + getVerticesBuilderList() { return getVerticesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Vertex, - com.google.cloud.datalabeling.v1beta1.Vertex.Builder, - com.google.cloud.datalabeling.v1beta1.VertexOrBuilder> + com.google.cloud.datalabeling.v1beta1.Vertex, com.google.cloud.datalabeling.v1beta1.Vertex.Builder, com.google.cloud.datalabeling.v1beta1.VertexOrBuilder> getVerticesFieldBuilder() { if (verticesBuilder_ == null) { - verticesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Vertex, - com.google.cloud.datalabeling.v1beta1.Vertex.Builder, - com.google.cloud.datalabeling.v1beta1.VertexOrBuilder>( - vertices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + verticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.Vertex, com.google.cloud.datalabeling.v1beta1.Vertex.Builder, com.google.cloud.datalabeling.v1beta1.VertexOrBuilder>( + vertices_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); vertices_ = null; } return verticesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -912,12 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.BoundingPoly) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.BoundingPoly) private static final com.google.cloud.datalabeling.v1beta1.BoundingPoly DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.BoundingPoly(); } @@ -926,16 +843,16 @@ public static com.google.cloud.datalabeling.v1beta1.BoundingPoly getDefaultInsta 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; @@ -950,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.BoundingPoly getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfig.java similarity index 71% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfig.java index 3df52b43..d34942d5 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Config for image bounding poly (and bounding box) human labeling task.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.BoundingPolyConfig} */ -public final class BoundingPolyConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class BoundingPolyConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.BoundingPolyConfig) BoundingPolyConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use BoundingPolyConfig.newBuilder() to construct. private BoundingPolyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BoundingPolyConfig() { annotationSpecSet_ = ""; instructionMessage_ = ""; @@ -44,15 +26,16 @@ private BoundingPolyConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new BoundingPolyConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private BoundingPolyConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private BoundingPolyConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - annotationSpecSet_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + annotationSpecSet_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - instructionMessage_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + instructionMessage_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,39 +80,34 @@ private BoundingPolyConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.class, - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.class, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder.class); } public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER = 1; private volatile java.lang.Object annotationSpecSet_; /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ @java.lang.Override @@ -140,29 +116,29 @@ public java.lang.String getAnnotationSpecSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; } } /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ @java.lang.Override - public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -173,14 +149,11 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { public static final int INSTRUCTION_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object instructionMessage_; /** - * - * *
    * Optional. Instruction message showed on contributors UI.
    * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The instructionMessage. */ @java.lang.Override @@ -189,29 +162,29 @@ public java.lang.String getInstructionMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instructionMessage_ = s; return s; } } /** - * - * *
    * Optional. Instruction message showed on contributors UI.
    * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for instructionMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getInstructionMessageBytes() { + public com.google.protobuf.ByteString + getInstructionMessageBytes() { java.lang.Object ref = instructionMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instructionMessage_ = b; return b; } else { @@ -220,7 +193,6 @@ public com.google.protobuf.ByteString getInstructionMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationSpecSet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecSet_); } @@ -262,16 +235,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.datalabeling.v1beta1.BoundingPolyConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig other = - (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) obj; + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig other = (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) obj; - if (!getAnnotationSpecSet().equals(other.getAnnotationSpecSet())) return false; - if (!getInstructionMessage().equals(other.getInstructionMessage())) return false; + if (!getAnnotationSpecSet() + .equals(other.getAnnotationSpecSet())) return false; + if (!getInstructionMessage() + .equals(other.getInstructionMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,127 +267,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig 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.datalabeling.v1beta1.BoundingPolyConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Config for image bounding poly (and bounding box) human labeling task.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.BoundingPolyConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.BoundingPolyConfig) com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.class, - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.class, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.newBuilder() @@ -421,15 +385,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 +406,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor; } @java.lang.Override @@ -462,8 +427,7 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig result = - new com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig(this); + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig result = new com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig(this); result.annotationSpecSet_ = annotationSpecSet_; result.instructionMessage_ = instructionMessage_; onBuilt(); @@ -474,39 +438,38 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig)other); } else { super.mergeFrom(other); return this; @@ -514,8 +477,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig other) { - if (other == com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance()) return this; if (!other.getAnnotationSpecSet().isEmpty()) { annotationSpecSet_ = other.annotationSpecSet_; onChanged(); @@ -543,8 +505,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -556,20 +517,18 @@ public Builder mergeFrom( private java.lang.Object annotationSpecSet_ = ""; /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ public java.lang.String getAnnotationSpecSet() { java.lang.Object ref = annotationSpecSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; @@ -578,21 +537,20 @@ public java.lang.String getAnnotationSpecSet() { } } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ - public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -600,61 +558,54 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { } } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSet(java.lang.String value) { + public Builder setAnnotationSpecSet( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecSet_ = value; onChanged(); return this; } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAnnotationSpecSet() { - + annotationSpecSet_ = getDefaultInstance().getAnnotationSpecSet(); onChanged(); return this; } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecSetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecSet_ = value; onChanged(); return this; @@ -662,20 +613,18 @@ public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { private java.lang.Object instructionMessage_ = ""; /** - * - * *
      * Optional. Instruction message showed on contributors UI.
      * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The instructionMessage. */ public java.lang.String getInstructionMessage() { java.lang.Object ref = instructionMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instructionMessage_ = s; return s; @@ -684,21 +633,20 @@ public java.lang.String getInstructionMessage() { } } /** - * - * *
      * Optional. Instruction message showed on contributors UI.
      * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for instructionMessage. */ - public com.google.protobuf.ByteString getInstructionMessageBytes() { + public com.google.protobuf.ByteString + getInstructionMessageBytes() { java.lang.Object ref = instructionMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instructionMessage_ = b; return b; } else { @@ -706,68 +654,61 @@ public com.google.protobuf.ByteString getInstructionMessageBytes() { } } /** - * - * *
      * Optional. Instruction message showed on contributors UI.
      * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The instructionMessage to set. * @return This builder for chaining. */ - public Builder setInstructionMessage(java.lang.String value) { + public Builder setInstructionMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instructionMessage_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Instruction message showed on contributors UI.
      * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearInstructionMessage() { - + instructionMessage_ = getDefaultInstance().getInstructionMessage(); onChanged(); return this; } /** - * - * *
      * Optional. Instruction message showed on contributors UI.
      * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for instructionMessage to set. * @return This builder for chaining. */ - public Builder setInstructionMessageBytes(com.google.protobuf.ByteString value) { + public Builder setInstructionMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instructionMessage_ = 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); } @@ -777,12 +718,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.BoundingPolyConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.BoundingPolyConfig) private static final com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig(); } @@ -791,16 +732,16 @@ public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoundingPolyConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoundingPolyConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoundingPolyConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BoundingPolyConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -815,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfigOrBuilder.java similarity index 61% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfigOrBuilder.java index 34d7131d..78fa3303 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfigOrBuilder.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface BoundingPolyConfigOrBuilder - extends +public interface BoundingPolyConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.BoundingPolyConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ java.lang.String getAnnotationSpecSet(); /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ - com.google.protobuf.ByteString getAnnotationSpecSetBytes(); + com.google.protobuf.ByteString + getAnnotationSpecSetBytes(); /** - * - * *
    * Optional. Instruction message showed on contributors UI.
    * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The instructionMessage. */ java.lang.String getInstructionMessage(); /** - * - * *
    * Optional. Instruction message showed on contributors UI.
    * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for instructionMessage. */ - com.google.protobuf.ByteString getInstructionMessageBytes(); + com.google.protobuf.ByteString + getInstructionMessageBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyOrBuilder.java similarity index 62% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyOrBuilder.java index c27e35cf..12add16a 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface BoundingPolyOrBuilder - extends +public interface BoundingPolyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.BoundingPoly) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - java.util.List getVerticesList(); + java.util.List + getVerticesList(); /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -44,8 +25,6 @@ public interface BoundingPolyOrBuilder */ com.google.cloud.datalabeling.v1beta1.Vertex getVertices(int index); /** - * - * *
    * The bounding polygon vertices.
    * 
@@ -54,24 +33,21 @@ public interface BoundingPolyOrBuilder */ int getVerticesCount(); /** - * - * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - java.util.List + java.util.List getVerticesOrBuilderList(); /** - * - * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder(int index); + com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder( + int index); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadata.java similarity index 68% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadata.java index f57430d8..4858f649 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadata.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Metadata for classification annotations.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ClassificationMetadata} */ -public final class ClassificationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ClassificationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ClassificationMetadata) ClassificationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ClassificationMetadata.newBuilder() to construct. private ClassificationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ClassificationMetadata() {} + private ClassificationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ClassificationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ClassificationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,18 +52,18 @@ private ClassificationMetadata( case 0: done = true; break; - case 8: - { - isMultiLabel_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + isMultiLabel_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,39 +71,34 @@ private ClassificationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.class, - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.class, com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder.class); } public static final int IS_MULTI_LABEL_FIELD_NUMBER = 1; private boolean isMultiLabel_; /** - * - * *
    * Whether the classification task is multi-label or not.
    * 
* * bool is_multi_label = 1; - * * @return The isMultiLabel. */ @java.lang.Override @@ -128,7 +107,6 @@ public boolean getIsMultiLabel() { } 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 (isMultiLabel_ != false) { output.writeBool(1, isMultiLabel_); } @@ -154,7 +133,8 @@ public int getSerializedSize() { size = 0; if (isMultiLabel_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, isMultiLabel_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, isMultiLabel_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -164,15 +144,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.datalabeling.v1beta1.ClassificationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata other = - (com.google.cloud.datalabeling.v1beta1.ClassificationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata other = (com.google.cloud.datalabeling.v1beta1.ClassificationMetadata) obj; - if (getIsMultiLabel() != other.getIsMultiLabel()) return false; + if (getIsMultiLabel() + != other.getIsMultiLabel()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -185,134 +165,125 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + IS_MULTI_LABEL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsMultiLabel()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsMultiLabel()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata 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.datalabeling.v1beta1.ClassificationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ClassificationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 classification annotations.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ClassificationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ClassificationMetadata) com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.class, - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.class, com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.newBuilder() @@ -320,15 +291,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(); @@ -338,14 +310,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ClassificationMetadata - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ClassificationMetadata getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.getDefaultInstance(); } @@ -360,8 +331,7 @@ public com.google.cloud.datalabeling.v1beta1.ClassificationMetadata build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ClassificationMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata result = - new com.google.cloud.datalabeling.v1beta1.ClassificationMetadata(this); + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata result = new com.google.cloud.datalabeling.v1beta1.ClassificationMetadata(this); result.isMultiLabel_ = isMultiLabel_; onBuilt(); return result; @@ -371,39 +341,38 @@ public com.google.cloud.datalabeling.v1beta1.ClassificationMetadata buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.ClassificationMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ClassificationMetadata) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ClassificationMetadata)other); } else { super.mergeFrom(other); return this; @@ -411,9 +380,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ClassificationMetadata other) { - if (other - == com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.getDefaultInstance()) return this; if (other.getIsMultiLabel() != false) { setIsMultiLabel(other.getIsMultiLabel()); } @@ -436,8 +403,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ClassificationMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ClassificationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,16 +413,13 @@ public Builder mergeFrom( return this; } - private boolean isMultiLabel_; + private boolean isMultiLabel_ ; /** - * - * *
      * Whether the classification task is multi-label or not.
      * 
* * bool is_multi_label = 1; - * * @return The isMultiLabel. */ @java.lang.Override @@ -464,43 +427,37 @@ public boolean getIsMultiLabel() { return isMultiLabel_; } /** - * - * *
      * Whether the classification task is multi-label or not.
      * 
* * bool is_multi_label = 1; - * * @param value The isMultiLabel to set. * @return This builder for chaining. */ public Builder setIsMultiLabel(boolean value) { - + isMultiLabel_ = value; onChanged(); return this; } /** - * - * *
      * Whether the classification task is multi-label or not.
      * 
* * bool is_multi_label = 1; - * * @return This builder for chaining. */ public Builder clearIsMultiLabel() { - + isMultiLabel_ = 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); } @@ -510,13 +467,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ClassificationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ClassificationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.ClassificationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.ClassificationMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ClassificationMetadata(); } @@ -525,16 +481,16 @@ public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClassificationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassificationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClassificationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClassificationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -549,4 +505,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ClassificationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadataOrBuilder.java new file mode 100644 index 00000000..e7c63ed1 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadataOrBuilder.java @@ -0,0 +1,19 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/dataset.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface ClassificationMetadataOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ClassificationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Whether the classification task is multi-label or not.
+   * 
+ * + * bool is_multi_label = 1; + * @return The isMultiLabel. + */ + boolean getIsMultiLabel(); +} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetrics.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetrics.java similarity index 70% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetrics.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetrics.java index 8abc7153..4c28d36d 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetrics.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetrics.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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Metrics calculated for a classification model.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ClassificationMetrics} */ -public final class ClassificationMetrics extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ClassificationMetrics extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ClassificationMetrics) ClassificationMetricsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ClassificationMetrics.newBuilder() to construct. private ClassificationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ClassificationMetrics() {} + private ClassificationMetrics() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ClassificationMetrics(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ClassificationMetrics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,46 +52,39 @@ private ClassificationMetrics( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.PrCurve.Builder subBuilder = null; - if (prCurve_ != null) { - subBuilder = prCurve_.toBuilder(); - } - prCurve_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.PrCurve.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(prCurve_); - prCurve_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.PrCurve.Builder subBuilder = null; + if (prCurve_ != null) { + subBuilder = prCurve_.toBuilder(); + } + prCurve_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.PrCurve.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(prCurve_); + prCurve_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder subBuilder = null; - if (confusionMatrix_ != null) { - subBuilder = confusionMatrix_.toBuilder(); - } - confusionMatrix_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confusionMatrix_); - confusionMatrix_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder subBuilder = null; + if (confusionMatrix_ != null) { + subBuilder = confusionMatrix_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + confusionMatrix_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(confusionMatrix_); + confusionMatrix_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,40 +92,35 @@ private ClassificationMetrics( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.class, - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder.class); + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.class, com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder.class); } public static final int PR_CURVE_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.PrCurve prCurve_; /** - * - * *
    * Precision-recall curve based on ground truth labels, predicted labels, and
    * scores for the predicted labels.
    * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; - * * @return Whether the prCurve field is set. */ @java.lang.Override @@ -156,26 +128,19 @@ public boolean hasPrCurve() { return prCurve_ != null; } /** - * - * *
    * Precision-recall curve based on ground truth labels, predicted labels, and
    * scores for the predicted labels.
    * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; - * * @return The prCurve. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PrCurve getPrCurve() { - return prCurve_ == null - ? com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance() - : prCurve_; + return prCurve_ == null ? com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance() : prCurve_; } /** - * - * *
    * Precision-recall curve based on ground truth labels, predicted labels, and
    * scores for the predicted labels.
@@ -191,14 +156,11 @@ public com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder getPrCurveOrBuilde
   public static final int CONFUSION_MATRIX_FIELD_NUMBER = 2;
   private com.google.cloud.datalabeling.v1beta1.ConfusionMatrix confusionMatrix_;
   /**
-   *
-   *
    * 
    * Confusion matrix of predicted labels vs. ground truth labels.
    * 
* * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; - * * @return Whether the confusionMatrix field is set. */ @java.lang.Override @@ -206,25 +168,18 @@ public boolean hasConfusionMatrix() { return confusionMatrix_ != null; } /** - * - * *
    * Confusion matrix of predicted labels vs. ground truth labels.
    * 
* * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; - * * @return The confusionMatrix. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix getConfusionMatrix() { - return confusionMatrix_ == null - ? com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.getDefaultInstance() - : confusionMatrix_; + return confusionMatrix_ == null ? com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.getDefaultInstance() : confusionMatrix_; } /** - * - * *
    * Confusion matrix of predicted labels vs. ground truth labels.
    * 
@@ -232,13 +187,11 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix getConfusionMatrix( * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrixOrBuilder - getConfusionMatrixOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder() { return getConfusionMatrix(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,7 +203,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 (prCurve_ != null) { output.writeMessage(1, getPrCurve()); } @@ -267,10 +221,12 @@ public int getSerializedSize() { size = 0; if (prCurve_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPrCurve()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPrCurve()); } if (confusionMatrix_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfusionMatrix()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConfusionMatrix()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -280,21 +236,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.datalabeling.v1beta1.ClassificationMetrics)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics other = - (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) obj; + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics other = (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) obj; if (hasPrCurve() != other.hasPrCurve()) return false; if (hasPrCurve()) { - if (!getPrCurve().equals(other.getPrCurve())) return false; + if (!getPrCurve() + .equals(other.getPrCurve())) 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; @@ -321,127 +278,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics 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.datalabeling.v1beta1.ClassificationMetrics parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ClassificationMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Metrics calculated for a classification model.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ClassificationMetrics} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ClassificationMetrics) com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.class, - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder.class); + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.class, com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.newBuilder() @@ -449,15 +396,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 +425,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor; } @java.lang.Override @@ -498,8 +446,7 @@ public com.google.cloud.datalabeling.v1beta1.ClassificationMetrics build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ClassificationMetrics buildPartial() { - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics result = - new com.google.cloud.datalabeling.v1beta1.ClassificationMetrics(this); + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics result = new com.google.cloud.datalabeling.v1beta1.ClassificationMetrics(this); if (prCurveBuilder_ == null) { result.prCurve_ = prCurve_; } else { @@ -518,39 +465,38 @@ public com.google.cloud.datalabeling.v1beta1.ClassificationMetrics buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ClassificationMetrics)other); } else { super.mergeFrom(other); return this; @@ -558,8 +504,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ClassificationMetrics other) { - if (other == com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.getDefaultInstance()) return this; if (other.hasPrCurve()) { mergePrCurve(other.getPrCurve()); } @@ -585,8 +530,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -598,49 +542,36 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.PrCurve prCurve_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.PrCurve, - com.google.cloud.datalabeling.v1beta1.PrCurve.Builder, - com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder> - prCurveBuilder_; + com.google.cloud.datalabeling.v1beta1.PrCurve, com.google.cloud.datalabeling.v1beta1.PrCurve.Builder, com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder> prCurveBuilder_; /** - * - * *
      * Precision-recall curve based on ground truth labels, predicted labels, and
      * scores for the predicted labels.
      * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; - * * @return Whether the prCurve field is set. */ public boolean hasPrCurve() { return prCurveBuilder_ != null || prCurve_ != null; } /** - * - * *
      * Precision-recall curve based on ground truth labels, predicted labels, and
      * scores for the predicted labels.
      * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; - * * @return The prCurve. */ public com.google.cloud.datalabeling.v1beta1.PrCurve getPrCurve() { if (prCurveBuilder_ == null) { - return prCurve_ == null - ? com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance() - : prCurve_; + return prCurve_ == null ? com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance() : prCurve_; } else { return prCurveBuilder_.getMessage(); } } /** - * - * *
      * Precision-recall curve based on ground truth labels, predicted labels, and
      * scores for the predicted labels.
@@ -662,8 +593,6 @@ public Builder setPrCurve(com.google.cloud.datalabeling.v1beta1.PrCurve value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Precision-recall curve based on ground truth labels, predicted labels, and
      * scores for the predicted labels.
@@ -683,8 +612,6 @@ public Builder setPrCurve(
       return this;
     }
     /**
-     *
-     *
      * 
      * Precision-recall curve based on ground truth labels, predicted labels, and
      * scores for the predicted labels.
@@ -696,9 +623,7 @@ public Builder mergePrCurve(com.google.cloud.datalabeling.v1beta1.PrCurve value)
       if (prCurveBuilder_ == null) {
         if (prCurve_ != null) {
           prCurve_ =
-              com.google.cloud.datalabeling.v1beta1.PrCurve.newBuilder(prCurve_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.datalabeling.v1beta1.PrCurve.newBuilder(prCurve_).mergeFrom(value).buildPartial();
         } else {
           prCurve_ = value;
         }
@@ -710,8 +635,6 @@ public Builder mergePrCurve(com.google.cloud.datalabeling.v1beta1.PrCurve value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Precision-recall curve based on ground truth labels, predicted labels, and
      * scores for the predicted labels.
@@ -731,8 +654,6 @@ public Builder clearPrCurve() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Precision-recall curve based on ground truth labels, predicted labels, and
      * scores for the predicted labels.
@@ -741,13 +662,11 @@ public Builder clearPrCurve() {
      * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1;
      */
     public com.google.cloud.datalabeling.v1beta1.PrCurve.Builder getPrCurveBuilder() {
-
+      
       onChanged();
       return getPrCurveFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Precision-recall curve based on ground truth labels, predicted labels, and
      * scores for the predicted labels.
@@ -759,14 +678,11 @@ public com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder getPrCurveOrBuilde
       if (prCurveBuilder_ != null) {
         return prCurveBuilder_.getMessageOrBuilder();
       } else {
-        return prCurve_ == null
-            ? com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance()
-            : prCurve_;
+        return prCurve_ == null ?
+            com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance() : prCurve_;
       }
     }
     /**
-     *
-     *
      * 
      * Precision-recall curve based on ground truth labels, predicted labels, and
      * scores for the predicted labels.
@@ -775,17 +691,14 @@ public com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder getPrCurveOrBuilde
      * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.PrCurve,
-            com.google.cloud.datalabeling.v1beta1.PrCurve.Builder,
-            com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder>
+        com.google.cloud.datalabeling.v1beta1.PrCurve, com.google.cloud.datalabeling.v1beta1.PrCurve.Builder, com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder> 
         getPrCurveFieldBuilder() {
       if (prCurveBuilder_ == null) {
-        prCurveBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.datalabeling.v1beta1.PrCurve,
-                com.google.cloud.datalabeling.v1beta1.PrCurve.Builder,
-                com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder>(
-                getPrCurve(), getParentForChildren(), isClean());
+        prCurveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.datalabeling.v1beta1.PrCurve, com.google.cloud.datalabeling.v1beta1.PrCurve.Builder, com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder>(
+                getPrCurve(),
+                getParentForChildren(),
+                isClean());
         prCurve_ = null;
       }
       return prCurveBuilder_;
@@ -793,47 +706,34 @@ public com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder getPrCurveOrBuilde
 
     private com.google.cloud.datalabeling.v1beta1.ConfusionMatrix confusionMatrix_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix,
-            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder,
-            com.google.cloud.datalabeling.v1beta1.ConfusionMatrixOrBuilder>
-        confusionMatrixBuilder_;
+        com.google.cloud.datalabeling.v1beta1.ConfusionMatrix, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder, com.google.cloud.datalabeling.v1beta1.ConfusionMatrixOrBuilder> confusionMatrixBuilder_;
     /**
-     *
-     *
      * 
      * Confusion matrix of predicted labels vs. ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; - * * @return Whether the confusionMatrix field is set. */ public boolean hasConfusionMatrix() { return confusionMatrixBuilder_ != null || confusionMatrix_ != null; } /** - * - * *
      * Confusion matrix of predicted labels vs. ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; - * * @return The confusionMatrix. */ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix getConfusionMatrix() { if (confusionMatrixBuilder_ == null) { - return confusionMatrix_ == null - ? com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.getDefaultInstance() - : confusionMatrix_; + return confusionMatrix_ == null ? com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.getDefaultInstance() : confusionMatrix_; } else { return confusionMatrixBuilder_.getMessage(); } } /** - * - * *
      * Confusion matrix of predicted labels vs. ground truth labels.
      * 
@@ -854,8 +754,6 @@ public Builder setConfusionMatrix(com.google.cloud.datalabeling.v1beta1.Confusio return this; } /** - * - * *
      * Confusion matrix of predicted labels vs. ground truth labels.
      * 
@@ -874,22 +772,17 @@ public Builder setConfusionMatrix( return this; } /** - * - * *
      * Confusion matrix of predicted labels vs. ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; */ - public Builder mergeConfusionMatrix( - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix value) { + public Builder mergeConfusionMatrix(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix value) { if (confusionMatrixBuilder_ == null) { if (confusionMatrix_ != null) { confusionMatrix_ = - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.newBuilder(confusionMatrix_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.newBuilder(confusionMatrix_).mergeFrom(value).buildPartial(); } else { confusionMatrix_ = value; } @@ -901,8 +794,6 @@ public Builder mergeConfusionMatrix( return this; } /** - * - * *
      * Confusion matrix of predicted labels vs. ground truth labels.
      * 
@@ -921,42 +812,33 @@ public Builder clearConfusionMatrix() { return this; } /** - * - * *
      * Confusion matrix of predicted labels vs. ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; */ - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder - getConfusionMatrixBuilder() { - + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder getConfusionMatrixBuilder() { + onChanged(); return getConfusionMatrixFieldBuilder().getBuilder(); } /** - * - * *
      * Confusion matrix of predicted labels vs. ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; */ - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrixOrBuilder - getConfusionMatrixOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder() { if (confusionMatrixBuilder_ != null) { return confusionMatrixBuilder_.getMessageOrBuilder(); } else { - return confusionMatrix_ == null - ? com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.getDefaultInstance() - : confusionMatrix_; + return confusionMatrix_ == null ? + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.getDefaultInstance() : confusionMatrix_; } } /** - * - * *
      * Confusion matrix of predicted labels vs. ground truth labels.
      * 
@@ -964,24 +846,21 @@ public Builder clearConfusionMatrix() { * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix, - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder, - com.google.cloud.datalabeling.v1beta1.ConfusionMatrixOrBuilder> + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder, com.google.cloud.datalabeling.v1beta1.ConfusionMatrixOrBuilder> getConfusionMatrixFieldBuilder() { if (confusionMatrixBuilder_ == null) { - confusionMatrixBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix, - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder, - com.google.cloud.datalabeling.v1beta1.ConfusionMatrixOrBuilder>( - getConfusionMatrix(), getParentForChildren(), isClean()); + confusionMatrixBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder, com.google.cloud.datalabeling.v1beta1.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); } @@ -991,12 +870,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ClassificationMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ClassificationMetrics) private static final com.google.cloud.datalabeling.v1beta1.ClassificationMetrics DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ClassificationMetrics(); } @@ -1005,16 +884,16 @@ public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClassificationMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassificationMetrics(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClassificationMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClassificationMetrics(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1029,4 +908,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ClassificationMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetricsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetricsOrBuilder.java similarity index 74% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetricsOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetricsOrBuilder.java index d8663deb..abd631e6 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetricsOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetricsOrBuilder.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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; -public interface ClassificationMetricsOrBuilder - extends +public interface ClassificationMetricsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ClassificationMetrics) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Precision-recall curve based on ground truth labels, predicted labels, and
    * scores for the predicted labels.
    * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; - * * @return Whether the prCurve field is set. */ boolean hasPrCurve(); /** - * - * *
    * Precision-recall curve based on ground truth labels, predicted labels, and
    * scores for the predicted labels.
    * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; - * * @return The prCurve. */ com.google.cloud.datalabeling.v1beta1.PrCurve getPrCurve(); /** - * - * *
    * Precision-recall curve based on ground truth labels, predicted labels, and
    * scores for the predicted labels.
@@ -62,32 +38,24 @@ public interface ClassificationMetricsOrBuilder
   com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder getPrCurveOrBuilder();
 
   /**
-   *
-   *
    * 
    * Confusion matrix of predicted labels vs. ground truth labels.
    * 
* * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; - * * @return Whether the confusionMatrix field is set. */ boolean hasConfusionMatrix(); /** - * - * *
    * Confusion matrix of predicted labels vs. ground truth labels.
    * 
* * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; - * * @return The confusionMatrix. */ com.google.cloud.datalabeling.v1beta1.ConfusionMatrix getConfusionMatrix(); /** - * - * *
    * Confusion matrix of predicted labels vs. ground truth labels.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrix.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrix.java similarity index 65% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrix.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrix.java index f14ddf2d..02068643 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrix.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrix.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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Confusion matrix of the model running the classification. Only applicable
  * when the metrics entry aggregates multiple labels. Not applicable when the
@@ -29,31 +12,31 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.ConfusionMatrix}
  */
-public final class ConfusionMatrix extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ConfusionMatrix extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.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() {
     row_ = 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 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)
@@ -73,27 +56,22 @@ private ConfusionMatrix(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                row_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              row_.add(
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              row_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            row_.add(
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.parser(), extensionRegistry));
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -101,7 +79,8 @@ private ConfusionMatrix(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } 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)) {
         row_ = java.util.Collections.unmodifiableList(row_);
@@ -110,54 +89,42 @@ private ConfusionMatrix(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.class,
-            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.class, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder.class);
   }
 
-  public interface ConfusionMatrixEntryOrBuilder
-      extends
+  public interface ConfusionMatrixEntryOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The annotation spec of a predicted label.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ boolean hasAnnotationSpec(); /** - * - * *
      * The annotation spec of a predicted label.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec(); /** - * - * *
      * The annotation spec of a predicted label.
      * 
@@ -167,15 +134,12 @@ public interface ConfusionMatrixEntryOrBuilder com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder(); /** - * - * *
      * Number of items predicted to have this label. (The ground truth label for
      * these items is the `Row.annotationSpec` of this entry's parent.)
      * 
* * int32 item_count = 2; - * * @return The itemCount. */ int getItemCount(); @@ -183,29 +147,30 @@ public interface ConfusionMatrixEntryOrBuilder /** * Protobuf type {@code google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry} */ - public static final class ConfusionMatrixEntry extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ConfusionMatrixEntry extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry) ConfusionMatrixEntryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfusionMatrixEntry.newBuilder() to construct. private ConfusionMatrixEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ConfusionMatrixEntry() {} + private ConfusionMatrixEntry() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ConfusionMatrixEntry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ConfusionMatrixEntry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -224,35 +189,31 @@ private ConfusionMatrixEntry( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; - if (annotationSpec_ != null) { - subBuilder = annotationSpec_.toBuilder(); - } - annotationSpec_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotationSpec_); - annotationSpec_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; + if (annotationSpec_ != null) { + subBuilder = annotationSpec_.toBuilder(); } - case 16: - { - itemCount_ = input.readInt32(); - break; + annotationSpec_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotationSpec_); + annotationSpec_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 16: { + + itemCount_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -260,40 +221,34 @@ private ConfusionMatrixEntry( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.class, - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder - .class); + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.class, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder.class); } public static final int ANNOTATION_SPEC_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; /** - * - * *
      * The annotation spec of a predicted label.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ @java.lang.Override @@ -301,25 +256,18 @@ public boolean hasAnnotationSpec() { return annotationSpec_ != null; } /** - * - * *
      * The annotation spec of a predicted label.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } /** - * - * *
      * The annotation spec of a predicted label.
      * 
@@ -327,23 +275,19 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder - getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { return getAnnotationSpec(); } public static final int ITEM_COUNT_FIELD_NUMBER = 2; private int itemCount_; /** - * - * *
      * Number of items predicted to have this label. (The ground truth label for
      * these items is the `Row.annotationSpec` of this entry's parent.)
      * 
* * int32 item_count = 2; - * * @return The itemCount. */ @java.lang.Override @@ -352,7 +296,6 @@ public int getItemCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -364,7 +307,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 (annotationSpec_ != null) { output.writeMessage(1, getAnnotationSpec()); } @@ -381,10 +325,12 @@ public int getSerializedSize() { size = 0; if (annotationSpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnnotationSpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAnnotationSpec()); } if (itemCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, itemCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, itemCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -394,20 +340,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.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry)) { + if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry other = - (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry) obj; + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry other = (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry) obj; if (hasAnnotationSpec() != other.hasAnnotationSpec()) return false; if (hasAnnotationSpec()) { - if (!getAnnotationSpec().equals(other.getAnnotationSpec())) return false; + if (!getAnnotationSpec() + .equals(other.getAnnotationSpec())) return false; } - if (getItemCount() != other.getItemCount()) return false; + if (getItemCount() + != other.getItemCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -430,101 +376,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry 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.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry - 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.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry 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.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry - 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.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry 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.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry - 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.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry 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.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -536,42 +469,38 @@ protected Builder newBuilderForType( /** * Protobuf type {@code google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry) com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.class, - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder - .class); + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.class, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.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(); @@ -587,22 +516,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry build() { - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry result = - buildPartial(); + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -610,10 +536,8 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntr } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry - buildPartial() { - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry result = - new com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry(this); + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry buildPartial() { + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry result = new com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry(this); if (annotationSpecBuilder_ == null) { result.annotationSpec_ = annotationSpec_; } else { @@ -628,54 +552,46 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntr public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.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.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry) other); + if (other instanceof com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry) { + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry other) { - if (other - == com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry other) { + if (other == com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.getDefaultInstance()) return this; if (other.hasAnnotationSpec()) { mergeAnnotationSpec(other.getAnnotationSpec()); } @@ -697,14 +613,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry parsedMessage = - null; + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -716,47 +629,34 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> - annotationSpecBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecBuilder_; /** - * - * *
        * The annotation spec of a predicted label.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ public boolean hasAnnotationSpec() { return annotationSpecBuilder_ != null || annotationSpec_ != null; } /** - * - * *
        * The annotation spec of a predicted label.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { if (annotationSpecBuilder_ == null) { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } else { return annotationSpecBuilder_.getMessage(); } } /** - * - * *
        * The annotation spec of a predicted label.
        * 
@@ -777,8 +677,6 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio return this; } /** - * - * *
        * The annotation spec of a predicted label.
        * 
@@ -797,22 +695,17 @@ public Builder setAnnotationSpec( return this; } /** - * - * *
        * The annotation spec of a predicted label.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public Builder mergeAnnotationSpec( - com.google.cloud.datalabeling.v1beta1.AnnotationSpec value) { + public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.AnnotationSpec value) { if (annotationSpecBuilder_ == null) { if (annotationSpec_ != null) { annotationSpec_ = - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_).mergeFrom(value).buildPartial(); } else { annotationSpec_ = value; } @@ -824,8 +717,6 @@ public Builder mergeAnnotationSpec( return this; } /** - * - * *
        * The annotation spec of a predicted label.
        * 
@@ -844,42 +735,33 @@ public Builder clearAnnotationSpec() { return this; } /** - * - * *
        * The annotation spec of a predicted label.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder - getAnnotationSpecBuilder() { - + public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotationSpecBuilder() { + onChanged(); return getAnnotationSpecFieldBuilder().getBuilder(); } /** - * - * *
        * The annotation spec of a predicted label.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder - getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { if (annotationSpecBuilder_ != null) { return annotationSpecBuilder_.getMessageOrBuilder(); } else { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } } /** - * - * *
        * The annotation spec of a predicted label.
        * 
@@ -887,33 +769,27 @@ public Builder clearAnnotationSpec() { * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> getAnnotationSpecFieldBuilder() { if (annotationSpecBuilder_ == null) { - annotationSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( - getAnnotationSpec(), getParentForChildren(), isClean()); + annotationSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( + getAnnotationSpec(), + getParentForChildren(), + isClean()); annotationSpec_ = null; } return annotationSpecBuilder_; } - private int itemCount_; + private int itemCount_ ; /** - * - * *
        * Number of items predicted to have this label. (The ground truth label for
        * these items is the `Row.annotationSpec` of this entry's parent.)
        * 
* * int32 item_count = 2; - * * @return The itemCount. */ @java.lang.Override @@ -921,43 +797,36 @@ public int getItemCount() { return itemCount_; } /** - * - * *
        * Number of items predicted to have this label. (The ground truth label for
        * these items is the `Row.annotationSpec` of this entry's parent.)
        * 
* * int32 item_count = 2; - * * @param value The itemCount to set. * @return This builder for chaining. */ public Builder setItemCount(int value) { - + itemCount_ = value; onChanged(); return this; } /** - * - * *
        * Number of items predicted to have this label. (The ground truth label for
        * these items is the `Row.annotationSpec` of this entry's parent.)
        * 
* * int32 item_count = 2; - * * @return This builder for chaining. */ public Builder clearItemCount() { - + itemCount_ = 0; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -970,33 +839,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry) - private static final com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry(); + DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry(); } - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfusionMatrixEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfusionMatrixEntry(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfusionMatrixEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfusionMatrixEntry(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1008,44 +874,35 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } - public interface RowOrBuilder - extends + public interface RowOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The annotation spec of the ground truth label for this row.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ boolean hasAnnotationSpec(); /** - * - * *
      * The annotation spec of the ground truth label for this row.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec(); /** - * - * *
      * The annotation spec of the ground truth label for this row.
      * 
@@ -1055,80 +912,55 @@ public interface RowOrBuilder com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder(); /** - * - * *
      * A list of the confusion matrix entries. One entry for each possible
      * predicted label.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ - java.util.List + java.util.List getEntriesList(); /** - * - * *
      * A list of the confusion matrix entries. One entry for each possible
      * predicted label.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry getEntries( - int index); + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry getEntries(int index); /** - * - * *
      * A list of the confusion matrix entries. One entry for each possible
      * predicted label.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ int getEntriesCount(); /** - * - * *
      * A list of the confusion matrix entries. One entry for each possible
      * predicted label.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ - java.util.List< - ? extends - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder> + java.util.List getEntriesOrBuilderList(); /** - * - * *
      * A list of the confusion matrix entries. One entry for each possible
      * predicted label.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder - getEntriesOrBuilder(int index); + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder getEntriesOrBuilder( + int index); } /** - * - * *
    * A row in the confusion matrix. Each entry in this row has the same
    * ground truth label.
@@ -1136,31 +968,31 @@ com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry getEn
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.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.datalabeling.v1beta1.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() {
       entries_ = 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 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)
@@ -1180,46 +1012,35 @@ private Row(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null;
-                if (annotationSpec_ != null) {
-                  subBuilder = annotationSpec_.toBuilder();
-                }
-                annotationSpec_ =
-                    input.readMessage(
-                        com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(),
-                        extensionRegistry);
-                if (subBuilder != null) {
-                  subBuilder.mergeFrom(annotationSpec_);
-                  annotationSpec_ = subBuilder.buildPartial();
-                }
-
-                break;
+            case 10: {
+              com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null;
+              if (annotationSpec_ != null) {
+                subBuilder = annotationSpec_.toBuilder();
               }
-            case 18:
-              {
-                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                  entries_ =
-                      new java.util.ArrayList<
-                          com.google.cloud.datalabeling.v1beta1.ConfusionMatrix
-                              .ConfusionMatrixEntry>();
-                  mutable_bitField0_ |= 0x00000001;
-                }
-                entries_.add(
-                    input.readMessage(
-                        com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry
-                            .parser(),
-                        extensionRegistry));
-                break;
+              annotationSpec_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(annotationSpec_);
+                annotationSpec_ = subBuilder.buildPartial();
               }
-            default:
-              {
-                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                  done = true;
-                }
-                break;
+
+              break;
+            }
+            case 18: {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                entries_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              entries_.add(
+                  input.readMessage(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.parser(), extensionRegistry));
+              break;
+            }
+            default: {
+              if (!parseUnknownField(
+                  input, unknownFields, extensionRegistry, tag)) {
+                done = true;
               }
+              break;
+            }
           }
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1227,7 +1048,8 @@ private Row(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } 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)) {
           entries_ = java.util.Collections.unmodifiableList(entries_);
@@ -1236,33 +1058,27 @@ private Row(
         makeExtensionsImmutable();
       }
     }
-
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.class,
-              com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.class, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder.class);
     }
 
     public static final int ANNOTATION_SPEC_FIELD_NUMBER = 1;
     private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_;
     /**
-     *
-     *
      * 
      * The annotation spec of the ground truth label for this row.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ @java.lang.Override @@ -1270,25 +1086,18 @@ public boolean hasAnnotationSpec() { return annotationSpec_ != null; } /** - * - * *
      * The annotation spec of the ground truth label for this row.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } /** - * - * *
      * The annotation spec of the ground truth label for this row.
      * 
@@ -1296,105 +1105,76 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder - getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { return getAnnotationSpec(); } public static final int ENTRIES_FIELD_NUMBER = 2; - private java.util.List< - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry> - entries_; + private java.util.List entries_; /** - * - * *
      * A list of the confusion matrix entries. One entry for each possible
      * predicted label.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ @java.lang.Override - public java.util.List< - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry> - getEntriesList() { + public java.util.List getEntriesList() { return entries_; } /** - * - * *
      * A list of the confusion matrix entries. One entry for each possible
      * predicted label.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder> + public java.util.List getEntriesOrBuilderList() { return entries_; } /** - * - * *
      * A list of the confusion matrix entries. One entry for each possible
      * predicted label.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ @java.lang.Override public int getEntriesCount() { return entries_.size(); } /** - * - * *
      * A list of the confusion matrix entries. One entry for each possible
      * predicted label.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry getEntries( - int index) { + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry getEntries(int index) { return entries_.get(index); } /** - * - * *
      * A list of the confusion matrix entries. One entry for each possible
      * predicted label.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder - getEntriesOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder getEntriesOrBuilder( + int index) { return entries_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1406,7 +1186,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 (annotationSpec_ != null) { output.writeMessage(1, getAnnotationSpec()); } @@ -1423,10 +1204,12 @@ public int getSerializedSize() { size = 0; if (annotationSpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnnotationSpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAnnotationSpec()); } for (int i = 0; i < entries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, entries_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, entries_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1436,19 +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.datalabeling.v1beta1.ConfusionMatrix.Row)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row other = - (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row) obj; + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row other = (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row) obj; if (hasAnnotationSpec() != other.hasAnnotationSpec()) return false; if (hasAnnotationSpec()) { - if (!getAnnotationSpec().equals(other.getAnnotationSpec())) return false; + if (!getAnnotationSpec() + .equals(other.getAnnotationSpec())) return false; } - if (!getEntriesList().equals(other.getEntriesList())) return false; + if (!getEntriesList() + .equals(other.getEntriesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1474,94 +1258,87 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row 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.datalabeling.v1beta1.ConfusionMatrix.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.datalabeling.v1beta1.ConfusionMatrix.Row parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.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.datalabeling.v1beta1.ConfusionMatrix.Row parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.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.datalabeling.v1beta1.ConfusionMatrix.Row parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.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.datalabeling.v1beta1.ConfusionMatrix.Row parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.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.datalabeling.v1beta1.ConfusionMatrix.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.datalabeling.v1beta1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.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 @@ -1571,8 +1348,6 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A row in the confusion matrix. Each entry in this row has the same
      * ground truth label.
@@ -1580,24 +1355,21 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.datalabeling.v1beta1.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.datalabeling.v1beta1.ConfusionMatrix.Row)
         com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-        return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
-            .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor
+          getDescriptor() {
+        return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
-            .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_fieldAccessorTable
+        return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.class,
-                com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder.class);
+                com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.class, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder.class);
       }
 
       // Construct using com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.newBuilder()
@@ -1605,17 +1377,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) {
           getEntriesFieldBuilder();
         }
       }
-
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1635,9 +1407,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-        return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
-            .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor
+          getDescriptorForType() {
+        return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor;
       }
 
       @java.lang.Override
@@ -1656,8 +1428,7 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row build() {
 
       @java.lang.Override
       public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row buildPartial() {
-        com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row result =
-            new com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row(this);
+        com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row result = new com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row(this);
         int from_bitField0_ = bitField0_;
         if (annotationSpecBuilder_ == null) {
           result.annotationSpec_ = annotationSpec_;
@@ -1681,41 +1452,38 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.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) {
+          int index, java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
-
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field,
+          java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
-
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row) {
-          return mergeFrom((com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row) other);
+          return mergeFrom((com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row)other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -1723,8 +1491,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row other) {
-        if (other == com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.getDefaultInstance())
-          return this;
+        if (other == com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.getDefaultInstance()) return this;
         if (other.hasAnnotationSpec()) {
           mergeAnnotationSpec(other.getAnnotationSpec());
         }
@@ -1746,10 +1513,9 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.R
               entriesBuilder_ = null;
               entries_ = other.entries_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              entriesBuilder_ =
-                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                      ? getEntriesFieldBuilder()
-                      : null;
+              entriesBuilder_ = 
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                   getEntriesFieldBuilder() : null;
             } else {
               entriesBuilder_.addAllMessages(other.entries_);
             }
@@ -1774,8 +1540,7 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage =
-              (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row) e.getUnfinishedMessage();
+          parsedMessage = (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1784,52 +1549,38 @@ public Builder mergeFrom(
         }
         return this;
       }
-
       private int bitField0_;
 
       private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_;
       private com.google.protobuf.SingleFieldBuilderV3<
-              com.google.cloud.datalabeling.v1beta1.AnnotationSpec,
-              com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder,
-              com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>
-          annotationSpecBuilder_;
+          com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecBuilder_;
       /**
-       *
-       *
        * 
        * The annotation spec of the ground truth label for this row.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ public boolean hasAnnotationSpec() { return annotationSpecBuilder_ != null || annotationSpec_ != null; } /** - * - * *
        * The annotation spec of the ground truth label for this row.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { if (annotationSpecBuilder_ == null) { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } else { return annotationSpecBuilder_.getMessage(); } } /** - * - * *
        * The annotation spec of the ground truth label for this row.
        * 
@@ -1850,8 +1601,6 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio return this; } /** - * - * *
        * The annotation spec of the ground truth label for this row.
        * 
@@ -1870,22 +1619,17 @@ public Builder setAnnotationSpec( return this; } /** - * - * *
        * The annotation spec of the ground truth label for this row.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public Builder mergeAnnotationSpec( - com.google.cloud.datalabeling.v1beta1.AnnotationSpec value) { + public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.AnnotationSpec value) { if (annotationSpecBuilder_ == null) { if (annotationSpec_ != null) { annotationSpec_ = - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_).mergeFrom(value).buildPartial(); } else { annotationSpec_ = value; } @@ -1897,8 +1641,6 @@ public Builder mergeAnnotationSpec( return this; } /** - * - * *
        * The annotation spec of the ground truth label for this row.
        * 
@@ -1917,42 +1659,33 @@ public Builder clearAnnotationSpec() { return this; } /** - * - * *
        * The annotation spec of the ground truth label for this row.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder - getAnnotationSpecBuilder() { - + public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotationSpecBuilder() { + onChanged(); return getAnnotationSpecFieldBuilder().getBuilder(); } /** - * - * *
        * The annotation spec of the ground truth label for this row.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder - getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { if (annotationSpecBuilder_ != null) { return annotationSpecBuilder_.getMessageOrBuilder(); } else { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } } /** - * - * *
        * The annotation spec of the ground truth label for this row.
        * 
@@ -1960,57 +1693,40 @@ public Builder clearAnnotationSpec() { * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> getAnnotationSpecFieldBuilder() { if (annotationSpecBuilder_ == null) { - annotationSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( - getAnnotationSpec(), getParentForChildren(), isClean()); + annotationSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( + getAnnotationSpec(), + getParentForChildren(), + isClean()); annotationSpec_ = null; } return annotationSpecBuilder_; } - private java.util.List< - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry> - entries_ = java.util.Collections.emptyList(); - + private java.util.List entries_ = + java.util.Collections.emptyList(); private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - entries_ = - new java.util.ArrayList< - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry>( - entries_); + entries_ = new java.util.ArrayList(entries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry, - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder, - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder> - entriesBuilder_; + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder> entriesBuilder_; /** - * - * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ - public java.util.List< - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry> - getEntriesList() { + public java.util.List getEntriesList() { if (entriesBuilder_ == null) { return java.util.Collections.unmodifiableList(entries_); } else { @@ -2018,16 +1734,12 @@ private void ensureEntriesIsMutable() { } } /** - * - * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ public int getEntriesCount() { if (entriesBuilder_ == null) { @@ -2037,19 +1749,14 @@ public int getEntriesCount() { } } /** - * - * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry getEntries( - int index) { + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry getEntries(int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { @@ -2057,20 +1764,15 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntr } } /** - * - * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ public Builder setEntries( - int index, - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry value) { + int index, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2084,21 +1786,15 @@ public Builder setEntries( return this; } /** - * - * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ public Builder setEntries( - int index, - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder - builderForValue) { + int index, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); @@ -2109,19 +1805,14 @@ public Builder setEntries( return this; } /** - * - * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ - public Builder addEntries( - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry value) { + public Builder addEntries(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2135,20 +1826,15 @@ public Builder addEntries( return this; } /** - * - * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ public Builder addEntries( - int index, - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry value) { + int index, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2162,20 +1848,15 @@ public Builder addEntries( return this; } /** - * - * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ public Builder addEntries( - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder - builderForValue) { + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(builderForValue.build()); @@ -2186,21 +1867,15 @@ public Builder addEntries( return this; } /** - * - * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ public Builder addEntries( - int index, - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder - builderForValue) { + int index, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); @@ -2211,25 +1886,19 @@ public Builder addEntries( return this; } /** - * - * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ public Builder addAllEntries( - java.lang.Iterable< - ? extends - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry> - values) { + java.lang.Iterable values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entries_); onChanged(); } else { entriesBuilder_.addAllMessages(values); @@ -2237,16 +1906,12 @@ public Builder addAllEntries( return this; } /** - * - * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ public Builder clearEntries() { if (entriesBuilder_ == null) { @@ -2259,16 +1924,12 @@ public Builder clearEntries() { return this; } /** - * - * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { @@ -2281,58 +1942,42 @@ public Builder removeEntries(int index) { return this; } /** - * - * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder - getEntriesBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder getEntriesBuilder( + int index) { return getEntriesFieldBuilder().getBuilder(index); } /** - * - * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder - getEntriesOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder getEntriesOrBuilder( + int index) { if (entriesBuilder_ == null) { - return entries_.get(index); - } else { + return entries_.get(index); } else { return entriesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ - public java.util.List< - ? extends - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix - .ConfusionMatrixEntryOrBuilder> - getEntriesOrBuilderList() { + public java.util.List + getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); } else { @@ -2340,81 +1985,56 @@ public Builder removeEntries(int index) { } } /** - * - * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder - addEntriesBuilder() { - return getEntriesFieldBuilder() - .addBuilder( - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry - .getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder addEntriesBuilder() { + return getEntriesFieldBuilder().addBuilder( + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.getDefaultInstance()); } /** - * - * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder - addEntriesBuilder(int index) { - return getEntriesFieldBuilder() - .addBuilder( - index, - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry - .getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder addEntriesBuilder( + int index) { + return getEntriesFieldBuilder().addBuilder( + index, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.getDefaultInstance()); } /** - * - * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; */ - public java.util.List< - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder> - getEntriesBuilderList() { + public java.util.List + getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry, - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder, - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder> + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { - entriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry, - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry - .Builder, - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix - .ConfusionMatrixEntryOrBuilder>( - entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder>( + entries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); entries_ = null; } return entriesBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2427,12 +2047,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row) private static final com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row(); } @@ -2441,16 +2061,16 @@ public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row getDefau 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; @@ -2465,33 +2085,43 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int ROW_FIELD_NUMBER = 1; private java.util.List row_; - /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */ + /** + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; + */ @java.lang.Override public java.util.List getRowList() { return row_; } - /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */ + /** + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; + */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder> + public java.util.List getRowOrBuilderList() { return row_; } - /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */ + /** + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; + */ @java.lang.Override public int getRowCount() { return row_.size(); } - /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */ + /** + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; + */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row getRow(int index) { return row_.get(index); } - /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */ + /** + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; + */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder getRowOrBuilder( int index) { @@ -2499,7 +2129,6 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder getRow } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2511,7 +2140,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 < row_.size(); i++) { output.writeMessage(1, row_.get(i)); } @@ -2525,7 +2155,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < row_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, row_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, row_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2535,15 +2166,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.datalabeling.v1beta1.ConfusionMatrix)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix other = - (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix) obj; + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix other = (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix) obj; - if (!getRowList().equals(other.getRowList())) return false; + if (!getRowList() + .equals(other.getRowList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2565,104 +2196,96 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix 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.datalabeling.v1beta1.ConfusionMatrix parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.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.datalabeling.v1beta1.ConfusionMatrix parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.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 - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Confusion matrix of the model running the classification. Only applicable
    * when the metrics entry aggregates multiple labels. Not applicable when the
@@ -2671,23 +2294,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.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.datalabeling.v1beta1.ConfusionMatrix)
       com.google.cloud.datalabeling.v1beta1.ConfusionMatrixOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.class,
-              com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.class, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.newBuilder()
@@ -2695,17 +2316,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) {
         getRowFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2719,9 +2340,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor;
     }
 
     @java.lang.Override
@@ -2740,8 +2361,7 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.ConfusionMatrix result =
-          new com.google.cloud.datalabeling.v1beta1.ConfusionMatrix(this);
+      com.google.cloud.datalabeling.v1beta1.ConfusionMatrix result = new com.google.cloud.datalabeling.v1beta1.ConfusionMatrix(this);
       int from_bitField0_ = bitField0_;
       if (rowBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -2760,39 +2380,38 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.ConfusionMatrix) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.ConfusionMatrix) other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.ConfusionMatrix)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2800,8 +2419,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.getDefaultInstance()) return this;
       if (rowBuilder_ == null) {
         if (!other.row_.isEmpty()) {
           if (row_.isEmpty()) {
@@ -2820,10 +2438,9 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix o
             rowBuilder_ = null;
             row_ = other.row_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            rowBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getRowFieldBuilder()
-                    : null;
+            rowBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getRowFieldBuilder() : null;
           } else {
             rowBuilder_.addAllMessages(other.row_);
           }
@@ -2848,8 +2465,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2858,28 +2474,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List row_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureRowIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        row_ =
-            new java.util.ArrayList(
-                row_);
+        row_ = new java.util.ArrayList(row_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row,
-            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder,
-            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder>
-        rowBuilder_;
+        com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder> rowBuilder_;
 
-    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
+    /**
+     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
+     */
     public java.util.List getRowList() {
       if (rowBuilder_ == null) {
         return java.util.Collections.unmodifiableList(row_);
@@ -2887,7 +2498,9 @@ public java.util.List
         return rowBuilder_.getMessageList();
       }
     }
-    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
+    /**
+     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
+     */
     public int getRowCount() {
       if (rowBuilder_ == null) {
         return row_.size();
@@ -2895,7 +2508,9 @@ public int getRowCount() {
         return rowBuilder_.getCount();
       }
     }
-    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
+    /**
+     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
+     */
     public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row getRow(int index) {
       if (rowBuilder_ == null) {
         return row_.get(index);
@@ -2903,7 +2518,9 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row getRow(int inde
         return rowBuilder_.getMessage(index);
       }
     }
-    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
+    /**
+     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
+     */
     public Builder setRow(
         int index, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row value) {
       if (rowBuilder_ == null) {
@@ -2918,10 +2535,11 @@ public Builder setRow(
       }
       return this;
     }
-    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
+    /**
+     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
+     */
     public Builder setRow(
-        int index,
-        com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder builderForValue) {
+        int index, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder builderForValue) {
       if (rowBuilder_ == null) {
         ensureRowIsMutable();
         row_.set(index, builderForValue.build());
@@ -2931,7 +2549,9 @@ public Builder setRow(
       }
       return this;
     }
-    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
+    /**
+     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
+     */
     public Builder addRow(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row value) {
       if (rowBuilder_ == null) {
         if (value == null) {
@@ -2945,7 +2565,9 @@ public Builder addRow(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row
       }
       return this;
     }
-    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
+    /**
+     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
+     */
     public Builder addRow(
         int index, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row value) {
       if (rowBuilder_ == null) {
@@ -2960,7 +2582,9 @@ public Builder addRow(
       }
       return this;
     }
-    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
+    /**
+     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
+     */
     public Builder addRow(
         com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder builderForValue) {
       if (rowBuilder_ == null) {
@@ -2972,10 +2596,11 @@ public Builder addRow(
       }
       return this;
     }
-    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
+    /**
+     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
+     */
     public Builder addRow(
-        int index,
-        com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder builderForValue) {
+        int index, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder builderForValue) {
       if (rowBuilder_ == null) {
         ensureRowIsMutable();
         row_.add(index, builderForValue.build());
@@ -2985,20 +2610,24 @@ public Builder addRow(
       }
       return this;
     }
-    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
+    /**
+     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
+     */
     public Builder addAllRow(
-        java.lang.Iterable
-            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);
       }
       return this;
     }
-    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
+    /**
+     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
+     */
     public Builder clearRow() {
       if (rowBuilder_ == null) {
         row_ = java.util.Collections.emptyList();
@@ -3009,7 +2638,9 @@ public Builder clearRow() {
       }
       return this;
     }
-    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
+    /**
+     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
+     */
     public Builder removeRow(int index) {
       if (rowBuilder_ == null) {
         ensureRowIsMutable();
@@ -3020,69 +2651,73 @@ public Builder removeRow(int index) {
       }
       return this;
     }
-    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
+    /**
+     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
+     */
     public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder getRowBuilder(
         int index) {
       return getRowFieldBuilder().getBuilder(index);
     }
-    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
+    /**
+     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
+     */
     public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder getRowOrBuilder(
         int index) {
       if (rowBuilder_ == null) {
-        return row_.get(index);
-      } else {
+        return row_.get(index);  } else {
         return rowBuilder_.getMessageOrBuilder(index);
       }
     }
-    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
-    public java.util.List<
-            ? extends com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder>
-        getRowOrBuilderList() {
+    /**
+     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
+     */
+    public java.util.List 
+         getRowOrBuilderList() {
       if (rowBuilder_ != null) {
         return rowBuilder_.getMessageOrBuilderList();
       } else {
         return java.util.Collections.unmodifiableList(row_);
       }
     }
-    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
+    /**
+     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
+     */
     public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder addRowBuilder() {
-      return getRowFieldBuilder()
-          .addBuilder(
-              com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.getDefaultInstance());
+      return getRowFieldBuilder().addBuilder(
+          com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.getDefaultInstance());
     }
-    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
+    /**
+     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
+     */
     public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder addRowBuilder(
         int index) {
-      return getRowFieldBuilder()
-          .addBuilder(
-              index,
-              com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.getDefaultInstance());
-    }
-    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
-    public java.util.List
-        getRowBuilderList() {
+      return getRowFieldBuilder().addBuilder(
+          index, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.getDefaultInstance());
+    }
+    /**
+     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
+     */
+    public java.util.List 
+         getRowBuilderList() {
       return getRowFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row,
-            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder,
-            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder>
+        com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder> 
         getRowFieldBuilder() {
       if (rowBuilder_ == null) {
-        rowBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row,
-                com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder,
-                com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder>(
-                row_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        rowBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder>(
+                row_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         row_ = null;
       }
       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);
     }
 
@@ -3092,12 +2727,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ConfusionMatrix)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ConfusionMatrix)
   private static final com.google.cloud.datalabeling.v1beta1.ConfusionMatrix DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ConfusionMatrix();
   }
@@ -3106,16 +2741,16 @@ public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix getDefaultIn
     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;
@@ -3130,4 +2765,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrixOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrixOrBuilder.java
new file mode 100644
index 00000000..50cce9cc
--- /dev/null
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrixOrBuilder.java
@@ -0,0 +1,33 @@
+// Generated by the protocol buffer compiler.  DO NOT EDIT!
+// source: google/cloud/datalabeling/v1beta1/evaluation.proto
+
+package com.google.cloud.datalabeling.v1beta1;
+
+public interface ConfusionMatrixOrBuilder extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ConfusionMatrix)
+    com.google.protobuf.MessageOrBuilder {
+
+  /**
+   * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
+   */
+  java.util.List 
+      getRowList();
+  /**
+   * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
+   */
+  com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row getRow(int index);
+  /**
+   * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
+   */
+  int getRowCount();
+  /**
+   * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
+   */
+  java.util.List 
+      getRowOrBuilderList();
+  /**
+   * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
+   */
+  com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder getRowOrBuilder(
+      int index);
+}
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequest.java
similarity index 61%
rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequest.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequest.java
index 368469a7..a9d9252d 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequest.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequest.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/datalabeling/v1beta1/data_labeling_service.proto
 
 package com.google.cloud.datalabeling.v1beta1;
 
 /**
- *
- *
  * 
  * Request message for CreateAnnotationSpecSet.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest} */ -public final class CreateAnnotationSpecSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateAnnotationSpecSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) CreateAnnotationSpecSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateAnnotationSpecSetRequest.newBuilder() to construct. - private CreateAnnotationSpecSetRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateAnnotationSpecSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateAnnotationSpecSetRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateAnnotationSpecSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateAnnotationSpecSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,37 +53,32 @@ private CreateAnnotationSpecSetRequest( 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.datalabeling.v1beta1.AnnotationSpecSet.Builder subBuilder = null; + if (annotationSpecSet_ != null) { + subBuilder = annotationSpecSet_.toBuilder(); } - case 18: - { - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder subBuilder = null; - if (annotationSpecSet_ != null) { - subBuilder = annotationSpecSet_.toBuilder(); - } - annotationSpecSet_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotationSpecSet_); - annotationSpecSet_ = subBuilder.buildPartial(); - } - - break; + annotationSpecSet_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotationSpecSet_); + annotationSpecSet_ = 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) { @@ -109,42 +86,35 @@ private CreateAnnotationSpecSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.class, - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.class, com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. AnnotationSpecSet resource parent, format:
    * projects/{project_id}
    * 
* - * - * 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,32 +123,30 @@ 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. AnnotationSpecSet resource parent, format:
    * projects/{project_id}
    * 
* - * - * 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 { @@ -189,18 +157,13 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotationSpecSet_; /** - * - * *
    * Required. Annotation spec set to create. Annotation specs must be included.
    * Only one annotation spec will be accepted for annotation specs with same
    * display_name.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the annotationSpecSet field is set. */ @java.lang.Override @@ -208,47 +171,34 @@ public boolean hasAnnotationSpecSet() { return annotationSpecSet_ != null; } /** - * - * *
    * Required. Annotation spec set to create. Annotation specs must be included.
    * Only one annotation spec will be accepted for annotation specs with same
    * display_name.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The annotationSpecSet. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpecSet() { - return annotationSpecSet_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance() - : annotationSpecSet_; + return annotationSpecSet_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance() : annotationSpecSet_; } /** - * - * *
    * Required. Annotation spec set to create. Annotation specs must be included.
    * Only one annotation spec will be accepted for annotation specs with same
    * display_name.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder - getAnnotationSpecSetOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder getAnnotationSpecSetOrBuilder() { return getAnnotationSpecSet(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +210,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_); } @@ -280,7 +231,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (annotationSpecSet_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAnnotationSpecSet()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAnnotationSpecSet()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -290,18 +242,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.datalabeling.v1beta1.CreateAnnotationSpecSetRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest other = - (com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) obj; + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest other = (com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasAnnotationSpecSet() != other.hasAnnotationSpecSet()) return false; if (hasAnnotationSpecSet()) { - if (!getAnnotationSpecSet().equals(other.getAnnotationSpecSet())) return false; + if (!getAnnotationSpecSet() + .equals(other.getAnnotationSpecSet())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -326,145 +279,134 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest 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.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest - 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.datalabeling.v1beta1.CreateAnnotationSpecSetRequest 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.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 CreateAnnotationSpecSet.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.class, - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.class, com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.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(); @@ -480,16 +422,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.getDefaultInstance(); } @java.lang.Override @@ -503,8 +443,7 @@ public com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest buil @java.lang.Override public com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest result = - new com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest(this); + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest result = new com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest(this); result.parent_ = parent_; if (annotationSpecSetBuilder_ == null) { result.annotationSpecSet_ = annotationSpecSet_; @@ -519,51 +458,46 @@ public com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest 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.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest other) { - if (other - == com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest other) { + if (other == com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -590,9 +524,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -604,23 +536,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. AnnotationSpecSet resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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; @@ -629,24 +557,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. AnnotationSpecSet resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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 { @@ -654,70 +579,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. AnnotationSpecSet resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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. AnnotationSpecSet resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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. AnnotationSpecSet resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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; @@ -725,67 +637,47 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotationSpecSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder> - annotationSpecSetBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder> annotationSpecSetBuilder_; /** - * - * *
      * Required. Annotation spec set to create. Annotation specs must be included.
      * Only one annotation spec will be accepted for annotation specs with same
      * display_name.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the annotationSpecSet field is set. */ public boolean hasAnnotationSpecSet() { return annotationSpecSetBuilder_ != null || annotationSpecSet_ != null; } /** - * - * *
      * Required. Annotation spec set to create. Annotation specs must be included.
      * Only one annotation spec will be accepted for annotation specs with same
      * display_name.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The annotationSpecSet. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpecSet() { if (annotationSpecSetBuilder_ == null) { - return annotationSpecSet_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance() - : annotationSpecSet_; + return annotationSpecSet_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance() : annotationSpecSet_; } else { return annotationSpecSetBuilder_.getMessage(); } } /** - * - * *
      * Required. Annotation spec set to create. Annotation specs must be included.
      * Only one annotation spec will be accepted for annotation specs with same
      * display_name.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setAnnotationSpecSet( - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet value) { + public Builder setAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet value) { if (annotationSpecSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -799,17 +691,13 @@ public Builder setAnnotationSpecSet( return this; } /** - * - * *
      * Required. Annotation spec set to create. Annotation specs must be included.
      * Only one annotation spec will be accepted for annotation specs with same
      * display_name.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAnnotationSpecSet( com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder builderForValue) { @@ -823,26 +711,19 @@ public Builder setAnnotationSpecSet( return this; } /** - * - * *
      * Required. Annotation spec set to create. Annotation specs must be included.
      * Only one annotation spec will be accepted for annotation specs with same
      * display_name.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeAnnotationSpecSet( - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet value) { + public Builder mergeAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet value) { if (annotationSpecSetBuilder_ == null) { if (annotationSpecSet_ != null) { annotationSpecSet_ = - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.newBuilder(annotationSpecSet_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.newBuilder(annotationSpecSet_).mergeFrom(value).buildPartial(); } else { annotationSpecSet_ = value; } @@ -854,17 +735,13 @@ public Builder mergeAnnotationSpecSet( return this; } /** - * - * *
      * Required. Annotation spec set to create. Annotation specs must be included.
      * Only one annotation spec will be accepted for annotation specs with same
      * display_name.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAnnotationSpecSet() { if (annotationSpecSetBuilder_ == null) { @@ -878,79 +755,61 @@ public Builder clearAnnotationSpecSet() { return this; } /** - * - * *
      * Required. Annotation spec set to create. Annotation specs must be included.
      * Only one annotation spec will be accepted for annotation specs with same
      * display_name.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder - getAnnotationSpecSetBuilder() { - + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder getAnnotationSpecSetBuilder() { + onChanged(); return getAnnotationSpecSetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Annotation spec set to create. Annotation specs must be included.
      * Only one annotation spec will be accepted for annotation specs with same
      * display_name.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder - getAnnotationSpecSetOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder getAnnotationSpecSetOrBuilder() { if (annotationSpecSetBuilder_ != null) { return annotationSpecSetBuilder_.getMessageOrBuilder(); } else { - return annotationSpecSet_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance() - : annotationSpecSet_; + return annotationSpecSet_ == null ? + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance() : annotationSpecSet_; } } /** - * - * *
      * Required. Annotation spec set to create. Annotation specs must be included.
      * Only one annotation spec will be accepted for annotation specs with same
      * display_name.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder> getAnnotationSpecSetFieldBuilder() { if (annotationSpecSetBuilder_ == null) { - annotationSpecSetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder>( - getAnnotationSpecSet(), getParentForChildren(), isClean()); + annotationSpecSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder>( + getAnnotationSpecSet(), + getParentForChildren(), + isClean()); annotationSpecSet_ = null; } return annotationSpecSetBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -960,32 +819,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) - private static final com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest(); } - public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateAnnotationSpecSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateAnnotationSpecSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAnnotationSpecSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateAnnotationSpecSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -997,8 +854,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequestOrBuilder.java similarity index 52% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequestOrBuilder.java index a7ea72c5..cc8e9ad2 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequestOrBuilder.java @@ -1,103 +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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface CreateAnnotationSpecSetRequestOrBuilder - extends +public interface CreateAnnotationSpecSetRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. AnnotationSpecSet resource parent, format:
    * projects/{project_id}
    * 
* - * - * 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. AnnotationSpecSet resource parent, format:
    * projects/{project_id}
    * 
* - * - * 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. Annotation spec set to create. Annotation specs must be included.
    * Only one annotation spec will be accepted for annotation specs with same
    * display_name.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the annotationSpecSet field is set. */ boolean hasAnnotationSpecSet(); /** - * - * *
    * Required. Annotation spec set to create. Annotation specs must be included.
    * Only one annotation spec will be accepted for annotation specs with same
    * display_name.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The annotationSpecSet. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpecSet(); /** - * - * *
    * Required. Annotation spec set to create. Annotation specs must be included.
    * Only one annotation spec will be accepted for annotation specs with same
    * display_name.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder getAnnotationSpecSetOrBuilder(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequest.java similarity index 63% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequest.java index 066593a0..4e43c873 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for CreateDataset.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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,36 +53,32 @@ 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.datalabeling.v1beta1.Dataset.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); } - case 18: - { - com.google.cloud.datalabeling.v1beta1.Dataset.Builder subBuilder = null; - if (dataset_ != null) { - subBuilder = dataset_.toBuilder(); - } - dataset_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.Dataset.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataset_); - dataset_ = subBuilder.buildPartial(); - } - - break; + dataset_ = input.readMessage(com.google.cloud.datalabeling.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) { @@ -107,42 +86,35 @@ private CreateDatasetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.class, - com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.class, com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Dataset resource parent, format:
    * projects/{project_id}
    * 
* - * - * 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 @@ -151,32 +123,30 @@ 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. Dataset resource parent, format:
    * projects/{project_id}
    * 
* - * - * 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 { @@ -187,16 +157,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int DATASET_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.Dataset dataset_; /** - * - * *
    * Required. The dataset to be created.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the dataset field is set. */ @java.lang.Override @@ -204,34 +169,23 @@ public boolean hasDataset() { return dataset_ != null; } /** - * - * *
    * Required. The dataset to be created.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The dataset. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.Dataset getDataset() { - return dataset_ == null - ? com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance() - : dataset_; + return dataset_ == null ? com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance() : dataset_; } /** - * - * *
    * Required. The dataset to be created.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetOrBuilder() { @@ -239,7 +193,6 @@ public com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetOrBuilde } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -251,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -271,7 +225,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; @@ -281,18 +236,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.datalabeling.v1beta1.CreateDatasetRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest other = - (com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest) obj; + com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest other = (com.google.cloud.datalabeling.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; @@ -317,127 +273,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.CreateDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.CreateDatasetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.CreateDatasetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.CreateDatasetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.CreateDatasetRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.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 CreateDataset.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.CreateDatasetRequest) com.google.cloud.datalabeling.v1beta1.CreateDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.class, - com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.class, com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.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.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_descriptor; } @java.lang.Override @@ -490,8 +437,7 @@ public com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest result = - new com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest(this); + com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest result = new com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest(this); result.parent_ = parent_; if (datasetBuilder_ == null) { result.dataset_ = dataset_; @@ -506,39 +452,38 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.CreateDatasetRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest)other); } else { super.mergeFrom(other); return this; @@ -546,8 +491,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -574,8 +518,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -587,23 +530,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Dataset resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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; @@ -612,24 +551,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Dataset resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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 { @@ -637,70 +573,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Dataset resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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. Dataset resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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. Dataset resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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; @@ -708,58 +631,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datalabeling.v1beta1.Dataset dataset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Dataset, - com.google.cloud.datalabeling.v1beta1.Dataset.Builder, - com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder> - datasetBuilder_; + com.google.cloud.datalabeling.v1beta1.Dataset, com.google.cloud.datalabeling.v1beta1.Dataset.Builder, com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder> datasetBuilder_; /** - * - * *
      * Required. The dataset to be created.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.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 be created.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The dataset. */ public com.google.cloud.datalabeling.v1beta1.Dataset getDataset() { if (datasetBuilder_ == null) { - return dataset_ == null - ? com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance() - : dataset_; + return dataset_ == null ? com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance() : dataset_; } else { return datasetBuilder_.getMessage(); } } /** - * - * *
      * Required. The dataset to be created.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDataset(com.google.cloud.datalabeling.v1beta1.Dataset value) { if (datasetBuilder_ == null) { @@ -775,15 +679,11 @@ public Builder setDataset(com.google.cloud.datalabeling.v1beta1.Dataset value) { return this; } /** - * - * *
      * Required. The dataset to be created.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setDataset( com.google.cloud.datalabeling.v1beta1.Dataset.Builder builderForValue) { @@ -797,23 +697,17 @@ public Builder setDataset( return this; } /** - * - * *
      * Required. The dataset to be created.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeDataset(com.google.cloud.datalabeling.v1beta1.Dataset value) { if (datasetBuilder_ == null) { if (dataset_ != null) { dataset_ = - com.google.cloud.datalabeling.v1beta1.Dataset.newBuilder(dataset_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.Dataset.newBuilder(dataset_).mergeFrom(value).buildPartial(); } else { dataset_ = value; } @@ -825,15 +719,11 @@ public Builder mergeDataset(com.google.cloud.datalabeling.v1beta1.Dataset value) return this; } /** - * - * *
      * Required. The dataset to be created.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearDataset() { if (datasetBuilder_ == null) { @@ -847,71 +737,55 @@ public Builder clearDataset() { return this; } /** - * - * *
      * Required. The dataset to be created.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datalabeling.v1beta1.Dataset.Builder getDatasetBuilder() { - + onChanged(); return getDatasetFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The dataset to be created.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetOrBuilder() { if (datasetBuilder_ != null) { return datasetBuilder_.getMessageOrBuilder(); } else { - return dataset_ == null - ? com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance() - : dataset_; + return dataset_ == null ? + com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance() : dataset_; } } /** - * - * *
      * Required. The dataset to be created.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Dataset, - com.google.cloud.datalabeling.v1beta1.Dataset.Builder, - com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder> + com.google.cloud.datalabeling.v1beta1.Dataset, com.google.cloud.datalabeling.v1beta1.Dataset.Builder, com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder> getDatasetFieldBuilder() { if (datasetBuilder_ == null) { - datasetBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Dataset, - com.google.cloud.datalabeling.v1beta1.Dataset.Builder, - com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder>( - getDataset(), getParentForChildren(), isClean()); + datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.Dataset, com.google.cloud.datalabeling.v1beta1.Dataset.Builder, com.google.cloud.datalabeling.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); } @@ -921,12 +795,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.CreateDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.CreateDatasetRequest) private static final com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest(); } @@ -935,16 +809,16 @@ public static com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest getDefa 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; @@ -959,4 +833,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequestOrBuilder.java new file mode 100644 index 00000000..76f500aa --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface CreateDatasetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.CreateDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Dataset resource parent, format:
+   * projects/{project_id}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Dataset resource parent, format:
+   * projects/{project_id}
+   * 
+ * + * 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 be created.
+   * 
+ * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the dataset field is set. + */ + boolean hasDataset(); + /** + *
+   * Required. The dataset to be created.
+   * 
+ * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The dataset. + */ + com.google.cloud.datalabeling.v1beta1.Dataset getDataset(); + /** + *
+   * Required. The dataset to be created.
+   * 
+ * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetOrBuilder(); +} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequest.java similarity index 61% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequest.java index f7c1495d..ef30b648 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for CreateEvaluationJob.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest} */ -public final class CreateEvaluationJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateEvaluationJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) CreateEvaluationJobRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateEvaluationJobRequest.newBuilder() to construct. private CreateEvaluationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateEvaluationJobRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateEvaluationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateEvaluationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,37 +53,32 @@ private CreateEvaluationJobRequest( 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.datalabeling.v1beta1.EvaluationJob.Builder subBuilder = null; + if (job_ != null) { + subBuilder = job_.toBuilder(); } - case 18: - { - com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder subBuilder = null; - if (job_ != null) { - subBuilder = job_.toBuilder(); - } - job_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.EvaluationJob.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(job_); - job_ = subBuilder.buildPartial(); - } - - break; + job_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.EvaluationJob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(job_); + job_ = 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) { @@ -108,42 +86,35 @@ private CreateEvaluationJobRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.class, - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Evaluation job resource parent. Format:
    * "projects/<var>{project_id}</var>"
    * 
* - * - * 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 @@ -152,32 +123,30 @@ 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. Evaluation job resource parent. Format:
    * "projects/<var>{project_id}</var>"
    * 
* - * - * 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,16 +157,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int JOB_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.EvaluationJob job_; /** - * - * *
    * Required. The evaluation job to create.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the job field is set. */ @java.lang.Override @@ -205,34 +169,23 @@ public boolean hasJob() { return job_ != null; } /** - * - * *
    * Required. The evaluation job to create.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The job. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EvaluationJob getJob() { - return job_ == null - ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() - : job_; + return job_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() : job_; } /** - * - * *
    * Required. The evaluation job to create.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getJobOrBuilder() { @@ -240,7 +193,6 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getJobOrBuil } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -272,7 +225,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (job_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getJob()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getJob()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -282,18 +236,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.datalabeling.v1beta1.CreateEvaluationJobRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest other = - (com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) obj; + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest other = (com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasJob() != other.hasJob()) return false; if (hasJob()) { - if (!getJob().equals(other.getJob())) return false; + if (!getJob() + .equals(other.getJob())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -318,127 +273,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest 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.datalabeling.v1beta1.CreateEvaluationJobRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 CreateEvaluationJob.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.class, - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.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,14 +416,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.getDefaultInstance(); } @@ -492,8 +437,7 @@ public com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest result = - new com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest(this); + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest result = new com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest(this); result.parent_ = parent_; if (jobBuilder_ == null) { result.job_ = job_; @@ -508,50 +452,46 @@ public com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest 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.datalabeling.v1beta1.CreateEvaluationJobRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest other) { - if (other - == com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest other) { + if (other == com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -578,9 +518,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -592,23 +530,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Evaluation job resource parent. Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * - * 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; @@ -617,24 +551,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Evaluation job resource parent. Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * - * 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 { @@ -642,70 +573,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Evaluation job resource parent. Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * - * 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. Evaluation job resource parent. Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * - * 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. Evaluation job resource parent. Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * - * 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; @@ -713,58 +631,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datalabeling.v1beta1.EvaluationJob job_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJob, - com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, - com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> - jobBuilder_; + com.google.cloud.datalabeling.v1beta1.EvaluationJob, com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> jobBuilder_; /** - * - * *
      * Required. The evaluation job to create.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the job field is set. */ public boolean hasJob() { return jobBuilder_ != null || job_ != null; } /** - * - * *
      * Required. The evaluation job to create.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The job. */ public com.google.cloud.datalabeling.v1beta1.EvaluationJob getJob() { if (jobBuilder_ == null) { - return job_ == null - ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() - : job_; + return job_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() : job_; } else { return jobBuilder_.getMessage(); } } /** - * - * *
      * Required. The evaluation job to create.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setJob(com.google.cloud.datalabeling.v1beta1.EvaluationJob value) { if (jobBuilder_ == null) { @@ -780,15 +679,11 @@ public Builder setJob(com.google.cloud.datalabeling.v1beta1.EvaluationJob value) return this; } /** - * - * *
      * Required. The evaluation job to create.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setJob( com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder builderForValue) { @@ -802,23 +697,17 @@ public Builder setJob( return this; } /** - * - * *
      * Required. The evaluation job to create.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeJob(com.google.cloud.datalabeling.v1beta1.EvaluationJob value) { if (jobBuilder_ == null) { if (job_ != null) { job_ = - com.google.cloud.datalabeling.v1beta1.EvaluationJob.newBuilder(job_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.EvaluationJob.newBuilder(job_).mergeFrom(value).buildPartial(); } else { job_ = value; } @@ -830,15 +719,11 @@ public Builder mergeJob(com.google.cloud.datalabeling.v1beta1.EvaluationJob valu return this; } /** - * - * *
      * Required. The evaluation job to create.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearJob() { if (jobBuilder_ == null) { @@ -852,71 +737,55 @@ public Builder clearJob() { return this; } /** - * - * *
      * Required. The evaluation job to create.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder getJobBuilder() { - + onChanged(); return getJobFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The evaluation job to create.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getJobOrBuilder() { if (jobBuilder_ != null) { return jobBuilder_.getMessageOrBuilder(); } else { - return job_ == null - ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() - : job_; + return job_ == null ? + com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() : job_; } } /** - * - * *
      * Required. The evaluation job to create.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJob, - com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, - com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> + com.google.cloud.datalabeling.v1beta1.EvaluationJob, com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> getJobFieldBuilder() { if (jobBuilder_ == null) { - jobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJob, - com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, - com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder>( - getJob(), getParentForChildren(), isClean()); + jobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.EvaluationJob, com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder>( + getJob(), + getParentForChildren(), + isClean()); job_ = null; } return jobBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -926,32 +795,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) - private static final com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest(); } - public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateEvaluationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateEvaluationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateEvaluationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateEvaluationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -963,8 +830,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequestOrBuilder.java new file mode 100644 index 00000000..831810ae --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface CreateEvaluationJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Evaluation job resource parent. Format:
+   * "projects/<var>{project_id}</var>"
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Evaluation job resource parent. Format:
+   * "projects/<var>{project_id}</var>"
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. The evaluation job to create.
+   * 
+ * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the job field is set. + */ + boolean hasJob(); + /** + *
+   * Required. The evaluation job to create.
+   * 
+ * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The job. + */ + com.google.cloud.datalabeling.v1beta1.EvaluationJob getJob(); + /** + *
+   * Required. The evaluation job to create.
+   * 
+ * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getJobOrBuilder(); +} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadata.java similarity index 74% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadata.java index 97e514fd..c5d4fc5c 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadata.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Metadata of a CreateInstruction operation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.CreateInstructionMetadata} */ -public final class CreateInstructionMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateInstructionMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.CreateInstructionMetadata) CreateInstructionMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateInstructionMetadata.newBuilder() to construct. private CreateInstructionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateInstructionMetadata() { instruction_ = ""; partialFailures_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private CreateInstructionMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateInstructionMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateInstructionMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,45 +55,41 @@ private CreateInstructionMetadata( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - instruction_ = s; - break; + instruction_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + partialFailures_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - 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; + 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(); } - 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; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = 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) { @@ -118,7 +97,8 @@ private CreateInstructionMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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_); @@ -127,34 +107,28 @@ private CreateInstructionMetadata( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.class, - com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.class, com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.Builder.class); } public static final int INSTRUCTION_FIELD_NUMBER = 1; private volatile java.lang.Object instruction_; /** - * - * *
    * The name of the created Instruction.
    * projects/{project_id}/instructions/{instruction_id}
    * 
* * string instruction = 1; - * * @return The instruction. */ @java.lang.Override @@ -163,30 +137,30 @@ public java.lang.String getInstruction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instruction_ = s; return s; } } /** - * - * *
    * The name of the created Instruction.
    * projects/{project_id}/instructions/{instruction_id}
    * 
* * string instruction = 1; - * * @return The bytes for instruction. */ @java.lang.Override - public com.google.protobuf.ByteString getInstructionBytes() { + public com.google.protobuf.ByteString + getInstructionBytes() { java.lang.Object ref = instruction_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instruction_ = b; return b; } else { @@ -197,8 +171,6 @@ public com.google.protobuf.ByteString getInstructionBytes() { public static final int PARTIAL_FAILURES_FIELD_NUMBER = 2; private java.util.List partialFailures_; /** - * - * *
    * Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -212,8 +184,6 @@ public java.util.List getPartialFailuresList() {
     return partialFailures_;
   }
   /**
-   *
-   *
    * 
    * Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -223,13 +193,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_;
   }
   /**
-   *
-   *
    * 
    * Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -243,8 +211,6 @@ public int getPartialFailuresCount() {
     return partialFailures_.size();
   }
   /**
-   *
-   *
    * 
    * Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -258,8 +224,6 @@ public com.google.rpc.Status getPartialFailures(int index) {
     return partialFailures_.get(index);
   }
   /**
-   *
-   *
    * 
    * Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -269,21 +233,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_;
   /**
-   *
-   *
    * 
    * Timestamp when create instruction request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -291,14 +253,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Timestamp when create instruction request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ @java.lang.Override @@ -306,8 +265,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Timestamp when create instruction request was created.
    * 
@@ -320,7 +277,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,7 +288,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(instruction_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instruction_); } @@ -355,10 +312,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instruction_); } 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()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -368,19 +327,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.datalabeling.v1beta1.CreateInstructionMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata other = - (com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata) obj; + com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata other = (com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata) obj; - if (!getInstruction().equals(other.getInstruction())) return false; - if (!getPartialFailuresList().equals(other.getPartialFailuresList())) return false; + if (!getInstruction() + .equals(other.getInstruction())) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -409,127 +370,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata 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.datalabeling.v1beta1.CreateInstructionMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 of a CreateInstruction operation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.CreateInstructionMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.CreateInstructionMetadata) com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.class, - com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.class, com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.newBuilder() @@ -537,17 +488,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(); @@ -569,14 +520,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.getDefaultInstance(); } @@ -591,8 +541,7 @@ public com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata result = - new com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata(this); + com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata result = new com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata(this); int from_bitField0_ = bitField0_; result.instruction_ = instruction_; if (partialFailuresBuilder_ == null) { @@ -617,50 +566,46 @@ public com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata 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.datalabeling.v1beta1.CreateInstructionMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata other) { - if (other - == com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata other) { + if (other == com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.getDefaultInstance()) return this; if (!other.getInstruction().isEmpty()) { instruction_ = other.instruction_; onChanged(); @@ -683,10 +628,9 @@ public Builder mergeFrom( 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_); } @@ -714,9 +658,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -725,26 +667,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object instruction_ = ""; /** - * - * *
      * The name of the created Instruction.
      * projects/{project_id}/instructions/{instruction_id}
      * 
* * string instruction = 1; - * * @return The instruction. */ public java.lang.String getInstruction() { java.lang.Object ref = instruction_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instruction_ = s; return s; @@ -753,22 +692,21 @@ public java.lang.String getInstruction() { } } /** - * - * *
      * The name of the created Instruction.
      * projects/{project_id}/instructions/{instruction_id}
      * 
* * string instruction = 1; - * * @return The bytes for instruction. */ - public com.google.protobuf.ByteString getInstructionBytes() { + public com.google.protobuf.ByteString + getInstructionBytes() { java.lang.Object ref = instruction_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instruction_ = b; return b; } else { @@ -776,86 +714,75 @@ public com.google.protobuf.ByteString getInstructionBytes() { } } /** - * - * *
      * The name of the created Instruction.
      * projects/{project_id}/instructions/{instruction_id}
      * 
* * string instruction = 1; - * * @param value The instruction to set. * @return This builder for chaining. */ - public Builder setInstruction(java.lang.String value) { + public Builder setInstruction( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instruction_ = value; onChanged(); return this; } /** - * - * *
      * The name of the created Instruction.
      * projects/{project_id}/instructions/{instruction_id}
      * 
* * string instruction = 1; - * * @return This builder for chaining. */ public Builder clearInstruction() { - + instruction_ = getDefaultInstance().getInstruction(); onChanged(); return this; } /** - * - * *
      * The name of the created Instruction.
      * projects/{project_id}/instructions/{instruction_id}
      * 
* * string instruction = 1; - * * @param value The bytes for instruction to set. * @return This builder for chaining. */ - public Builder setInstructionBytes(com.google.protobuf.ByteString value) { + public Builder setInstructionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instruction_ = value; 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_; /** - * - * *
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -872,8 +799,6 @@ public java.util.List getPartialFailuresList() {
       }
     }
     /**
-     *
-     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -890,8 +815,6 @@ public int getPartialFailuresCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -908,8 +831,6 @@ public com.google.rpc.Status getPartialFailures(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -918,7 +839,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();
@@ -932,8 +854,6 @@ public Builder setPartialFailures(int index, com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -942,7 +862,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());
@@ -953,8 +874,6 @@ public Builder setPartialFailures(int index, com.google.rpc.Status.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -977,8 +896,6 @@ public Builder addPartialFailures(com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -987,7 +904,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();
@@ -1001,8 +919,6 @@ public Builder addPartialFailures(int index, com.google.rpc.Status value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1011,7 +927,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());
@@ -1022,8 +939,6 @@ public Builder addPartialFailures(com.google.rpc.Status.Builder builderForValue)
       return this;
     }
     /**
-     *
-     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1032,7 +947,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());
@@ -1043,8 +959,6 @@ public Builder addPartialFailures(int index, com.google.rpc.Status.Builder build
       return this;
     }
     /**
-     *
-     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1057,7 +971,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);
@@ -1065,8 +980,6 @@ public Builder addAllPartialFailures(
       return this;
     }
     /**
-     *
-     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1086,8 +999,6 @@ public Builder clearPartialFailures() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1107,8 +1018,6 @@ public Builder removePartialFailures(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1117,12 +1026,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);
     }
     /**
-     *
-     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1131,16 +1039,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);
       }
     }
     /**
-     *
-     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1149,8 +1055,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 {
@@ -1158,8 +1064,6 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1169,12 +1073,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());
     }
     /**
-     *
-     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1183,13 +1085,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());
     }
     /**
-     *
-     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1198,19 +1099,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(),
@@ -1222,47 +1120,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_;
     /**
-     *
-     *
      * 
      * Timestamp when create instruction request was created.
      * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Timestamp when create instruction request 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(); } } /** - * - * *
      * Timestamp when create instruction request was created.
      * 
@@ -1283,15 +1168,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Timestamp when create instruction request 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(); @@ -1302,8 +1186,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Timestamp when create instruction request was created.
      * 
@@ -1314,7 +1196,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; } @@ -1326,8 +1208,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Timestamp when create instruction request was created.
      * 
@@ -1346,8 +1226,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Timestamp when create instruction request was created.
      * 
@@ -1355,13 +1233,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 3; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Timestamp when create instruction request was created.
      * 
@@ -1372,14 +1248,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_; } } /** - * - * *
      * Timestamp when create instruction request was created.
      * 
@@ -1387,24 +1260,21 @@ 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_; } - @java.lang.Override - 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,32 +1284,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.CreateInstructionMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.CreateInstructionMetadata) - private static final com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateInstructionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateInstructionMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateInstructionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateInstructionMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1451,8 +1319,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadataOrBuilder.java similarity index 72% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadataOrBuilder.java index c92a8d1b..e9491a44 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface CreateInstructionMetadataOrBuilder - extends +public interface CreateInstructionMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.CreateInstructionMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the created Instruction.
    * projects/{project_id}/instructions/{instruction_id}
    * 
* * string instruction = 1; - * * @return The instruction. */ java.lang.String getInstruction(); /** - * - * *
    * The name of the created Instruction.
    * projects/{project_id}/instructions/{instruction_id}
    * 
* * string instruction = 1; - * * @return The bytes for instruction. */ - com.google.protobuf.ByteString getInstructionBytes(); + com.google.protobuf.ByteString + getInstructionBytes(); /** - * - * *
    * Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -61,10 +38,9 @@ public interface CreateInstructionMetadataOrBuilder
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  java.util.List getPartialFailuresList();
+  java.util.List 
+      getPartialFailuresList();
   /**
-   *
-   *
    * 
    * Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -75,8 +51,6 @@ public interface CreateInstructionMetadataOrBuilder
    */
   com.google.rpc.Status getPartialFailures(int index);
   /**
-   *
-   *
    * 
    * Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -87,8 +61,6 @@ public interface CreateInstructionMetadataOrBuilder
    */
   int getPartialFailuresCount();
   /**
-   *
-   *
    * 
    * Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -97,10 +69,9 @@ public interface CreateInstructionMetadataOrBuilder
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  java.util.List getPartialFailuresOrBuilderList();
+  java.util.List 
+      getPartialFailuresOrBuilderList();
   /**
-   *
-   *
    * 
    * Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -109,35 +80,28 @@ public interface CreateInstructionMetadataOrBuilder
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index);
+  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Timestamp when create instruction request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Timestamp when create instruction request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Timestamp when create instruction request was created.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequest.java similarity index 62% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequest.java index f008dd0a..c5a2ecd6 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for CreateInstruction.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.CreateInstructionRequest} */ -public final class CreateInstructionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateInstructionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.CreateInstructionRequest) CreateInstructionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateInstructionRequest.newBuilder() to construct. private CreateInstructionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateInstructionRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateInstructionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateInstructionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,37 +53,32 @@ private CreateInstructionRequest( 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.datalabeling.v1beta1.Instruction.Builder subBuilder = null; + if (instruction_ != null) { + subBuilder = instruction_.toBuilder(); } - case 18: - { - com.google.cloud.datalabeling.v1beta1.Instruction.Builder subBuilder = null; - if (instruction_ != null) { - subBuilder = instruction_.toBuilder(); - } - instruction_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.Instruction.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(instruction_); - instruction_ = subBuilder.buildPartial(); - } - - break; + instruction_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.Instruction.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(instruction_); + instruction_ = 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) { @@ -108,42 +86,35 @@ private CreateInstructionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.class, - com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.class, com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Instruction resource parent, format:
    * projects/{project_id}
    * 
* - * - * 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 @@ -152,32 +123,30 @@ 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. Instruction resource parent, format:
    * projects/{project_id}
    * 
* - * - * 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,16 +157,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int INSTRUCTION_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.Instruction instruction_; /** - * - * *
    * Required. Instruction of how to perform the labeling task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instruction field is set. */ @java.lang.Override @@ -205,34 +169,23 @@ public boolean hasInstruction() { return instruction_ != null; } /** - * - * *
    * Required. Instruction of how to perform the labeling task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The instruction. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.Instruction getInstruction() { - return instruction_ == null - ? com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance() - : instruction_; + return instruction_ == null ? com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance() : instruction_; } /** - * - * *
    * Required. Instruction of how to perform the labeling task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstructionOrBuilder() { @@ -240,7 +193,6 @@ public com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstruction } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -252,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -272,7 +225,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (instruction_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInstruction()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInstruction()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -282,18 +236,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.datalabeling.v1beta1.CreateInstructionRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest other = - (com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest) obj; + com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest other = (com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasInstruction() != other.hasInstruction()) return false; if (hasInstruction()) { - if (!getInstruction().equals(other.getInstruction())) return false; + if (!getInstruction() + .equals(other.getInstruction())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -318,127 +273,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest 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.datalabeling.v1beta1.CreateInstructionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 CreateInstruction.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.CreateInstructionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.CreateInstructionRequest) com.google.cloud.datalabeling.v1beta1.CreateInstructionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.class, - com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.class, com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.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,14 +416,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.getDefaultInstance(); } @@ -492,8 +437,7 @@ public com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest result = - new com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest(this); + com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest result = new com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest(this); result.parent_ = parent_; if (instructionBuilder_ == null) { result.instruction_ = instruction_; @@ -508,39 +452,38 @@ public com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest 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.datalabeling.v1beta1.CreateInstructionRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest)other); } else { super.mergeFrom(other); return this; @@ -548,9 +491,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest other) { - if (other - == com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -577,9 +518,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -591,23 +530,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Instruction resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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; @@ -616,24 +551,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Instruction resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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 { @@ -641,70 +573,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Instruction resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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. Instruction resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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. Instruction resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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; @@ -712,58 +631,39 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datalabeling.v1beta1.Instruction instruction_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Instruction, - com.google.cloud.datalabeling.v1beta1.Instruction.Builder, - com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder> - instructionBuilder_; + com.google.cloud.datalabeling.v1beta1.Instruction, com.google.cloud.datalabeling.v1beta1.Instruction.Builder, com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder> instructionBuilder_; /** - * - * *
      * Required. Instruction of how to perform the labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the instruction field is set. */ public boolean hasInstruction() { return instructionBuilder_ != null || instruction_ != null; } /** - * - * *
      * Required. Instruction of how to perform the labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The instruction. */ public com.google.cloud.datalabeling.v1beta1.Instruction getInstruction() { if (instructionBuilder_ == null) { - return instruction_ == null - ? com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance() - : instruction_; + return instruction_ == null ? com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance() : instruction_; } else { return instructionBuilder_.getMessage(); } } /** - * - * *
      * Required. Instruction of how to perform the labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInstruction(com.google.cloud.datalabeling.v1beta1.Instruction value) { if (instructionBuilder_ == null) { @@ -779,15 +679,11 @@ public Builder setInstruction(com.google.cloud.datalabeling.v1beta1.Instruction return this; } /** - * - * *
      * Required. Instruction of how to perform the labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInstruction( com.google.cloud.datalabeling.v1beta1.Instruction.Builder builderForValue) { @@ -801,23 +697,17 @@ public Builder setInstruction( return this; } /** - * - * *
      * Required. Instruction of how to perform the labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInstruction(com.google.cloud.datalabeling.v1beta1.Instruction value) { if (instructionBuilder_ == null) { if (instruction_ != null) { instruction_ = - com.google.cloud.datalabeling.v1beta1.Instruction.newBuilder(instruction_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.Instruction.newBuilder(instruction_).mergeFrom(value).buildPartial(); } else { instruction_ = value; } @@ -829,15 +719,11 @@ public Builder mergeInstruction(com.google.cloud.datalabeling.v1beta1.Instructio return this; } /** - * - * *
      * Required. Instruction of how to perform the labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInstruction() { if (instructionBuilder_ == null) { @@ -851,71 +737,55 @@ public Builder clearInstruction() { return this; } /** - * - * *
      * Required. Instruction of how to perform the labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datalabeling.v1beta1.Instruction.Builder getInstructionBuilder() { - + onChanged(); return getInstructionFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Instruction of how to perform the labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstructionOrBuilder() { if (instructionBuilder_ != null) { return instructionBuilder_.getMessageOrBuilder(); } else { - return instruction_ == null - ? com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance() - : instruction_; + return instruction_ == null ? + com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance() : instruction_; } } /** - * - * *
      * Required. Instruction of how to perform the labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Instruction, - com.google.cloud.datalabeling.v1beta1.Instruction.Builder, - com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder> + com.google.cloud.datalabeling.v1beta1.Instruction, com.google.cloud.datalabeling.v1beta1.Instruction.Builder, com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder> getInstructionFieldBuilder() { if (instructionBuilder_ == null) { - instructionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Instruction, - com.google.cloud.datalabeling.v1beta1.Instruction.Builder, - com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder>( - getInstruction(), getParentForChildren(), isClean()); + instructionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.Instruction, com.google.cloud.datalabeling.v1beta1.Instruction.Builder, com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder>( + getInstruction(), + getParentForChildren(), + isClean()); instruction_ = null; } return instructionBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -925,32 +795,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.CreateInstructionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.CreateInstructionRequest) - private static final com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest(); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateInstructionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateInstructionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateInstructionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateInstructionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -962,8 +830,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequestOrBuilder.java new file mode 100644 index 00000000..33c8076e --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequestOrBuilder.java @@ -0,0 +1,58 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface CreateInstructionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.CreateInstructionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Instruction resource parent, format:
+   * projects/{project_id}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The parent. + */ + java.lang.String getParent(); + /** + *
+   * Required. Instruction resource parent, format:
+   * projects/{project_id}
+   * 
+ * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for parent. + */ + com.google.protobuf.ByteString + getParentBytes(); + + /** + *
+   * Required. Instruction of how to perform the labeling task.
+   * 
+ * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return Whether the instruction field is set. + */ + boolean hasInstruction(); + /** + *
+   * Required. Instruction of how to perform the labeling task.
+   * 
+ * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return The instruction. + */ + com.google.cloud.datalabeling.v1beta1.Instruction getInstruction(); + /** + *
+   * Required. Instruction of how to perform the labeling task.
+   * 
+ * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstructionOrBuilder(); +} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstruction.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstruction.java similarity index 70% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstruction.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstruction.java index cc7fb5e6..7ac0a30f 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstruction.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstruction.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/datalabeling/v1beta1/instruction.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Deprecated: this instruction format is not supported any more.
  * Instruction from a CSV file.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.CsvInstruction}
  */
-public final class CsvInstruction extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class CsvInstruction extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.CsvInstruction)
     CsvInstructionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use CsvInstruction.newBuilder() to construct.
   private CsvInstruction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private CsvInstruction() {
     gcsFileUri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new CsvInstruction();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private CsvInstruction(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,20 +54,19 @@ private CsvInstruction(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              gcsFileUri_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            gcsFileUri_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -92,39 +74,34 @@ private CsvInstruction(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.CsvInstruction.class,
-            com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.CsvInstruction.class, com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder.class);
   }
 
   public static final int GCS_FILE_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object gcsFileUri_;
   /**
-   *
-   *
    * 
    * CSV file for the instruction. Only gcs path is allowed.
    * 
* * string gcs_file_uri = 1; - * * @return The gcsFileUri. */ @java.lang.Override @@ -133,29 +110,29 @@ public java.lang.String getGcsFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsFileUri_ = s; return s; } } /** - * - * *
    * CSV file for the instruction. Only gcs path is allowed.
    * 
* * string gcs_file_uri = 1; - * * @return The bytes for gcsFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString getGcsFileUriBytes() { + public com.google.protobuf.ByteString + getGcsFileUriBytes() { java.lang.Object ref = gcsFileUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsFileUri_ = b; return b; } else { @@ -164,7 +141,6 @@ public com.google.protobuf.ByteString getGcsFileUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,7 +152,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(gcsFileUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcsFileUri_); } @@ -200,15 +177,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.datalabeling.v1beta1.CsvInstruction)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.CsvInstruction other = - (com.google.cloud.datalabeling.v1beta1.CsvInstruction) obj; + com.google.cloud.datalabeling.v1beta1.CsvInstruction other = (com.google.cloud.datalabeling.v1beta1.CsvInstruction) obj; - if (!getGcsFileUri().equals(other.getGcsFileUri())) return false; + if (!getGcsFileUri() + .equals(other.getGcsFileUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,103 +205,96 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.CsvInstruction 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.datalabeling.v1beta1.CsvInstruction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.CsvInstruction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Deprecated: this instruction format is not supported any more.
    * Instruction from a CSV file.
@@ -332,23 +302,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.CsvInstruction}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.CsvInstruction)
       com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.CsvInstruction.class,
-              com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.CsvInstruction.class, com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.CsvInstruction.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.datalabeling.v1beta1.InstructionOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor;
     }
 
     @java.lang.Override
@@ -395,8 +364,7 @@ public com.google.cloud.datalabeling.v1beta1.CsvInstruction build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.CsvInstruction buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.CsvInstruction result =
-          new com.google.cloud.datalabeling.v1beta1.CsvInstruction(this);
+      com.google.cloud.datalabeling.v1beta1.CsvInstruction result = new com.google.cloud.datalabeling.v1beta1.CsvInstruction(this);
       result.gcsFileUri_ = gcsFileUri_;
       onBuilt();
       return result;
@@ -406,39 +374,38 @@ public com.google.cloud.datalabeling.v1beta1.CsvInstruction buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.CsvInstruction) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.CsvInstruction) other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.CsvInstruction)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.datalabeling.v1beta1.CsvInstruction other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.CsvInstruction.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.CsvInstruction.getDefaultInstance()) return this;
       if (!other.getGcsFileUri().isEmpty()) {
         gcsFileUri_ = other.gcsFileUri_;
         onChanged();
@@ -471,8 +437,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.datalabeling.v1beta1.CsvInstruction) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.datalabeling.v1beta1.CsvInstruction) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -484,20 +449,18 @@ public Builder mergeFrom(
 
     private java.lang.Object gcsFileUri_ = "";
     /**
-     *
-     *
      * 
      * CSV file for the instruction. Only gcs path is allowed.
      * 
* * string gcs_file_uri = 1; - * * @return The gcsFileUri. */ public java.lang.String getGcsFileUri() { java.lang.Object ref = gcsFileUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsFileUri_ = s; return s; @@ -506,21 +469,20 @@ public java.lang.String getGcsFileUri() { } } /** - * - * *
      * CSV file for the instruction. Only gcs path is allowed.
      * 
* * string gcs_file_uri = 1; - * * @return The bytes for gcsFileUri. */ - public com.google.protobuf.ByteString getGcsFileUriBytes() { + public com.google.protobuf.ByteString + getGcsFileUriBytes() { java.lang.Object ref = gcsFileUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsFileUri_ = b; return b; } else { @@ -528,68 +490,61 @@ public com.google.protobuf.ByteString getGcsFileUriBytes() { } } /** - * - * *
      * CSV file for the instruction. Only gcs path is allowed.
      * 
* * string gcs_file_uri = 1; - * * @param value The gcsFileUri to set. * @return This builder for chaining. */ - public Builder setGcsFileUri(java.lang.String value) { + public Builder setGcsFileUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcsFileUri_ = value; onChanged(); return this; } /** - * - * *
      * CSV file for the instruction. Only gcs path is allowed.
      * 
* * string gcs_file_uri = 1; - * * @return This builder for chaining. */ public Builder clearGcsFileUri() { - + gcsFileUri_ = getDefaultInstance().getGcsFileUri(); onChanged(); return this; } /** - * - * *
      * CSV file for the instruction. Only gcs path is allowed.
      * 
* * string gcs_file_uri = 1; - * * @param value The bytes for gcsFileUri to set. * @return This builder for chaining. */ - public Builder setGcsFileUriBytes(com.google.protobuf.ByteString value) { + public Builder setGcsFileUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsFileUri_ = 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); } @@ -599,12 +554,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.CsvInstruction) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.CsvInstruction) private static final com.google.cloud.datalabeling.v1beta1.CsvInstruction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.CsvInstruction(); } @@ -613,16 +568,16 @@ public static com.google.cloud.datalabeling.v1beta1.CsvInstruction getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CsvInstruction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CsvInstruction(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CsvInstruction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CsvInstruction(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -637,4 +592,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.CsvInstruction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstructionOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstructionOrBuilder.java new file mode 100644 index 00000000..8110a725 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstructionOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/instruction.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface CsvInstructionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.CsvInstruction) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * CSV file for the instruction. Only gcs path is allowed.
+   * 
+ * + * string gcs_file_uri = 1; + * @return The gcsFileUri. + */ + java.lang.String getGcsFileUri(); + /** + *
+   * CSV file for the instruction. Only gcs path is allowed.
+   * 
+ * + * string gcs_file_uri = 1; + * @return The bytes for gcsFileUri. + */ + com.google.protobuf.ByteString + getGcsFileUriBytes(); +} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItem.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItem.java similarity index 72% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItem.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItem.java index 58fb6db8..f74549cb 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItem.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItem.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * DataItem is a piece of data, without annotation. For example, an image.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.DataItem} */ -public final class DataItem extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DataItem extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.DataItem) DataItemOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DataItem.newBuilder() to construct. private DataItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DataItem() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DataItem(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DataItem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,74 +53,61 @@ private DataItem( 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.datalabeling.v1beta1.ImagePayload.Builder subBuilder = null; + if (payloadCase_ == 2) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_).toBuilder(); + } + payload_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.ImagePayload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_); + payload_ = subBuilder.buildPartial(); + } + payloadCase_ = 2; + break; + } + case 26: { + com.google.cloud.datalabeling.v1beta1.TextPayload.Builder subBuilder = null; + if (payloadCase_ == 3) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.TextPayload) payload_).toBuilder(); } - case 18: - { - com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder subBuilder = null; - if (payloadCase_ == 2) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_).toBuilder(); - } - payload_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.ImagePayload.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_); - payload_ = subBuilder.buildPartial(); - } - payloadCase_ = 2; - break; + payload_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.TextPayload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextPayload) payload_); + payload_ = subBuilder.buildPartial(); } - case 26: - { - com.google.cloud.datalabeling.v1beta1.TextPayload.Builder subBuilder = null; - if (payloadCase_ == 3) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.TextPayload) payload_).toBuilder(); - } - payload_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.TextPayload.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextPayload) payload_); - payload_ = subBuilder.buildPartial(); - } - payloadCase_ = 3; - break; + payloadCase_ = 3; + break; + } + case 34: { + com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder subBuilder = null; + if (payloadCase_ == 4) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_).toBuilder(); } - case 34: - { - com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder subBuilder = null; - if (payloadCase_ == 4) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_).toBuilder(); - } - payload_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.VideoPayload.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_); - payload_ = subBuilder.buildPartial(); - } - payloadCase_ = 4; - break; + payload_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.VideoPayload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_); + payload_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + payloadCase_ = 4; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -145,41 +115,36 @@ private DataItem( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DataItem_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DataItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DataItem.class, - com.google.cloud.datalabeling.v1beta1.DataItem.Builder.class); + com.google.cloud.datalabeling.v1beta1.DataItem.class, com.google.cloud.datalabeling.v1beta1.DataItem.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_PAYLOAD(2), TEXT_PAYLOAD(3), VIDEO_PAYLOAD(4), PAYLOAD_NOT_SET(0); private final int value; - private PayloadCase(int value) { this.value = value; } @@ -195,38 +160,31 @@ public static PayloadCase valueOf(int value) { public static PayloadCase forNumber(int value) { switch (value) { - case 2: - return IMAGE_PAYLOAD; - case 3: - return TEXT_PAYLOAD; - case 4: - return VIDEO_PAYLOAD; - case 0: - return PAYLOAD_NOT_SET; - default: - return null; + case 2: return IMAGE_PAYLOAD; + case 3: return TEXT_PAYLOAD; + case 4: return VIDEO_PAYLOAD; + 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_PAYLOAD_FIELD_NUMBER = 2; /** - * - * *
    * The image payload, a container of the image bytes/uri.
    * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; - * * @return Whether the imagePayload field is set. */ @java.lang.Override @@ -234,26 +192,21 @@ public boolean hasImagePayload() { return payloadCase_ == 2; } /** - * - * *
    * The image payload, a container of the image bytes/uri.
    * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; - * * @return The imagePayload. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImagePayload getImagePayload() { if (payloadCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_; } return com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance(); } /** - * - * *
    * The image payload, a container of the image bytes/uri.
    * 
@@ -263,21 +216,18 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayload getImagePayload() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder getImagePayloadOrBuilder() { if (payloadCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_; } return com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance(); } public static final int TEXT_PAYLOAD_FIELD_NUMBER = 3; /** - * - * *
    * The text payload, a container of text content.
    * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3; - * * @return Whether the textPayload field is set. */ @java.lang.Override @@ -285,26 +235,21 @@ public boolean hasTextPayload() { return payloadCase_ == 3; } /** - * - * *
    * The text payload, a container of text content.
    * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3; - * * @return The textPayload. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextPayload getTextPayload() { if (payloadCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_; } return com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance(); } /** - * - * *
    * The text payload, a container of text content.
    * 
@@ -314,21 +259,18 @@ public com.google.cloud.datalabeling.v1beta1.TextPayload getTextPayload() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder getTextPayloadOrBuilder() { if (payloadCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_; } return com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance(); } public static final int VIDEO_PAYLOAD_FIELD_NUMBER = 4; /** - * - * *
    * The video payload, a container of the video uri.
    * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4; - * * @return Whether the videoPayload field is set. */ @java.lang.Override @@ -336,26 +278,21 @@ public boolean hasVideoPayload() { return payloadCase_ == 4; } /** - * - * *
    * The video payload, a container of the video uri.
    * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4; - * * @return The videoPayload. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.VideoPayload getVideoPayload() { if (payloadCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_; } return com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance(); } /** - * - * *
    * The video payload, a container of the video uri.
    * 
@@ -365,7 +302,7 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayload getVideoPayload() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPayloadOrBuilder() { if (payloadCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_; } return com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance(); } @@ -373,15 +310,12 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPaylo public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. Name of the data item, in format of:
    * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -390,30 +324,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. Name of the data item, in format of:
    * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_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 { @@ -422,7 +356,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -434,7 +367,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_); } @@ -460,19 +394,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (payloadCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_); } if (payloadCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_); } if (payloadCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -482,25 +413,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.datalabeling.v1beta1.DataItem)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.DataItem other = - (com.google.cloud.datalabeling.v1beta1.DataItem) obj; + com.google.cloud.datalabeling.v1beta1.DataItem other = (com.google.cloud.datalabeling.v1beta1.DataItem) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!getPayloadCase().equals(other.getPayloadCase())) return false; switch (payloadCase_) { case 2: - if (!getImagePayload().equals(other.getImagePayload())) return false; + if (!getImagePayload() + .equals(other.getImagePayload())) return false; break; case 3: - if (!getTextPayload().equals(other.getTextPayload())) return false; + if (!getTextPayload() + .equals(other.getTextPayload())) return false; break; case 4: - if (!getVideoPayload().equals(other.getVideoPayload())) return false; + if (!getVideoPayload() + .equals(other.getVideoPayload())) return false; break; case 0: default: @@ -539,127 +473,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.DataItem parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datalabeling.v1beta1.DataItem parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.DataItem parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.DataItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.DataItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.DataItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.DataItem parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.DataItem 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.datalabeling.v1beta1.DataItem parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.DataItem parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.DataItem parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.DataItem parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.DataItem parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.DataItem parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.DataItem prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * DataItem is a piece of data, without annotation. For example, an image.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.DataItem} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.DataItem) com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DataItem_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DataItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DataItem.class, - com.google.cloud.datalabeling.v1beta1.DataItem.Builder.class); + com.google.cloud.datalabeling.v1beta1.DataItem.class, com.google.cloud.datalabeling.v1beta1.DataItem.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.DataItem.newBuilder() @@ -667,15 +592,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(); @@ -687,9 +613,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor; } @java.lang.Override @@ -708,8 +634,7 @@ public com.google.cloud.datalabeling.v1beta1.DataItem build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.DataItem buildPartial() { - com.google.cloud.datalabeling.v1beta1.DataItem result = - new com.google.cloud.datalabeling.v1beta1.DataItem(this); + com.google.cloud.datalabeling.v1beta1.DataItem result = new com.google.cloud.datalabeling.v1beta1.DataItem(this); if (payloadCase_ == 2) { if (imagePayloadBuilder_ == null) { result.payload_ = payload_; @@ -741,39 +666,38 @@ public com.google.cloud.datalabeling.v1beta1.DataItem buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.DataItem) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.DataItem) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.DataItem)other); } else { super.mergeFrom(other); return this; @@ -787,25 +711,21 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.DataItem other) { onChanged(); } switch (other.getPayloadCase()) { - case IMAGE_PAYLOAD: - { - mergeImagePayload(other.getImagePayload()); - break; - } - case TEXT_PAYLOAD: - { - mergeTextPayload(other.getTextPayload()); - break; - } - case VIDEO_PAYLOAD: - { - mergeVideoPayload(other.getVideoPayload()); - break; - } - case PAYLOAD_NOT_SET: - { - break; - } + case IMAGE_PAYLOAD: { + mergeImagePayload(other.getImagePayload()); + break; + } + case TEXT_PAYLOAD: { + mergeTextPayload(other.getTextPayload()); + break; + } + case VIDEO_PAYLOAD: { + mergeVideoPayload(other.getVideoPayload()); + break; + } + case PAYLOAD_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -835,12 +755,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() { @@ -850,20 +770,15 @@ public Builder clearPayload() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImagePayload, - com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder, - com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder> - imagePayloadBuilder_; + com.google.cloud.datalabeling.v1beta1.ImagePayload, com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder, com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder> imagePayloadBuilder_; /** - * - * *
      * The image payload, a container of the image bytes/uri.
      * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; - * * @return Whether the imagePayload field is set. */ @java.lang.Override @@ -871,14 +786,11 @@ public boolean hasImagePayload() { return payloadCase_ == 2; } /** - * - * *
      * The image payload, a container of the image bytes/uri.
      * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; - * * @return The imagePayload. */ @java.lang.Override @@ -896,8 +808,6 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayload getImagePayload() { } } /** - * - * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -918,8 +828,6 @@ public Builder setImagePayload(com.google.cloud.datalabeling.v1beta1.ImagePayloa return this; } /** - * - * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -938,8 +846,6 @@ public Builder setImagePayload( return this; } /** - * - * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -948,14 +854,10 @@ public Builder setImagePayload( */ public Builder mergeImagePayload(com.google.cloud.datalabeling.v1beta1.ImagePayload value) { if (imagePayloadBuilder_ == null) { - if (payloadCase_ == 2 - && payload_ - != com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance()) { - payload_ = - com.google.cloud.datalabeling.v1beta1.ImagePayload.newBuilder( - (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_) - .mergeFrom(value) - .buildPartial(); + if (payloadCase_ == 2 && + payload_ != com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance()) { + payload_ = com.google.cloud.datalabeling.v1beta1.ImagePayload.newBuilder((com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_) + .mergeFrom(value).buildPartial(); } else { payload_ = value; } @@ -971,8 +873,6 @@ public Builder mergeImagePayload(com.google.cloud.datalabeling.v1beta1.ImagePayl return this; } /** - * - * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -996,8 +896,6 @@ public Builder clearImagePayload() { return this; } /** - * - * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -1008,8 +906,6 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder getImagePayloa return getImagePayloadFieldBuilder().getBuilder(); } /** - * - * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -1028,8 +924,6 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder getImagePaylo } } /** - * - * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -1037,44 +931,32 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder getImagePaylo * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImagePayload, - com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder, - com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder> + com.google.cloud.datalabeling.v1beta1.ImagePayload, com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder, com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder> getImagePayloadFieldBuilder() { if (imagePayloadBuilder_ == null) { if (!(payloadCase_ == 2)) { payload_ = com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance(); } - imagePayloadBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImagePayload, - com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder, - com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder>( + imagePayloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ImagePayload, com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder, com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder>( (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 2; - onChanged(); - ; + onChanged();; return imagePayloadBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextPayload, - com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, - com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder> - textPayloadBuilder_; + com.google.cloud.datalabeling.v1beta1.TextPayload, com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder> textPayloadBuilder_; /** - * - * *
      * The text payload, a container of text content.
      * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3; - * * @return Whether the textPayload field is set. */ @java.lang.Override @@ -1082,14 +964,11 @@ public boolean hasTextPayload() { return payloadCase_ == 3; } /** - * - * *
      * The text payload, a container of text content.
      * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3; - * * @return The textPayload. */ @java.lang.Override @@ -1107,8 +986,6 @@ public com.google.cloud.datalabeling.v1beta1.TextPayload getTextPayload() { } } /** - * - * *
      * The text payload, a container of text content.
      * 
@@ -1129,8 +1006,6 @@ public Builder setTextPayload(com.google.cloud.datalabeling.v1beta1.TextPayload return this; } /** - * - * *
      * The text payload, a container of text content.
      * 
@@ -1149,8 +1024,6 @@ public Builder setTextPayload( return this; } /** - * - * *
      * The text payload, a container of text content.
      * 
@@ -1159,13 +1032,10 @@ public Builder setTextPayload( */ public Builder mergeTextPayload(com.google.cloud.datalabeling.v1beta1.TextPayload value) { if (textPayloadBuilder_ == null) { - if (payloadCase_ == 3 - && payload_ != com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance()) { - payload_ = - com.google.cloud.datalabeling.v1beta1.TextPayload.newBuilder( - (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_) - .mergeFrom(value) - .buildPartial(); + if (payloadCase_ == 3 && + payload_ != com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance()) { + payload_ = com.google.cloud.datalabeling.v1beta1.TextPayload.newBuilder((com.google.cloud.datalabeling.v1beta1.TextPayload) payload_) + .mergeFrom(value).buildPartial(); } else { payload_ = value; } @@ -1181,8 +1051,6 @@ public Builder mergeTextPayload(com.google.cloud.datalabeling.v1beta1.TextPayloa return this; } /** - * - * *
      * The text payload, a container of text content.
      * 
@@ -1206,8 +1074,6 @@ public Builder clearTextPayload() { return this; } /** - * - * *
      * The text payload, a container of text content.
      * 
@@ -1218,8 +1084,6 @@ public com.google.cloud.datalabeling.v1beta1.TextPayload.Builder getTextPayloadB return getTextPayloadFieldBuilder().getBuilder(); } /** - * - * *
      * The text payload, a container of text content.
      * 
@@ -1238,8 +1102,6 @@ public com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder getTextPayload } } /** - * - * *
      * The text payload, a container of text content.
      * 
@@ -1247,44 +1109,32 @@ public com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder getTextPayload * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextPayload, - com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, - com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder> + com.google.cloud.datalabeling.v1beta1.TextPayload, com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder> getTextPayloadFieldBuilder() { if (textPayloadBuilder_ == null) { if (!(payloadCase_ == 3)) { payload_ = com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance(); } - textPayloadBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextPayload, - com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, - com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder>( + textPayloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TextPayload, com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder>( (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 3; - onChanged(); - ; + onChanged();; return textPayloadBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoPayload, - com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, - com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder> - videoPayloadBuilder_; + com.google.cloud.datalabeling.v1beta1.VideoPayload, com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder> videoPayloadBuilder_; /** - * - * *
      * The video payload, a container of the video uri.
      * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4; - * * @return Whether the videoPayload field is set. */ @java.lang.Override @@ -1292,14 +1142,11 @@ public boolean hasVideoPayload() { return payloadCase_ == 4; } /** - * - * *
      * The video payload, a container of the video uri.
      * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4; - * * @return The videoPayload. */ @java.lang.Override @@ -1317,8 +1164,6 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayload getVideoPayload() { } } /** - * - * *
      * The video payload, a container of the video uri.
      * 
@@ -1339,8 +1184,6 @@ public Builder setVideoPayload(com.google.cloud.datalabeling.v1beta1.VideoPayloa return this; } /** - * - * *
      * The video payload, a container of the video uri.
      * 
@@ -1359,8 +1202,6 @@ public Builder setVideoPayload( return this; } /** - * - * *
      * The video payload, a container of the video uri.
      * 
@@ -1369,14 +1210,10 @@ public Builder setVideoPayload( */ public Builder mergeVideoPayload(com.google.cloud.datalabeling.v1beta1.VideoPayload value) { if (videoPayloadBuilder_ == null) { - if (payloadCase_ == 4 - && payload_ - != com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance()) { - payload_ = - com.google.cloud.datalabeling.v1beta1.VideoPayload.newBuilder( - (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_) - .mergeFrom(value) - .buildPartial(); + if (payloadCase_ == 4 && + payload_ != com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance()) { + payload_ = com.google.cloud.datalabeling.v1beta1.VideoPayload.newBuilder((com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_) + .mergeFrom(value).buildPartial(); } else { payload_ = value; } @@ -1392,8 +1229,6 @@ public Builder mergeVideoPayload(com.google.cloud.datalabeling.v1beta1.VideoPayl return this; } /** - * - * *
      * The video payload, a container of the video uri.
      * 
@@ -1417,8 +1252,6 @@ public Builder clearVideoPayload() { return this; } /** - * - * *
      * The video payload, a container of the video uri.
      * 
@@ -1429,8 +1262,6 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder getVideoPayloa return getVideoPayloadFieldBuilder().getBuilder(); } /** - * - * *
      * The video payload, a container of the video uri.
      * 
@@ -1449,8 +1280,6 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPaylo } } /** - * - * *
      * The video payload, a container of the video uri.
      * 
@@ -1458,47 +1287,39 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPaylo * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoPayload, - com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, - com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder> + com.google.cloud.datalabeling.v1beta1.VideoPayload, com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder> getVideoPayloadFieldBuilder() { if (videoPayloadBuilder_ == null) { if (!(payloadCase_ == 4)) { payload_ = com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance(); } - videoPayloadBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoPayload, - com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, - com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder>( + videoPayloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.VideoPayload, com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder>( (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 4; - onChanged(); - ; + onChanged();; return videoPayloadBuilder_; } private java.lang.Object name_ = ""; /** - * - * *
      * Output only. Name of the data item, in format of:
      * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_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; @@ -1507,22 +1328,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Name of the data item, in format of:
      * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_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 { @@ -1530,71 +1350,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Name of the data item, in format of:
      * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_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. Name of the data item, in format of:
      * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. Name of the data item, in format of:
      * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_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; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1604,12 +1417,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.DataItem) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.DataItem) private static final com.google.cloud.datalabeling.v1beta1.DataItem DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.DataItem(); } @@ -1618,16 +1431,16 @@ public static com.google.cloud.datalabeling.v1beta1.DataItem getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DataItem(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataItem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DataItem(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1642,4 +1455,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.DataItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemName.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemName.java similarity index 100% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemName.java diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemOrBuilder.java similarity index 79% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemOrBuilder.java index 23eb0cf1..9813687f 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemOrBuilder.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; -public interface DataItemOrBuilder - extends +public interface DataItemOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.DataItem) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The image payload, a container of the image bytes/uri.
    * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; - * * @return Whether the imagePayload field is set. */ boolean hasImagePayload(); /** - * - * *
    * The image payload, a container of the image bytes/uri.
    * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; - * * @return The imagePayload. */ com.google.cloud.datalabeling.v1beta1.ImagePayload getImagePayload(); /** - * - * *
    * The image payload, a container of the image bytes/uri.
    * 
@@ -59,32 +35,24 @@ public interface DataItemOrBuilder com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder getImagePayloadOrBuilder(); /** - * - * *
    * The text payload, a container of text content.
    * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3; - * * @return Whether the textPayload field is set. */ boolean hasTextPayload(); /** - * - * *
    * The text payload, a container of text content.
    * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3; - * * @return The textPayload. */ com.google.cloud.datalabeling.v1beta1.TextPayload getTextPayload(); /** - * - * *
    * The text payload, a container of text content.
    * 
@@ -94,32 +62,24 @@ public interface DataItemOrBuilder com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder getTextPayloadOrBuilder(); /** - * - * *
    * The video payload, a container of the video uri.
    * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4; - * * @return Whether the videoPayload field is set. */ boolean hasVideoPayload(); /** - * - * *
    * The video payload, a container of the video uri.
    * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4; - * * @return The videoPayload. */ com.google.cloud.datalabeling.v1beta1.VideoPayload getVideoPayload(); /** - * - * *
    * The video payload, a container of the video uri.
    * 
@@ -129,31 +89,26 @@ public interface DataItemOrBuilder com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPayloadOrBuilder(); /** - * - * *
    * Output only. Name of the data item, in format of:
    * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Name of the data item, in format of:
    * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); public com.google.cloud.datalabeling.v1beta1.DataItem.PayloadCase getPayloadCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceOuterClass.java new file mode 100644 index 00000000..af5ae428 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceOuterClass.java @@ -0,0 +1,948 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public final class DataLabelingServiceOuterClass { + private DataLabelingServiceOuterClass() {} + 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_datalabeling_v1beta1_CreateDatasetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_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/datalabeling/v1beta1/data" + + "_labeling_service.proto\022!google.cloud.da" + + "talabeling.v1beta1\032\034google/api/annotatio" + + "ns.proto\032\027google/api/client.proto\032\037googl" + + "e/api/field_behavior.proto\032\031google/api/r" + + "esource.proto\032;google/cloud/datalabeling" + + "/v1beta1/annotation_spec_set.proto\032/goog" + + "le/cloud/datalabeling/v1beta1/dataset.pr" + + "oto\0322google/cloud/datalabeling/v1beta1/e" + + "valuation.proto\0326google/cloud/datalabeli" + + "ng/v1beta1/evaluation_job.proto\032?google/" + + "cloud/datalabeling/v1beta1/human_annotat" + + "ion_config.proto\0323google/cloud/datalabel" + + "ing/v1beta1/instruction.proto\032#google/lo" + + "ngrunning/operations.proto\032\033google/proto" + + "buf/empty.proto\032 google/protobuf/field_m" + + "ask.proto\"\235\001\n\024CreateDatasetRequest\022C\n\006pa" + + "rent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager" + + ".googleapis.com/Project\022@\n\007dataset\030\002 \001(\013" + + "2*.google.cloud.datalabeling.v1beta1.Dat" + + "asetB\003\340A\002\"N\n\021GetDatasetRequest\0229\n\004name\030\001" + + " \001(\tB+\340A\002\372A%\n#datalabeling.googleapis.co" + + "m/Dataset\"\240\001\n\023ListDatasetsRequest\022C\n\006par" + + "ent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager." + + "googleapis.com/Project\022\023\n\006filter\030\002 \001(\tB\003" + + "\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_toke" + + "n\030\004 \001(\tB\003\340A\001\"m\n\024ListDatasetsResponse\022<\n\010" + + "datasets\030\001 \003(\0132*.google.cloud.datalabeli" + + "ng.v1beta1.Dataset\022\027\n\017next_page_token\030\002 " + + "\001(\t\"Q\n\024DeleteDatasetRequest\0229\n\004name\030\001 \001(" + + "\tB+\340A\002\372A%\n#datalabeling.googleapis.com/D" + + "ataset\"\265\001\n\021ImportDataRequest\0229\n\004name\030\001 \001" + + "(\tB+\340A\002\372A%\n#datalabeling.googleapis.com/" + + "Dataset\022I\n\014input_config\030\002 \001(\0132..google.c" + + "loud.datalabeling.v1beta1.InputConfigB\003\340" + + "A\002\022\032\n\022user_email_address\030\003 \001(\t\"\235\002\n\021Expor" + + "tDataRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#data" + + "labeling.googleapis.com/Dataset\022O\n\021annot" + + "ated_dataset\030\002 \001(\tB4\340A\002\372A.\n,datalabeling" + + ".googleapis.com/AnnotatedDataset\022\023\n\006filt" + + "er\030\003 \001(\tB\003\340A\001\022K\n\routput_config\030\004 \001(\0132/.g" + + "oogle.cloud.datalabeling.v1beta1.OutputC" + + "onfigB\003\340A\002\022\032\n\022user_email_address\030\005 \001(\t\"P" + + "\n\022GetDataItemRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372" + + "A&\n$datalabeling.googleapis.com/DataItem" + + "\"\231\001\n\024ListDataItemsRequest\022;\n\006parent\030\001 \001(" + + "\tB+\340A\002\372A%\n#datalabeling.googleapis.com/D" + + "ataset\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size" + + "\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\"q\n\025" + + "ListDataItemsResponse\022?\n\ndata_items\030\001 \003(" + + "\0132+.google.cloud.datalabeling.v1beta1.Da" + + "taItem\022\027\n\017next_page_token\030\002 \001(\t\"`\n\032GetAn" + + "notatedDatasetRequest\022B\n\004name\030\001 \001(\tB4\340A\002" + + "\372A.\n,datalabeling.googleapis.com/Annotat" + + "edDataset\"\241\001\n\034ListAnnotatedDatasetsReque" + + "st\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#datalabeling" + + ".googleapis.com/Dataset\022\023\n\006filter\030\002 \001(\tB" + + "\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_tok" + + "en\030\004 \001(\tB\003\340A\001\"\211\001\n\035ListAnnotatedDatasetsR" + + "esponse\022O\n\022annotated_datasets\030\001 \003(\01323.go" + + "ogle.cloud.datalabeling.v1beta1.Annotate" + + "dDataset\022\027\n\017next_page_token\030\002 \001(\t\"c\n\035Del" + + "eteAnnotatedDatasetRequest\022B\n\004name\030\001 \001(\t" + + "B4\340A\002\372A.\n,datalabeling.googleapis.com/An" + + "notatedDataset\"\204\006\n\021LabelImageRequest\022c\n\033" + + "image_classification_config\030\004 \001(\0132<.goog" + + "le.cloud.datalabeling.v1beta1.ImageClass" + + "ificationConfigH\000\022U\n\024bounding_poly_confi" + + "g\030\005 \001(\01325.google.cloud.datalabeling.v1be" + + "ta1.BoundingPolyConfigH\000\022L\n\017polyline_con" + + "fig\030\006 \001(\01321.google.cloud.datalabeling.v1" + + "beta1.PolylineConfigH\000\022T\n\023segmentation_c" + + "onfig\030\007 \001(\01325.google.cloud.datalabeling." + + "v1beta1.SegmentationConfigH\000\022;\n\006parent\030\001" + + " \001(\tB+\340A\002\372A%\n#datalabeling.googleapis.co" + + "m/Dataset\022S\n\014basic_config\030\002 \001(\01328.google" + + ".cloud.datalabeling.v1beta1.HumanAnnotat" + + "ionConfigB\003\340A\002\022R\n\007feature\030\003 \001(\0162<.google" + + ".cloud.datalabeling.v1beta1.LabelImageRe" + + "quest.FeatureB\003\340A\002\"\226\001\n\007Feature\022\027\n\023FEATUR" + + "E_UNSPECIFIED\020\000\022\022\n\016CLASSIFICATION\020\001\022\020\n\014B" + + "OUNDING_BOX\020\002\022\031\n\025ORIENTED_BOUNDING_BOX\020\006" + + "\022\021\n\rBOUNDING_POLY\020\003\022\014\n\010POLYLINE\020\004\022\020\n\014SEG" + + "MENTATION\020\005B\020\n\016request_config\"\336\005\n\021LabelV" + + "ideoRequest\022c\n\033video_classification_conf" + + "ig\030\004 \001(\0132<.google.cloud.datalabeling.v1b" + + "eta1.VideoClassificationConfigH\000\022[\n\027obje" + + "ct_detection_config\030\005 \001(\01328.google.cloud" + + ".datalabeling.v1beta1.ObjectDetectionCon" + + "figH\000\022Y\n\026object_tracking_config\030\006 \001(\01327." + + "google.cloud.datalabeling.v1beta1.Object" + + "TrackingConfigH\000\022F\n\014event_config\030\007 \001(\0132." + + ".google.cloud.datalabeling.v1beta1.Event" + + "ConfigH\000\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#datala" + + "beling.googleapis.com/Dataset\022S\n\014basic_c" + + "onfig\030\002 \001(\01328.google.cloud.datalabeling." + + "v1beta1.HumanAnnotationConfigB\003\340A\002\022R\n\007fe" + + "ature\030\003 \001(\0162<.google.cloud.datalabeling." + + "v1beta1.LabelVideoRequest.FeatureB\003\340A\002\"l" + + "\n\007Feature\022\027\n\023FEATURE_UNSPECIFIED\020\000\022\022\n\016CL" + + "ASSIFICATION\020\001\022\024\n\020OBJECT_DETECTION\020\002\022\023\n\017" + + "OBJECT_TRACKING\020\003\022\t\n\005EVENT\020\004B\020\n\016request_" + + "config\"\255\004\n\020LabelTextRequest\022a\n\032text_clas" + + "sification_config\030\004 \001(\0132;.google.cloud.d" + + "atalabeling.v1beta1.TextClassificationCo" + + "nfigH\000\022f\n\035text_entity_extraction_config\030" + + "\005 \001(\0132=.google.cloud.datalabeling.v1beta" + + "1.TextEntityExtractionConfigH\000\022;\n\006parent" + + "\030\001 \001(\tB+\340A\002\372A%\n#datalabeling.googleapis." + + "com/Dataset\022S\n\014basic_config\030\002 \001(\01328.goog" + + "le.cloud.datalabeling.v1beta1.HumanAnnot" + + "ationConfigB\003\340A\002\022Q\n\007feature\030\006 \001(\0162;.goog" + + "le.cloud.datalabeling.v1beta1.LabelTextR" + + "equest.FeatureB\003\340A\002\"W\n\007Feature\022\027\n\023FEATUR" + + "E_UNSPECIFIED\020\000\022\027\n\023TEXT_CLASSIFICATION\020\001" + + "\022\032\n\026TEXT_ENTITY_EXTRACTION\020\002B\020\n\016request_" + + "config\"c\n\021GetExampleRequest\0229\n\004name\030\001 \001(" + + "\tB+\340A\002\372A%\n#datalabeling.googleapis.com/E" + + "xample\022\023\n\006filter\030\002 \001(\tB\003\340A\001\"\241\001\n\023ListExam" + + "plesRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,dat" + + "alabeling.googleapis.com/AnnotatedDatase" + + "t\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(" + + "\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\"m\n\024ListE" + + "xamplesResponse\022<\n\010examples\030\001 \003(\0132*.goog" + + "le.cloud.datalabeling.v1beta1.Example\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\275\001\n\036CreateAnnotat" + + "ionSpecSetRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A" + + "-\n+cloudresourcemanager.googleapis.com/P" + + "roject\022V\n\023annotation_spec_set\030\002 \001(\01324.go" + + "ogle.cloud.datalabeling.v1beta1.Annotati" + + "onSpecSetB\003\340A\002\"b\n\033GetAnnotationSpecSetRe" + + "quest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-datalabelin" + + "g.googleapis.com/AnnotationSpecSet\"\252\001\n\035L" + + "istAnnotationSpecSetsRequest\022C\n\006parent\030\001" + + " \001(\tB3\340A\002\372A-\n+cloudresourcemanager.googl" + + "eapis.com/Project\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026" + + "\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001" + + "(\tB\003\340A\001\"\215\001\n\036ListAnnotationSpecSetsRespon" + + "se\022R\n\024annotation_spec_sets\030\001 \003(\01324.googl" + + "e.cloud.datalabeling.v1beta1.AnnotationS" + + "pecSet\022\027\n\017next_page_token\030\002 \001(\t\"e\n\036Delet" + + "eAnnotationSpecSetRequest\022C\n\004name\030\001 \001(\tB" + + "5\340A\002\372A/\n-datalabeling.googleapis.com/Ann" + + "otationSpecSet\"\251\001\n\030CreateInstructionRequ" + + "est\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresour" + + "cemanager.googleapis.com/Project\022H\n\013inst" + + "ruction\030\002 \001(\0132..google.cloud.datalabelin" + + "g.v1beta1.InstructionB\003\340A\002\"V\n\025GetInstruc" + + "tionRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'datal" + + "abeling.googleapis.com/Instruction\"Y\n\030De" + + "leteInstructionRequest\022=\n\004name\030\001 \001(\tB/\340A" + + "\002\372A)\n\'datalabeling.googleapis.com/Instru" + + "ction\"\244\001\n\027ListInstructionsRequest\022C\n\006par" + + "ent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager." + + "googleapis.com/Project\022\023\n\006filter\030\002 \001(\tB\003" + + "\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_toke" + + "n\030\004 \001(\tB\003\340A\001\"y\n\030ListInstructionsResponse" + + "\022D\n\014instructions\030\001 \003(\0132..google.cloud.da" + + "talabeling.v1beta1.Instruction\022\027\n\017next_p" + + "age_token\030\002 \001(\t\"T\n\024GetEvaluationRequest\022" + + "<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&datalabeling.goog" + + "leapis.com/Evaluation\"\240\001\n\030SearchEvaluati" + + "onsRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\n&data" + + "labeling.googleapis.com/Evaluation\022\023\n\006fi" + + "lter\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022" + + "\027\n\npage_token\030\004 \001(\tB\003\340A\001\"x\n\031SearchEvalua" + + "tionsResponse\022B\n\013evaluations\030\001 \003(\0132-.goo" + + "gle.cloud.datalabeling.v1beta1.Evaluatio" + + "n\022\027\n\017next_page_token\030\002 \001(\t\"\222\001\n\037SearchExa" + + "mpleComparisonsRequest\022>\n\006parent\030\001 \001(\tB." + + "\340A\002\372A(\n&datalabeling.googleapis.com/Eval" + + "uation\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_t" + + "oken\030\003 \001(\tB\003\340A\001\"\333\002\n SearchExampleCompari" + + "sonsResponse\022r\n\023example_comparisons\030\001 \003(" + + "\0132U.google.cloud.datalabeling.v1beta1.Se" + + "archExampleComparisonsResponse.ExampleCo" + + "mparison\022\027\n\017next_page_token\030\002 \001(\t\032\251\001\n\021Ex" + + "ampleComparison\022H\n\024ground_truth_example\030" + + "\001 \001(\0132*.google.cloud.datalabeling.v1beta" + + "1.Example\022J\n\026model_created_examples\030\002 \003(" + + "\0132*.google.cloud.datalabeling.v1beta1.Ex" + + "ample\"\245\001\n\032CreateEvaluationJobRequest\022C\n\006" + + "parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanag" + + "er.googleapis.com/Project\022B\n\003job\030\002 \001(\01320" + + ".google.cloud.datalabeling.v1beta1.Evalu" + + "ationJobB\003\340A\002\"\241\001\n\032UpdateEvaluationJobReq" + + "uest\022M\n\016evaluation_job\030\001 \001(\01320.google.cl" + + "oud.datalabeling.v1beta1.EvaluationJobB\003" + + "\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protob" + + "uf.FieldMaskB\003\340A\001\"Z\n\027GetEvaluationJobReq" + + "uest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)datalabeling" + + ".googleapis.com/EvaluationJob\"\\\n\031PauseEv" + + "aluationJobRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+" + + "\n)datalabeling.googleapis.com/Evaluation" + + "Job\"]\n\032ResumeEvaluationJobRequest\022?\n\004nam" + + "e\030\001 \001(\tB1\340A\002\372A+\n)datalabeling.googleapis" + + ".com/EvaluationJob\"]\n\032DeleteEvaluationJo" + + "bRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)datalabe" + + "ling.googleapis.com/EvaluationJob\"\246\001\n\031Li" + + "stEvaluationJobsRequest\022C\n\006parent\030\001 \001(\tB" + + "3\340A\002\372A-\n+cloudresourcemanager.googleapis" + + ".com/Project\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026\n\tpag" + + "e_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340" + + "A\001\"\200\001\n\032ListEvaluationJobsResponse\022I\n\017eva" + + "luation_jobs\030\001 \003(\01320.google.cloud.datala" + + "beling.v1beta1.EvaluationJob\022\027\n\017next_pag" + + "e_token\030\002 \001(\t2\2468\n\023DataLabelingService\022\267\001" + + "\n\rCreateDataset\0227.google.cloud.datalabel" + + "ing.v1beta1.CreateDatasetRequest\032*.googl" + + "e.cloud.datalabeling.v1beta1.Dataset\"A\202\323" + + "\344\223\002*\"%/v1beta1/{parent=projects/*}/datas" + + "ets:\001*\332A\016parent,dataset\022\244\001\n\nGetDataset\0224" + + ".google.cloud.datalabeling.v1beta1.GetDa" + + "tasetRequest\032*.google.cloud.datalabeling" + + ".v1beta1.Dataset\"4\202\323\344\223\002\'\022%/v1beta1/{name" + + "=projects/*/datasets/*}\332A\004name\022\276\001\n\014ListD" + + "atasets\0226.google.cloud.datalabeling.v1be" + + "ta1.ListDatasetsRequest\0327.google.cloud.d" + + "atalabeling.v1beta1.ListDatasetsResponse" + + "\"=\202\323\344\223\002\'\022%/v1beta1/{parent=projects/*}/d" + + "atasets\332A\rparent,filter\022\226\001\n\rDeleteDatase" + + "t\0227.google.cloud.datalabeling.v1beta1.De" + + "leteDatasetRequest\032\026.google.protobuf.Emp" + + "ty\"4\202\323\344\223\002\'*%/v1beta1/{name=projects/*/da" + + "tasets/*}\332A\004name\022\360\001\n\nImportData\0224.google" + + ".cloud.datalabeling.v1beta1.ImportDataRe" + + "quest\032\035.google.longrunning.Operation\"\214\001\202" + + "\323\344\223\0025\"0/v1beta1/{name=projects/*/dataset" + + "s/*}:importData:\001*\332A\021name,input_config\312A" + + ":\n\033ImportDataOperationResponse\022\033ImportDa" + + "taOperationMetadata\022\212\002\n\nExportData\0224.goo" + + "gle.cloud.datalabeling.v1beta1.ExportDat" + + "aRequest\032\035.google.longrunning.Operation\"" + + "\246\001\202\323\344\223\0025\"0/v1beta1/{name=projects/*/data" + + "sets/*}:exportData:\001*\332A+name,annotated_d" + + "ataset,filter,output_config\312A:\n\033ExportDa" + + "taOperationResponse\022\033ExportDataOperation" + + "Metadata\022\263\001\n\013GetDataItem\0225.google.cloud." + + "datalabeling.v1beta1.GetDataItemRequest\032" + + "+.google.cloud.datalabeling.v1beta1.Data" + + "Item\"@\202\323\344\223\0023\0221/v1beta1/{name=projects/*/" + + "datasets/*/dataItems/*}\332A\004name\022\315\001\n\rListD" + + "ataItems\0227.google.cloud.datalabeling.v1b" + + "eta1.ListDataItemsRequest\0328.google.cloud" + + ".datalabeling.v1beta1.ListDataItemsRespo" + + "nse\"I\202\323\344\223\0023\0221/v1beta1/{parent=projects/*" + + "/datasets/*}/dataItems\332A\rparent,filter\022\323" + + "\001\n\023GetAnnotatedDataset\022=.google.cloud.da" + + "talabeling.v1beta1.GetAnnotatedDatasetRe" + + "quest\0323.google.cloud.datalabeling.v1beta" + + "1.AnnotatedDataset\"H\202\323\344\223\002;\0229/v1beta1/{na" + + "me=projects/*/datasets/*/annotatedDatase" + + "ts/*}\332A\004name\022\355\001\n\025ListAnnotatedDatasets\022?" + + ".google.cloud.datalabeling.v1beta1.ListA" + + "nnotatedDatasetsRequest\032@.google.cloud.d" + + "atalabeling.v1beta1.ListAnnotatedDataset" + + "sResponse\"Q\202\323\344\223\002;\0229/v1beta1/{parent=proj" + + "ects/*/datasets/*}/annotatedDatasets\332A\rp" + + "arent,filter\022\265\001\n\026DeleteAnnotatedDataset\022" + + "@.google.cloud.datalabeling.v1beta1.Dele" + + "teAnnotatedDatasetRequest\032\026.google.proto" + + "buf.Empty\"A\202\323\344\223\002;*9/v1beta1/{name=projec" + + "ts/*/datasets/*/annotatedDatasets/*}\022\355\001\n" + + "\nLabelImage\0224.google.cloud.datalabeling." + + "v1beta1.LabelImageRequest\032\035.google.longr" + + "unning.Operation\"\211\001\202\323\344\223\0028\"3/v1beta1/{par" + + "ent=projects/*/datasets/*}/image:label:\001" + + "*\332A\033parent,basic_config,feature\312A*\n\020Anno" + + "tatedDataset\022\026LabelOperationMetadata\022\355\001\n" + + "\nLabelVideo\0224.google.cloud.datalabeling." + + "v1beta1.LabelVideoRequest\032\035.google.longr" + + "unning.Operation\"\211\001\202\323\344\223\0028\"3/v1beta1/{par" + + "ent=projects/*/datasets/*}/video:label:\001" + + "*\332A\033parent,basic_config,feature\312A*\n\020Anno" + + "tatedDataset\022\026LabelOperationMetadata\022\352\001\n" + + "\tLabelText\0223.google.cloud.datalabeling.v" + + "1beta1.LabelTextRequest\032\035.google.longrun" + + "ning.Operation\"\210\001\202\323\344\223\0027\"2/v1beta1/{paren" + + "t=projects/*/datasets/*}/text:label:\001*\332A" + + "\033parent,basic_config,feature\312A*\n\020Annotat" + + "edDataset\022\026LabelOperationMetadata\022\312\001\n\nGe" + + "tExample\0224.google.cloud.datalabeling.v1b" + + "eta1.GetExampleRequest\032*.google.cloud.da" + + "talabeling.v1beta1.Example\"Z\202\323\344\223\002F\022D/v1b" + + "eta1/{name=projects/*/datasets/*/annotat" + + "edDatasets/*/examples/*}\332A\013name,filter\022\335" + + "\001\n\014ListExamples\0226.google.cloud.datalabel" + + "ing.v1beta1.ListExamplesRequest\0327.google" + + ".cloud.datalabeling.v1beta1.ListExamples" + + "Response\"\\\202\323\344\223\002F\022D/v1beta1/{parent=proje" + + "cts/*/datasets/*/annotatedDatasets/*}/ex" + + "amples\332A\rparent,filter\022\353\001\n\027CreateAnnotat" + + "ionSpecSet\022A.google.cloud.datalabeling.v" + + "1beta1.CreateAnnotationSpecSetRequest\0324." + + "google.cloud.datalabeling.v1beta1.Annota" + + "tionSpecSet\"W\202\323\344\223\0024\"//v1beta1/{parent=pr" + + "ojects/*}/annotationSpecSets:\001*\332A\032parent" + + ",annotation_spec_set\022\314\001\n\024GetAnnotationSp" + + "ecSet\022>.google.cloud.datalabeling.v1beta" + + "1.GetAnnotationSpecSetRequest\0324.google.c" + + "loud.datalabeling.v1beta1.AnnotationSpec" + + "Set\">\202\323\344\223\0021\022//v1beta1/{name=projects/*/a" + + "nnotationSpecSets/*}\332A\004name\022\346\001\n\026ListAnno" + + "tationSpecSets\022@.google.cloud.datalabeli" + + "ng.v1beta1.ListAnnotationSpecSetsRequest" + + "\032A.google.cloud.datalabeling.v1beta1.Lis" + + "tAnnotationSpecSetsResponse\"G\202\323\344\223\0021\022//v1" + + "beta1/{parent=projects/*}/annotationSpec" + + "Sets\332A\rparent,filter\022\264\001\n\027DeleteAnnotatio" + + "nSpecSet\022A.google.cloud.datalabeling.v1b" + + "eta1.DeleteAnnotationSpecSetRequest\032\026.go" + + "ogle.protobuf.Empty\">\202\323\344\223\0021*//v1beta1/{n" + + "ame=projects/*/annotationSpecSets/*}\332A\004n" + + "ame\022\345\001\n\021CreateInstruction\022;.google.cloud" + + ".datalabeling.v1beta1.CreateInstructionR" + + "equest\032\035.google.longrunning.Operation\"t\202" + + "\323\344\223\002.\")/v1beta1/{parent=projects/*}/inst" + + "ructions:\001*\332A\022parent,instruction\312A(\n\013Ins" + + "truction\022\031CreateInstructionMetadata\022\264\001\n\016" + + "GetInstruction\0228.google.cloud.datalabeli" + + "ng.v1beta1.GetInstructionRequest\032..googl" + + "e.cloud.datalabeling.v1beta1.Instruction" + + "\"8\202\323\344\223\002+\022)/v1beta1/{name=projects/*/inst" + + "ructions/*}\332A\004name\022\316\001\n\020ListInstructions\022" + + ":.google.cloud.datalabeling.v1beta1.List" + + "InstructionsRequest\032;.google.cloud.datal" + + "abeling.v1beta1.ListInstructionsResponse" + + "\"A\202\323\344\223\002+\022)/v1beta1/{parent=projects/*}/i" + + "nstructions\332A\rparent,filter\022\242\001\n\021DeleteIn" + + "struction\022;.google.cloud.datalabeling.v1" + + "beta1.DeleteInstructionRequest\032\026.google." + + "protobuf.Empty\"8\202\323\344\223\002+*)/v1beta1/{name=p" + + "rojects/*/instructions/*}\332A\004name\022\273\001\n\rGet" + + "Evaluation\0227.google.cloud.datalabeling.v" + + "1beta1.GetEvaluationRequest\032-.google.clo" + + "ud.datalabeling.v1beta1.Evaluation\"B\202\323\344\223" + + "\0025\0223/v1beta1/{name=projects/*/datasets/*" + + "/evaluations/*}\332A\004name\022\327\001\n\021SearchEvaluat" + + "ions\022;.google.cloud.datalabeling.v1beta1" + + ".SearchEvaluationsRequest\032<.google.cloud" + + ".datalabeling.v1beta1.SearchEvaluationsR" + + "esponse\"G\202\323\344\223\0021\022//v1beta1/{parent=projec" + + "ts/*}/evaluations:search\332A\rparent,filter" + + "\022\210\002\n\030SearchExampleComparisons\022B.google.c" + + "loud.datalabeling.v1beta1.SearchExampleC" + + "omparisonsRequest\032C.google.cloud.datalab" + + "eling.v1beta1.SearchExampleComparisonsRe" + + "sponse\"c\202\323\344\223\002T\"O/v1beta1/{parent=project" + + "s/*/datasets/*/evaluations/*}/exampleCom" + + "parisons:search:\001*\332A\006parent\022\313\001\n\023CreateEv" + + "aluationJob\022=.google.cloud.datalabeling." + + "v1beta1.CreateEvaluationJobRequest\0320.goo" + + "gle.cloud.datalabeling.v1beta1.Evaluatio" + + "nJob\"C\202\323\344\223\0020\"+/v1beta1/{parent=projects/" + + "*}/evaluationJobs:\001*\332A\nparent,job\022\367\001\n\023Up" + + "dateEvaluationJob\022=.google.cloud.datalab" + + "eling.v1beta1.UpdateEvaluationJobRequest" + + "\0320.google.cloud.datalabeling.v1beta1.Eva" + + "luationJob\"o\202\323\344\223\002L2:/v1beta1/{evaluation" + + "_job.name=projects/*/evaluationJobs/*}:\016" + + "evaluation_job\332A\032evaluation_job,update_m" + + "ask\022\274\001\n\020GetEvaluationJob\022:.google.cloud." + + "datalabeling.v1beta1.GetEvaluationJobReq" + + "uest\0320.google.cloud.datalabeling.v1beta1" + + ".EvaluationJob\":\202\323\344\223\002-\022+/v1beta1/{name=p" + + "rojects/*/evaluationJobs/*}\332A\004name\022\257\001\n\022P" + + "auseEvaluationJob\022<.google.cloud.datalab" + + "eling.v1beta1.PauseEvaluationJobRequest\032" + + "\026.google.protobuf.Empty\"C\202\323\344\223\0026\"1/v1beta" + + "1/{name=projects/*/evaluationJobs/*}:pau" + + "se:\001*\332A\004name\022\262\001\n\023ResumeEvaluationJob\022=.g" + + "oogle.cloud.datalabeling.v1beta1.ResumeE" + + "valuationJobRequest\032\026.google.protobuf.Em" + + "pty\"D\202\323\344\223\0027\"2/v1beta1/{name=projects/*/e" + + "valuationJobs/*}:resume:\001*\332A\004name\022\250\001\n\023De" + + "leteEvaluationJob\022=.google.cloud.datalab" + + "eling.v1beta1.DeleteEvaluationJobRequest" + + "\032\026.google.protobuf.Empty\":\202\323\344\223\002-*+/v1bet" + + "a1/{name=projects/*/evaluationJobs/*}\332A\004" + + "name\022\326\001\n\022ListEvaluationJobs\022<.google.clo" + + "ud.datalabeling.v1beta1.ListEvaluationJo" + + "bsRequest\032=.google.cloud.datalabeling.v1" + + "beta1.ListEvaluationJobsResponse\"C\202\323\344\223\002-" + + "\022+/v1beta1/{parent=projects/*}/evaluatio" + + "nJobs\332A\rparent,filter\032O\312A\033datalabeling.g" + + "oogleapis.com\322A.https://www.googleapis.c" + + "om/auth/cloud-platformB\347\001\n%com.google.cl" + + "oud.datalabeling.v1beta1P\001ZMgoogle.golan" + + "g.org/genproto/googleapis/cloud/datalabe" + + "ling/v1beta1;datalabeling\252\002!Google.Cloud" + + ".DataLabeling.V1Beta1\312\002!Google\\Cloud\\Dat" + + "aLabeling\\V1beta1\352\002$Google::Cloud::DataL" + + "abeling::V1beta1b\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.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_descriptor, + new java.lang.String[] { "Parent", "Dataset", }); + internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); + internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor, + new java.lang.String[] { "Datasets", "NextPageToken", }); + internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor, + new java.lang.String[] { "Name", "InputConfig", "UserEmailAddress", }); + internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor, + new java.lang.String[] { "Name", "AnnotatedDataset", "Filter", "OutputConfig", "UserEmailAddress", }); + internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); + internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor, + new java.lang.String[] { "DataItems", "NextPageToken", }); + internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor, + new java.lang.String[] { "AnnotatedDatasets", "NextPageToken", }); + internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor, + new java.lang.String[] { "ImageClassificationConfig", "BoundingPolyConfig", "PolylineConfig", "SegmentationConfig", "Parent", "BasicConfig", "Feature", "RequestConfig", }); + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor, + new java.lang.String[] { "VideoClassificationConfig", "ObjectDetectionConfig", "ObjectTrackingConfig", "EventConfig", "Parent", "BasicConfig", "Feature", "RequestConfig", }); + internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor, + new java.lang.String[] { "TextClassificationConfig", "TextEntityExtractionConfig", "Parent", "BasicConfig", "Feature", "RequestConfig", }); + internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor, + new java.lang.String[] { "Name", "Filter", }); + internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); + internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor, + new java.lang.String[] { "Examples", "NextPageToken", }); + internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor, + new java.lang.String[] { "Parent", "AnnotationSpecSet", }); + internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor, + new java.lang.String[] { "AnnotationSpecSets", "NextPageToken", }); + internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor, + new java.lang.String[] { "Parent", "Instruction", }); + internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); + internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor, + new java.lang.String[] { "Instructions", "NextPageToken", }); + internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); + internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor, + new java.lang.String[] { "Evaluations", "NextPageToken", }); + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor, + new java.lang.String[] { "ExampleComparisons", "NextPageToken", }); + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor = + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor, + new java.lang.String[] { "GroundTruthExample", "ModelCreatedExamples", }); + internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor, + new java.lang.String[] { "Parent", "Job", }); + internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor, + new java.lang.String[] { "EvaluationJob", "UpdateMask", }); + internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor, + new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); + internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor, + new java.lang.String[] { "EvaluationJobs", "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.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataPayloads.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataPayloads.java new file mode 100644 index 00000000..283ee9f2 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataPayloads.java @@ -0,0 +1,105 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_payloads.proto + +package com.google.cloud.datalabeling.v1beta1; + +public final class DataPayloads { + private DataPayloads() {} + 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_datalabeling_v1beta1_ImagePayload_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_TextPayload_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/datalabeling/v1beta1/data" + + "_payloads.proto\022!google.cloud.datalabeli" + + "ng.v1beta1\032\034google/api/annotations.proto" + + "\032\036google/protobuf/duration.proto\032\037google" + + "/protobuf/timestamp.proto\"a\n\014ImagePayloa" + + "d\022\021\n\tmime_type\030\001 \001(\t\022\027\n\017image_thumbnail\030" + + "\002 \001(\014\022\021\n\timage_uri\030\003 \001(\t\022\022\n\nsigned_uri\030\004" + + " \001(\t\"#\n\013TextPayload\022\024\n\014text_content\030\001 \001(" + + "\t\"S\n\016VideoThumbnail\022\021\n\tthumbnail\030\001 \001(\014\022." + + "\n\013time_offset\030\002 \001(\0132\031.google.protobuf.Du" + + "ration\"\251\001\n\014VideoPayload\022\021\n\tmime_type\030\001 \001" + + "(\t\022\021\n\tvideo_uri\030\002 \001(\t\022K\n\020video_thumbnail" + + "s\030\003 \003(\01321.google.cloud.datalabeling.v1be" + + "ta1.VideoThumbnail\022\022\n\nframe_rate\030\004 \001(\002\022\022" + + "\n\nsigned_uri\030\005 \001(\tB\347\001\n%com.google.cloud." + + "datalabeling.v1beta1P\001ZMgoogle.golang.or" + + "g/genproto/googleapis/cloud/datalabeling" + + "/v1beta1;datalabeling\252\002!Google.Cloud.Dat" + + "aLabeling.V1Beta1\312\002!Google\\Cloud\\DataLab" + + "eling\\V1beta1\352\002$Google::Cloud::DataLabel" + + "ing::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_descriptor, + new java.lang.String[] { "MimeType", "ImageThumbnail", "ImageUri", "SignedUri", }); + internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datalabeling_v1beta1_TextPayload_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor, + new java.lang.String[] { "TextContent", }); + internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor, + new java.lang.String[] { "Thumbnail", "TimeOffset", }); + internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor, + new java.lang.String[] { "MimeType", "VideoUri", "VideoThumbnails", "FrameRate", "SignedUri", }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataType.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataType.java similarity index 61% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataType.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataType.java index a9ed84f2..b5ba6ac7 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataType.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataType.java @@ -1,30 +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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; -/** Protobuf enum {@code google.cloud.datalabeling.v1beta1.DataType} */ -public enum DataType implements com.google.protobuf.ProtocolMessageEnum { - /** DATA_TYPE_UNSPECIFIED = 0; */ +/** + * Protobuf enum {@code google.cloud.datalabeling.v1beta1.DataType} + */ +public enum DataType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * DATA_TYPE_UNSPECIFIED = 0; + */ DATA_TYPE_UNSPECIFIED(0), /** - * - * *
    * Allowed for continuous evaluation.
    * 
@@ -32,11 +20,11 @@ public enum DataType implements com.google.protobuf.ProtocolMessageEnum { * IMAGE = 1; */ IMAGE(1), - /** VIDEO = 2; */ + /** + * VIDEO = 2; + */ VIDEO(2), /** - * - * *
    * Allowed for continuous evaluation.
    * 
@@ -45,8 +33,6 @@ public enum DataType implements com.google.protobuf.ProtocolMessageEnum { */ TEXT(4), /** - * - * *
    * Allowed for continuous evaluation.
    * 
@@ -57,11 +43,11 @@ public enum DataType implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; - /** DATA_TYPE_UNSPECIFIED = 0; */ + /** + * DATA_TYPE_UNSPECIFIED = 0; + */ public static final int DATA_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Allowed for continuous evaluation.
    * 
@@ -69,11 +55,11 @@ public enum DataType implements com.google.protobuf.ProtocolMessageEnum { * IMAGE = 1; */ public static final int IMAGE_VALUE = 1; - /** VIDEO = 2; */ + /** + * VIDEO = 2; + */ public static final int VIDEO_VALUE = 2; /** - * - * *
    * Allowed for continuous evaluation.
    * 
@@ -82,8 +68,6 @@ public enum DataType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TEXT_VALUE = 4; /** - * - * *
    * Allowed for continuous evaluation.
    * 
@@ -92,6 +76,7 @@ public enum DataType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int GENERAL_DATA_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -116,55 +101,51 @@ public static DataType valueOf(int value) { */ public static DataType forNumber(int value) { switch (value) { - case 0: - return DATA_TYPE_UNSPECIFIED; - case 1: - return IMAGE; - case 2: - return VIDEO; - case 4: - return TEXT; - case 6: - return GENERAL_DATA; - default: - return null; + case 0: return DATA_TYPE_UNSPECIFIED; + case 1: return IMAGE; + case 2: return VIDEO; + case 4: return TEXT; + case 6: return GENERAL_DATA; + 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 DataType findValueByNumber(int number) { - return DataType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + DataType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DataType findValueByNumber(int number) { + return DataType.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.datalabeling.v1beta1.DatasetOuterClass.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor().getEnumTypes().get(0); } private static final DataType[] VALUES = values(); - public static DataType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DataType 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; @@ -180,3 +161,4 @@ private DataType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.datalabeling.v1beta1.DataType) } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Dataset.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Dataset.java similarity index 77% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Dataset.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Dataset.java index b9f2e475..cdb2d079 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Dataset.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Dataset is the resource to hold your data. You can request multiple labeling
  * tasks for a dataset while each one will generate an AnnotatedDataset.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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_ = "";
@@ -48,15 +30,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)
@@ -76,77 +59,67 @@ 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;
-            }
-          case 34:
-            {
-              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;
+            description_ = s;
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 42:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                inputConfigs_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              inputConfigs_.add(
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.InputConfig.parser(),
-                      extensionRegistry));
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-                blockingResources_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000002;
-              }
-              blockingResources_.add(s);
-              break;
+
+            break;
+          }
+          case 42: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              inputConfigs_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 56:
-            {
-              dataItemCount_ = input.readInt64();
-              break;
+            inputConfigs_.add(
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.InputConfig.parser(), extensionRegistry));
+            break;
+          }
+          case 50: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+              blockingResources_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000002;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            blockingResources_.add(s);
+            break;
+          }
+          case 56: {
+
+            dataItemCount_ = input.readInt64();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -154,7 +127,8 @@ private Dataset(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } 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_);
@@ -166,34 +140,28 @@ private Dataset(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_Dataset_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Dataset_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_Dataset_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Dataset_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.Dataset.class,
-            com.google.cloud.datalabeling.v1beta1.Dataset.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.Dataset.class, com.google.cloud.datalabeling.v1beta1.Dataset.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Output only. Dataset resource name, format is:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -202,30 +170,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. Dataset resource name, format is:
    * projects/{project_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 { @@ -236,14 +204,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Required. The display name of the dataset. Maximum of 64 characters.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -252,29 +217,29 @@ 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 display name of the dataset. Maximum of 64 characters.
    * 
* * 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 { @@ -285,15 +250,12 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * Optional. User-provided description of the annotation specification set.
    * The description can be up to 10000 characters long.
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -302,30 +264,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; } } /** - * - * *
    * Optional. User-provided description of the annotation specification set.
    * The description can be up to 10000 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 { @@ -336,14 +298,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Time the dataset is created.
    * 
* * .google.protobuf.Timestamp create_time = 4; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -351,14 +310,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Time the dataset is created.
    * 
* * .google.protobuf.Timestamp create_time = 4; - * * @return The createTime. */ @java.lang.Override @@ -366,8 +322,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Time the dataset is created.
    * 
@@ -382,8 +336,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int INPUT_CONFIGS_FIELD_NUMBER = 5; private java.util.List inputConfigs_; /** - * - * *
    * Output only. This is populated with the original input configs
    * where ImportData is called. It is available only after the clients
@@ -397,8 +349,6 @@ public java.util.List getInpu
     return inputConfigs_;
   }
   /**
-   *
-   *
    * 
    * Output only. This is populated with the original input configs
    * where ImportData is called. It is available only after the clients
@@ -408,13 +358,11 @@ public java.util.List getInpu
    * repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getInputConfigsOrBuilderList() {
     return inputConfigs_;
   }
   /**
-   *
-   *
    * 
    * Output only. This is populated with the original input configs
    * where ImportData is called. It is available only after the clients
@@ -428,8 +376,6 @@ public int getInputConfigsCount() {
     return inputConfigs_.size();
   }
   /**
-   *
-   *
    * 
    * Output only. This is populated with the original input configs
    * where ImportData is called. It is available only after the clients
@@ -443,8 +389,6 @@ public com.google.cloud.datalabeling.v1beta1.InputConfig getInputConfigs(int ind
     return inputConfigs_.get(index);
   }
   /**
-   *
-   *
    * 
    * Output only. This is populated with the original input configs
    * where ImportData is called. It is available only after the clients
@@ -462,45 +406,37 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig
   public static final int BLOCKING_RESOURCES_FIELD_NUMBER = 6;
   private com.google.protobuf.LazyStringList blockingResources_;
   /**
-   *
-   *
    * 
    * Output only. The names of any related resources that are blocking changes
    * to the dataset.
    * 
* * repeated string blocking_resources = 6; - * * @return A list containing the blockingResources. */ - public com.google.protobuf.ProtocolStringList getBlockingResourcesList() { + public com.google.protobuf.ProtocolStringList + getBlockingResourcesList() { return blockingResources_; } /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the dataset.
    * 
* * repeated string blocking_resources = 6; - * * @return The count of blockingResources. */ public int getBlockingResourcesCount() { return blockingResources_.size(); } /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the dataset.
    * 
* * repeated string blocking_resources = 6; - * * @param index The index of the element to return. * @return The blockingResources at the given index. */ @@ -508,33 +444,28 @@ public java.lang.String getBlockingResources(int index) { return blockingResources_.get(index); } /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the dataset.
    * 
* * repeated string blocking_resources = 6; - * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - public com.google.protobuf.ByteString getBlockingResourcesBytes(int index) { + public com.google.protobuf.ByteString + getBlockingResourcesBytes(int index) { return blockingResources_.getByteString(index); } public static final int DATA_ITEM_COUNT_FIELD_NUMBER = 7; private long dataItemCount_; /** - * - * *
    * Output only. The number of data items in the dataset.
    * 
* * int64 data_item_count = 7; - * * @return The dataItemCount. */ @java.lang.Override @@ -543,7 +474,6 @@ public long getDataItemCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -555,7 +485,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_); } @@ -596,10 +527,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreateTime()); } 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)); } { int dataSize = 0; @@ -610,7 +543,8 @@ public int getSerializedSize() { size += 1 * getBlockingResourcesList().size(); } if (dataItemCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, dataItemCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, dataItemCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -620,24 +554,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.datalabeling.v1beta1.Dataset)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.Dataset other = - (com.google.cloud.datalabeling.v1beta1.Dataset) obj; + com.google.cloud.datalabeling.v1beta1.Dataset other = (com.google.cloud.datalabeling.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 (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; - } - if (!getInputConfigsList().equals(other.getInputConfigsList())) return false; - if (!getBlockingResourcesList().equals(other.getBlockingResourcesList())) return false; - if (getDataItemCount() != other.getDataItemCount()) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; + } + if (!getInputConfigsList() + .equals(other.getInputConfigsList())) return false; + if (!getBlockingResourcesList() + .equals(other.getBlockingResourcesList())) return false; + if (getDataItemCount() + != other.getDataItemCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -668,110 +608,104 @@ public int hashCode() { hash = (53 * hash) + getBlockingResourcesList().hashCode(); } hash = (37 * hash) + DATA_ITEM_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDataItemCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDataItemCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.datalabeling.v1beta1.Dataset parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datalabeling.v1beta1.Dataset parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.Dataset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.Dataset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.Dataset parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.Dataset parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.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; } /** - * - * *
    * Dataset is the resource to hold your data. You can request multiple labeling
    * tasks for a dataset while each one will generate an AnnotatedDataset.
@@ -779,23 +713,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.Dataset)
       com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_Dataset_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Dataset_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_Dataset_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Dataset_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.Dataset.class,
-              com.google.cloud.datalabeling.v1beta1.Dataset.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.Dataset.class, com.google.cloud.datalabeling.v1beta1.Dataset.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.Dataset.newBuilder()
@@ -803,17 +735,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();
@@ -843,9 +775,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_Dataset_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Dataset_descriptor;
     }
 
     @java.lang.Override
@@ -864,8 +796,7 @@ public com.google.cloud.datalabeling.v1beta1.Dataset build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.Dataset buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.Dataset result =
-          new com.google.cloud.datalabeling.v1beta1.Dataset(this);
+      com.google.cloud.datalabeling.v1beta1.Dataset result = new com.google.cloud.datalabeling.v1beta1.Dataset(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.displayName_ = displayName_;
@@ -898,39 +829,38 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.Dataset) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Dataset) other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Dataset)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -972,10 +902,9 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.Dataset 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_);
           }
@@ -1022,26 +951,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. Dataset resource name, format is:
      * projects/{project_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; @@ -1050,22 +976,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Dataset resource name, format is:
      * projects/{project_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 { @@ -1073,64 +998,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Dataset resource name, format is:
      * projects/{project_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. Dataset resource name, format is:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. Dataset resource name, format is:
      * projects/{project_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; @@ -1138,20 +1056,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. The display name of the dataset. Maximum of 64 characters.
      * 
* * 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; @@ -1160,21 +1076,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. The display name of the dataset. Maximum of 64 characters.
      * 
* * 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 { @@ -1182,61 +1097,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. The display name of the dataset. Maximum of 64 characters.
      * 
* * 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 display name of the dataset. Maximum of 64 characters.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Required. The display name of the dataset. Maximum of 64 characters.
      * 
* * 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; @@ -1244,21 +1152,19 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. User-provided description of the annotation specification set.
      * The description can be up to 10000 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; @@ -1267,22 +1173,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. User-provided description of the annotation specification set.
      * The description can be up to 10000 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 { @@ -1290,64 +1195,57 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. User-provided description of the annotation specification set.
      * The description can be up to 10000 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; } /** - * - * *
      * Optional. User-provided description of the annotation specification set.
      * The description can be up to 10000 characters long.
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Optional. User-provided description of the annotation specification set.
      * The description can be up to 10000 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; @@ -1355,47 +1253,34 @@ public Builder setDescriptionBytes(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. Time the dataset is created.
      * 
* * .google.protobuf.Timestamp create_time = 4; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Time the dataset is created.
      * 
* * .google.protobuf.Timestamp create_time = 4; - * * @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 the dataset is created.
      * 
@@ -1416,15 +1301,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time the dataset is created.
      * 
* * .google.protobuf.Timestamp create_time = 4; */ - 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(); @@ -1435,8 +1319,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time the dataset is created.
      * 
@@ -1447,7 +1329,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; } @@ -1459,8 +1341,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time the dataset is created.
      * 
@@ -1479,8 +1359,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Time the dataset is created.
      * 
@@ -1488,13 +1366,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 4; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time the dataset is created.
      * 
@@ -1505,14 +1381,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 the dataset is created.
      * 
@@ -1520,43 +1393,32 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_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> 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 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.datalabeling.v1beta1.InputConfig, - com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, - com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder> - inputConfigsBuilder_; + com.google.cloud.datalabeling.v1beta1.InputConfig, com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder> inputConfigsBuilder_; /** - * - * *
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1573,8 +1435,6 @@ public java.util.List getInpu
       }
     }
     /**
-     *
-     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1591,8 +1451,6 @@ public int getInputConfigsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1609,8 +1467,6 @@ public com.google.cloud.datalabeling.v1beta1.InputConfig getInputConfigs(int ind
       }
     }
     /**
-     *
-     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1634,8 +1490,6 @@ public Builder setInputConfigs(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1656,8 +1510,6 @@ public Builder setInputConfigs(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1680,8 +1532,6 @@ public Builder addInputConfigs(com.google.cloud.datalabeling.v1beta1.InputConfig
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1705,8 +1555,6 @@ public Builder addInputConfigs(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1727,8 +1575,6 @@ public Builder addInputConfigs(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1749,8 +1595,6 @@ public Builder addInputConfigs(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1763,7 +1607,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);
@@ -1771,8 +1616,6 @@ public Builder addAllInputConfigs(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1792,8 +1635,6 @@ public Builder clearInputConfigs() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1813,8 +1654,6 @@ public Builder removeInputConfigs(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1828,8 +1667,6 @@ public com.google.cloud.datalabeling.v1beta1.InputConfig.Builder getInputConfigs
       return getInputConfigsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1841,14 +1678,11 @@ public com.google.cloud.datalabeling.v1beta1.InputConfig.Builder getInputConfigs
     public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfigsOrBuilder(
         int index) {
       if (inputConfigsBuilder_ == null) {
-        return inputConfigs_.get(index);
-      } else {
+        return inputConfigs_.get(index);  } else {
         return inputConfigsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1857,8 +1691,8 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig
      *
      * repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;
      */
-    public java.util.List
-        getInputConfigsOrBuilderList() {
+    public java.util.List 
+         getInputConfigsOrBuilderList() {
       if (inputConfigsBuilder_ != null) {
         return inputConfigsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1866,8 +1700,6 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig
       }
     }
     /**
-     *
-     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1877,12 +1709,10 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig
      * repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;
      */
     public com.google.cloud.datalabeling.v1beta1.InputConfig.Builder addInputConfigsBuilder() {
-      return getInputConfigsFieldBuilder()
-          .addBuilder(com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance());
+      return getInputConfigsFieldBuilder().addBuilder(
+          com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1893,13 +1723,10 @@ public com.google.cloud.datalabeling.v1beta1.InputConfig.Builder addInputConfigs
      */
     public com.google.cloud.datalabeling.v1beta1.InputConfig.Builder addInputConfigsBuilder(
         int index) {
-      return getInputConfigsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance());
+      return getInputConfigsFieldBuilder().addBuilder(
+          index, com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1908,77 +1735,64 @@ public com.google.cloud.datalabeling.v1beta1.InputConfig.Builder addInputConfigs
      *
      * repeated .google.cloud.datalabeling.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.datalabeling.v1beta1.InputConfig,
-            com.google.cloud.datalabeling.v1beta1.InputConfig.Builder,
-            com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder>
+        com.google.cloud.datalabeling.v1beta1.InputConfig, com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder> 
         getInputConfigsFieldBuilder() {
       if (inputConfigsBuilder_ == null) {
-        inputConfigsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.datalabeling.v1beta1.InputConfig,
-                com.google.cloud.datalabeling.v1beta1.InputConfig.Builder,
-                com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder>(
-                inputConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        inputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.datalabeling.v1beta1.InputConfig, com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder>(
+                inputConfigs_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         inputConfigs_ = null;
       }
       return inputConfigsBuilder_;
     }
 
-    private com.google.protobuf.LazyStringList blockingResources_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
-
+    private com.google.protobuf.LazyStringList blockingResources_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     private void ensureBlockingResourcesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
         blockingResources_ = new com.google.protobuf.LazyStringArrayList(blockingResources_);
         bitField0_ |= 0x00000002;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * Output only. The names of any related resources that are blocking changes
      * to the dataset.
      * 
* * repeated string blocking_resources = 6; - * * @return A list containing the blockingResources. */ - public com.google.protobuf.ProtocolStringList getBlockingResourcesList() { + public com.google.protobuf.ProtocolStringList + getBlockingResourcesList() { return blockingResources_.getUnmodifiableView(); } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the dataset.
      * 
* * repeated string blocking_resources = 6; - * * @return The count of blockingResources. */ public int getBlockingResourcesCount() { return blockingResources_.size(); } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the dataset.
      * 
* * repeated string blocking_resources = 6; - * * @param index The index of the element to return. * @return The blockingResources at the given index. */ @@ -1986,95 +1800,85 @@ public java.lang.String getBlockingResources(int index) { return blockingResources_.get(index); } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the dataset.
      * 
* * repeated string blocking_resources = 6; - * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - public com.google.protobuf.ByteString getBlockingResourcesBytes(int index) { + public com.google.protobuf.ByteString + getBlockingResourcesBytes(int index) { return blockingResources_.getByteString(index); } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the dataset.
      * 
* * repeated string blocking_resources = 6; - * * @param index The index to set the value at. * @param value The blockingResources to set. * @return This builder for chaining. */ - public Builder setBlockingResources(int index, java.lang.String value) { + public Builder setBlockingResources( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlockingResourcesIsMutable(); + throw new NullPointerException(); + } + ensureBlockingResourcesIsMutable(); blockingResources_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the dataset.
      * 
* * repeated string blocking_resources = 6; - * * @param value The blockingResources to add. * @return This builder for chaining. */ - public Builder addBlockingResources(java.lang.String value) { + public Builder addBlockingResources( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlockingResourcesIsMutable(); + throw new NullPointerException(); + } + ensureBlockingResourcesIsMutable(); blockingResources_.add(value); onChanged(); return this; } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the dataset.
      * 
* * repeated string blocking_resources = 6; - * * @param values The blockingResources to add. * @return This builder for chaining. */ - public Builder addAllBlockingResources(java.lang.Iterable values) { + public Builder addAllBlockingResources( + java.lang.Iterable values) { ensureBlockingResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blockingResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blockingResources_); onChanged(); return this; } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the dataset.
      * 
* * repeated string blocking_resources = 6; - * * @return This builder for chaining. */ public Builder clearBlockingResources() { @@ -2084,39 +1888,34 @@ public Builder clearBlockingResources() { return this; } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the dataset.
      * 
* * repeated string blocking_resources = 6; - * * @param value The bytes of the blockingResources to add. * @return This builder for chaining. */ - public Builder addBlockingResourcesBytes(com.google.protobuf.ByteString value) { + public Builder addBlockingResourcesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureBlockingResourcesIsMutable(); blockingResources_.add(value); onChanged(); return this; } - private long dataItemCount_; + private long dataItemCount_ ; /** - * - * *
      * Output only. The number of data items in the dataset.
      * 
* * int64 data_item_count = 7; - * * @return The dataItemCount. */ @java.lang.Override @@ -2124,43 +1923,37 @@ public long getDataItemCount() { return dataItemCount_; } /** - * - * *
      * Output only. The number of data items in the dataset.
      * 
* * int64 data_item_count = 7; - * * @param value The dataItemCount to set. * @return This builder for chaining. */ public Builder setDataItemCount(long value) { - + dataItemCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The number of data items in the dataset.
      * 
* * int64 data_item_count = 7; - * * @return This builder for chaining. */ public Builder clearDataItemCount() { - + dataItemCount_ = 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); } @@ -2170,12 +1963,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.Dataset) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Dataset) private static final com.google.cloud.datalabeling.v1beta1.Dataset DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.Dataset(); } @@ -2184,16 +1977,16 @@ public static com.google.cloud.datalabeling.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; @@ -2208,4 +2001,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.Dataset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetName.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetName.java similarity index 100% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetName.java diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOrBuilder.java similarity index 81% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOrBuilder.java index daa8a150..d4829b17 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOrBuilder.java @@ -1,134 +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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; -public interface DatasetOrBuilder - extends +public interface DatasetOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.Dataset) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Dataset resource name, format is:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Dataset resource name, format is:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The display name of the dataset. Maximum of 64 characters.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. The display name of the dataset. Maximum of 64 characters.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Optional. User-provided description of the annotation specification set.
    * The description can be up to 10000 characters long.
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. User-provided description of the annotation specification set.
    * The description can be up to 10000 characters long.
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. Time the dataset is created.
    * 
* * .google.protobuf.Timestamp create_time = 4; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Time the dataset is created.
    * 
* * .google.protobuf.Timestamp create_time = 4; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Time the dataset is created.
    * 
@@ -138,8 +99,6 @@ public interface DatasetOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. This is populated with the original input configs
    * where ImportData is called. It is available only after the clients
@@ -148,10 +107,9 @@ public interface DatasetOrBuilder
    *
    * repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;
    */
-  java.util.List getInputConfigsList();
+  java.util.List 
+      getInputConfigsList();
   /**
-   *
-   *
    * 
    * Output only. This is populated with the original input configs
    * where ImportData is called. It is available only after the clients
@@ -162,8 +120,6 @@ public interface DatasetOrBuilder
    */
   com.google.cloud.datalabeling.v1beta1.InputConfig getInputConfigs(int index);
   /**
-   *
-   *
    * 
    * Output only. This is populated with the original input configs
    * where ImportData is called. It is available only after the clients
@@ -174,8 +130,6 @@ public interface DatasetOrBuilder
    */
   int getInputConfigsCount();
   /**
-   *
-   *
    * 
    * Output only. This is populated with the original input configs
    * where ImportData is called. It is available only after the clients
@@ -184,11 +138,9 @@ public interface DatasetOrBuilder
    *
    * repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;
    */
-  java.util.List
+  java.util.List 
       getInputConfigsOrBuilderList();
   /**
-   *
-   *
    * 
    * Output only. This is populated with the original input configs
    * where ImportData is called. It is available only after the clients
@@ -197,72 +149,60 @@ public interface DatasetOrBuilder
    *
    * repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;
    */
-  com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfigsOrBuilder(int index);
+  com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfigsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Output only. The names of any related resources that are blocking changes
    * to the dataset.
    * 
* * repeated string blocking_resources = 6; - * * @return A list containing the blockingResources. */ - java.util.List getBlockingResourcesList(); + java.util.List + getBlockingResourcesList(); /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the dataset.
    * 
* * repeated string blocking_resources = 6; - * * @return The count of blockingResources. */ int getBlockingResourcesCount(); /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the dataset.
    * 
* * repeated string blocking_resources = 6; - * * @param index The index of the element to return. * @return The blockingResources at the given index. */ java.lang.String getBlockingResources(int index); /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the dataset.
    * 
* * repeated string blocking_resources = 6; - * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - com.google.protobuf.ByteString getBlockingResourcesBytes(int index); + com.google.protobuf.ByteString + getBlockingResourcesBytes(int index); /** - * - * *
    * Output only. The number of data items in the dataset.
    * 
* * int64 data_item_count = 7; - * * @return The dataItemCount. */ long getDataItemCount(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOuterClass.java new file mode 100644 index 00000000..4064dbca --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOuterClass.java @@ -0,0 +1,337 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/dataset.proto + +package com.google.cloud.datalabeling.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_datalabeling_v1beta1_Dataset_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_Dataset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_DataItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_Example_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/datalabeling/v1beta1/data" + + "set.proto\022!google.cloud.datalabeling.v1b" + + "eta1\032\034google/api/annotations.proto\032\031goog" + + "le/api/resource.proto\0322google/cloud/data" + + "labeling/v1beta1/annotation.proto\032;googl" + + "e/cloud/datalabeling/v1beta1/annotation_" + + "spec_set.proto\0325google/cloud/datalabelin" + + "g/v1beta1/data_payloads.proto\032?google/cl" + + "oud/datalabeling/v1beta1/human_annotatio" + + "n_config.proto\032\037google/protobuf/timestam" + + "p.proto\"\300\002\n\007Dataset\022\014\n\004name\030\001 \001(\t\022\024\n\014dis" + + "play_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022/\n\013" + + "create_time\030\004 \001(\0132\032.google.protobuf.Time" + + "stamp\022E\n\rinput_configs\030\005 \003(\0132..google.cl" + + "oud.datalabeling.v1beta1.InputConfig\022\032\n\022" + + "blocking_resources\030\006 \003(\t\022\027\n\017data_item_co" + + "unt\030\007 \001(\003:O\352AL\n#datalabeling.googleapis." + + "com/Dataset\022%projects/{project}/datasets" + + "/{dataset}\"\361\003\n\013InputConfig\022H\n\rtext_metad" + + "ata\030\006 \001(\0132/.google.cloud.datalabeling.v1" + + "beta1.TextMetadataH\000\022B\n\ngcs_source\030\002 \001(\013" + + "2,.google.cloud.datalabeling.v1beta1.Gcs" + + "SourceH\001\022L\n\017bigquery_source\030\005 \001(\01321.goog" + + "le.cloud.datalabeling.v1beta1.BigQuerySo" + + "urceH\001\022>\n\tdata_type\030\001 \001(\0162+.google.cloud" + + ".datalabeling.v1beta1.DataType\022J\n\017annota" + + "tion_type\030\003 \001(\01621.google.cloud.datalabel" + + "ing.v1beta1.AnnotationType\022Z\n\027classifica" + + "tion_metadata\030\004 \001(\01329.google.cloud.datal" + + "abeling.v1beta1.ClassificationMetadataB\024" + + "\n\022data_type_metadataB\010\n\006source\"%\n\014TextMe" + + "tadata\022\025\n\rlanguage_code\030\001 \001(\t\"0\n\026Classif" + + "icationMetadata\022\026\n\016is_multi_label\030\001 \001(\010\"" + + "1\n\tGcsSource\022\021\n\tinput_uri\030\001 \001(\t\022\021\n\tmime_" + + "type\030\002 \001(\t\"#\n\016BigQuerySource\022\021\n\tinput_ur" + + "i\030\001 \001(\t\"\306\001\n\014OutputConfig\022L\n\017gcs_destinat" + + "ion\030\001 \001(\01321.google.cloud.datalabeling.v1" + + "beta1.GcsDestinationH\000\022Y\n\026gcs_folder_des" + + "tination\030\002 \001(\01327.google.cloud.datalabeli" + + "ng.v1beta1.GcsFolderDestinationH\000B\r\n\013des" + + "tination\"7\n\016GcsDestination\022\022\n\noutput_uri" + + "\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\t\"1\n\024GcsFolderDe" + + "stination\022\031\n\021output_folder_uri\030\001 \001(\t\"\347\002\n" + + "\010DataItem\022H\n\rimage_payload\030\002 \001(\0132/.googl" + + "e.cloud.datalabeling.v1beta1.ImagePayloa" + + "dH\000\022F\n\014text_payload\030\003 \001(\0132..google.cloud" + + ".datalabeling.v1beta1.TextPayloadH\000\022H\n\rv" + + "ideo_payload\030\004 \001(\0132/.google.cloud.datala" + + "beling.v1beta1.VideoPayloadH\000\022\014\n\004name\030\001 " + + "\001(\t:f\352Ac\n$datalabeling.googleapis.com/Da" + + "taItem\022;projects/{project}/datasets/{dat" + + "aset}/dataItems/{data_item}B\t\n\007payload\"\377" + + "\004\n\020AnnotatedDataset\022\014\n\004name\030\001 \001(\t\022\024\n\014dis" + + "play_name\030\002 \001(\t\022\023\n\013description\030\t \001(\t\022N\n\021" + + "annotation_source\030\003 \001(\01623.google.cloud.d" + + "atalabeling.v1beta1.AnnotationSource\022J\n\017" + + "annotation_type\030\010 \001(\01621.google.cloud.dat" + + "alabeling.v1beta1.AnnotationType\022\025\n\rexam" + + "ple_count\030\004 \001(\003\022\037\n\027completed_example_cou" + + "nt\030\005 \001(\003\022B\n\013label_stats\030\006 \001(\0132-.google.c" + + "loud.datalabeling.v1beta1.LabelStats\022/\n\013" + + "create_time\030\007 \001(\0132\032.google.protobuf.Time" + + "stamp\022M\n\010metadata\030\n \001(\0132;.google.cloud.d" + + "atalabeling.v1beta1.AnnotatedDatasetMeta" + + "data\022\032\n\022blocking_resources\030\013 \003(\t:~\352A{\n,d" + + "atalabeling.googleapis.com/AnnotatedData" + + "set\022Kprojects/{project}/datasets/{datase" + + "t}/annotatedDatasets/{annotated_dataset}" + + "\"\231\001\n\nLabelStats\022V\n\rexample_count\030\001 \003(\0132?" + + ".google.cloud.datalabeling.v1beta1.Label" + + "Stats.ExampleCountEntry\0323\n\021ExampleCountE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\"\242\010\n" + + "\030AnnotatedDatasetMetadata\022c\n\033image_class" + + "ification_config\030\002 \001(\0132<.google.cloud.da" + + "talabeling.v1beta1.ImageClassificationCo" + + "nfigH\000\022U\n\024bounding_poly_config\030\003 \001(\01325.g" + + "oogle.cloud.datalabeling.v1beta1.Boundin" + + "gPolyConfigH\000\022L\n\017polyline_config\030\004 \001(\01321" + + ".google.cloud.datalabeling.v1beta1.Polyl" + + "ineConfigH\000\022T\n\023segmentation_config\030\005 \001(\013" + + "25.google.cloud.datalabeling.v1beta1.Seg" + + "mentationConfigH\000\022c\n\033video_classificatio" + + "n_config\030\006 \001(\0132<.google.cloud.datalabeli" + + "ng.v1beta1.VideoClassificationConfigH\000\022[" + + "\n\027object_detection_config\030\007 \001(\01328.google" + + ".cloud.datalabeling.v1beta1.ObjectDetect" + + "ionConfigH\000\022Y\n\026object_tracking_config\030\010 " + + "\001(\01327.google.cloud.datalabeling.v1beta1." + + "ObjectTrackingConfigH\000\022F\n\014event_config\030\t" + + " \001(\0132..google.cloud.datalabeling.v1beta1" + + ".EventConfigH\000\022a\n\032text_classification_co" + + "nfig\030\n \001(\0132;.google.cloud.datalabeling.v" + + "1beta1.TextClassificationConfigH\000\022f\n\035tex" + + "t_entity_extraction_config\030\013 \001(\0132=.googl" + + "e.cloud.datalabeling.v1beta1.TextEntityE" + + "xtractionConfigH\000\022Y\n\027human_annotation_co" + + "nfig\030\001 \001(\01328.google.cloud.datalabeling.v" + + "1beta1.HumanAnnotationConfigB\033\n\031annotati" + + "on_request_config\"\316\003\n\007Example\022H\n\rimage_p" + + "ayload\030\002 \001(\0132/.google.cloud.datalabeling" + + ".v1beta1.ImagePayloadH\000\022F\n\014text_payload\030" + + "\006 \001(\0132..google.cloud.datalabeling.v1beta" + + "1.TextPayloadH\000\022H\n\rvideo_payload\030\007 \001(\0132/" + + ".google.cloud.datalabeling.v1beta1.Video" + + "PayloadH\000\022\014\n\004name\030\001 \001(\t\022B\n\013annotations\030\005" + + " \003(\0132-.google.cloud.datalabeling.v1beta1" + + ".Annotation:\211\001\352A\205\001\n#datalabeling.googlea" + + "pis.com/Example\022^projects/{project}/data" + + "sets/{dataset}/annotatedDatasets/{annota" + + "ted_dataset}/examples/{example}B\t\n\007paylo" + + "ad*W\n\010DataType\022\031\n\025DATA_TYPE_UNSPECIFIED\020" + + "\000\022\t\n\005IMAGE\020\001\022\t\n\005VIDEO\020\002\022\010\n\004TEXT\020\004\022\020\n\014GEN" + + "ERAL_DATA\020\006B\347\001\n%com.google.cloud.datalab" + + "eling.v1beta1P\001ZMgoogle.golang.org/genpr" + + "oto/googleapis/cloud/datalabeling/v1beta" + + "1;datalabeling\252\002!Google.Cloud.DataLabeli" + + "ng.V1Beta1\312\002!Google\\Cloud\\DataLabeling\\V" + + "1beta1\352\002$Google::Cloud::DataLabeling::V1" + + "beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.DataPayloads.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_datalabeling_v1beta1_Dataset_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_Dataset_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_Dataset_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Description", "CreateTime", "InputConfigs", "BlockingResources", "DataItemCount", }); + internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datalabeling_v1beta1_InputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor, + new java.lang.String[] { "TextMetadata", "GcsSource", "BigquerySource", "DataType", "AnnotationType", "ClassificationMetadata", "DataTypeMetadata", "Source", }); + internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor, + new java.lang.String[] { "LanguageCode", }); + internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor, + new java.lang.String[] { "IsMultiLabel", }); + internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datalabeling_v1beta1_GcsSource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor, + new java.lang.String[] { "InputUri", "MimeType", }); + internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor, + new java.lang.String[] { "InputUri", }); + internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor, + new java.lang.String[] { "GcsDestination", "GcsFolderDestination", "Destination", }); + internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor, + new java.lang.String[] { "OutputUri", "MimeType", }); + internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor, + new java.lang.String[] { "OutputFolderUri", }); + internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_datalabeling_v1beta1_DataItem_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor, + new java.lang.String[] { "ImagePayload", "TextPayload", "VideoPayload", "Name", "Payload", }); + internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Description", "AnnotationSource", "AnnotationType", "ExampleCount", "CompletedExampleCount", "LabelStats", "CreateTime", "Metadata", "BlockingResources", }); + internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_datalabeling_v1beta1_LabelStats_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor, + new java.lang.String[] { "ExampleCount", }); + internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_descriptor = + internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor, + new java.lang.String[] { "ImageClassificationConfig", "BoundingPolyConfig", "PolylineConfig", "SegmentationConfig", "VideoClassificationConfig", "ObjectDetectionConfig", "ObjectTrackingConfig", "EventConfig", "TextClassificationConfig", "TextEntityExtractionConfig", "HumanAnnotationConfig", "AnnotationRequestConfig", }); + internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_datalabeling_v1beta1_Example_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor, + new java.lang.String[] { "ImagePayload", "TextPayload", "VideoPayload", "Name", "Annotations", "Payload", }); + 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.AnnotationsProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.DataPayloads.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequest.java similarity index 63% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequest.java index 19b7ec38..1a6978aa 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for DeleteAnnotatedDataset.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest} */ -public final class DeleteAnnotatedDatasetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteAnnotatedDatasetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) DeleteAnnotatedDatasetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteAnnotatedDatasetRequest.newBuilder() to construct. private DeleteAnnotatedDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteAnnotatedDatasetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteAnnotatedDatasetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteAnnotatedDatasetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteAnnotatedDatasetRequest( 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) { @@ -91,43 +73,36 @@ private DeleteAnnotatedDatasetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.class, - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.class, com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the annotated dataset to delete, format:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
    * {annotated_dataset_id}
    * 
* - * - * string 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 @@ -136,33 +111,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 annotated dataset to delete, format:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
    * {annotated_dataset_id}
    * 
* - * - * string 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 { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,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.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest other = - (com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) obj; + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest other = (com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,145 +208,134 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest 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.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest - 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.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest 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.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 DeleteAnnotatedDataset.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.class, - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.class, com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.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(); @@ -383,16 +345,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.getDefaultInstance(); } @java.lang.Override @@ -406,8 +366,7 @@ public com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest build @java.lang.Override public com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest result = - new com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest(this); + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest result = new com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -417,51 +376,46 @@ public com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest 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.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest other) { - if (other - == com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest other) { + if (other == com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -485,9 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -499,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the annotated dataset to delete, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}
      * 
* - * - * string 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; @@ -525,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the annotated dataset to delete, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}
      * 
* - * - * string 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 { @@ -551,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the annotated dataset to delete, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}
      * 
* - * - * 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 annotated dataset to delete, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}
      * 
* - * - * string 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 annotated dataset to delete, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}
      * 
* - * - * 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); } @@ -634,32 +566,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) - private static final com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest(); } - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAnnotatedDatasetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteAnnotatedDatasetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAnnotatedDatasetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteAnnotatedDatasetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -671,8 +601,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequestOrBuilder.java new file mode 100644 index 00000000..9a458224 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface DeleteAnnotatedDatasetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the annotated dataset to delete, format:
+   * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
+   * {annotated_dataset_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the annotated dataset to delete, format:
+   * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
+   * {annotated_dataset_id}
+   * 
+ * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequest.java similarity index 62% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequest.java index afaac884..dd06b30d 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for DeleteAnnotationSpecSet.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest} */ -public final class DeleteAnnotationSpecSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteAnnotationSpecSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) DeleteAnnotationSpecSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteAnnotationSpecSetRequest.newBuilder() to construct. - private DeleteAnnotationSpecSetRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteAnnotationSpecSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteAnnotationSpecSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteAnnotationSpecSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteAnnotationSpecSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,20 +53,19 @@ private DeleteAnnotationSpecSetRequest( 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) { @@ -92,42 +73,35 @@ private DeleteAnnotationSpecSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.class, - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.class, com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. AnnotationSpec resource name, format:
    * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
    * 
* - * - * string 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 @@ -136,32 +110,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. AnnotationSpec resource name, format:
    * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
    * 
* - * - * string 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 { @@ -170,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -182,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -206,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.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest other = - (com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) obj; + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest other = (com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest 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.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest - 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.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest 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.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 DeleteAnnotationSpecSet.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.class, - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.class, com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.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(); @@ -382,16 +343,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.getDefaultInstance(); } @java.lang.Override @@ -405,8 +364,7 @@ public com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest buil @java.lang.Override public com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest result = - new com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest(this); + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest result = new com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -416,51 +374,46 @@ public com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest 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.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest other) { - if (other - == com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest other) { + if (other == com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -484,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -498,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. AnnotationSpec resource name, format:
      * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
      * 
* - * - * string 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; @@ -523,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. AnnotationSpec resource name, format:
      * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
      * 
* - * - * string 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 { @@ -548,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. AnnotationSpec resource name, format:
      * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
      * 
* - * - * 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. AnnotationSpec resource name, format:
      * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
      * 
* - * - * string 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. AnnotationSpec resource name, format:
      * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
      * 
* - * - * 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); } @@ -628,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) - private static final com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest(); } - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAnnotationSpecSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteAnnotationSpecSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAnnotationSpecSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteAnnotationSpecSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -665,8 +594,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequestOrBuilder.java new file mode 100644 index 00000000..c9a6c116 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface DeleteAnnotationSpecSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. AnnotationSpec resource name, format:
+   * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. AnnotationSpec resource name, format:
+   * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
+   * 
+ * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequest.java similarity index 66% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequest.java index cbdbe7a6..88fc2c52 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for DeleteDataset.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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,20 +53,19 @@ 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) { @@ -91,42 +73,35 @@ private DeleteDatasetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.class, - com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.class, com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Dataset resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * string 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 @@ -135,32 +110,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 resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * string 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,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.datalabeling.v1beta1.DeleteDatasetRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest other = - (com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest) obj; + com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest other = (com.google.cloud.datalabeling.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; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.DeleteDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.DeleteDatasetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.DeleteDatasetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.DeleteDatasetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.DeleteDatasetRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.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 DeleteDataset.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.DeleteDatasetRequest) com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.class, - com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.class, com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.newBuilder() @@ -361,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(); @@ -379,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor; } @java.lang.Override @@ -400,8 +364,7 @@ public com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest result = - new com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest(this); + com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest result = new com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -411,39 +374,38 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.DeleteDatasetRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest)other); } else { super.mergeFrom(other); return this; @@ -451,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -476,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -489,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * string 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; @@ -514,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * string 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 { @@ -539,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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 resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * string 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 resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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); } @@ -619,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.DeleteDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.DeleteDatasetRequest) private static final com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest(); } @@ -633,16 +573,16 @@ public static com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest getDefa 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; @@ -657,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequestOrBuilder.java new file mode 100644 index 00000000..361fd307 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface DeleteDatasetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.DeleteDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Dataset resource name, format:
+   * projects/{project_id}/datasets/{dataset_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Dataset resource name, format:
+   * projects/{project_id}/datasets/{dataset_id}
+   * 
+ * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequest.java similarity index 64% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequest.java index 4f17ee8b..4fbabd25 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message DeleteEvaluationJob.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest} */ -public final class DeleteEvaluationJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteEvaluationJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) DeleteEvaluationJobRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteEvaluationJobRequest.newBuilder() to construct. private DeleteEvaluationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteEvaluationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteEvaluationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteEvaluationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteEvaluationJobRequest( 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) { @@ -91,42 +73,35 @@ private DeleteEvaluationJobRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.class, - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the evaluation job that is going to be deleted. Format:
    * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * - * string 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 @@ -135,32 +110,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. Name of the evaluation job that is going to be deleted. Format:
    * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * - * string 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,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.datalabeling.v1beta1.DeleteEvaluationJobRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest other = - (com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) obj; + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest other = (com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest 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.datalabeling.v1beta1.DeleteEvaluationJobRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 DeleteEvaluationJob.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.class, - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.newBuilder() @@ -361,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(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest result = - new com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest(this); + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest result = new com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,50 +374,46 @@ public com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest 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.datalabeling.v1beta1.DeleteEvaluationJobRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest other) { - if (other - == com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest other) { + if (other == com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -479,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the evaluation job that is going to be deleted. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * - * string 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; @@ -518,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the evaluation job that is going to be deleted. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * - * string 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 { @@ -543,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the evaluation job that is going to be deleted. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * - * 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 evaluation job that is going to be deleted. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * - * string 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 evaluation job that is going to be deleted. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * - * 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); } @@ -623,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) - private static final com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest(); } - public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteEvaluationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteEvaluationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteEvaluationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteEvaluationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequestOrBuilder.java new file mode 100644 index 00000000..20133b34 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface DeleteEvaluationJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the evaluation job that is going to be deleted. Format:
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the evaluation job that is going to be deleted. Format:
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
+   * 
+ * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequest.java similarity index 64% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequest.java index de010b8e..3ad9ecd2 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for DeleteInstruction.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.DeleteInstructionRequest} */ -public final class DeleteInstructionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteInstructionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) DeleteInstructionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteInstructionRequest.newBuilder() to construct. private DeleteInstructionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteInstructionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteInstructionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteInstructionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteInstructionRequest( 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) { @@ -91,42 +73,35 @@ private DeleteInstructionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.class, - com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.class, com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Instruction resource name, format:
    * projects/{project_id}/instructions/{instruction_id}
    * 
* - * - * string 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 @@ -135,32 +110,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. Instruction resource name, format:
    * projects/{project_id}/instructions/{instruction_id}
    * 
* - * - * string 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,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.datalabeling.v1beta1.DeleteInstructionRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest other = - (com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) obj; + com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest other = (com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest 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.datalabeling.v1beta1.DeleteInstructionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 DeleteInstruction.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.DeleteInstructionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.class, - com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.class, com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.newBuilder() @@ -361,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(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest result = - new com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest(this); + com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest result = new com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +374,38 @@ public com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest 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.datalabeling.v1beta1.DeleteInstructionRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest)other); } else { super.mergeFrom(other); return this; @@ -452,9 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest other) { - if (other - == com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -492,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_id}
      * 
* - * - * string 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; @@ -517,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_id}
      * 
* - * - * string 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 { @@ -542,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_id}
      * 
* - * - * 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. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_id}
      * 
* - * - * string 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. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_id}
      * 
* - * - * 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); } @@ -622,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) - private static final com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest(); } - public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteInstructionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteInstructionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteInstructionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteInstructionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -659,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequestOrBuilder.java new file mode 100644 index 00000000..30ca6d88 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface DeleteInstructionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Instruction resource name, format:
+   * projects/{project_id}/instructions/{instruction_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Instruction resource name, format:
+   * projects/{project_id}/instructions/{instruction_id}
+   * 
+ * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Evaluation.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Evaluation.java similarity index 74% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Evaluation.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Evaluation.java index 05b516cd..05ad66ca 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Evaluation.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Evaluation.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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Describes an evaluation between a machine learning model's predictions and
  * ground truth labels. Created when an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] runs successfully.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.Evaluation}
  */
-public final class Evaluation extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Evaluation extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.Evaluation)
     EvaluationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Evaluation.newBuilder() to construct.
   private Evaluation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Evaluation() {
     name_ = "";
     annotationType_ = 0;
@@ -45,15 +27,16 @@ private Evaluation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Evaluation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Evaluation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,96 +55,82 @@ private Evaluation(
           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.datalabeling.v1beta1.EvaluationConfig.Builder subBuilder = null;
+            if (config_ != null) {
+              subBuilder = config_.toBuilder();
             }
-          case 18:
-            {
-              com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder subBuilder = null;
-              if (config_ != null) {
-                subBuilder = config_.toBuilder();
-              }
-              config_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.EvaluationConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(config_);
-                config_ = subBuilder.buildPartial();
-              }
-
-              break;
+            config_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.EvaluationConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(config_);
+              config_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.protobuf.Timestamp.Builder subBuilder = null;
-              if (evaluationJobRunTime_ != null) {
-                subBuilder = evaluationJobRunTime_.toBuilder();
-              }
-              evaluationJobRunTime_ =
-                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(evaluationJobRunTime_);
-                evaluationJobRunTime_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 26: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (evaluationJobRunTime_ != null) {
+              subBuilder = evaluationJobRunTime_.toBuilder();
             }
-          case 34:
-            {
-              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;
+            evaluationJobRunTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(evaluationJobRunTime_);
+              evaluationJobRunTime_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          case 34: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 42:
-            {
-              com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder subBuilder = null;
-              if (evaluationMetrics_ != null) {
-                subBuilder = evaluationMetrics_.toBuilder();
-              }
-              evaluationMetrics_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(evaluationMetrics_);
-                evaluationMetrics_ = subBuilder.buildPartial();
-              }
-
-              break;
+            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(createTime_);
+              createTime_ = subBuilder.buildPartial();
             }
-          case 48:
-            {
-              int rawValue = input.readEnum();
 
-              annotationType_ = rawValue;
-              break;
+            break;
+          }
+          case 42: {
+            com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder subBuilder = null;
+            if (evaluationMetrics_ != null) {
+              subBuilder = evaluationMetrics_.toBuilder();
             }
-          case 56:
-            {
-              evaluatedItemCount_ = input.readInt64();
-              break;
+            evaluationMetrics_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(evaluationMetrics_);
+              evaluationMetrics_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+
+            break;
+          }
+          case 48: {
+            int rawValue = input.readEnum();
+
+            annotationType_ = rawValue;
+            break;
+          }
+          case 56: {
+
+            evaluatedItemCount_ = input.readInt64();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -169,33 +138,29 @@ private Evaluation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_Evaluation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Evaluation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_Evaluation_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Evaluation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.Evaluation.class,
-            com.google.cloud.datalabeling.v1beta1.Evaluation.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.Evaluation.class, com.google.cloud.datalabeling.v1beta1.Evaluation.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Output only. Resource name of an evaluation. The name has the following
    * format:
@@ -203,7 +168,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -212,15 +176,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 an evaluation. The name has the following
    * format:
@@ -228,15 +191,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 { @@ -247,15 +211,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int CONFIG_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.EvaluationConfig config_; /** - * - * *
    * Output only. Options used in the evaluation job that created this
    * evaluation.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; - * * @return Whether the config field is set. */ @java.lang.Override @@ -263,26 +224,19 @@ public boolean hasConfig() { return config_ != null; } /** - * - * *
    * Output only. Options used in the evaluation job that created this
    * evaluation.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; - * * @return The config. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EvaluationConfig getConfig() { - return config_ == null - ? com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance() : config_; } /** - * - * *
    * Output only. Options used in the evaluation job that created this
    * evaluation.
@@ -298,15 +252,12 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder getConfig
   public static final int EVALUATION_JOB_RUN_TIME_FIELD_NUMBER = 3;
   private com.google.protobuf.Timestamp evaluationJobRunTime_;
   /**
-   *
-   *
    * 
    * Output only. Timestamp for when the evaluation job that created this
    * evaluation ran.
    * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; - * * @return Whether the evaluationJobRunTime field is set. */ @java.lang.Override @@ -314,26 +265,19 @@ public boolean hasEvaluationJobRunTime() { return evaluationJobRunTime_ != null; } /** - * - * *
    * Output only. Timestamp for when the evaluation job that created this
    * evaluation ran.
    * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; - * * @return The evaluationJobRunTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEvaluationJobRunTime() { - return evaluationJobRunTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : evaluationJobRunTime_; + return evaluationJobRunTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : evaluationJobRunTime_; } /** - * - * *
    * Output only. Timestamp for when the evaluation job that created this
    * evaluation ran.
@@ -349,14 +293,11 @@ public com.google.protobuf.TimestampOrBuilder getEvaluationJobRunTimeOrBuilder()
   public static final int CREATE_TIME_FIELD_NUMBER = 4;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * Output only. Timestamp for when this evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 4; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -364,14 +305,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Timestamp for when this evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 4; - * * @return The createTime. */ @java.lang.Override @@ -379,8 +317,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Timestamp for when this evaluation was created.
    * 
@@ -395,14 +331,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int EVALUATION_METRICS_FIELD_NUMBER = 5; private com.google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluationMetrics_; /** - * - * *
    * Output only. Metrics comparing predictions to ground truth labels.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; - * * @return Whether the evaluationMetrics field is set. */ @java.lang.Override @@ -410,25 +343,18 @@ public boolean hasEvaluationMetrics() { return evaluationMetrics_ != null; } /** - * - * *
    * Output only. Metrics comparing predictions to ground truth labels.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; - * * @return The evaluationMetrics. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics getEvaluationMetrics() { - return evaluationMetrics_ == null - ? com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.getDefaultInstance() - : evaluationMetrics_; + return evaluationMetrics_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.getDefaultInstance() : evaluationMetrics_; } /** - * - * *
    * Output only. Metrics comparing predictions to ground truth labels.
    * 
@@ -436,16 +362,13 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics getEvaluationMetr * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder - getEvaluationMetricsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder getEvaluationMetricsOrBuilder() { return getEvaluationMetrics(); } public static final int ANNOTATION_TYPE_FIELD_NUMBER = 6; private int annotationType_; /** - * - * *
    * Output only. Type of task that the model version being evaluated performs,
    * as defined in the
@@ -454,16 +377,12 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics getEvaluationMetr
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; - * * @return The enum numeric value on the wire for annotationType. */ - @java.lang.Override - public int getAnnotationTypeValue() { + @java.lang.Override public int getAnnotationTypeValue() { return annotationType_; } /** - * - * *
    * Output only. Type of task that the model version being evaluated performs,
    * as defined in the
@@ -472,24 +391,17 @@ public int getAnnotationTypeValue() {
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; - * * @return The annotationType. */ - @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType() { + @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationType result = - com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); - return result == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED - : result; + com.google.cloud.datalabeling.v1beta1.AnnotationType result = com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); + return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED : result; } public static final int EVALUATED_ITEM_COUNT_FIELD_NUMBER = 7; private long evaluatedItemCount_; /** - * - * *
    * Output only. The number of items in the ground truth dataset that were used
    * for this evaluation. Only populated when the evaulation is for certain
@@ -497,7 +409,6 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType()
    * 
* * int64 evaluated_item_count = 7; - * * @return The evaluatedItemCount. */ @java.lang.Override @@ -506,7 +417,6 @@ public long getEvaluatedItemCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -518,7 +428,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_); } @@ -534,9 +445,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (evaluationMetrics_ != null) { output.writeMessage(5, getEvaluationMetrics()); } - if (annotationType_ - != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED - .getNumber()) { + if (annotationType_ != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(6, annotationType_); } if (evaluatedItemCount_ != 0L) { @@ -555,25 +464,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (config_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConfig()); } if (evaluationJobRunTime_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEvaluationJobRunTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getEvaluationJobRunTime()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreateTime()); } if (evaluationMetrics_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEvaluationMetrics()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getEvaluationMetrics()); } - if (annotationType_ - != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, annotationType_); + if (annotationType_ != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, annotationType_); } if (evaluatedItemCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, evaluatedItemCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, evaluatedItemCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -583,33 +495,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.datalabeling.v1beta1.Evaluation)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.Evaluation other = - (com.google.cloud.datalabeling.v1beta1.Evaluation) obj; + com.google.cloud.datalabeling.v1beta1.Evaluation other = (com.google.cloud.datalabeling.v1beta1.Evaluation) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig().equals(other.getConfig())) return false; + if (!getConfig() + .equals(other.getConfig())) return false; } if (hasEvaluationJobRunTime() != other.hasEvaluationJobRunTime()) return false; if (hasEvaluationJobRunTime()) { - if (!getEvaluationJobRunTime().equals(other.getEvaluationJobRunTime())) return false; + if (!getEvaluationJobRunTime() + .equals(other.getEvaluationJobRunTime())) 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 (hasEvaluationMetrics() != other.hasEvaluationMetrics()) return false; if (hasEvaluationMetrics()) { - if (!getEvaluationMetrics().equals(other.getEvaluationMetrics())) return false; + if (!getEvaluationMetrics() + .equals(other.getEvaluationMetrics())) return false; } if (annotationType_ != other.annotationType_) return false; - if (getEvaluatedItemCount() != other.getEvaluatedItemCount()) return false; + if (getEvaluatedItemCount() + != other.getEvaluatedItemCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -642,110 +559,104 @@ public int hashCode() { hash = (37 * hash) + ANNOTATION_TYPE_FIELD_NUMBER; hash = (53 * hash) + annotationType_; hash = (37 * hash) + EVALUATED_ITEM_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEvaluatedItemCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getEvaluatedItemCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.Evaluation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.Evaluation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.Evaluation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.Evaluation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Describes an evaluation between a machine learning model's predictions and
    * ground truth labels. Created when an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] runs successfully.
@@ -753,23 +664,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.Evaluation}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.Evaluation)
       com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_Evaluation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Evaluation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_Evaluation_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Evaluation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.Evaluation.class,
-              com.google.cloud.datalabeling.v1beta1.Evaluation.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.Evaluation.class, com.google.cloud.datalabeling.v1beta1.Evaluation.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.Evaluation.newBuilder()
@@ -777,15 +686,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();
@@ -823,9 +733,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_Evaluation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Evaluation_descriptor;
     }
 
     @java.lang.Override
@@ -844,8 +754,7 @@ public com.google.cloud.datalabeling.v1beta1.Evaluation build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.Evaluation buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.Evaluation result =
-          new com.google.cloud.datalabeling.v1beta1.Evaluation(this);
+      com.google.cloud.datalabeling.v1beta1.Evaluation result = new com.google.cloud.datalabeling.v1beta1.Evaluation(this);
       result.name_ = name_;
       if (configBuilder_ == null) {
         result.config_ = config_;
@@ -877,39 +786,38 @@ public com.google.cloud.datalabeling.v1beta1.Evaluation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.Evaluation) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Evaluation) other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Evaluation)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -917,8 +825,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.Evaluation other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.Evaluation.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.Evaluation.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -972,8 +879,6 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. Resource name of an evaluation. The name has the following
      * format:
@@ -981,13 +886,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; @@ -996,8 +901,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Resource name of an evaluation. The name has the following
      * format:
@@ -1005,14 +908,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 { @@ -1020,8 +924,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Resource name of an evaluation. The name has the following
      * format:
@@ -1029,22 +931,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 an evaluation. The name has the following
      * format:
@@ -1052,18 +952,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 an evaluation. The name has the following
      * format:
@@ -1071,16 +968,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; @@ -1088,49 +985,36 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datalabeling.v1beta1.EvaluationConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationConfig, - com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder> - configBuilder_; + com.google.cloud.datalabeling.v1beta1.EvaluationConfig, com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder> configBuilder_; /** - * - * *
      * Output only. Options used in the evaluation job that created this
      * evaluation.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; - * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** - * - * *
      * Output only. Options used in the evaluation job that created this
      * evaluation.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; - * * @return The config. */ public com.google.cloud.datalabeling.v1beta1.EvaluationConfig getConfig() { if (configBuilder_ == null) { - return config_ == null - ? com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance() - : config_; + return config_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance() : config_; } else { return configBuilder_.getMessage(); } } /** - * - * *
      * Output only. Options used in the evaluation job that created this
      * evaluation.
@@ -1152,8 +1036,6 @@ public Builder setConfig(com.google.cloud.datalabeling.v1beta1.EvaluationConfig
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Options used in the evaluation job that created this
      * evaluation.
@@ -1173,8 +1055,6 @@ public Builder setConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Options used in the evaluation job that created this
      * evaluation.
@@ -1186,9 +1066,7 @@ public Builder mergeConfig(com.google.cloud.datalabeling.v1beta1.EvaluationConfi
       if (configBuilder_ == null) {
         if (config_ != null) {
           config_ =
-              com.google.cloud.datalabeling.v1beta1.EvaluationConfig.newBuilder(config_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.datalabeling.v1beta1.EvaluationConfig.newBuilder(config_).mergeFrom(value).buildPartial();
         } else {
           config_ = value;
         }
@@ -1200,8 +1078,6 @@ public Builder mergeConfig(com.google.cloud.datalabeling.v1beta1.EvaluationConfi
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Options used in the evaluation job that created this
      * evaluation.
@@ -1221,8 +1097,6 @@ public Builder clearConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Options used in the evaluation job that created this
      * evaluation.
@@ -1231,13 +1105,11 @@ public Builder clearConfig() {
      * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2;
      */
     public com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder getConfigBuilder() {
-
+      
       onChanged();
       return getConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. Options used in the evaluation job that created this
      * evaluation.
@@ -1249,14 +1121,11 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder getConfig
       if (configBuilder_ != null) {
         return configBuilder_.getMessageOrBuilder();
       } else {
-        return config_ == null
-            ? com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance()
-            : config_;
+        return config_ == null ?
+            com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance() : config_;
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Options used in the evaluation job that created this
      * evaluation.
@@ -1265,17 +1134,14 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder getConfig
      * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.EvaluationConfig,
-            com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder,
-            com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder>
+        com.google.cloud.datalabeling.v1beta1.EvaluationConfig, com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder> 
         getConfigFieldBuilder() {
       if (configBuilder_ == null) {
-        configBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.datalabeling.v1beta1.EvaluationConfig,
-                com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder,
-                com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder>(
-                getConfig(), getParentForChildren(), isClean());
+        configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.datalabeling.v1beta1.EvaluationConfig, com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder>(
+                getConfig(),
+                getParentForChildren(),
+                isClean());
         config_ = null;
       }
       return configBuilder_;
@@ -1283,49 +1149,36 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder getConfig
 
     private com.google.protobuf.Timestamp evaluationJobRunTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
-        evaluationJobRunTimeBuilder_;
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> evaluationJobRunTimeBuilder_;
     /**
-     *
-     *
      * 
      * Output only. Timestamp for when the evaluation job that created this
      * evaluation ran.
      * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; - * * @return Whether the evaluationJobRunTime field is set. */ public boolean hasEvaluationJobRunTime() { return evaluationJobRunTimeBuilder_ != null || evaluationJobRunTime_ != null; } /** - * - * *
      * Output only. Timestamp for when the evaluation job that created this
      * evaluation ran.
      * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; - * * @return The evaluationJobRunTime. */ public com.google.protobuf.Timestamp getEvaluationJobRunTime() { if (evaluationJobRunTimeBuilder_ == null) { - return evaluationJobRunTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : evaluationJobRunTime_; + return evaluationJobRunTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : evaluationJobRunTime_; } else { return evaluationJobRunTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Timestamp for when the evaluation job that created this
      * evaluation ran.
@@ -1347,8 +1200,6 @@ public Builder setEvaluationJobRunTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Timestamp for when the evaluation job that created this
      * evaluation ran.
@@ -1356,7 +1207,8 @@ public Builder setEvaluationJobRunTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp evaluation_job_run_time = 3;
      */
-    public Builder setEvaluationJobRunTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEvaluationJobRunTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (evaluationJobRunTimeBuilder_ == null) {
         evaluationJobRunTime_ = builderForValue.build();
         onChanged();
@@ -1367,8 +1219,6 @@ public Builder setEvaluationJobRunTime(com.google.protobuf.Timestamp.Builder bui
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Timestamp for when the evaluation job that created this
      * evaluation ran.
@@ -1380,9 +1230,7 @@ public Builder mergeEvaluationJobRunTime(com.google.protobuf.Timestamp value) {
       if (evaluationJobRunTimeBuilder_ == null) {
         if (evaluationJobRunTime_ != null) {
           evaluationJobRunTime_ =
-              com.google.protobuf.Timestamp.newBuilder(evaluationJobRunTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(evaluationJobRunTime_).mergeFrom(value).buildPartial();
         } else {
           evaluationJobRunTime_ = value;
         }
@@ -1394,8 +1242,6 @@ public Builder mergeEvaluationJobRunTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Timestamp for when the evaluation job that created this
      * evaluation ran.
@@ -1415,8 +1261,6 @@ public Builder clearEvaluationJobRunTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Timestamp for when the evaluation job that created this
      * evaluation ran.
@@ -1425,13 +1269,11 @@ public Builder clearEvaluationJobRunTime() {
      * .google.protobuf.Timestamp evaluation_job_run_time = 3;
      */
     public com.google.protobuf.Timestamp.Builder getEvaluationJobRunTimeBuilder() {
-
+      
       onChanged();
       return getEvaluationJobRunTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output only. Timestamp for when the evaluation job that created this
      * evaluation ran.
@@ -1443,14 +1285,11 @@ public com.google.protobuf.TimestampOrBuilder getEvaluationJobRunTimeOrBuilder()
       if (evaluationJobRunTimeBuilder_ != null) {
         return evaluationJobRunTimeBuilder_.getMessageOrBuilder();
       } else {
-        return evaluationJobRunTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : evaluationJobRunTime_;
+        return evaluationJobRunTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : evaluationJobRunTime_;
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Timestamp for when the evaluation job that created this
      * evaluation ran.
@@ -1459,17 +1298,14 @@ public com.google.protobuf.TimestampOrBuilder getEvaluationJobRunTimeOrBuilder()
      * .google.protobuf.Timestamp evaluation_job_run_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> 
         getEvaluationJobRunTimeFieldBuilder() {
       if (evaluationJobRunTimeBuilder_ == null) {
-        evaluationJobRunTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getEvaluationJobRunTime(), getParentForChildren(), isClean());
+        evaluationJobRunTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getEvaluationJobRunTime(),
+                getParentForChildren(),
+                isClean());
         evaluationJobRunTime_ = null;
       }
       return evaluationJobRunTimeBuilder_;
@@ -1477,47 +1313,34 @@ public com.google.protobuf.TimestampOrBuilder getEvaluationJobRunTimeOrBuilder()
 
     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 for when this evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 4; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Timestamp for when this evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 4; - * * @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 for when this evaluation was created.
      * 
@@ -1538,15 +1361,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp for when this evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 4; */ - 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(); @@ -1557,8 +1379,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Timestamp for when this evaluation was created.
      * 
@@ -1569,7 +1389,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; } @@ -1581,8 +1401,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp for when this evaluation was created.
      * 
@@ -1601,8 +1419,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Timestamp for when this evaluation was created.
      * 
@@ -1610,13 +1426,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 4; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Timestamp for when this evaluation was created.
      * 
@@ -1627,14 +1441,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 for when this evaluation was created.
      * 
@@ -1642,17 +1453,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_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> 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_; @@ -1660,55 +1468,41 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluationMetrics_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics, - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder, - com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder> - evaluationMetricsBuilder_; + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics, com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder> evaluationMetricsBuilder_; /** - * - * *
      * Output only. Metrics comparing predictions to ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; - * * @return Whether the evaluationMetrics field is set. */ public boolean hasEvaluationMetrics() { return evaluationMetricsBuilder_ != null || evaluationMetrics_ != null; } /** - * - * *
      * Output only. Metrics comparing predictions to ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; - * * @return The evaluationMetrics. */ public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics getEvaluationMetrics() { if (evaluationMetricsBuilder_ == null) { - return evaluationMetrics_ == null - ? com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.getDefaultInstance() - : evaluationMetrics_; + return evaluationMetrics_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.getDefaultInstance() : evaluationMetrics_; } else { return evaluationMetricsBuilder_.getMessage(); } } /** - * - * *
      * Output only. Metrics comparing predictions to ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; */ - public Builder setEvaluationMetrics( - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics value) { + public Builder setEvaluationMetrics(com.google.cloud.datalabeling.v1beta1.EvaluationMetrics value) { if (evaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1722,8 +1516,6 @@ public Builder setEvaluationMetrics( return this; } /** - * - * *
      * Output only. Metrics comparing predictions to ground truth labels.
      * 
@@ -1742,22 +1534,17 @@ public Builder setEvaluationMetrics( return this; } /** - * - * *
      * Output only. Metrics comparing predictions to ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; */ - public Builder mergeEvaluationMetrics( - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics value) { + public Builder mergeEvaluationMetrics(com.google.cloud.datalabeling.v1beta1.EvaluationMetrics value) { if (evaluationMetricsBuilder_ == null) { if (evaluationMetrics_ != null) { evaluationMetrics_ = - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.newBuilder(evaluationMetrics_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.newBuilder(evaluationMetrics_).mergeFrom(value).buildPartial(); } else { evaluationMetrics_ = value; } @@ -1769,8 +1556,6 @@ public Builder mergeEvaluationMetrics( return this; } /** - * - * *
      * Output only. Metrics comparing predictions to ground truth labels.
      * 
@@ -1789,42 +1574,33 @@ public Builder clearEvaluationMetrics() { return this; } /** - * - * *
      * Output only. Metrics comparing predictions to ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; */ - public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder - getEvaluationMetricsBuilder() { - + public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder getEvaluationMetricsBuilder() { + onChanged(); return getEvaluationMetricsFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Metrics comparing predictions to ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; */ - public com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder - getEvaluationMetricsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder getEvaluationMetricsOrBuilder() { if (evaluationMetricsBuilder_ != null) { return evaluationMetricsBuilder_.getMessageOrBuilder(); } else { - return evaluationMetrics_ == null - ? com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.getDefaultInstance() - : evaluationMetrics_; + return evaluationMetrics_ == null ? + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.getDefaultInstance() : evaluationMetrics_; } } /** - * - * *
      * Output only. Metrics comparing predictions to ground truth labels.
      * 
@@ -1832,17 +1608,14 @@ public Builder clearEvaluationMetrics() { * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics, - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder, - com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder> + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics, com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder> getEvaluationMetricsFieldBuilder() { if (evaluationMetricsBuilder_ == null) { - evaluationMetricsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics, - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder, - com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder>( - getEvaluationMetrics(), getParentForChildren(), isClean()); + evaluationMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics, com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder>( + getEvaluationMetrics(), + getParentForChildren(), + isClean()); evaluationMetrics_ = null; } return evaluationMetricsBuilder_; @@ -1850,8 +1623,6 @@ public Builder clearEvaluationMetrics() { private int annotationType_ = 0; /** - * - * *
      * Output only. Type of task that the model version being evaluated performs,
      * as defined in the
@@ -1860,16 +1631,12 @@ public Builder clearEvaluationMetrics() {
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; - * * @return The enum numeric value on the wire for annotationType. */ - @java.lang.Override - public int getAnnotationTypeValue() { + @java.lang.Override public int getAnnotationTypeValue() { return annotationType_; } /** - * - * *
      * Output only. Type of task that the model version being evaluated performs,
      * as defined in the
@@ -1878,19 +1645,16 @@ public int getAnnotationTypeValue() {
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; - * * @param value The enum numeric value on the wire for annotationType to set. * @return This builder for chaining. */ public Builder setAnnotationTypeValue(int value) { - + annotationType_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Type of task that the model version being evaluated performs,
      * as defined in the
@@ -1899,21 +1663,15 @@ public Builder setAnnotationTypeValue(int value) {
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; - * * @return The annotationType. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationType result = - com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); - return result == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED - : result; + com.google.cloud.datalabeling.v1beta1.AnnotationType result = com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); + return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Type of task that the model version being evaluated performs,
      * as defined in the
@@ -1922,7 +1680,6 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType()
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; - * * @param value The annotationType to set. * @return This builder for chaining. */ @@ -1930,14 +1687,12 @@ public Builder setAnnotationType(com.google.cloud.datalabeling.v1beta1.Annotatio if (value == null) { throw new NullPointerException(); } - + annotationType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. Type of task that the model version being evaluated performs,
      * as defined in the
@@ -1946,20 +1701,17 @@ public Builder setAnnotationType(com.google.cloud.datalabeling.v1beta1.Annotatio
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; - * * @return This builder for chaining. */ public Builder clearAnnotationType() { - + annotationType_ = 0; onChanged(); return this; } - private long evaluatedItemCount_; + private long evaluatedItemCount_ ; /** - * - * *
      * Output only. The number of items in the ground truth dataset that were used
      * for this evaluation. Only populated when the evaulation is for certain
@@ -1967,7 +1719,6 @@ public Builder clearAnnotationType() {
      * 
* * int64 evaluated_item_count = 7; - * * @return The evaluatedItemCount. */ @java.lang.Override @@ -1975,8 +1726,6 @@ public long getEvaluatedItemCount() { return evaluatedItemCount_; } /** - * - * *
      * Output only. The number of items in the ground truth dataset that were used
      * for this evaluation. Only populated when the evaulation is for certain
@@ -1984,19 +1733,16 @@ public long getEvaluatedItemCount() {
      * 
* * int64 evaluated_item_count = 7; - * * @param value The evaluatedItemCount to set. * @return This builder for chaining. */ public Builder setEvaluatedItemCount(long value) { - + evaluatedItemCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The number of items in the ground truth dataset that were used
      * for this evaluation. Only populated when the evaulation is for certain
@@ -2004,18 +1750,17 @@ public Builder setEvaluatedItemCount(long value) {
      * 
* * int64 evaluated_item_count = 7; - * * @return This builder for chaining. */ public Builder clearEvaluatedItemCount() { - + evaluatedItemCount_ = 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); } @@ -2025,12 +1770,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.Evaluation) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Evaluation) private static final com.google.cloud.datalabeling.v1beta1.Evaluation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.Evaluation(); } @@ -2039,16 +1784,16 @@ public static com.google.cloud.datalabeling.v1beta1.Evaluation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Evaluation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Evaluation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Evaluation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Evaluation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2063,4 +1808,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.Evaluation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfig.java similarity index 63% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfig.java index 5e87ae14..98ec63d5 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfig.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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Configuration details used for calculating evaluation metrics and creating an
  * [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation].
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationConfig}
  */
-public final class EvaluationConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class EvaluationConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.EvaluationConfig)
     EvaluationConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use EvaluationConfig.newBuilder() to construct.
   private EvaluationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private EvaluationConfig() {}
+  private EvaluationConfig() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new EvaluationConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private EvaluationConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,36 +53,27 @@ private EvaluationConfig(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder
-                  subBuilder = null;
-              if (verticalOptionCase_ == 1) {
-                subBuilder =
-                    ((com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions)
-                            verticalOption_)
-                        .toBuilder();
-              }
-              verticalOption_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions)
-                        verticalOption_);
-                verticalOption_ = subBuilder.buildPartial();
-              }
-              verticalOptionCase_ = 1;
-              break;
+          case 10: {
+            com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder subBuilder = null;
+            if (verticalOptionCase_ == 1) {
+              subBuilder = ((com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_).toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            verticalOption_ =
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_);
+              verticalOption_ = subBuilder.buildPartial();
             }
+            verticalOptionCase_ = 1;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -106,39 +81,34 @@ private EvaluationConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.EvaluationConfig.class,
-            com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.EvaluationConfig.class, com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder.class);
   }
 
   private int verticalOptionCase_ = 0;
   private java.lang.Object verticalOption_;
-
   public enum VerticalOptionCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     BOUNDING_BOX_EVALUATION_OPTIONS(1),
     VERTICALOPTION_NOT_SET(0);
     private final int value;
-
     private VerticalOptionCase(int value) {
       this.value = value;
     }
@@ -154,38 +124,31 @@ public static VerticalOptionCase valueOf(int value) {
 
     public static VerticalOptionCase forNumber(int value) {
       switch (value) {
-        case 1:
-          return BOUNDING_BOX_EVALUATION_OPTIONS;
-        case 0:
-          return VERTICALOPTION_NOT_SET;
-        default:
-          return null;
+        case 1: return BOUNDING_BOX_EVALUATION_OPTIONS;
+        case 0: return VERTICALOPTION_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public VerticalOptionCase getVerticalOptionCase() {
-    return VerticalOptionCase.forNumber(verticalOptionCase_);
+  public VerticalOptionCase
+  getVerticalOptionCase() {
+    return VerticalOptionCase.forNumber(
+        verticalOptionCase_);
   }
 
   public static final int BOUNDING_BOX_EVALUATION_OPTIONS_FIELD_NUMBER = 1;
   /**
-   *
-   *
    * 
    * Only specify this field if the related model performs image object
    * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
    * bounding boxes.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; - * - * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; * @return Whether the boundingBoxEvaluationOptions field is set. */ @java.lang.Override @@ -193,52 +156,40 @@ public boolean hasBoundingBoxEvaluationOptions() { return verticalOptionCase_ == 1; } /** - * - * *
    * Only specify this field if the related model performs image object
    * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
    * bounding boxes.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; - * - * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; * @return The boundingBoxEvaluationOptions. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions - getBoundingBoxEvaluationOptions() { + public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions getBoundingBoxEvaluationOptions() { if (verticalOptionCase_ == 1) { - return (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_; + return (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_; } return com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.getDefaultInstance(); } /** - * - * *
    * Only specify this field if the related model performs image object
    * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
    * bounding boxes.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; - * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder - getBoundingBoxEvaluationOptionsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder getBoundingBoxEvaluationOptionsOrBuilder() { if (verticalOptionCase_ == 1) { - return (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_; + return (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_; } return com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,10 +201,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 { if (verticalOptionCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_); + output.writeMessage(1, (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_); } unknownFields.writeTo(output); } @@ -265,10 +216,8 @@ public int getSerializedSize() { size = 0; if (verticalOptionCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, - (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -278,19 +227,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.datalabeling.v1beta1.EvaluationConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.EvaluationConfig other = - (com.google.cloud.datalabeling.v1beta1.EvaluationConfig) obj; + com.google.cloud.datalabeling.v1beta1.EvaluationConfig other = (com.google.cloud.datalabeling.v1beta1.EvaluationConfig) obj; if (!getVerticalOptionCase().equals(other.getVerticalOptionCase())) return false; switch (verticalOptionCase_) { case 1: - if (!getBoundingBoxEvaluationOptions().equals(other.getBoundingBoxEvaluationOptions())) - return false; + if (!getBoundingBoxEvaluationOptions() + .equals(other.getBoundingBoxEvaluationOptions())) return false; break; case 0: default: @@ -320,104 +268,96 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig 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.datalabeling.v1beta1.EvaluationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.EvaluationConfig prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.EvaluationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configuration details used for calculating evaluation metrics and creating an
    * [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation].
@@ -425,23 +365,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.EvaluationConfig)
       com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.EvaluationConfig.class,
-              com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.EvaluationConfig.class, com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.EvaluationConfig.newBuilder()
@@ -449,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();
@@ -467,9 +406,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor;
     }
 
     @java.lang.Override
@@ -488,8 +427,7 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfig build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.EvaluationConfig buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.EvaluationConfig result =
-          new com.google.cloud.datalabeling.v1beta1.EvaluationConfig(this);
+      com.google.cloud.datalabeling.v1beta1.EvaluationConfig result = new com.google.cloud.datalabeling.v1beta1.EvaluationConfig(this);
       if (verticalOptionCase_ == 1) {
         if (boundingBoxEvaluationOptionsBuilder_ == null) {
           result.verticalOption_ = verticalOption_;
@@ -506,39 +444,38 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.EvaluationConfig) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.EvaluationConfig) other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.EvaluationConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -546,18 +483,15 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.EvaluationConfig other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance()) return this;
       switch (other.getVerticalOptionCase()) {
-        case BOUNDING_BOX_EVALUATION_OPTIONS:
-          {
-            mergeBoundingBoxEvaluationOptions(other.getBoundingBoxEvaluationOptions());
-            break;
-          }
-        case VERTICALOPTION_NOT_SET:
-          {
-            break;
-          }
+        case BOUNDING_BOX_EVALUATION_OPTIONS: {
+          mergeBoundingBoxEvaluationOptions(other.getBoundingBoxEvaluationOptions());
+          break;
+        }
+        case VERTICALOPTION_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -578,8 +512,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.datalabeling.v1beta1.EvaluationConfig) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.datalabeling.v1beta1.EvaluationConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -588,12 +521,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int verticalOptionCase_ = 0;
     private java.lang.Object verticalOption_;
-
-    public VerticalOptionCase getVerticalOptionCase() {
-      return VerticalOptionCase.forNumber(verticalOptionCase_);
+    public VerticalOptionCase
+        getVerticalOptionCase() {
+      return VerticalOptionCase.forNumber(
+          verticalOptionCase_);
     }
 
     public Builder clearVerticalOption() {
@@ -603,24 +536,17 @@ public Builder clearVerticalOption() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions,
-            com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder,
-            com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder>
-        boundingBoxEvaluationOptionsBuilder_;
+        com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions, com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder, com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder> boundingBoxEvaluationOptionsBuilder_;
     /**
-     *
-     *
      * 
      * Only specify this field if the related model performs image object
      * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
      * bounding boxes.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; - * - * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; * @return Whether the boundingBoxEvaluationOptions field is set. */ @java.lang.Override @@ -628,53 +554,39 @@ public boolean hasBoundingBoxEvaluationOptions() { return verticalOptionCase_ == 1; } /** - * - * *
      * Only specify this field if the related model performs image object
      * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
      * bounding boxes.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; - * - * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; * @return The boundingBoxEvaluationOptions. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions - getBoundingBoxEvaluationOptions() { + public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions getBoundingBoxEvaluationOptions() { if (boundingBoxEvaluationOptionsBuilder_ == null) { if (verticalOptionCase_ == 1) { - return (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) - verticalOption_; + return (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_; } - return com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.getDefaultInstance(); } else { if (verticalOptionCase_ == 1) { return boundingBoxEvaluationOptionsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.getDefaultInstance(); } } /** - * - * *
      * Only specify this field if the related model performs image object
      * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
      * bounding boxes.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; - * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; */ - public Builder setBoundingBoxEvaluationOptions( - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions value) { + public Builder setBoundingBoxEvaluationOptions(com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions value) { if (boundingBoxEvaluationOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -688,21 +600,16 @@ public Builder setBoundingBoxEvaluationOptions( return this; } /** - * - * *
      * Only specify this field if the related model performs image object
      * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
      * bounding boxes.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; - * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; */ public Builder setBoundingBoxEvaluationOptions( - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder - builderForValue) { + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder builderForValue) { if (boundingBoxEvaluationOptionsBuilder_ == null) { verticalOption_ = builderForValue.build(); onChanged(); @@ -713,31 +620,20 @@ public Builder setBoundingBoxEvaluationOptions( return this; } /** - * - * *
      * Only specify this field if the related model performs image object
      * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
      * bounding boxes.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; - * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; */ - public Builder mergeBoundingBoxEvaluationOptions( - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions value) { + public Builder mergeBoundingBoxEvaluationOptions(com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions value) { if (boundingBoxEvaluationOptionsBuilder_ == null) { - if (verticalOptionCase_ == 1 - && verticalOption_ - != com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions - .getDefaultInstance()) { - verticalOption_ = - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.newBuilder( - (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) - verticalOption_) - .mergeFrom(value) - .buildPartial(); + if (verticalOptionCase_ == 1 && + verticalOption_ != com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.getDefaultInstance()) { + verticalOption_ = com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.newBuilder((com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_) + .mergeFrom(value).buildPartial(); } else { verticalOption_ = value; } @@ -753,17 +649,13 @@ public Builder mergeBoundingBoxEvaluationOptions( return this; } /** - * - * *
      * Only specify this field if the related model performs image object
      * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
      * bounding boxes.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; - * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; */ public Builder clearBoundingBoxEvaluationOptions() { if (boundingBoxEvaluationOptionsBuilder_ == null) { @@ -782,92 +674,67 @@ public Builder clearBoundingBoxEvaluationOptions() { return this; } /** - * - * *
      * Only specify this field if the related model performs image object
      * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
      * bounding boxes.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; - * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; */ - public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder - getBoundingBoxEvaluationOptionsBuilder() { + public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder getBoundingBoxEvaluationOptionsBuilder() { return getBoundingBoxEvaluationOptionsFieldBuilder().getBuilder(); } /** - * - * *
      * Only specify this field if the related model performs image object
      * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
      * bounding boxes.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; - * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder - getBoundingBoxEvaluationOptionsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder getBoundingBoxEvaluationOptionsOrBuilder() { if ((verticalOptionCase_ == 1) && (boundingBoxEvaluationOptionsBuilder_ != null)) { return boundingBoxEvaluationOptionsBuilder_.getMessageOrBuilder(); } else { if (verticalOptionCase_ == 1) { - return (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) - verticalOption_; + return (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_; } - return com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.getDefaultInstance(); } } /** - * - * *
      * Only specify this field if the related model performs image object
      * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
      * bounding boxes.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; - * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions, - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder, - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder> + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions, com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder, com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder> getBoundingBoxEvaluationOptionsFieldBuilder() { if (boundingBoxEvaluationOptionsBuilder_ == null) { if (!(verticalOptionCase_ == 1)) { - verticalOption_ = - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions - .getDefaultInstance(); + verticalOption_ = com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.getDefaultInstance(); } - boundingBoxEvaluationOptionsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions, - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder, - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) - verticalOption_, + boundingBoxEvaluationOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions, com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder, com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_, getParentForChildren(), isClean()); verticalOption_ = null; } verticalOptionCase_ = 1; - onChanged(); - ; + onChanged();; return boundingBoxEvaluationOptionsBuilder_; } - @java.lang.Override - 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 +744,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.EvaluationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.EvaluationConfig) private static final com.google.cloud.datalabeling.v1beta1.EvaluationConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.EvaluationConfig(); } @@ -891,16 +758,16 @@ public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvaluationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvaluationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvaluationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -915,4 +782,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.EvaluationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfigOrBuilder.java similarity index 51% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfigOrBuilder.java index e6086ad7..52eed7c3 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfigOrBuilder.java @@ -1,77 +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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; -public interface EvaluationConfigOrBuilder - extends +public interface EvaluationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.EvaluationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Only specify this field if the related model performs image object
    * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
    * bounding boxes.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; - * - * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; * @return Whether the boundingBoxEvaluationOptions field is set. */ boolean hasBoundingBoxEvaluationOptions(); /** - * - * *
    * Only specify this field if the related model performs image object
    * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
    * bounding boxes.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; - * - * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; * @return The boundingBoxEvaluationOptions. */ - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions - getBoundingBoxEvaluationOptions(); + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions getBoundingBoxEvaluationOptions(); /** - * - * *
    * Only specify this field if the related model performs image object
    * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
    * bounding boxes.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; - * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; */ - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder - getBoundingBoxEvaluationOptionsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder getBoundingBoxEvaluationOptionsOrBuilder(); - public com.google.cloud.datalabeling.v1beta1.EvaluationConfig.VerticalOptionCase - getVerticalOptionCase(); + public com.google.cloud.datalabeling.v1beta1.EvaluationConfig.VerticalOptionCase getVerticalOptionCase(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJob.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJob.java similarity index 78% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJob.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJob.java index 05f01bdf..7e2cd838 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJob.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJob.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/datalabeling/v1beta1/evaluation_job.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Defines an evaluation job that runs periodically to generate
  * [Evaluations][google.cloud.datalabeling.v1beta1.Evaluation]. [Creating an evaluation
@@ -30,16 +13,15 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJob}
  */
-public final class EvaluationJob extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class EvaluationJob extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.EvaluationJob)
     EvaluationJobOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use EvaluationJob.newBuilder() to construct.
   private EvaluationJob(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private EvaluationJob() {
     name_ = "";
     description_ = "";
@@ -52,15 +34,16 @@ private EvaluationJob() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new EvaluationJob();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private EvaluationJob(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -80,104 +63,89 @@ private EvaluationJob(
           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();
 
-              description_ = s;
-              break;
-            }
-          case 24:
-            {
-              int rawValue = input.readEnum();
+            description_ = s;
+            break;
+          }
+          case 24: {
+            int rawValue = input.readEnum();
 
-              state_ = rawValue;
-              break;
-            }
-          case 34:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            state_ = rawValue;
+            break;
+          }
+          case 34: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              schedule_ = s;
-              break;
-            }
-          case 42:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            schedule_ = s;
+            break;
+          }
+          case 42: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              modelVersion_ = s;
-              break;
+            modelVersion_ = s;
+            break;
+          }
+          case 50: {
+            com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder subBuilder = null;
+            if (evaluationJobConfig_ != null) {
+              subBuilder = evaluationJobConfig_.toBuilder();
             }
-          case 50:
-            {
-              com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder subBuilder = null;
-              if (evaluationJobConfig_ != null) {
-                subBuilder = evaluationJobConfig_.toBuilder();
-              }
-              evaluationJobConfig_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(evaluationJobConfig_);
-                evaluationJobConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
+            evaluationJobConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(evaluationJobConfig_);
+              evaluationJobConfig_ = subBuilder.buildPartial();
             }
-          case 58:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
 
-              annotationSpecSet_ = s;
-              break;
-            }
-          case 64:
-            {
-              labelMissingGroundTruth_ = input.readBool();
-              break;
+            break;
+          }
+          case 58: {
+            java.lang.String s = input.readStringRequireUtf8();
+
+            annotationSpecSet_ = s;
+            break;
+          }
+          case 64: {
+
+            labelMissingGroundTruth_ = input.readBool();
+            break;
+          }
+          case 74: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              attempts_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 74:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                attempts_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              attempts_.add(
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.Attempt.parser(), extensionRegistry));
-              break;
+            attempts_.add(
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.Attempt.parser(), extensionRegistry));
+            break;
+          }
+          case 82: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (createTime_ != null) {
+              subBuilder = createTime_.toBuilder();
             }
-          case 82:
-            {
-              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();
             }
-          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) {
@@ -185,7 +153,8 @@ private EvaluationJob(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } 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)) {
         attempts_ = java.util.Collections.unmodifiableList(attempts_);
@@ -194,37 +163,33 @@ private EvaluationJob(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.EvaluationJob.class,
-            com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.EvaluationJob.class, com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder.class);
   }
 
   /**
-   *
-   *
    * 
    * State of the job.
    * 
* * Protobuf enum {@code google.cloud.datalabeling.v1beta1.EvaluationJob.State} */ - public enum State implements com.google.protobuf.ProtocolMessageEnum { - /** STATE_UNSPECIFIED = 0; */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + * STATE_UNSPECIFIED = 0; + */ STATE_UNSPECIFIED(0), /** - * - * *
      * The job is scheduled to run at the [configured interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. You
      * can [pause][google.cloud.datalabeling.v1beta1.DataLabelingService.PauseEvaluationJob] or
@@ -237,8 +202,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     SCHEDULED(1),
     /**
-     *
-     *
      * 
      * The job is currently running. When the job runs, Data Labeling Service
      * does several things:
@@ -269,8 +232,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     RUNNING(2),
     /**
-     *
-     *
      * 
      * The job is not sampling prediction input and output into your BigQuery
      * table and it will not run according to its schedule. You can
@@ -281,8 +242,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     PAUSED(3),
     /**
-     *
-     *
      * 
      * The job has this state right before it is deleted.
      * 
@@ -293,11 +252,11 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; - /** STATE_UNSPECIFIED = 0; */ + /** + * STATE_UNSPECIFIED = 0; + */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * The job is scheduled to run at the [configured interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. You
      * can [pause][google.cloud.datalabeling.v1beta1.DataLabelingService.PauseEvaluationJob] or
@@ -310,8 +269,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SCHEDULED_VALUE = 1;
     /**
-     *
-     *
      * 
      * The job is currently running. When the job runs, Data Labeling Service
      * does several things:
@@ -342,8 +299,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int RUNNING_VALUE = 2;
     /**
-     *
-     *
      * 
      * The job is not sampling prediction input and output into your BigQuery
      * table and it will not run according to its schedule. You can
@@ -354,8 +309,6 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int PAUSED_VALUE = 3;
     /**
-     *
-     *
      * 
      * The job has this state right before it is deleted.
      * 
@@ -364,6 +317,7 @@ public enum State implements com.google.protobuf.ProtocolMessageEnum { */ public static final int STOPPED_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -388,55 +342,51 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: - return STATE_UNSPECIFIED; - case 1: - return SCHEDULED; - case 2: - return RUNNING; - case 3: - return PAUSED; - case 4: - return STOPPED; - default: - return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { - return internalValueMap; + case 0: return STATE_UNSPECIFIED; + case 1: return SCHEDULED; + case 2: return RUNNING; + case 3: return PAUSED; + case 4: return STOPPED; + default: return null; + } } - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.forNumber(number); - } - }; + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + State> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.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.datalabeling.v1beta1.EvaluationJob.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDescriptor().getEnumTypes().get(0); } private static final State[] VALUES = values(); - public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -456,8 +406,6 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. After you create a job, Data Labeling Service assigns a name
    * to the job with the following format:
@@ -465,7 +413,6 @@ private State(int value) {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -474,15 +421,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. After you create a job, Data Labeling Service assigns a name
    * to the job with the following format:
@@ -490,15 +436,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 { @@ -509,15 +456,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** - * - * *
    * Required. Description of the job. The description can be up to 25,000
    * characters long.
    * 
* * string description = 2; - * * @return The description. */ @java.lang.Override @@ -526,30 +470,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; } } /** - * - * *
    * Required. Description of the job. The description can be up to 25,000
    * characters long.
    * 
* * string description = 2; - * * @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 { @@ -560,46 +504,33 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** - * - * *
    * Output only. Describes the current state of the job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
    * Output only. Describes the current state of the job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3; - * * @return The state. */ - @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.EvaluationJob.State getState() { + @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EvaluationJob.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.EvaluationJob.State result = - com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.valueOf(state_); - return result == null - ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.UNRECOGNIZED - : result; + com.google.cloud.datalabeling.v1beta1.EvaluationJob.State result = com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.valueOf(state_); + return result == null ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.UNRECOGNIZED : result; } public static final int SCHEDULE_FIELD_NUMBER = 4; private volatile java.lang.Object schedule_; /** - * - * *
    * Required. Describes the interval at which the job runs. This interval must
    * be at least 1 day, and it is rounded to the nearest day. For example, if
@@ -613,7 +544,6 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.State getState() {
    * 
* * string schedule = 4; - * * @return The schedule. */ @java.lang.Override @@ -622,15 +552,14 @@ public java.lang.String getSchedule() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schedule_ = s; return s; } } /** - * - * *
    * Required. Describes the interval at which the job runs. This interval must
    * be at least 1 day, and it is rounded to the nearest day. For example, if
@@ -644,15 +573,16 @@ public java.lang.String getSchedule() {
    * 
* * string schedule = 4; - * * @return The bytes for schedule. */ @java.lang.Override - public com.google.protobuf.ByteString getScheduleBytes() { + public com.google.protobuf.ByteString + getScheduleBytes() { java.lang.Object ref = schedule_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schedule_ = b; return b; } else { @@ -663,8 +593,6 @@ public com.google.protobuf.ByteString getScheduleBytes() { public static final int MODEL_VERSION_FIELD_NUMBER = 5; private volatile java.lang.Object modelVersion_; /** - * - * *
    * Required. The [AI Platform Prediction model
    * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
@@ -675,7 +603,6 @@ public com.google.protobuf.ByteString getScheduleBytes() {
    * 
* * string model_version = 5; - * * @return The modelVersion. */ @java.lang.Override @@ -684,15 +611,14 @@ public java.lang.String getModelVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelVersion_ = s; return s; } } /** - * - * *
    * Required. The [AI Platform Prediction model
    * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
@@ -703,15 +629,16 @@ public java.lang.String getModelVersion() {
    * 
* * string model_version = 5; - * * @return The bytes for modelVersion. */ @java.lang.Override - public com.google.protobuf.ByteString getModelVersionBytes() { + public com.google.protobuf.ByteString + getModelVersionBytes() { java.lang.Object ref = modelVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); modelVersion_ = b; return b; } else { @@ -722,14 +649,11 @@ public com.google.protobuf.ByteString getModelVersionBytes() { public static final int EVALUATION_JOB_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluationJobConfig_; /** - * - * *
    * Required. Configuration details for the evaluation job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; - * * @return Whether the evaluationJobConfig field is set. */ @java.lang.Override @@ -737,25 +661,18 @@ public boolean hasEvaluationJobConfig() { return evaluationJobConfig_ != null; } /** - * - * *
    * Required. Configuration details for the evaluation job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; - * * @return The evaluationJobConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig getEvaluationJobConfig() { - return evaluationJobConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.getDefaultInstance() - : evaluationJobConfig_; + return evaluationJobConfig_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.getDefaultInstance() : evaluationJobConfig_; } /** - * - * *
    * Required. Configuration details for the evaluation job.
    * 
@@ -763,16 +680,13 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig getEvaluationJo * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder - getEvaluationJobConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder getEvaluationJobConfigOrBuilder() { return getEvaluationJobConfig(); } public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER = 7; private volatile java.lang.Object annotationSpecSet_; /** - * - * *
    * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
    * labels that your machine learning model outputs. You must create this
@@ -782,7 +696,6 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig getEvaluationJo
    * 
* * string annotation_spec_set = 7; - * * @return The annotationSpecSet. */ @java.lang.Override @@ -791,15 +704,14 @@ public java.lang.String getAnnotationSpecSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; } } /** - * - * *
    * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
    * labels that your machine learning model outputs. You must create this
@@ -809,15 +721,16 @@ public java.lang.String getAnnotationSpecSet() {
    * 
* * string annotation_spec_set = 7; - * * @return The bytes for annotationSpecSet. */ @java.lang.Override - public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -828,8 +741,6 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { public static final int LABEL_MISSING_GROUND_TRUTH_FIELD_NUMBER = 8; private boolean labelMissingGroundTruth_; /** - * - * *
    * Required. Whether you want Data Labeling Service to provide ground truth
    * labels for prediction input. If you want the service to assign human
@@ -839,7 +750,6 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() {
    * 
* * bool label_missing_ground_truth = 8; - * * @return The labelMissingGroundTruth. */ @java.lang.Override @@ -850,8 +760,6 @@ public boolean getLabelMissingGroundTruth() { public static final int ATTEMPTS_FIELD_NUMBER = 9; private java.util.List attempts_; /** - * - * *
    * Output only. Every time the evaluation job runs and an error occurs, the
    * failed attempt is appended to this array.
@@ -864,8 +772,6 @@ public java.util.List getAttempts
     return attempts_;
   }
   /**
-   *
-   *
    * 
    * Output only. Every time the evaluation job runs and an error occurs, the
    * failed attempt is appended to this array.
@@ -874,13 +780,11 @@ public java.util.List getAttempts
    * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getAttemptsOrBuilderList() {
     return attempts_;
   }
   /**
-   *
-   *
    * 
    * Output only. Every time the evaluation job runs and an error occurs, the
    * failed attempt is appended to this array.
@@ -893,8 +797,6 @@ public int getAttemptsCount() {
     return attempts_.size();
   }
   /**
-   *
-   *
    * 
    * Output only. Every time the evaluation job runs and an error occurs, the
    * failed attempt is appended to this array.
@@ -907,8 +809,6 @@ public com.google.cloud.datalabeling.v1beta1.Attempt getAttempts(int index) {
     return attempts_.get(index);
   }
   /**
-   *
-   *
    * 
    * Output only. Every time the evaluation job runs and an error occurs, the
    * failed attempt is appended to this array.
@@ -917,21 +817,19 @@ public com.google.cloud.datalabeling.v1beta1.Attempt getAttempts(int index) {
    * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder getAttemptsOrBuilder(int index) {
+  public com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder getAttemptsOrBuilder(
+      int index) {
     return attempts_.get(index);
   }
 
   public static final int CREATE_TIME_FIELD_NUMBER = 10;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * Output only. Timestamp of when this evaluation job was created.
    * 
* * .google.protobuf.Timestamp create_time = 10; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -939,14 +837,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Timestamp of when this evaluation job was created.
    * 
* * .google.protobuf.Timestamp create_time = 10; - * * @return The createTime. */ @java.lang.Override @@ -954,8 +849,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Timestamp of when this evaluation job was created.
    * 
@@ -968,7 +861,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -980,16 +872,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } - if (state_ - != com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.STATE_UNSPECIFIED - .getNumber()) { + if (state_ != com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schedule_)) { @@ -1028,10 +919,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } - if (state_ - != com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + if (state_ != com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schedule_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, schedule_); @@ -1040,19 +930,23 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, modelVersion_); } if (evaluationJobConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEvaluationJobConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getEvaluationJobConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationSpecSet_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, annotationSpecSet_); } if (labelMissingGroundTruth_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, labelMissingGroundTruth_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, labelMissingGroundTruth_); } for (int i = 0; i < attempts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, attempts_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, attempts_.get(i)); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, getCreateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1062,29 +956,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.datalabeling.v1beta1.EvaluationJob)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.EvaluationJob other = - (com.google.cloud.datalabeling.v1beta1.EvaluationJob) obj; + com.google.cloud.datalabeling.v1beta1.EvaluationJob other = (com.google.cloud.datalabeling.v1beta1.EvaluationJob) obj; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; if (state_ != other.state_) return false; - if (!getSchedule().equals(other.getSchedule())) return false; - if (!getModelVersion().equals(other.getModelVersion())) return false; + if (!getSchedule() + .equals(other.getSchedule())) return false; + if (!getModelVersion() + .equals(other.getModelVersion())) return false; if (hasEvaluationJobConfig() != other.hasEvaluationJobConfig()) return false; if (hasEvaluationJobConfig()) { - if (!getEvaluationJobConfig().equals(other.getEvaluationJobConfig())) return false; - } - if (!getAnnotationSpecSet().equals(other.getAnnotationSpecSet())) return false; - if (getLabelMissingGroundTruth() != other.getLabelMissingGroundTruth()) return false; - if (!getAttemptsList().equals(other.getAttemptsList())) return false; + if (!getEvaluationJobConfig() + .equals(other.getEvaluationJobConfig())) return false; + } + if (!getAnnotationSpecSet() + .equals(other.getAnnotationSpecSet())) return false; + if (getLabelMissingGroundTruth() + != other.getLabelMissingGroundTruth()) return false; + if (!getAttemptsList() + .equals(other.getAttemptsList())) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1114,7 +1016,8 @@ public int hashCode() { hash = (37 * hash) + ANNOTATION_SPEC_SET_FIELD_NUMBER; hash = (53 * hash) + getAnnotationSpecSet().hashCode(); hash = (37 * hash) + LABEL_MISSING_GROUND_TRUTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLabelMissingGroundTruth()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getLabelMissingGroundTruth()); if (getAttemptsCount() > 0) { hash = (37 * hash) + ATTEMPTS_FIELD_NUMBER; hash = (53 * hash) + getAttemptsList().hashCode(); @@ -1129,103 +1032,96 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.EvaluationJob 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.datalabeling.v1beta1.EvaluationJob parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.EvaluationJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Defines an evaluation job that runs periodically to generate
    * [Evaluations][google.cloud.datalabeling.v1beta1.Evaluation]. [Creating an evaluation
@@ -1235,23 +1131,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJob}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.EvaluationJob)
       com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.EvaluationJob.class,
-              com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.EvaluationJob.class, com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.EvaluationJob.newBuilder()
@@ -1259,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) {
         getAttemptsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1309,9 +1203,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_descriptor;
     }
 
     @java.lang.Override
@@ -1330,8 +1224,7 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.EvaluationJob buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.EvaluationJob result =
-          new com.google.cloud.datalabeling.v1beta1.EvaluationJob(this);
+      com.google.cloud.datalabeling.v1beta1.EvaluationJob result = new com.google.cloud.datalabeling.v1beta1.EvaluationJob(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.description_ = description_;
@@ -1367,39 +1260,38 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.EvaluationJob) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.EvaluationJob) other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.EvaluationJob)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1407,8 +1299,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.EvaluationJob other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1456,10 +1347,9 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.EvaluationJob oth
             attemptsBuilder_ = null;
             attempts_ = other.attempts_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            attemptsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getAttemptsFieldBuilder()
-                    : null;
+            attemptsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getAttemptsFieldBuilder() : null;
           } else {
             attemptsBuilder_.addAllMessages(other.attempts_);
           }
@@ -1487,8 +1377,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.datalabeling.v1beta1.EvaluationJob) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.datalabeling.v1beta1.EvaluationJob) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1497,13 +1386,10 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. After you create a job, Data Labeling Service assigns a name
      * to the job with the following format:
@@ -1511,13 +1397,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; @@ -1526,8 +1412,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. After you create a job, Data Labeling Service assigns a name
      * to the job with the following format:
@@ -1535,14 +1419,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 { @@ -1550,8 +1435,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. After you create a job, Data Labeling Service assigns a name
      * to the job with the following format:
@@ -1559,22 +1442,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. After you create a job, Data Labeling Service assigns a name
      * to the job with the following format:
@@ -1582,18 +1463,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. After you create a job, Data Labeling Service assigns a name
      * to the job with the following format:
@@ -1601,16 +1479,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; @@ -1618,21 +1496,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Required. Description of the job. The description can be up to 25,000
      * characters long.
      * 
* * string description = 2; - * * @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; @@ -1641,22 +1517,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Required. Description of the job. The description can be up to 25,000
      * characters long.
      * 
* * string description = 2; - * * @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 { @@ -1664,64 +1539,57 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Required. Description of the job. The description can be up to 25,000
      * characters long.
      * 
* * string description = 2; - * * @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; } /** - * - * *
      * Required. Description of the job. The description can be up to 25,000
      * characters long.
      * 
* * string description = 2; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Required. Description of the job. The description can be up to 25,000
      * characters long.
      * 
* * string description = 2; - * * @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; @@ -1729,67 +1597,51 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { private int state_ = 0; /** - * - * *
      * Output only. Describes the current state of the job.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3; - * * @return The enum numeric value on the wire for state. */ - @java.lang.Override - public int getStateValue() { + @java.lang.Override public int getStateValue() { return state_; } /** - * - * *
      * Output only. Describes the current state of the job.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3; - * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Describes the current state of the job.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3; - * * @return The state. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EvaluationJob.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.EvaluationJob.State result = - com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.valueOf(state_); - return result == null - ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.UNRECOGNIZED - : result; + com.google.cloud.datalabeling.v1beta1.EvaluationJob.State result = com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.valueOf(state_); + return result == null ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.UNRECOGNIZED : result; } /** - * - * *
      * Output only. Describes the current state of the job.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3; - * * @param value The state to set. * @return This builder for chaining. */ @@ -1797,24 +1649,21 @@ public Builder setState(com.google.cloud.datalabeling.v1beta1.EvaluationJob.Stat if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Output only. Describes the current state of the job.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3; - * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1822,8 +1671,6 @@ public Builder clearState() { private java.lang.Object schedule_ = ""; /** - * - * *
      * Required. Describes the interval at which the job runs. This interval must
      * be at least 1 day, and it is rounded to the nearest day. For example, if
@@ -1837,13 +1684,13 @@ public Builder clearState() {
      * 
* * string schedule = 4; - * * @return The schedule. */ public java.lang.String getSchedule() { java.lang.Object ref = schedule_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schedule_ = s; return s; @@ -1852,8 +1699,6 @@ public java.lang.String getSchedule() { } } /** - * - * *
      * Required. Describes the interval at which the job runs. This interval must
      * be at least 1 day, and it is rounded to the nearest day. For example, if
@@ -1867,14 +1712,15 @@ public java.lang.String getSchedule() {
      * 
* * string schedule = 4; - * * @return The bytes for schedule. */ - public com.google.protobuf.ByteString getScheduleBytes() { + public com.google.protobuf.ByteString + getScheduleBytes() { java.lang.Object ref = schedule_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); schedule_ = b; return b; } else { @@ -1882,8 +1728,6 @@ public com.google.protobuf.ByteString getScheduleBytes() { } } /** - * - * *
      * Required. Describes the interval at which the job runs. This interval must
      * be at least 1 day, and it is rounded to the nearest day. For example, if
@@ -1897,22 +1741,20 @@ public com.google.protobuf.ByteString getScheduleBytes() {
      * 
* * string schedule = 4; - * * @param value The schedule to set. * @return This builder for chaining. */ - public Builder setSchedule(java.lang.String value) { + public Builder setSchedule( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + schedule_ = value; onChanged(); return this; } /** - * - * *
      * Required. Describes the interval at which the job runs. This interval must
      * be at least 1 day, and it is rounded to the nearest day. For example, if
@@ -1926,18 +1768,15 @@ public Builder setSchedule(java.lang.String value) {
      * 
* * string schedule = 4; - * * @return This builder for chaining. */ public Builder clearSchedule() { - + schedule_ = getDefaultInstance().getSchedule(); onChanged(); return this; } /** - * - * *
      * Required. Describes the interval at which the job runs. This interval must
      * be at least 1 day, and it is rounded to the nearest day. For example, if
@@ -1951,16 +1790,16 @@ public Builder clearSchedule() {
      * 
* * string schedule = 4; - * * @param value The bytes for schedule to set. * @return This builder for chaining. */ - public Builder setScheduleBytes(com.google.protobuf.ByteString value) { + public Builder setScheduleBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schedule_ = value; onChanged(); return this; @@ -1968,8 +1807,6 @@ public Builder setScheduleBytes(com.google.protobuf.ByteString value) { private java.lang.Object modelVersion_ = ""; /** - * - * *
      * Required. The [AI Platform Prediction model
      * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
@@ -1980,13 +1817,13 @@ public Builder setScheduleBytes(com.google.protobuf.ByteString value) {
      * 
* * string model_version = 5; - * * @return The modelVersion. */ public java.lang.String getModelVersion() { java.lang.Object ref = modelVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelVersion_ = s; return s; @@ -1995,8 +1832,6 @@ public java.lang.String getModelVersion() { } } /** - * - * *
      * Required. The [AI Platform Prediction model
      * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
@@ -2007,14 +1842,15 @@ public java.lang.String getModelVersion() {
      * 
* * string model_version = 5; - * * @return The bytes for modelVersion. */ - public com.google.protobuf.ByteString getModelVersionBytes() { + public com.google.protobuf.ByteString + getModelVersionBytes() { java.lang.Object ref = modelVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); modelVersion_ = b; return b; } else { @@ -2022,8 +1858,6 @@ public com.google.protobuf.ByteString getModelVersionBytes() { } } /** - * - * *
      * Required. The [AI Platform Prediction model
      * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
@@ -2034,22 +1868,20 @@ public com.google.protobuf.ByteString getModelVersionBytes() {
      * 
* * string model_version = 5; - * * @param value The modelVersion to set. * @return This builder for chaining. */ - public Builder setModelVersion(java.lang.String value) { + public Builder setModelVersion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + modelVersion_ = value; onChanged(); return this; } /** - * - * *
      * Required. The [AI Platform Prediction model
      * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
@@ -2060,18 +1892,15 @@ public Builder setModelVersion(java.lang.String value) {
      * 
* * string model_version = 5; - * * @return This builder for chaining. */ public Builder clearModelVersion() { - + modelVersion_ = getDefaultInstance().getModelVersion(); onChanged(); return this; } /** - * - * *
      * Required. The [AI Platform Prediction model
      * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
@@ -2082,16 +1911,16 @@ public Builder clearModelVersion() {
      * 
* * string model_version = 5; - * * @param value The bytes for modelVersion to set. * @return This builder for chaining. */ - public Builder setModelVersionBytes(com.google.protobuf.ByteString value) { + public Builder setModelVersionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelVersion_ = value; onChanged(); return this; @@ -2099,58 +1928,41 @@ public Builder setModelVersionBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluationJobConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig, - com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder, - com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder> - evaluationJobConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig, com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder> evaluationJobConfigBuilder_; /** - * - * *
      * Required. Configuration details for the evaluation job.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; - * - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; * @return Whether the evaluationJobConfig field is set. */ public boolean hasEvaluationJobConfig() { return evaluationJobConfigBuilder_ != null || evaluationJobConfig_ != null; } /** - * - * *
      * Required. Configuration details for the evaluation job.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; - * - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; * @return The evaluationJobConfig. */ public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig getEvaluationJobConfig() { if (evaluationJobConfigBuilder_ == null) { - return evaluationJobConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.getDefaultInstance() - : evaluationJobConfig_; + return evaluationJobConfig_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.getDefaultInstance() : evaluationJobConfig_; } else { return evaluationJobConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Configuration details for the evaluation job.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; */ - public Builder setEvaluationJobConfig( - com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig value) { + public Builder setEvaluationJobConfig(com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig value) { if (evaluationJobConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2164,14 +1976,11 @@ public Builder setEvaluationJobConfig( return this; } /** - * - * *
      * Required. Configuration details for the evaluation job.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; */ public Builder setEvaluationJobConfig( com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder builderForValue) { @@ -2185,24 +1994,17 @@ public Builder setEvaluationJobConfig( return this; } /** - * - * *
      * Required. Configuration details for the evaluation job.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; */ - public Builder mergeEvaluationJobConfig( - com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig value) { + public Builder mergeEvaluationJobConfig(com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig value) { if (evaluationJobConfigBuilder_ == null) { if (evaluationJobConfig_ != null) { evaluationJobConfig_ = - com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.newBuilder( - evaluationJobConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.newBuilder(evaluationJobConfig_).mergeFrom(value).buildPartial(); } else { evaluationJobConfig_ = value; } @@ -2214,14 +2016,11 @@ public Builder mergeEvaluationJobConfig( return this; } /** - * - * *
      * Required. Configuration details for the evaluation job.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; */ public Builder clearEvaluationJobConfig() { if (evaluationJobConfigBuilder_ == null) { @@ -2235,63 +2034,48 @@ public Builder clearEvaluationJobConfig() { return this; } /** - * - * *
      * Required. Configuration details for the evaluation job.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; */ - public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder - getEvaluationJobConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder getEvaluationJobConfigBuilder() { + onChanged(); return getEvaluationJobConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Configuration details for the evaluation job.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; */ - public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder - getEvaluationJobConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder getEvaluationJobConfigOrBuilder() { if (evaluationJobConfigBuilder_ != null) { return evaluationJobConfigBuilder_.getMessageOrBuilder(); } else { - return evaluationJobConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.getDefaultInstance() - : evaluationJobConfig_; + return evaluationJobConfig_ == null ? + com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.getDefaultInstance() : evaluationJobConfig_; } } /** - * - * *
      * Required. Configuration details for the evaluation job.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig, - com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder, - com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig, com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder> getEvaluationJobConfigFieldBuilder() { if (evaluationJobConfigBuilder_ == null) { - evaluationJobConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig, - com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder, - com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder>( - getEvaluationJobConfig(), getParentForChildren(), isClean()); + evaluationJobConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig, com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder>( + getEvaluationJobConfig(), + getParentForChildren(), + isClean()); evaluationJobConfig_ = null; } return evaluationJobConfigBuilder_; @@ -2299,8 +2083,6 @@ public Builder clearEvaluationJobConfig() { private java.lang.Object annotationSpecSet_ = ""; /** - * - * *
      * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
      * labels that your machine learning model outputs. You must create this
@@ -2310,13 +2092,13 @@ public Builder clearEvaluationJobConfig() {
      * 
* * string annotation_spec_set = 7; - * * @return The annotationSpecSet. */ public java.lang.String getAnnotationSpecSet() { java.lang.Object ref = annotationSpecSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; @@ -2325,8 +2107,6 @@ public java.lang.String getAnnotationSpecSet() { } } /** - * - * *
      * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
      * labels that your machine learning model outputs. You must create this
@@ -2336,14 +2116,15 @@ public java.lang.String getAnnotationSpecSet() {
      * 
* * string annotation_spec_set = 7; - * * @return The bytes for annotationSpecSet. */ - public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -2351,8 +2132,6 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { } } /** - * - * *
      * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
      * labels that your machine learning model outputs. You must create this
@@ -2362,22 +2141,20 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() {
      * 
* * string annotation_spec_set = 7; - * * @param value The annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSet(java.lang.String value) { + public Builder setAnnotationSpecSet( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecSet_ = value; onChanged(); return this; } /** - * - * *
      * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
      * labels that your machine learning model outputs. You must create this
@@ -2387,18 +2164,15 @@ public Builder setAnnotationSpecSet(java.lang.String value) {
      * 
* * string annotation_spec_set = 7; - * * @return This builder for chaining. */ public Builder clearAnnotationSpecSet() { - + annotationSpecSet_ = getDefaultInstance().getAnnotationSpecSet(); onChanged(); return this; } /** - * - * *
      * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
      * labels that your machine learning model outputs. You must create this
@@ -2408,25 +2182,23 @@ public Builder clearAnnotationSpecSet() {
      * 
* * string annotation_spec_set = 7; - * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecSetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecSet_ = value; onChanged(); return this; } - private boolean labelMissingGroundTruth_; + private boolean labelMissingGroundTruth_ ; /** - * - * *
      * Required. Whether you want Data Labeling Service to provide ground truth
      * labels for prediction input. If you want the service to assign human
@@ -2436,7 +2208,6 @@ public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) {
      * 
* * bool label_missing_ground_truth = 8; - * * @return The labelMissingGroundTruth. */ @java.lang.Override @@ -2444,8 +2215,6 @@ public boolean getLabelMissingGroundTruth() { return labelMissingGroundTruth_; } /** - * - * *
      * Required. Whether you want Data Labeling Service to provide ground truth
      * labels for prediction input. If you want the service to assign human
@@ -2455,19 +2224,16 @@ public boolean getLabelMissingGroundTruth() {
      * 
* * bool label_missing_ground_truth = 8; - * * @param value The labelMissingGroundTruth to set. * @return This builder for chaining. */ public Builder setLabelMissingGroundTruth(boolean value) { - + labelMissingGroundTruth_ = value; onChanged(); return this; } /** - * - * *
      * Required. Whether you want Data Labeling Service to provide ground truth
      * labels for prediction input. If you want the service to assign human
@@ -2477,36 +2243,28 @@ public Builder setLabelMissingGroundTruth(boolean value) {
      * 
* * bool label_missing_ground_truth = 8; - * * @return This builder for chaining. */ public Builder clearLabelMissingGroundTruth() { - + labelMissingGroundTruth_ = false; onChanged(); return this; } private java.util.List attempts_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAttemptsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - attempts_ = - new java.util.ArrayList(attempts_); + attempts_ = new java.util.ArrayList(attempts_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Attempt, - com.google.cloud.datalabeling.v1beta1.Attempt.Builder, - com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder> - attemptsBuilder_; + com.google.cloud.datalabeling.v1beta1.Attempt, com.google.cloud.datalabeling.v1beta1.Attempt.Builder, com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder> attemptsBuilder_; /** - * - * *
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2522,8 +2280,6 @@ public java.util.List getAttempts
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2539,8 +2295,6 @@ public int getAttemptsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2556,8 +2310,6 @@ public com.google.cloud.datalabeling.v1beta1.Attempt getAttempts(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2565,7 +2317,8 @@ public com.google.cloud.datalabeling.v1beta1.Attempt getAttempts(int index) {
      *
      * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
      */
-    public Builder setAttempts(int index, com.google.cloud.datalabeling.v1beta1.Attempt value) {
+    public Builder setAttempts(
+        int index, com.google.cloud.datalabeling.v1beta1.Attempt value) {
       if (attemptsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2579,8 +2332,6 @@ public Builder setAttempts(int index, com.google.cloud.datalabeling.v1beta1.Atte
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2600,8 +2351,6 @@ public Builder setAttempts(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2623,8 +2372,6 @@ public Builder addAttempts(com.google.cloud.datalabeling.v1beta1.Attempt value)
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2632,7 +2379,8 @@ public Builder addAttempts(com.google.cloud.datalabeling.v1beta1.Attempt value)
      *
      * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
      */
-    public Builder addAttempts(int index, com.google.cloud.datalabeling.v1beta1.Attempt value) {
+    public Builder addAttempts(
+        int index, com.google.cloud.datalabeling.v1beta1.Attempt value) {
       if (attemptsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2646,8 +2394,6 @@ public Builder addAttempts(int index, com.google.cloud.datalabeling.v1beta1.Atte
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2667,8 +2413,6 @@ public Builder addAttempts(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2688,8 +2432,6 @@ public Builder addAttempts(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2701,7 +2443,8 @@ public Builder addAllAttempts(
         java.lang.Iterable values) {
       if (attemptsBuilder_ == null) {
         ensureAttemptsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attempts_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, attempts_);
         onChanged();
       } else {
         attemptsBuilder_.addAllMessages(values);
@@ -2709,8 +2452,6 @@ public Builder addAllAttempts(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2729,8 +2470,6 @@ public Builder clearAttempts() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2749,8 +2488,6 @@ public Builder removeAttempts(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2758,12 +2495,11 @@ public Builder removeAttempts(int index) {
      *
      * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
      */
-    public com.google.cloud.datalabeling.v1beta1.Attempt.Builder getAttemptsBuilder(int index) {
+    public com.google.cloud.datalabeling.v1beta1.Attempt.Builder getAttemptsBuilder(
+        int index) {
       return getAttemptsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2771,16 +2507,14 @@ public com.google.cloud.datalabeling.v1beta1.Attempt.Builder getAttemptsBuilder(
      *
      * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
      */
-    public com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder getAttemptsOrBuilder(int index) {
+    public com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder getAttemptsOrBuilder(
+        int index) {
       if (attemptsBuilder_ == null) {
-        return attempts_.get(index);
-      } else {
+        return attempts_.get(index);  } else {
         return attemptsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2788,8 +2522,8 @@ public com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder getAttemptsOrBuild
      *
      * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
      */
-    public java.util.List
-        getAttemptsOrBuilderList() {
+    public java.util.List 
+         getAttemptsOrBuilderList() {
       if (attemptsBuilder_ != null) {
         return attemptsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2797,8 +2531,6 @@ public com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder getAttemptsOrBuild
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2807,12 +2539,10 @@ public com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder getAttemptsOrBuild
      * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
      */
     public com.google.cloud.datalabeling.v1beta1.Attempt.Builder addAttemptsBuilder() {
-      return getAttemptsFieldBuilder()
-          .addBuilder(com.google.cloud.datalabeling.v1beta1.Attempt.getDefaultInstance());
+      return getAttemptsFieldBuilder().addBuilder(
+          com.google.cloud.datalabeling.v1beta1.Attempt.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2820,13 +2550,12 @@ public com.google.cloud.datalabeling.v1beta1.Attempt.Builder addAttemptsBuilder(
      *
      * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
      */
-    public com.google.cloud.datalabeling.v1beta1.Attempt.Builder addAttemptsBuilder(int index) {
-      return getAttemptsFieldBuilder()
-          .addBuilder(index, com.google.cloud.datalabeling.v1beta1.Attempt.getDefaultInstance());
+    public com.google.cloud.datalabeling.v1beta1.Attempt.Builder addAttemptsBuilder(
+        int index) {
+      return getAttemptsFieldBuilder().addBuilder(
+          index, com.google.cloud.datalabeling.v1beta1.Attempt.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2834,23 +2563,20 @@ public com.google.cloud.datalabeling.v1beta1.Attempt.Builder addAttemptsBuilder(
      *
      * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
      */
-    public java.util.List
-        getAttemptsBuilderList() {
+    public java.util.List 
+         getAttemptsBuilderList() {
       return getAttemptsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.Attempt,
-            com.google.cloud.datalabeling.v1beta1.Attempt.Builder,
-            com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder>
+        com.google.cloud.datalabeling.v1beta1.Attempt, com.google.cloud.datalabeling.v1beta1.Attempt.Builder, com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder> 
         getAttemptsFieldBuilder() {
       if (attemptsBuilder_ == null) {
-        attemptsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.datalabeling.v1beta1.Attempt,
-                com.google.cloud.datalabeling.v1beta1.Attempt.Builder,
-                com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder>(
-                attempts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        attemptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.datalabeling.v1beta1.Attempt, com.google.cloud.datalabeling.v1beta1.Attempt.Builder, com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder>(
+                attempts_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         attempts_ = null;
       }
       return attemptsBuilder_;
@@ -2858,47 +2584,34 @@ public com.google.cloud.datalabeling.v1beta1.Attempt.Builder addAttemptsBuilder(
 
     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 of when this evaluation job was created.
      * 
* * .google.protobuf.Timestamp create_time = 10; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Timestamp of when this evaluation job was created.
      * 
* * .google.protobuf.Timestamp create_time = 10; - * * @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 of when this evaluation job was created.
      * 
@@ -2919,15 +2632,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp of when this evaluation job was created.
      * 
* * .google.protobuf.Timestamp create_time = 10; */ - 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(); @@ -2938,8 +2650,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Timestamp of when this evaluation job was created.
      * 
@@ -2950,7 +2660,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; } @@ -2962,8 +2672,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp of when this evaluation job was created.
      * 
@@ -2982,8 +2690,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Timestamp of when this evaluation job was created.
      * 
@@ -2991,13 +2697,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 10; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Timestamp of when this evaluation job was created.
      * 
@@ -3008,14 +2712,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 of when this evaluation job was created.
      * 
@@ -3023,24 +2724,21 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 10; */ 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_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3050,12 +2748,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.EvaluationJob) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.EvaluationJob) private static final com.google.cloud.datalabeling.v1beta1.EvaluationJob DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.EvaluationJob(); } @@ -3064,16 +2762,16 @@ public static com.google.cloud.datalabeling.v1beta1.EvaluationJob getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvaluationJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvaluationJob(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvaluationJob(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3088,4 +2786,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.EvaluationJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfig.java similarity index 70% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfig.java index 297b2d7c..faba264a 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfig.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/datalabeling/v1beta1/evaluation_job.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Provides details for how an evaluation job sends email alerts based on the
  * results of a run.
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig}
  */
-public final class EvaluationJobAlertConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class EvaluationJobAlertConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig)
     EvaluationJobAlertConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use EvaluationJobAlertConfig.newBuilder() to construct.
   private EvaluationJobAlertConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private EvaluationJobAlertConfig() {
     email_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new EvaluationJobAlertConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private EvaluationJobAlertConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -71,25 +54,24 @@ private EvaluationJobAlertConfig(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              email_ = s;
-              break;
-            }
-          case 17:
-            {
-              minAcceptableMeanAveragePrecision_ = input.readDouble();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            email_ = s;
+            break;
+          }
+          case 17: {
+
+            minAcceptableMeanAveragePrecision_ = input.readDouble();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -97,39 +79,34 @@ private EvaluationJobAlertConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.class,
-            com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.class, com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder.class);
   }
 
   public static final int EMAIL_FIELD_NUMBER = 1;
   private volatile java.lang.Object email_;
   /**
-   *
-   *
    * 
    * Required. An email address to send alerts to.
    * 
* * string email = 1; - * * @return The email. */ @java.lang.Override @@ -138,29 +115,29 @@ public java.lang.String getEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } } /** - * - * *
    * Required. An email address to send alerts to.
    * 
* * string email = 1; - * * @return The bytes for email. */ @java.lang.Override - public com.google.protobuf.ByteString getEmailBytes() { + public com.google.protobuf.ByteString + getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); email_ = b; return b; } else { @@ -171,8 +148,6 @@ public com.google.protobuf.ByteString getEmailBytes() { public static final int MIN_ACCEPTABLE_MEAN_AVERAGE_PRECISION_FIELD_NUMBER = 2; private double minAcceptableMeanAveragePrecision_; /** - * - * *
    * Required. A number between 0 and 1 that describes a minimum mean average
    * precision threshold. When the evaluation job runs, if it calculates that
@@ -182,7 +157,6 @@ public com.google.protobuf.ByteString getEmailBytes() {
    * 
* * double min_acceptable_mean_average_precision = 2; - * * @return The minAcceptableMeanAveragePrecision. */ @java.lang.Override @@ -191,7 +165,6 @@ public double getMinAcceptableMeanAveragePrecision() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,7 +176,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(email_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, email_); } @@ -223,9 +197,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, email_); } if (java.lang.Double.doubleToRawLongBits(minAcceptableMeanAveragePrecision_) != 0) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 2, minAcceptableMeanAveragePrecision_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(2, minAcceptableMeanAveragePrecision_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -235,18 +208,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.datalabeling.v1beta1.EvaluationJobAlertConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig other = - (com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig) obj; + com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig other = (com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig) obj; - if (!getEmail().equals(other.getEmail())) return false; + if (!getEmail() + .equals(other.getEmail())) return false; if (java.lang.Double.doubleToLongBits(getMinAcceptableMeanAveragePrecision()) - != java.lang.Double.doubleToLongBits(other.getMinAcceptableMeanAveragePrecision())) - return false; + != java.lang.Double.doubleToLongBits( + other.getMinAcceptableMeanAveragePrecision())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -261,114 +234,104 @@ public int hashCode() { hash = (37 * hash) + EMAIL_FIELD_NUMBER; hash = (53 * hash) + getEmail().hashCode(); hash = (37 * hash) + MIN_ACCEPTABLE_MEAN_AVERAGE_PRECISION_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMinAcceptableMeanAveragePrecision())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMinAcceptableMeanAveragePrecision())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig 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.datalabeling.v1beta1.EvaluationJobAlertConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Provides details for how an evaluation job sends email alerts based on the
    * results of a run.
@@ -376,23 +339,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig)
       com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.class,
-              com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.class, com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.newBuilder()
@@ -400,15 +361,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();
@@ -420,14 +382,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig
-        getDefaultInstanceForType() {
+    public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig getDefaultInstanceForType() {
       return com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.getDefaultInstance();
     }
 
@@ -442,8 +403,7 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig result =
-          new com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig(this);
+      com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig result = new com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig(this);
       result.email_ = email_;
       result.minAcceptableMeanAveragePrecision_ = minAcceptableMeanAveragePrecision_;
       onBuilt();
@@ -454,39 +414,38 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig 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.datalabeling.v1beta1.EvaluationJobAlertConfig) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig) other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -494,9 +453,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig other) {
-      if (other
-          == com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.getDefaultInstance()) return this;
       if (!other.getEmail().isEmpty()) {
         email_ = other.email_;
         onChanged();
@@ -523,9 +480,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -537,20 +492,18 @@ public Builder mergeFrom(
 
     private java.lang.Object email_ = "";
     /**
-     *
-     *
      * 
      * Required. An email address to send alerts to.
      * 
* * string email = 1; - * * @return The email. */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; @@ -559,21 +512,20 @@ public java.lang.String getEmail() { } } /** - * - * *
      * Required. An email address to send alerts to.
      * 
* * string email = 1; - * * @return The bytes for email. */ - public com.google.protobuf.ByteString getEmailBytes() { + public com.google.protobuf.ByteString + getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); email_ = b; return b; } else { @@ -581,70 +533,61 @@ public com.google.protobuf.ByteString getEmailBytes() { } } /** - * - * *
      * Required. An email address to send alerts to.
      * 
* * string email = 1; - * * @param value The email to set. * @return This builder for chaining. */ - public Builder setEmail(java.lang.String value) { + public Builder setEmail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + email_ = value; onChanged(); return this; } /** - * - * *
      * Required. An email address to send alerts to.
      * 
* * string email = 1; - * * @return This builder for chaining. */ public Builder clearEmail() { - + email_ = getDefaultInstance().getEmail(); onChanged(); return this; } /** - * - * *
      * Required. An email address to send alerts to.
      * 
* * string email = 1; - * * @param value The bytes for email to set. * @return This builder for chaining. */ - public Builder setEmailBytes(com.google.protobuf.ByteString value) { + public Builder setEmailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + email_ = value; onChanged(); return this; } - private double minAcceptableMeanAveragePrecision_; + private double minAcceptableMeanAveragePrecision_ ; /** - * - * *
      * Required. A number between 0 and 1 that describes a minimum mean average
      * precision threshold. When the evaluation job runs, if it calculates that
@@ -654,7 +597,6 @@ public Builder setEmailBytes(com.google.protobuf.ByteString value) {
      * 
* * double min_acceptable_mean_average_precision = 2; - * * @return The minAcceptableMeanAveragePrecision. */ @java.lang.Override @@ -662,8 +604,6 @@ public double getMinAcceptableMeanAveragePrecision() { return minAcceptableMeanAveragePrecision_; } /** - * - * *
      * Required. A number between 0 and 1 that describes a minimum mean average
      * precision threshold. When the evaluation job runs, if it calculates that
@@ -673,19 +613,16 @@ public double getMinAcceptableMeanAveragePrecision() {
      * 
* * double min_acceptable_mean_average_precision = 2; - * * @param value The minAcceptableMeanAveragePrecision to set. * @return This builder for chaining. */ public Builder setMinAcceptableMeanAveragePrecision(double value) { - + minAcceptableMeanAveragePrecision_ = value; onChanged(); return this; } /** - * - * *
      * Required. A number between 0 and 1 that describes a minimum mean average
      * precision threshold. When the evaluation job runs, if it calculates that
@@ -695,18 +632,17 @@ public Builder setMinAcceptableMeanAveragePrecision(double value) {
      * 
* * double min_acceptable_mean_average_precision = 2; - * * @return This builder for chaining. */ public Builder clearMinAcceptableMeanAveragePrecision() { - + minAcceptableMeanAveragePrecision_ = 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); } @@ -716,32 +652,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig) - private static final com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig(); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvaluationJobAlertConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvaluationJobAlertConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationJobAlertConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvaluationJobAlertConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -753,8 +687,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfigOrBuilder.java similarity index 62% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfigOrBuilder.java index 41f5499b..618f4967 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfigOrBuilder.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/datalabeling/v1beta1/evaluation_job.proto package com.google.cloud.datalabeling.v1beta1; -public interface EvaluationJobAlertConfigOrBuilder - extends +public interface EvaluationJobAlertConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. An email address to send alerts to.
    * 
* * string email = 1; - * * @return The email. */ java.lang.String getEmail(); /** - * - * *
    * Required. An email address to send alerts to.
    * 
* * string email = 1; - * * @return The bytes for email. */ - com.google.protobuf.ByteString getEmailBytes(); + com.google.protobuf.ByteString + getEmailBytes(); /** - * - * *
    * Required. A number between 0 and 1 that describes a minimum mean average
    * precision threshold. When the evaluation job runs, if it calculates that
@@ -60,7 +37,6 @@ public interface EvaluationJobAlertConfigOrBuilder
    * 
* * double min_acceptable_mean_average_precision = 2; - * * @return The minAcceptableMeanAveragePrecision. */ double getMinAcceptableMeanAveragePrecision(); diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig.java similarity index 74% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig.java index 2967c317..dd520432 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig.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/datalabeling/v1beta1/evaluation_job.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Configures specific details of how a continuous evaluation job works. Provide
  * this configuration when you create an EvaluationJob.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJobConfig}
  */
-public final class EvaluationJobConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class EvaluationJobConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.EvaluationJobConfig)
     EvaluationJobConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use EvaluationJobConfig.newBuilder() to construct.
   private EvaluationJobConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private EvaluationJobConfig() {}
+  private EvaluationJobConfig() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new EvaluationJobConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private EvaluationJobConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -70,178 +54,130 @@ private EvaluationJobConfig(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.datalabeling.v1beta1.InputConfig.Builder subBuilder = null;
-              if (inputConfig_ != null) {
-                subBuilder = inputConfig_.toBuilder();
-              }
-              inputConfig_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.InputConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(inputConfig_);
-                inputConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
+          case 10: {
+            com.google.cloud.datalabeling.v1beta1.InputConfig.Builder subBuilder = null;
+            if (inputConfig_ != null) {
+              subBuilder = inputConfig_.toBuilder();
+            }
+            inputConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.InputConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(inputConfig_);
+              inputConfig_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          case 18: {
+            com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder subBuilder = null;
+            if (evaluationConfig_ != null) {
+              subBuilder = evaluationConfig_.toBuilder();
             }
-          case 18:
-            {
-              com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder subBuilder = null;
-              if (evaluationConfig_ != null) {
-                subBuilder = evaluationConfig_.toBuilder();
-              }
-              evaluationConfig_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.EvaluationConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(evaluationConfig_);
-                evaluationConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
+            evaluationConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.EvaluationConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(evaluationConfig_);
+              evaluationConfig_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null;
-              if (humanAnnotationConfig_ != null) {
-                subBuilder = humanAnnotationConfig_.toBuilder();
-              }
-              humanAnnotationConfig_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(humanAnnotationConfig_);
-                humanAnnotationConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 26: {
+            com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null;
+            if (humanAnnotationConfig_ != null) {
+              subBuilder = humanAnnotationConfig_.toBuilder();
             }
-          case 34:
-            {
-              com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder subBuilder =
-                  null;
-              if (humanAnnotationRequestConfigCase_ == 4) {
-                subBuilder =
-                    ((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig)
-                            humanAnnotationRequestConfig_)
-                        .toBuilder();
-              }
-              humanAnnotationRequestConfig_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig)
-                        humanAnnotationRequestConfig_);
-                humanAnnotationRequestConfig_ = subBuilder.buildPartial();
-              }
-              humanAnnotationRequestConfigCase_ = 4;
-              break;
+            humanAnnotationConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(humanAnnotationConfig_);
+              humanAnnotationConfig_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder subBuilder = null;
-              if (humanAnnotationRequestConfigCase_ == 5) {
-                subBuilder =
-                    ((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig)
-                            humanAnnotationRequestConfig_)
-                        .toBuilder();
-              }
-              humanAnnotationRequestConfig_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig)
-                        humanAnnotationRequestConfig_);
-                humanAnnotationRequestConfig_ = subBuilder.buildPartial();
-              }
-              humanAnnotationRequestConfigCase_ = 5;
-              break;
+
+            break;
+          }
+          case 34: {
+            com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder subBuilder = null;
+            if (humanAnnotationRequestConfigCase_ == 4) {
+              subBuilder = ((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) humanAnnotationRequestConfig_).toBuilder();
             }
-          case 66:
-            {
-              com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder subBuilder =
-                  null;
-              if (humanAnnotationRequestConfigCase_ == 8) {
-                subBuilder =
-                    ((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig)
-                            humanAnnotationRequestConfig_)
-                        .toBuilder();
-              }
-              humanAnnotationRequestConfig_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig)
-                        humanAnnotationRequestConfig_);
-                humanAnnotationRequestConfig_ = subBuilder.buildPartial();
-              }
-              humanAnnotationRequestConfigCase_ = 8;
-              break;
+            humanAnnotationRequestConfig_ =
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) humanAnnotationRequestConfig_);
+              humanAnnotationRequestConfig_ = subBuilder.buildPartial();
+            }
+            humanAnnotationRequestConfigCase_ = 4;
+            break;
+          }
+          case 42: {
+            com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder subBuilder = null;
+            if (humanAnnotationRequestConfigCase_ == 5) {
+              subBuilder = ((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_).toBuilder();
+            }
+            humanAnnotationRequestConfig_ =
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_);
+              humanAnnotationRequestConfig_ = subBuilder.buildPartial();
+            }
+            humanAnnotationRequestConfigCase_ = 5;
+            break;
+          }
+          case 66: {
+            com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder subBuilder = null;
+            if (humanAnnotationRequestConfigCase_ == 8) {
+              subBuilder = ((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) humanAnnotationRequestConfig_).toBuilder();
             }
-          case 74:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                bigqueryImportKeys_ =
-                    com.google.protobuf.MapField.newMapField(
-                        BigqueryImportKeysDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry
-                  bigqueryImportKeys__ =
-                      input.readMessage(
-                          BigqueryImportKeysDefaultEntryHolder.defaultEntry.getParserForType(),
-                          extensionRegistry);
-              bigqueryImportKeys_
-                  .getMutableMap()
-                  .put(bigqueryImportKeys__.getKey(), bigqueryImportKeys__.getValue());
-              break;
+            humanAnnotationRequestConfig_ =
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) humanAnnotationRequestConfig_);
+              humanAnnotationRequestConfig_ = subBuilder.buildPartial();
             }
-          case 80:
-            {
-              exampleCount_ = input.readInt32();
-              break;
+            humanAnnotationRequestConfigCase_ = 8;
+            break;
+          }
+          case 74: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              bigqueryImportKeys_ = com.google.protobuf.MapField.newMapField(
+                  BigqueryImportKeysDefaultEntryHolder.defaultEntry);
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 89:
-            {
-              exampleSamplePercentage_ = input.readDouble();
-              break;
+            com.google.protobuf.MapEntry
+            bigqueryImportKeys__ = input.readMessage(
+                BigqueryImportKeysDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
+            bigqueryImportKeys_.getMutableMap().put(
+                bigqueryImportKeys__.getKey(), bigqueryImportKeys__.getValue());
+            break;
+          }
+          case 80: {
+
+            exampleCount_ = input.readInt32();
+            break;
+          }
+          case 89: {
+
+            exampleSamplePercentage_ = input.readDouble();
+            break;
+          }
+          case 106: {
+            com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder subBuilder = null;
+            if (evaluationJobAlertConfig_ != null) {
+              subBuilder = evaluationJobAlertConfig_.toBuilder();
             }
-          case 106:
-            {
-              com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder subBuilder =
-                  null;
-              if (evaluationJobAlertConfig_ != null) {
-                subBuilder = evaluationJobAlertConfig_.toBuilder();
-              }
-              evaluationJobAlertConfig_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(evaluationJobAlertConfig_);
-                evaluationJobAlertConfig_ = subBuilder.buildPartial();
-              }
-
-              break;
+            evaluationJobAlertConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(evaluationJobAlertConfig_);
+              evaluationJobAlertConfig_ = 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) {
@@ -249,52 +185,48 @@ private EvaluationJobConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_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 9:
         return internalGetBigqueryImportKeys();
       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.datalabeling.v1beta1.EvaluationJobOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.class,
-            com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.class, com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder.class);
   }
 
   private int humanAnnotationRequestConfigCase_ = 0;
   private java.lang.Object humanAnnotationRequestConfig_;
-
   public enum HumanAnnotationRequestConfigCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     IMAGE_CLASSIFICATION_CONFIG(4),
     BOUNDING_POLY_CONFIG(5),
     TEXT_CLASSIFICATION_CONFIG(8),
     HUMANANNOTATIONREQUESTCONFIG_NOT_SET(0);
     private final int value;
-
     private HumanAnnotationRequestConfigCase(int value) {
       this.value = value;
     }
@@ -310,32 +242,26 @@ public static HumanAnnotationRequestConfigCase valueOf(int value) {
 
     public static HumanAnnotationRequestConfigCase forNumber(int value) {
       switch (value) {
-        case 4:
-          return IMAGE_CLASSIFICATION_CONFIG;
-        case 5:
-          return BOUNDING_POLY_CONFIG;
-        case 8:
-          return TEXT_CLASSIFICATION_CONFIG;
-        case 0:
-          return HUMANANNOTATIONREQUESTCONFIG_NOT_SET;
-        default:
-          return null;
+        case 4: return IMAGE_CLASSIFICATION_CONFIG;
+        case 5: return BOUNDING_POLY_CONFIG;
+        case 8: return TEXT_CLASSIFICATION_CONFIG;
+        case 0: return HUMANANNOTATIONREQUESTCONFIG_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public HumanAnnotationRequestConfigCase getHumanAnnotationRequestConfigCase() {
-    return HumanAnnotationRequestConfigCase.forNumber(humanAnnotationRequestConfigCase_);
+  public HumanAnnotationRequestConfigCase
+  getHumanAnnotationRequestConfigCase() {
+    return HumanAnnotationRequestConfigCase.forNumber(
+        humanAnnotationRequestConfigCase_);
   }
 
   public static final int IMAGE_CLASSIFICATION_CONFIG_FIELD_NUMBER = 4;
   /**
-   *
-   *
    * 
    * Specify this field if your model version performs image classification or
    * general classification.
@@ -345,10 +271,7 @@ public HumanAnnotationRequestConfigCase getHumanAnnotationRequestConfigCase() {
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @return Whether the imageClassificationConfig field is set. */ @java.lang.Override @@ -356,8 +279,6 @@ public boolean hasImageClassificationConfig() { return humanAnnotationRequestConfigCase_ == 4; } /** - * - * *
    * Specify this field if your model version performs image classification or
    * general classification.
@@ -367,24 +288,17 @@ public boolean hasImageClassificationConfig() {
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @return The imageClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig - getImageClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageClassificationConfig() { if (humanAnnotationRequestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - humanAnnotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) humanAnnotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } /** - * - * *
    * Specify this field if your model version performs image classification or
    * general classification.
@@ -394,24 +308,18 @@ public boolean hasImageClassificationConfig() {
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder - getImageClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder getImageClassificationConfigOrBuilder() { if (humanAnnotationRequestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - humanAnnotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) humanAnnotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } public static final int BOUNDING_POLY_CONFIG_FIELD_NUMBER = 5; /** - * - * *
    * Specify this field if your model version performs image object detection
    * (bounding box detection).
@@ -420,7 +328,6 @@ public boolean hasImageClassificationConfig() {
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; - * * @return Whether the boundingPolyConfig field is set. */ @java.lang.Override @@ -428,8 +335,6 @@ public boolean hasBoundingPolyConfig() { return humanAnnotationRequestConfigCase_ == 5; } /** - * - * *
    * Specify this field if your model version performs image object detection
    * (bounding box detection).
@@ -438,20 +343,16 @@ public boolean hasBoundingPolyConfig() {
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; - * * @return The boundingPolyConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyConfig() { if (humanAnnotationRequestConfigCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) - humanAnnotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance(); } /** - * - * *
    * Specify this field if your model version performs image object detection
    * (bounding box detection).
@@ -462,19 +363,15 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyC
    * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder
-      getBoundingPolyConfigOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoundingPolyConfigOrBuilder() {
     if (humanAnnotationRequestConfigCase_ == 5) {
-      return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig)
-          humanAnnotationRequestConfig_;
+       return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_;
     }
     return com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance();
   }
 
   public static final int TEXT_CLASSIFICATION_CONFIG_FIELD_NUMBER = 8;
   /**
-   *
-   *
    * 
    * Specify this field if your model version performs text classification.
    * `annotationSpecSet` in this configuration must match
@@ -483,10 +380,7 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyC
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; * @return Whether the textClassificationConfig field is set. */ @java.lang.Override @@ -494,8 +388,6 @@ public boolean hasTextClassificationConfig() { return humanAnnotationRequestConfigCase_ == 8; } /** - * - * *
    * Specify this field if your model version performs text classification.
    * `annotationSpecSet` in this configuration must match
@@ -504,24 +396,17 @@ public boolean hasTextClassificationConfig() {
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; * @return The textClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig - getTextClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextClassificationConfig() { if (humanAnnotationRequestConfigCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) - humanAnnotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) humanAnnotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } /** - * - * *
    * Specify this field if your model version performs text classification.
    * `annotationSpecSet` in this configuration must match
@@ -530,16 +415,12 @@ public boolean hasTextClassificationConfig() {
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder - getTextClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder getTextClassificationConfigOrBuilder() { if (humanAnnotationRequestConfigCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) - humanAnnotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) humanAnnotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } @@ -547,8 +428,6 @@ public boolean hasTextClassificationConfig() { public static final int INPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.InputConfig inputConfig_; /** - * - * *
    * Rquired. Details for the sampled prediction input. Within this
    * configuration, there are requirements for several fields:
@@ -562,7 +441,6 @@ public boolean hasTextClassificationConfig() {
    * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -570,8 +448,6 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Rquired. Details for the sampled prediction input. Within this
    * configuration, there are requirements for several fields:
@@ -585,18 +461,13 @@ public boolean hasInputConfig() {
    * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.InputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Rquired. Details for the sampled prediction input. Within this
    * configuration, there are requirements for several fields:
@@ -619,8 +490,6 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig
   public static final int EVALUATION_CONFIG_FIELD_NUMBER = 2;
   private com.google.cloud.datalabeling.v1beta1.EvaluationConfig evaluationConfig_;
   /**
-   *
-   *
    * 
    * Required. Details for calculating evaluation metrics and creating
    * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -630,7 +499,6 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; - * * @return Whether the evaluationConfig field is set. */ @java.lang.Override @@ -638,8 +506,6 @@ public boolean hasEvaluationConfig() { return evaluationConfig_ != null; } /** - * - * *
    * Required. Details for calculating evaluation metrics and creating
    * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -649,18 +515,13 @@ public boolean hasEvaluationConfig() {
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; - * * @return The evaluationConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EvaluationConfig getEvaluationConfig() { - return evaluationConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance() - : evaluationConfig_; + return evaluationConfig_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance() : evaluationConfig_; } /** - * - * *
    * Required. Details for calculating evaluation metrics and creating
    * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -672,16 +533,13 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfig getEvaluationConfi
    * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder
-      getEvaluationConfigOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder getEvaluationConfigOrBuilder() {
     return getEvaluationConfig();
   }
 
   public static final int HUMAN_ANNOTATION_CONFIG_FIELD_NUMBER = 3;
   private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig humanAnnotationConfig_;
   /**
-   *
-   *
    * 
    * Optional. Details for human annotation of your data. If you set
    * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -692,9 +550,7 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfig getEvaluationConfi
    * `instruction` field within this configuration.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; * @return Whether the humanAnnotationConfig field is set. */ @java.lang.Override @@ -702,8 +558,6 @@ public boolean hasHumanAnnotationConfig() { return humanAnnotationConfig_ != null; } /** - * - * *
    * Optional. Details for human annotation of your data. If you set
    * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -714,20 +568,14 @@ public boolean hasHumanAnnotationConfig() {
    * `instruction` field within this configuration.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; * @return The humanAnnotationConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getHumanAnnotationConfig() { - return humanAnnotationConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : humanAnnotationConfig_; + return humanAnnotationConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : humanAnnotationConfig_; } /** - * - * *
    * Optional. Details for human annotation of your data. If you set
    * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -738,32 +586,29 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getHumanAnnot
    * `instruction` field within this configuration.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getHumanAnnotationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getHumanAnnotationConfigOrBuilder() { return getHumanAnnotationConfig(); } public static final int BIGQUERY_IMPORT_KEYS_FIELD_NUMBER = 9; - private static final class BigqueryImportKeysDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - private com.google.protobuf.MapField bigqueryImportKeys_; - + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> bigqueryImportKeys_; private com.google.protobuf.MapField - internalGetBigqueryImportKeys() { + internalGetBigqueryImportKeys() { if (bigqueryImportKeys_ == null) { return com.google.protobuf.MapField.emptyMapField( BigqueryImportKeysDefaultEntryHolder.defaultEntry); @@ -775,8 +620,6 @@ public int getBigqueryImportKeysCount() { return internalGetBigqueryImportKeys().getMap().size(); } /** - * - * *
    * Required. Prediction keys that tell Data Labeling Service where to find the
    * data for evaluation in your BigQuery table. When the service samples
@@ -798,22 +641,22 @@ public int getBigqueryImportKeysCount() {
    *
    * map<string, string> bigquery_import_keys = 9;
    */
+
   @java.lang.Override
-  public boolean containsBigqueryImportKeys(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsBigqueryImportKeys(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetBigqueryImportKeys().getMap().containsKey(key);
   }
-  /** Use {@link #getBigqueryImportKeysMap()} instead. */
+  /**
+   * Use {@link #getBigqueryImportKeysMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getBigqueryImportKeys() {
     return getBigqueryImportKeysMap();
   }
   /**
-   *
-   *
    * 
    * Required. Prediction keys that tell Data Labeling Service where to find the
    * data for evaluation in your BigQuery table. When the service samples
@@ -836,12 +679,11 @@ public java.util.Map getBigqueryImportKeys()
    * map<string, string> bigquery_import_keys = 9;
    */
   @java.lang.Override
+
   public java.util.Map getBigqueryImportKeysMap() {
     return internalGetBigqueryImportKeys().getMap();
   }
   /**
-   *
-   *
    * 
    * Required. Prediction keys that tell Data Labeling Service where to find the
    * data for evaluation in your BigQuery table. When the service samples
@@ -864,18 +706,16 @@ public java.util.Map getBigqueryImportKeysMa
    * map<string, string> bigquery_import_keys = 9;
    */
   @java.lang.Override
+
   public java.lang.String getBigqueryImportKeysOrDefault(
-      java.lang.String key, java.lang.String defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+      java.lang.String key,
+      java.lang.String defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetBigqueryImportKeys().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Required. Prediction keys that tell Data Labeling Service where to find the
    * data for evaluation in your BigQuery table. When the service samples
@@ -898,10 +738,10 @@ public java.lang.String getBigqueryImportKeysOrDefault(
    * map<string, string> bigquery_import_keys = 9;
    */
   @java.lang.Override
-  public java.lang.String getBigqueryImportKeysOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+
+  public java.lang.String getBigqueryImportKeysOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     java.util.Map map =
         internalGetBigqueryImportKeys().getMap();
     if (!map.containsKey(key)) {
@@ -913,8 +753,6 @@ public java.lang.String getBigqueryImportKeysOrThrow(java.lang.String key) {
   public static final int EXAMPLE_COUNT_FIELD_NUMBER = 10;
   private int exampleCount_;
   /**
-   *
-   *
    * 
    * Required. The maximum number of predictions to sample and save to BigQuery
    * during each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. This limit
@@ -924,7 +762,6 @@ public java.lang.String getBigqueryImportKeysOrThrow(java.lang.String key) {
    * 
* * int32 example_count = 10; - * * @return The exampleCount. */ @java.lang.Override @@ -935,8 +772,6 @@ public int getExampleCount() { public static final int EXAMPLE_SAMPLE_PERCENTAGE_FIELD_NUMBER = 11; private double exampleSamplePercentage_; /** - * - * *
    * Required. Fraction of predictions to sample and save to BigQuery during
    * each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. For example, 0.1 means
@@ -944,7 +779,6 @@ public int getExampleCount() {
    * 
* * double example_sample_percentage = 11; - * * @return The exampleSamplePercentage. */ @java.lang.Override @@ -955,18 +789,13 @@ public double getExampleSamplePercentage() { public static final int EVALUATION_JOB_ALERT_CONFIG_FIELD_NUMBER = 13; private com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluationJobAlertConfig_; /** - * - * *
    * Optional. Configuration details for evaluation job alerts. Specify this
    * field if you want to receive email alerts if the evaluation job finds that
    * your predictions have low mean average precision during a run.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; - * - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; * @return Whether the evaluationJobAlertConfig field is set. */ @java.lang.Override @@ -974,48 +803,34 @@ public boolean hasEvaluationJobAlertConfig() { return evaluationJobAlertConfig_ != null; } /** - * - * *
    * Optional. Configuration details for evaluation job alerts. Specify this
    * field if you want to receive email alerts if the evaluation job finds that
    * your predictions have low mean average precision during a run.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; - * - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; * @return The evaluationJobAlertConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig - getEvaluationJobAlertConfig() { - return evaluationJobAlertConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.getDefaultInstance() - : evaluationJobAlertConfig_; + public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig getEvaluationJobAlertConfig() { + return evaluationJobAlertConfig_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.getDefaultInstance() : evaluationJobAlertConfig_; } /** - * - * *
    * Optional. Configuration details for evaluation job alerts. Specify this
    * field if you want to receive email alerts if the evaluation job finds that
    * your predictions have low mean average precision during a run.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder - getEvaluationJobAlertConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder getEvaluationJobAlertConfigOrBuilder() { return getEvaluationJobAlertConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1027,7 +842,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()); } @@ -1038,23 +854,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(3, getHumanAnnotationConfig()); } if (humanAnnotationRequestConfigCase_ == 4) { - output.writeMessage( - 4, - (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - humanAnnotationRequestConfig_); + output.writeMessage(4, (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) humanAnnotationRequestConfig_); } if (humanAnnotationRequestConfigCase_ == 5) { - output.writeMessage( - 5, - (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_); + output.writeMessage(5, (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_); } if (humanAnnotationRequestConfigCase_ == 8) { - output.writeMessage( - 8, - (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) - humanAnnotationRequestConfig_); + output.writeMessage(8, (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) humanAnnotationRequestConfig_); } - com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( output, internalGetBigqueryImportKeys(), BigqueryImportKeysDefaultEntryHolder.defaultEntry, @@ -1078,56 +887,50 @@ 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 (evaluationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEvaluationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEvaluationConfig()); } if (humanAnnotationConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHumanAnnotationConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getHumanAnnotationConfig()); } if (humanAnnotationRequestConfigCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, - (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - humanAnnotationRequestConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) humanAnnotationRequestConfig_); } if (humanAnnotationRequestConfigCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, - (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) - humanAnnotationRequestConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_); } if (humanAnnotationRequestConfigCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, - (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) - humanAnnotationRequestConfig_); - } - for (java.util.Map.Entry entry : - internalGetBigqueryImportKeys().getMap().entrySet()) { - com.google.protobuf.MapEntry bigqueryImportKeys__ = - BigqueryImportKeysDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, bigqueryImportKeys__); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) humanAnnotationRequestConfig_); + } + for (java.util.Map.Entry entry + : internalGetBigqueryImportKeys().getMap().entrySet()) { + com.google.protobuf.MapEntry + bigqueryImportKeys__ = BigqueryImportKeysDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, bigqueryImportKeys__); } if (exampleCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, exampleCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(10, exampleCount_); } if (java.lang.Double.doubleToRawLongBits(exampleSamplePercentage_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(11, exampleSamplePercentage_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(11, exampleSamplePercentage_); } if (evaluationJobAlertConfig_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 13, getEvaluationJobAlertConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getEvaluationJobAlertConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1137,48 +940,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.datalabeling.v1beta1.EvaluationJobConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig other = - (com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig) obj; + com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig other = (com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig) obj; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig().equals(other.getInputConfig())) return false; + if (!getInputConfig() + .equals(other.getInputConfig())) return false; } if (hasEvaluationConfig() != other.hasEvaluationConfig()) return false; if (hasEvaluationConfig()) { - if (!getEvaluationConfig().equals(other.getEvaluationConfig())) return false; + if (!getEvaluationConfig() + .equals(other.getEvaluationConfig())) return false; } if (hasHumanAnnotationConfig() != other.hasHumanAnnotationConfig()) return false; if (hasHumanAnnotationConfig()) { - if (!getHumanAnnotationConfig().equals(other.getHumanAnnotationConfig())) return false; + if (!getHumanAnnotationConfig() + .equals(other.getHumanAnnotationConfig())) return false; } - if (!internalGetBigqueryImportKeys().equals(other.internalGetBigqueryImportKeys())) - return false; - if (getExampleCount() != other.getExampleCount()) return false; + if (!internalGetBigqueryImportKeys().equals( + other.internalGetBigqueryImportKeys())) return false; + if (getExampleCount() + != other.getExampleCount()) return false; if (java.lang.Double.doubleToLongBits(getExampleSamplePercentage()) - != java.lang.Double.doubleToLongBits(other.getExampleSamplePercentage())) return false; + != java.lang.Double.doubleToLongBits( + other.getExampleSamplePercentage())) return false; if (hasEvaluationJobAlertConfig() != other.hasEvaluationJobAlertConfig()) return false; if (hasEvaluationJobAlertConfig()) { - if (!getEvaluationJobAlertConfig().equals(other.getEvaluationJobAlertConfig())) return false; + if (!getEvaluationJobAlertConfig() + .equals(other.getEvaluationJobAlertConfig())) return false; } - if (!getHumanAnnotationRequestConfigCase().equals(other.getHumanAnnotationRequestConfigCase())) - return false; + if (!getHumanAnnotationRequestConfigCase().equals(other.getHumanAnnotationRequestConfigCase())) return false; switch (humanAnnotationRequestConfigCase_) { case 4: - if (!getImageClassificationConfig().equals(other.getImageClassificationConfig())) - return false; + if (!getImageClassificationConfig() + .equals(other.getImageClassificationConfig())) return false; break; case 5: - if (!getBoundingPolyConfig().equals(other.getBoundingPolyConfig())) return false; + if (!getBoundingPolyConfig() + .equals(other.getBoundingPolyConfig())) return false; break; case 8: - if (!getTextClassificationConfig().equals(other.getTextClassificationConfig())) - return false; + if (!getTextClassificationConfig() + .equals(other.getTextClassificationConfig())) return false; break; case 0: default: @@ -1213,10 +1021,8 @@ public int hashCode() { hash = (37 * hash) + EXAMPLE_COUNT_FIELD_NUMBER; hash = (53 * hash) + getExampleCount(); hash = (37 * hash) + EXAMPLE_SAMPLE_PERCENTAGE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getExampleSamplePercentage())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getExampleSamplePercentage())); if (hasEvaluationJobAlertConfig()) { hash = (37 * hash) + EVALUATION_JOB_ALERT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getEvaluationJobAlertConfig().hashCode(); @@ -1243,104 +1049,96 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig 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.datalabeling.v1beta1.EvaluationJobConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configures specific details of how a continuous evaluation job works. Provide
    * this configuration when you create an EvaluationJob.
@@ -1348,43 +1146,43 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJobConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.EvaluationJobConfig)
       com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(int number) {
+    protected com.google.protobuf.MapField internalGetMapField(
+        int number) {
       switch (number) {
         case 9:
           return internalGetBigqueryImportKeys();
         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 9:
           return internalGetMutableBigqueryImportKeys();
         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.datalabeling.v1beta1.EvaluationJobOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.class,
-              com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.class, com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.newBuilder()
@@ -1392,15 +1190,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();
@@ -1439,9 +1238,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor;
     }
 
     @java.lang.Override
@@ -1460,8 +1259,7 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig result =
-          new com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig(this);
+      com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig result = new com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig(this);
       int from_bitField0_ = bitField0_;
       if (humanAnnotationRequestConfigCase_ == 4) {
         if (imageClassificationConfigBuilder_ == null) {
@@ -1517,39 +1315,38 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig buildPartial()
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig) other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1557,8 +1354,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.getDefaultInstance()) return this;
       if (other.hasInputConfig()) {
         mergeInputConfig(other.getInputConfig());
       }
@@ -1568,7 +1364,8 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.EvaluationJobConf
       if (other.hasHumanAnnotationConfig()) {
         mergeHumanAnnotationConfig(other.getHumanAnnotationConfig());
       }
-      internalGetMutableBigqueryImportKeys().mergeFrom(other.internalGetBigqueryImportKeys());
+      internalGetMutableBigqueryImportKeys().mergeFrom(
+          other.internalGetBigqueryImportKeys());
       if (other.getExampleCount() != 0) {
         setExampleCount(other.getExampleCount());
       }
@@ -1579,25 +1376,21 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.EvaluationJobConf
         mergeEvaluationJobAlertConfig(other.getEvaluationJobAlertConfig());
       }
       switch (other.getHumanAnnotationRequestConfigCase()) {
-        case IMAGE_CLASSIFICATION_CONFIG:
-          {
-            mergeImageClassificationConfig(other.getImageClassificationConfig());
-            break;
-          }
-        case BOUNDING_POLY_CONFIG:
-          {
-            mergeBoundingPolyConfig(other.getBoundingPolyConfig());
-            break;
-          }
-        case TEXT_CLASSIFICATION_CONFIG:
-          {
-            mergeTextClassificationConfig(other.getTextClassificationConfig());
-            break;
-          }
-        case HUMANANNOTATIONREQUESTCONFIG_NOT_SET:
-          {
-            break;
-          }
+        case IMAGE_CLASSIFICATION_CONFIG: {
+          mergeImageClassificationConfig(other.getImageClassificationConfig());
+          break;
+        }
+        case BOUNDING_POLY_CONFIG: {
+          mergeBoundingPolyConfig(other.getBoundingPolyConfig());
+          break;
+        }
+        case TEXT_CLASSIFICATION_CONFIG: {
+          mergeTextClassificationConfig(other.getTextClassificationConfig());
+          break;
+        }
+        case HUMANANNOTATIONREQUESTCONFIG_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1618,8 +1411,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1628,12 +1420,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int humanAnnotationRequestConfigCase_ = 0;
     private java.lang.Object humanAnnotationRequestConfig_;
-
-    public HumanAnnotationRequestConfigCase getHumanAnnotationRequestConfigCase() {
-      return HumanAnnotationRequestConfigCase.forNumber(humanAnnotationRequestConfigCase_);
+    public HumanAnnotationRequestConfigCase
+        getHumanAnnotationRequestConfigCase() {
+      return HumanAnnotationRequestConfigCase.forNumber(
+          humanAnnotationRequestConfigCase_);
     }
 
     public Builder clearHumanAnnotationRequestConfig() {
@@ -1646,13 +1438,8 @@ public Builder clearHumanAnnotationRequestConfig() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig,
-            com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder,
-            com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder>
-        imageClassificationConfigBuilder_;
+        com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder> imageClassificationConfigBuilder_;
     /**
-     *
-     *
      * 
      * Specify this field if your model version performs image classification or
      * general classification.
@@ -1662,10 +1449,7 @@ public Builder clearHumanAnnotationRequestConfig() {
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @return Whether the imageClassificationConfig field is set. */ @java.lang.Override @@ -1673,8 +1457,6 @@ public boolean hasImageClassificationConfig() { return humanAnnotationRequestConfigCase_ == 4; } /** - * - * *
      * Specify this field if your model version performs image classification or
      * general classification.
@@ -1684,19 +1466,14 @@ public boolean hasImageClassificationConfig() {
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @return The imageClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig - getImageClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageClassificationConfig() { if (imageClassificationConfigBuilder_ == null) { if (humanAnnotationRequestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - humanAnnotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) humanAnnotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } else { @@ -1707,8 +1484,6 @@ public boolean hasImageClassificationConfig() { } } /** - * - * *
      * Specify this field if your model version performs image classification or
      * general classification.
@@ -1718,12 +1493,9 @@ public boolean hasImageClassificationConfig() {
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; */ - public Builder setImageClassificationConfig( - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { + public Builder setImageClassificationConfig(com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { if (imageClassificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1737,8 +1509,6 @@ public Builder setImageClassificationConfig( return this; } /** - * - * *
      * Specify this field if your model version performs image classification or
      * general classification.
@@ -1748,9 +1518,7 @@ public Builder setImageClassificationConfig(
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; */ public Builder setImageClassificationConfig( com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder builderForValue) { @@ -1764,8 +1532,6 @@ public Builder setImageClassificationConfig( return this; } /** - * - * *
      * Specify this field if your model version performs image classification or
      * general classification.
@@ -1775,23 +1541,14 @@ public Builder setImageClassificationConfig(
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; */ - public Builder mergeImageClassificationConfig( - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { + public Builder mergeImageClassificationConfig(com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { if (imageClassificationConfigBuilder_ == null) { - if (humanAnnotationRequestConfigCase_ == 4 - && humanAnnotationRequestConfig_ - != com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig - .getDefaultInstance()) { - humanAnnotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.newBuilder( - (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - humanAnnotationRequestConfig_) - .mergeFrom(value) - .buildPartial(); + if (humanAnnotationRequestConfigCase_ == 4 && + humanAnnotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance()) { + humanAnnotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) humanAnnotationRequestConfig_) + .mergeFrom(value).buildPartial(); } else { humanAnnotationRequestConfig_ = value; } @@ -1807,8 +1564,6 @@ public Builder mergeImageClassificationConfig( return this; } /** - * - * *
      * Specify this field if your model version performs image classification or
      * general classification.
@@ -1818,9 +1573,7 @@ public Builder mergeImageClassificationConfig(
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; */ public Builder clearImageClassificationConfig() { if (imageClassificationConfigBuilder_ == null) { @@ -1839,8 +1592,6 @@ public Builder clearImageClassificationConfig() { return this; } /** - * - * *
      * Specify this field if your model version performs image classification or
      * general classification.
@@ -1850,17 +1601,12 @@ public Builder clearImageClassificationConfig() {
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; */ - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder - getImageClassificationConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder getImageClassificationConfigBuilder() { return getImageClassificationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Specify this field if your model version performs image classification or
      * general classification.
@@ -1870,26 +1616,20 @@ public Builder clearImageClassificationConfig() {
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder - getImageClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder getImageClassificationConfigOrBuilder() { if ((humanAnnotationRequestConfigCase_ == 4) && (imageClassificationConfigBuilder_ != null)) { return imageClassificationConfigBuilder_.getMessageOrBuilder(); } else { if (humanAnnotationRequestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - humanAnnotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) humanAnnotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } } /** - * - * *
      * Specify this field if your model version performs image classification or
      * general classification.
@@ -1899,45 +1639,30 @@ public Builder clearImageClassificationConfig() {
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder> getImageClassificationConfigFieldBuilder() { if (imageClassificationConfigBuilder_ == null) { if (!(humanAnnotationRequestConfigCase_ == 4)) { - humanAnnotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); + humanAnnotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } - imageClassificationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - humanAnnotationRequestConfig_, + imageClassificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) humanAnnotationRequestConfig_, getParentForChildren(), isClean()); humanAnnotationRequestConfig_ = null; } humanAnnotationRequestConfigCase_ = 4; - onChanged(); - ; + onChanged();; return imageClassificationConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder> - boundingPolyConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder> boundingPolyConfigBuilder_; /** - * - * *
      * Specify this field if your model version performs image object detection
      * (bounding box detection).
@@ -1946,7 +1671,6 @@ public Builder clearImageClassificationConfig() {
      * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; - * * @return Whether the boundingPolyConfig field is set. */ @java.lang.Override @@ -1954,8 +1678,6 @@ public boolean hasBoundingPolyConfig() { return humanAnnotationRequestConfigCase_ == 5; } /** - * - * *
      * Specify this field if your model version performs image object detection
      * (bounding box detection).
@@ -1964,15 +1686,13 @@ public boolean hasBoundingPolyConfig() {
      * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; - * * @return The boundingPolyConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyConfig() { if (boundingPolyConfigBuilder_ == null) { if (humanAnnotationRequestConfigCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) - humanAnnotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance(); } else { @@ -1983,8 +1703,6 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyC } } /** - * - * *
      * Specify this field if your model version performs image object detection
      * (bounding box detection).
@@ -1994,8 +1712,7 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyC
      *
      * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
      */
-    public Builder setBoundingPolyConfig(
-        com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) {
+    public Builder setBoundingPolyConfig(com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) {
       if (boundingPolyConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2009,8 +1726,6 @@ public Builder setBoundingPolyConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Specify this field if your model version performs image object detection
      * (bounding box detection).
@@ -2032,8 +1747,6 @@ public Builder setBoundingPolyConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Specify this field if your model version performs image object detection
      * (bounding box detection).
@@ -2043,18 +1756,12 @@ public Builder setBoundingPolyConfig(
      *
      * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
      */
-    public Builder mergeBoundingPolyConfig(
-        com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) {
+    public Builder mergeBoundingPolyConfig(com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) {
       if (boundingPolyConfigBuilder_ == null) {
-        if (humanAnnotationRequestConfigCase_ == 5
-            && humanAnnotationRequestConfig_
-                != com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance()) {
-          humanAnnotationRequestConfig_ =
-              com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.newBuilder(
-                      (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig)
-                          humanAnnotationRequestConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (humanAnnotationRequestConfigCase_ == 5 &&
+            humanAnnotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance()) {
+          humanAnnotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_)
+              .mergeFrom(value).buildPartial();
         } else {
           humanAnnotationRequestConfig_ = value;
         }
@@ -2070,8 +1777,6 @@ public Builder mergeBoundingPolyConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Specify this field if your model version performs image object detection
      * (bounding box detection).
@@ -2098,8 +1803,6 @@ public Builder clearBoundingPolyConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Specify this field if your model version performs image object detection
      * (bounding box detection).
@@ -2109,13 +1812,10 @@ public Builder clearBoundingPolyConfig() {
      *
      * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
      */
-    public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder
-        getBoundingPolyConfigBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder getBoundingPolyConfigBuilder() {
       return getBoundingPolyConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Specify this field if your model version performs image object detection
      * (bounding box detection).
@@ -2126,21 +1826,17 @@ public Builder clearBoundingPolyConfig() {
      * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
      */
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder
-        getBoundingPolyConfigOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoundingPolyConfigOrBuilder() {
       if ((humanAnnotationRequestConfigCase_ == 5) && (boundingPolyConfigBuilder_ != null)) {
         return boundingPolyConfigBuilder_.getMessageOrBuilder();
       } else {
         if (humanAnnotationRequestConfigCase_ == 5) {
-          return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig)
-              humanAnnotationRequestConfig_;
+          return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_;
         }
         return com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance();
       }
     }
     /**
-     *
-     *
      * 
      * Specify this field if your model version performs image object detection
      * (bounding box detection).
@@ -2151,40 +1847,27 @@ public Builder clearBoundingPolyConfig() {
      * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig,
-            com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder,
-            com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder>
+        com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder> 
         getBoundingPolyConfigFieldBuilder() {
       if (boundingPolyConfigBuilder_ == null) {
         if (!(humanAnnotationRequestConfigCase_ == 5)) {
-          humanAnnotationRequestConfig_ =
-              com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance();
+          humanAnnotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance();
         }
-        boundingPolyConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig,
-                com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder,
-                com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder>(
-                (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig)
-                    humanAnnotationRequestConfig_,
+        boundingPolyConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder>(
+                (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_,
                 getParentForChildren(),
                 isClean());
         humanAnnotationRequestConfig_ = null;
       }
       humanAnnotationRequestConfigCase_ = 5;
-      onChanged();
-      ;
+      onChanged();;
       return boundingPolyConfigBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.TextClassificationConfig,
-            com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder,
-            com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder>
-        textClassificationConfigBuilder_;
+        com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder> textClassificationConfigBuilder_;
     /**
-     *
-     *
      * 
      * Specify this field if your model version performs text classification.
      * `annotationSpecSet` in this configuration must match
@@ -2193,10 +1876,7 @@ public Builder clearBoundingPolyConfig() {
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; * @return Whether the textClassificationConfig field is set. */ @java.lang.Override @@ -2204,8 +1884,6 @@ public boolean hasTextClassificationConfig() { return humanAnnotationRequestConfigCase_ == 8; } /** - * - * *
      * Specify this field if your model version performs text classification.
      * `annotationSpecSet` in this configuration must match
@@ -2214,19 +1892,14 @@ public boolean hasTextClassificationConfig() {
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; * @return The textClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig - getTextClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextClassificationConfig() { if (textClassificationConfigBuilder_ == null) { if (humanAnnotationRequestConfigCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) - humanAnnotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) humanAnnotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } else { @@ -2237,8 +1910,6 @@ public boolean hasTextClassificationConfig() { } } /** - * - * *
      * Specify this field if your model version performs text classification.
      * `annotationSpecSet` in this configuration must match
@@ -2247,12 +1918,9 @@ public boolean hasTextClassificationConfig() {
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; */ - public Builder setTextClassificationConfig( - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { + public Builder setTextClassificationConfig(com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { if (textClassificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2266,8 +1934,6 @@ public Builder setTextClassificationConfig( return this; } /** - * - * *
      * Specify this field if your model version performs text classification.
      * `annotationSpecSet` in this configuration must match
@@ -2276,9 +1942,7 @@ public Builder setTextClassificationConfig(
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; */ public Builder setTextClassificationConfig( com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder builderForValue) { @@ -2292,8 +1956,6 @@ public Builder setTextClassificationConfig( return this; } /** - * - * *
      * Specify this field if your model version performs text classification.
      * `annotationSpecSet` in this configuration must match
@@ -2302,23 +1964,14 @@ public Builder setTextClassificationConfig(
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; */ - public Builder mergeTextClassificationConfig( - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { + public Builder mergeTextClassificationConfig(com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { if (textClassificationConfigBuilder_ == null) { - if (humanAnnotationRequestConfigCase_ == 8 - && humanAnnotationRequestConfig_ - != com.google.cloud.datalabeling.v1beta1.TextClassificationConfig - .getDefaultInstance()) { - humanAnnotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.newBuilder( - (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) - humanAnnotationRequestConfig_) - .mergeFrom(value) - .buildPartial(); + if (humanAnnotationRequestConfigCase_ == 8 && + humanAnnotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance()) { + humanAnnotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) humanAnnotationRequestConfig_) + .mergeFrom(value).buildPartial(); } else { humanAnnotationRequestConfig_ = value; } @@ -2334,8 +1987,6 @@ public Builder mergeTextClassificationConfig( return this; } /** - * - * *
      * Specify this field if your model version performs text classification.
      * `annotationSpecSet` in this configuration must match
@@ -2344,9 +1995,7 @@ public Builder mergeTextClassificationConfig(
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; */ public Builder clearTextClassificationConfig() { if (textClassificationConfigBuilder_ == null) { @@ -2365,8 +2014,6 @@ public Builder clearTextClassificationConfig() { return this; } /** - * - * *
      * Specify this field if your model version performs text classification.
      * `annotationSpecSet` in this configuration must match
@@ -2375,17 +2022,12 @@ public Builder clearTextClassificationConfig() {
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; */ - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder - getTextClassificationConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder getTextClassificationConfigBuilder() { return getTextClassificationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Specify this field if your model version performs text classification.
      * `annotationSpecSet` in this configuration must match
@@ -2394,26 +2036,20 @@ public Builder clearTextClassificationConfig() {
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder - getTextClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder getTextClassificationConfigOrBuilder() { if ((humanAnnotationRequestConfigCase_ == 8) && (textClassificationConfigBuilder_ != null)) { return textClassificationConfigBuilder_.getMessageOrBuilder(); } else { if (humanAnnotationRequestConfigCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) - humanAnnotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) humanAnnotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } } /** - * - * *
      * Specify this field if your model version performs text classification.
      * `annotationSpecSet` in this configuration must match
@@ -2422,46 +2058,31 @@ public Builder clearTextClassificationConfig() {
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder> getTextClassificationConfigFieldBuilder() { if (textClassificationConfigBuilder_ == null) { if (!(humanAnnotationRequestConfigCase_ == 8)) { - humanAnnotationRequestConfig_ = - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); + humanAnnotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } - textClassificationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) - humanAnnotationRequestConfig_, + textClassificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) humanAnnotationRequestConfig_, getParentForChildren(), isClean()); humanAnnotationRequestConfig_ = null; } humanAnnotationRequestConfigCase_ = 8; - onChanged(); - ; + onChanged();; return textClassificationConfigBuilder_; } private com.google.cloud.datalabeling.v1beta1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.InputConfig, - com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, - com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.InputConfig, com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Rquired. Details for the sampled prediction input. Within this
      * configuration, there are requirements for several fields:
@@ -2475,15 +2096,12 @@ public Builder clearTextClassificationConfig() {
      * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Rquired. Details for the sampled prediction input. Within this
      * configuration, there are requirements for several fields:
@@ -2497,21 +2115,16 @@ public boolean hasInputConfig() {
      * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ public com.google.cloud.datalabeling.v1beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Rquired. Details for the sampled prediction input. Within this
      * configuration, there are requirements for several fields:
@@ -2540,8 +2153,6 @@ public Builder setInputConfig(com.google.cloud.datalabeling.v1beta1.InputConfig
       return this;
     }
     /**
-     *
-     *
      * 
      * Rquired. Details for the sampled prediction input. Within this
      * configuration, there are requirements for several fields:
@@ -2568,8 +2179,6 @@ public Builder setInputConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Rquired. Details for the sampled prediction input. Within this
      * configuration, there are requirements for several fields:
@@ -2588,9 +2197,7 @@ public Builder mergeInputConfig(com.google.cloud.datalabeling.v1beta1.InputConfi
       if (inputConfigBuilder_ == null) {
         if (inputConfig_ != null) {
           inputConfig_ =
-              com.google.cloud.datalabeling.v1beta1.InputConfig.newBuilder(inputConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.datalabeling.v1beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial();
         } else {
           inputConfig_ = value;
         }
@@ -2602,8 +2209,6 @@ public Builder mergeInputConfig(com.google.cloud.datalabeling.v1beta1.InputConfi
       return this;
     }
     /**
-     *
-     *
      * 
      * Rquired. Details for the sampled prediction input. Within this
      * configuration, there are requirements for several fields:
@@ -2630,8 +2235,6 @@ public Builder clearInputConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Rquired. Details for the sampled prediction input. Within this
      * configuration, there are requirements for several fields:
@@ -2647,13 +2250,11 @@ public Builder clearInputConfig() {
      * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1;
      */
     public com.google.cloud.datalabeling.v1beta1.InputConfig.Builder getInputConfigBuilder() {
-
+      
       onChanged();
       return getInputConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Rquired. Details for the sampled prediction input. Within this
      * configuration, there are requirements for several fields:
@@ -2672,14 +2273,11 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig
       if (inputConfigBuilder_ != null) {
         return inputConfigBuilder_.getMessageOrBuilder();
       } else {
-        return inputConfig_ == null
-            ? com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance()
-            : inputConfig_;
+        return inputConfig_ == null ?
+            com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance() : inputConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * Rquired. Details for the sampled prediction input. Within this
      * configuration, there are requirements for several fields:
@@ -2695,17 +2293,14 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig
      * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.InputConfig,
-            com.google.cloud.datalabeling.v1beta1.InputConfig.Builder,
-            com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder>
+        com.google.cloud.datalabeling.v1beta1.InputConfig, com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder> 
         getInputConfigFieldBuilder() {
       if (inputConfigBuilder_ == null) {
-        inputConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.datalabeling.v1beta1.InputConfig,
-                com.google.cloud.datalabeling.v1beta1.InputConfig.Builder,
-                com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder>(
-                getInputConfig(), getParentForChildren(), isClean());
+        inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.datalabeling.v1beta1.InputConfig, com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder>(
+                getInputConfig(),
+                getParentForChildren(),
+                isClean());
         inputConfig_ = null;
       }
       return inputConfigBuilder_;
@@ -2713,13 +2308,8 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig
 
     private com.google.cloud.datalabeling.v1beta1.EvaluationConfig evaluationConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.EvaluationConfig,
-            com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder,
-            com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder>
-        evaluationConfigBuilder_;
+        com.google.cloud.datalabeling.v1beta1.EvaluationConfig, com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder> evaluationConfigBuilder_;
     /**
-     *
-     *
      * 
      * Required. Details for calculating evaluation metrics and creating
      * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -2729,15 +2319,12 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; - * * @return Whether the evaluationConfig field is set. */ public boolean hasEvaluationConfig() { return evaluationConfigBuilder_ != null || evaluationConfig_ != null; } /** - * - * *
      * Required. Details for calculating evaluation metrics and creating
      * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -2747,21 +2334,16 @@ public boolean hasEvaluationConfig() {
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; - * * @return The evaluationConfig. */ public com.google.cloud.datalabeling.v1beta1.EvaluationConfig getEvaluationConfig() { if (evaluationConfigBuilder_ == null) { - return evaluationConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance() - : evaluationConfig_; + return evaluationConfig_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance() : evaluationConfig_; } else { return evaluationConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Details for calculating evaluation metrics and creating
      * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -2772,8 +2354,7 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfig getEvaluationConfi
      *
      * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2;
      */
-    public Builder setEvaluationConfig(
-        com.google.cloud.datalabeling.v1beta1.EvaluationConfig value) {
+    public Builder setEvaluationConfig(com.google.cloud.datalabeling.v1beta1.EvaluationConfig value) {
       if (evaluationConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2787,8 +2368,6 @@ public Builder setEvaluationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Details for calculating evaluation metrics and creating
      * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -2811,8 +2390,6 @@ public Builder setEvaluationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Details for calculating evaluation metrics and creating
      * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -2823,14 +2400,11 @@ public Builder setEvaluationConfig(
      *
      * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2;
      */
-    public Builder mergeEvaluationConfig(
-        com.google.cloud.datalabeling.v1beta1.EvaluationConfig value) {
+    public Builder mergeEvaluationConfig(com.google.cloud.datalabeling.v1beta1.EvaluationConfig value) {
       if (evaluationConfigBuilder_ == null) {
         if (evaluationConfig_ != null) {
           evaluationConfig_ =
-              com.google.cloud.datalabeling.v1beta1.EvaluationConfig.newBuilder(evaluationConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.datalabeling.v1beta1.EvaluationConfig.newBuilder(evaluationConfig_).mergeFrom(value).buildPartial();
         } else {
           evaluationConfig_ = value;
         }
@@ -2842,8 +2416,6 @@ public Builder mergeEvaluationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Details for calculating evaluation metrics and creating
      * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -2866,8 +2438,6 @@ public Builder clearEvaluationConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Details for calculating evaluation metrics and creating
      * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -2878,15 +2448,12 @@ public Builder clearEvaluationConfig() {
      *
      * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2;
      */
-    public com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder
-        getEvaluationConfigBuilder() {
-
+    public com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder getEvaluationConfigBuilder() {
+      
       onChanged();
       return getEvaluationConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Required. Details for calculating evaluation metrics and creating
      * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -2897,19 +2464,15 @@ public Builder clearEvaluationConfig() {
      *
      * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2;
      */
-    public com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder
-        getEvaluationConfigOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder getEvaluationConfigOrBuilder() {
       if (evaluationConfigBuilder_ != null) {
         return evaluationConfigBuilder_.getMessageOrBuilder();
       } else {
-        return evaluationConfig_ == null
-            ? com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance()
-            : evaluationConfig_;
+        return evaluationConfig_ == null ?
+            com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance() : evaluationConfig_;
       }
     }
     /**
-     *
-     *
      * 
      * Required. Details for calculating evaluation metrics and creating
      * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -2921,17 +2484,14 @@ public Builder clearEvaluationConfig() {
      * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.EvaluationConfig,
-            com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder,
-            com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder>
+        com.google.cloud.datalabeling.v1beta1.EvaluationConfig, com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder> 
         getEvaluationConfigFieldBuilder() {
       if (evaluationConfigBuilder_ == null) {
-        evaluationConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.datalabeling.v1beta1.EvaluationConfig,
-                com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder,
-                com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder>(
-                getEvaluationConfig(), getParentForChildren(), isClean());
+        evaluationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.datalabeling.v1beta1.EvaluationConfig, com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder>(
+                getEvaluationConfig(),
+                getParentForChildren(),
+                isClean());
         evaluationConfig_ = null;
       }
       return evaluationConfigBuilder_;
@@ -2939,13 +2499,8 @@ public Builder clearEvaluationConfig() {
 
     private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig humanAnnotationConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig,
-            com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder,
-            com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>
-        humanAnnotationConfigBuilder_;
+        com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> humanAnnotationConfigBuilder_;
     /**
-     *
-     *
      * 
      * Optional. Details for human annotation of your data. If you set
      * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -2956,17 +2511,13 @@ public Builder clearEvaluationConfig() {
      * `instruction` field within this configuration.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; * @return Whether the humanAnnotationConfig field is set. */ public boolean hasHumanAnnotationConfig() { return humanAnnotationConfigBuilder_ != null || humanAnnotationConfig_ != null; } /** - * - * *
      * Optional. Details for human annotation of your data. If you set
      * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -2977,23 +2528,17 @@ public boolean hasHumanAnnotationConfig() {
      * `instruction` field within this configuration.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; * @return The humanAnnotationConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getHumanAnnotationConfig() { if (humanAnnotationConfigBuilder_ == null) { - return humanAnnotationConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : humanAnnotationConfig_; + return humanAnnotationConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : humanAnnotationConfig_; } else { return humanAnnotationConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Details for human annotation of your data. If you set
      * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -3004,11 +2549,9 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getHumanAnnot
      * `instruction` field within this configuration.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; */ - public Builder setHumanAnnotationConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setHumanAnnotationConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (humanAnnotationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3022,8 +2565,6 @@ public Builder setHumanAnnotationConfig( return this; } /** - * - * *
      * Optional. Details for human annotation of your data. If you set
      * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -3034,8 +2575,7 @@ public Builder setHumanAnnotationConfig(
      * `instruction` field within this configuration.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; */ public Builder setHumanAnnotationConfig( com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder builderForValue) { @@ -3049,8 +2589,6 @@ public Builder setHumanAnnotationConfig( return this; } /** - * - * *
      * Optional. Details for human annotation of your data. If you set
      * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -3061,18 +2599,13 @@ public Builder setHumanAnnotationConfig(
      * `instruction` field within this configuration.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; */ - public Builder mergeHumanAnnotationConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeHumanAnnotationConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (humanAnnotationConfigBuilder_ == null) { if (humanAnnotationConfig_ != null) { humanAnnotationConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder( - humanAnnotationConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(humanAnnotationConfig_).mergeFrom(value).buildPartial(); } else { humanAnnotationConfig_ = value; } @@ -3084,8 +2617,6 @@ public Builder mergeHumanAnnotationConfig( return this; } /** - * - * *
      * Optional. Details for human annotation of your data. If you set
      * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -3096,8 +2627,7 @@ public Builder mergeHumanAnnotationConfig(
      * `instruction` field within this configuration.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; */ public Builder clearHumanAnnotationConfig() { if (humanAnnotationConfigBuilder_ == null) { @@ -3111,8 +2641,6 @@ public Builder clearHumanAnnotationConfig() { return this; } /** - * - * *
      * Optional. Details for human annotation of your data. If you set
      * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -3123,18 +2651,14 @@ public Builder clearHumanAnnotationConfig() {
      * `instruction` field within this configuration.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder - getHumanAnnotationConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getHumanAnnotationConfigBuilder() { + onChanged(); return getHumanAnnotationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Details for human annotation of your data. If you set
      * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -3145,22 +2669,17 @@ public Builder clearHumanAnnotationConfig() {
      * `instruction` field within this configuration.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getHumanAnnotationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getHumanAnnotationConfigOrBuilder() { if (humanAnnotationConfigBuilder_ != null) { return humanAnnotationConfigBuilder_.getMessageOrBuilder(); } else { - return humanAnnotationConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : humanAnnotationConfig_; + return humanAnnotationConfig_ == null ? + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : humanAnnotationConfig_; } } /** - * - * *
      * Optional. Details for human annotation of your data. If you set
      * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -3171,45 +2690,38 @@ public Builder clearHumanAnnotationConfig() {
      * `instruction` field within this configuration.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getHumanAnnotationConfigFieldBuilder() { if (humanAnnotationConfigBuilder_ == null) { - humanAnnotationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getHumanAnnotationConfig(), getParentForChildren(), isClean()); + humanAnnotationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getHumanAnnotationConfig(), + getParentForChildren(), + isClean()); humanAnnotationConfig_ = null; } return humanAnnotationConfigBuilder_; } - private com.google.protobuf.MapField bigqueryImportKeys_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> bigqueryImportKeys_; private com.google.protobuf.MapField - internalGetBigqueryImportKeys() { + internalGetBigqueryImportKeys() { if (bigqueryImportKeys_ == null) { return com.google.protobuf.MapField.emptyMapField( BigqueryImportKeysDefaultEntryHolder.defaultEntry); } return bigqueryImportKeys_; } - private com.google.protobuf.MapField - internalGetMutableBigqueryImportKeys() { - onChanged(); - ; + internalGetMutableBigqueryImportKeys() { + onChanged();; if (bigqueryImportKeys_ == null) { - bigqueryImportKeys_ = - com.google.protobuf.MapField.newMapField( - BigqueryImportKeysDefaultEntryHolder.defaultEntry); + bigqueryImportKeys_ = com.google.protobuf.MapField.newMapField( + BigqueryImportKeysDefaultEntryHolder.defaultEntry); } if (!bigqueryImportKeys_.isMutable()) { bigqueryImportKeys_ = bigqueryImportKeys_.copy(); @@ -3221,8 +2733,6 @@ public int getBigqueryImportKeysCount() { return internalGetBigqueryImportKeys().getMap().size(); } /** - * - * *
      * Required. Prediction keys that tell Data Labeling Service where to find the
      * data for evaluation in your BigQuery table. When the service samples
@@ -3244,22 +2754,22 @@ public int getBigqueryImportKeysCount() {
      *
      * map<string, string> bigquery_import_keys = 9;
      */
+
     @java.lang.Override
-    public boolean containsBigqueryImportKeys(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsBigqueryImportKeys(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetBigqueryImportKeys().getMap().containsKey(key);
     }
-    /** Use {@link #getBigqueryImportKeysMap()} instead. */
+    /**
+     * Use {@link #getBigqueryImportKeysMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getBigqueryImportKeys() {
       return getBigqueryImportKeysMap();
     }
     /**
-     *
-     *
      * 
      * Required. Prediction keys that tell Data Labeling Service where to find the
      * data for evaluation in your BigQuery table. When the service samples
@@ -3282,12 +2792,11 @@ public java.util.Map getBigqueryImportKeys()
      * map<string, string> bigquery_import_keys = 9;
      */
     @java.lang.Override
+
     public java.util.Map getBigqueryImportKeysMap() {
       return internalGetBigqueryImportKeys().getMap();
     }
     /**
-     *
-     *
      * 
      * Required. Prediction keys that tell Data Labeling Service where to find the
      * data for evaluation in your BigQuery table. When the service samples
@@ -3310,18 +2819,16 @@ public java.util.Map getBigqueryImportKeysMa
      * map<string, string> bigquery_import_keys = 9;
      */
     @java.lang.Override
+
     public java.lang.String getBigqueryImportKeysOrDefault(
-        java.lang.String key, java.lang.String defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+        java.lang.String key,
+        java.lang.String defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetBigqueryImportKeys().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Required. Prediction keys that tell Data Labeling Service where to find the
      * data for evaluation in your BigQuery table. When the service samples
@@ -3344,10 +2851,10 @@ public java.lang.String getBigqueryImportKeysOrDefault(
      * map<string, string> bigquery_import_keys = 9;
      */
     @java.lang.Override
-    public java.lang.String getBigqueryImportKeysOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+
+    public java.lang.String getBigqueryImportKeysOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       java.util.Map map =
           internalGetBigqueryImportKeys().getMap();
       if (!map.containsKey(key)) {
@@ -3357,12 +2864,11 @@ public java.lang.String getBigqueryImportKeysOrThrow(java.lang.String key) {
     }
 
     public Builder clearBigqueryImportKeys() {
-      internalGetMutableBigqueryImportKeys().getMutableMap().clear();
+      internalGetMutableBigqueryImportKeys().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Prediction keys that tell Data Labeling Service where to find the
      * data for evaluation in your BigQuery table. When the service samples
@@ -3384,21 +2890,23 @@ public Builder clearBigqueryImportKeys() {
      *
      * map<string, string> bigquery_import_keys = 9;
      */
-    public Builder removeBigqueryImportKeys(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableBigqueryImportKeys().getMutableMap().remove(key);
+
+    public Builder removeBigqueryImportKeys(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableBigqueryImportKeys().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableBigqueryImportKeys() {
+    public java.util.Map
+    getMutableBigqueryImportKeys() {
       return internalGetMutableBigqueryImportKeys().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Required. Prediction keys that tell Data Labeling Service where to find the
      * data for evaluation in your BigQuery table. When the service samples
@@ -3420,20 +2928,19 @@ public java.util.Map getMutableBigqueryImpor
      *
      * map<string, string> bigquery_import_keys = 9;
      */
-    public Builder putBigqueryImportKeys(java.lang.String key, java.lang.String value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public Builder putBigqueryImportKeys(
+        java.lang.String key,
+        java.lang.String value) {
+      if (key == null) { throw new NullPointerException("map key"); }
       if (value == null) {
-        throw new NullPointerException("map value");
-      }
+  throw new NullPointerException("map value");
+}
 
-      internalGetMutableBigqueryImportKeys().getMutableMap().put(key, value);
+      internalGetMutableBigqueryImportKeys().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Required. Prediction keys that tell Data Labeling Service where to find the
      * data for evaluation in your BigQuery table. When the service samples
@@ -3455,16 +2962,16 @@ public Builder putBigqueryImportKeys(java.lang.String key, java.lang.String valu
      *
      * map<string, string> bigquery_import_keys = 9;
      */
+
     public Builder putAllBigqueryImportKeys(
         java.util.Map values) {
-      internalGetMutableBigqueryImportKeys().getMutableMap().putAll(values);
+      internalGetMutableBigqueryImportKeys().getMutableMap()
+          .putAll(values);
       return this;
     }
 
-    private int exampleCount_;
+    private int exampleCount_ ;
     /**
-     *
-     *
      * 
      * Required. The maximum number of predictions to sample and save to BigQuery
      * during each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. This limit
@@ -3474,7 +2981,6 @@ public Builder putAllBigqueryImportKeys(
      * 
* * int32 example_count = 10; - * * @return The exampleCount. */ @java.lang.Override @@ -3482,8 +2988,6 @@ public int getExampleCount() { return exampleCount_; } /** - * - * *
      * Required. The maximum number of predictions to sample and save to BigQuery
      * during each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. This limit
@@ -3493,19 +2997,16 @@ public int getExampleCount() {
      * 
* * int32 example_count = 10; - * * @param value The exampleCount to set. * @return This builder for chaining. */ public Builder setExampleCount(int value) { - + exampleCount_ = value; onChanged(); return this; } /** - * - * *
      * Required. The maximum number of predictions to sample and save to BigQuery
      * during each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. This limit
@@ -3515,20 +3016,17 @@ public Builder setExampleCount(int value) {
      * 
* * int32 example_count = 10; - * * @return This builder for chaining. */ public Builder clearExampleCount() { - + exampleCount_ = 0; onChanged(); return this; } - private double exampleSamplePercentage_; + private double exampleSamplePercentage_ ; /** - * - * *
      * Required. Fraction of predictions to sample and save to BigQuery during
      * each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. For example, 0.1 means
@@ -3536,7 +3034,6 @@ public Builder clearExampleCount() {
      * 
* * double example_sample_percentage = 11; - * * @return The exampleSamplePercentage. */ @java.lang.Override @@ -3544,8 +3041,6 @@ public double getExampleSamplePercentage() { return exampleSamplePercentage_; } /** - * - * *
      * Required. Fraction of predictions to sample and save to BigQuery during
      * each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. For example, 0.1 means
@@ -3553,19 +3048,16 @@ public double getExampleSamplePercentage() {
      * 
* * double example_sample_percentage = 11; - * * @param value The exampleSamplePercentage to set. * @return This builder for chaining. */ public Builder setExampleSamplePercentage(double value) { - + exampleSamplePercentage_ = value; onChanged(); return this; } /** - * - * *
      * Required. Fraction of predictions to sample and save to BigQuery during
      * each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. For example, 0.1 means
@@ -3573,81 +3065,58 @@ public Builder setExampleSamplePercentage(double value) {
      * 
* * double example_sample_percentage = 11; - * * @return This builder for chaining. */ public Builder clearExampleSamplePercentage() { - + exampleSamplePercentage_ = 0D; onChanged(); return this; } - private com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig - evaluationJobAlertConfig_; + private com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluationJobAlertConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig, - com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder, - com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder> - evaluationJobAlertConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig, com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder> evaluationJobAlertConfigBuilder_; /** - * - * *
      * Optional. Configuration details for evaluation job alerts. Specify this
      * field if you want to receive email alerts if the evaluation job finds that
      * your predictions have low mean average precision during a run.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; - * - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; * @return Whether the evaluationJobAlertConfig field is set. */ public boolean hasEvaluationJobAlertConfig() { return evaluationJobAlertConfigBuilder_ != null || evaluationJobAlertConfig_ != null; } /** - * - * *
      * Optional. Configuration details for evaluation job alerts. Specify this
      * field if you want to receive email alerts if the evaluation job finds that
      * your predictions have low mean average precision during a run.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; - * - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; * @return The evaluationJobAlertConfig. */ - public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig - getEvaluationJobAlertConfig() { + public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig getEvaluationJobAlertConfig() { if (evaluationJobAlertConfigBuilder_ == null) { - return evaluationJobAlertConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.getDefaultInstance() - : evaluationJobAlertConfig_; + return evaluationJobAlertConfig_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.getDefaultInstance() : evaluationJobAlertConfig_; } else { return evaluationJobAlertConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Configuration details for evaluation job alerts. Specify this
      * field if you want to receive email alerts if the evaluation job finds that
      * your predictions have low mean average precision during a run.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; */ - public Builder setEvaluationJobAlertConfig( - com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig value) { + public Builder setEvaluationJobAlertConfig(com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig value) { if (evaluationJobAlertConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3661,17 +3130,13 @@ public Builder setEvaluationJobAlertConfig( return this; } /** - * - * *
      * Optional. Configuration details for evaluation job alerts. Specify this
      * field if you want to receive email alerts if the evaluation job finds that
      * your predictions have low mean average precision during a run.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; */ public Builder setEvaluationJobAlertConfig( com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder builderForValue) { @@ -3685,27 +3150,19 @@ public Builder setEvaluationJobAlertConfig( return this; } /** - * - * *
      * Optional. Configuration details for evaluation job alerts. Specify this
      * field if you want to receive email alerts if the evaluation job finds that
      * your predictions have low mean average precision during a run.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; */ - public Builder mergeEvaluationJobAlertConfig( - com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig value) { + public Builder mergeEvaluationJobAlertConfig(com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig value) { if (evaluationJobAlertConfigBuilder_ == null) { if (evaluationJobAlertConfig_ != null) { evaluationJobAlertConfig_ = - com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.newBuilder( - evaluationJobAlertConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.newBuilder(evaluationJobAlertConfig_).mergeFrom(value).buildPartial(); } else { evaluationJobAlertConfig_ = value; } @@ -3717,17 +3174,13 @@ public Builder mergeEvaluationJobAlertConfig( return this; } /** - * - * *
      * Optional. Configuration details for evaluation job alerts. Specify this
      * field if you want to receive email alerts if the evaluation job finds that
      * your predictions have low mean average precision during a run.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; */ public Builder clearEvaluationJobAlertConfig() { if (evaluationJobAlertConfigBuilder_ == null) { @@ -3741,79 +3194,61 @@ public Builder clearEvaluationJobAlertConfig() { return this; } /** - * - * *
      * Optional. Configuration details for evaluation job alerts. Specify this
      * field if you want to receive email alerts if the evaluation job finds that
      * your predictions have low mean average precision during a run.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; */ - public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder - getEvaluationJobAlertConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder getEvaluationJobAlertConfigBuilder() { + onChanged(); return getEvaluationJobAlertConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Configuration details for evaluation job alerts. Specify this
      * field if you want to receive email alerts if the evaluation job finds that
      * your predictions have low mean average precision during a run.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; */ - public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder - getEvaluationJobAlertConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder getEvaluationJobAlertConfigOrBuilder() { if (evaluationJobAlertConfigBuilder_ != null) { return evaluationJobAlertConfigBuilder_.getMessageOrBuilder(); } else { - return evaluationJobAlertConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.getDefaultInstance() - : evaluationJobAlertConfig_; + return evaluationJobAlertConfig_ == null ? + com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.getDefaultInstance() : evaluationJobAlertConfig_; } } /** - * - * *
      * Optional. Configuration details for evaluation job alerts. Specify this
      * field if you want to receive email alerts if the evaluation job finds that
      * your predictions have low mean average precision during a run.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig, - com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder, - com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig, com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder> getEvaluationJobAlertConfigFieldBuilder() { if (evaluationJobAlertConfigBuilder_ == null) { - evaluationJobAlertConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig, - com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder, - com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder>( - getEvaluationJobAlertConfig(), getParentForChildren(), isClean()); + evaluationJobAlertConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig, com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder>( + getEvaluationJobAlertConfig(), + getParentForChildren(), + isClean()); evaluationJobAlertConfig_ = null; } return evaluationJobAlertConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3823,12 +3258,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.EvaluationJobConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.EvaluationJobConfig) private static final com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig(); } @@ -3837,16 +3272,16 @@ public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvaluationJobConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvaluationJobConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationJobConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvaluationJobConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3861,4 +3296,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfigOrBuilder.java similarity index 86% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfigOrBuilder.java index 99b520ba..6d22f12c 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfigOrBuilder.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/datalabeling/v1beta1/evaluation_job.proto package com.google.cloud.datalabeling.v1beta1; -public interface EvaluationJobConfigOrBuilder - extends +public interface EvaluationJobConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.EvaluationJobConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Specify this field if your model version performs image classification or
    * general classification.
@@ -35,16 +17,11 @@ public interface EvaluationJobConfigOrBuilder
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @return Whether the imageClassificationConfig field is set. */ boolean hasImageClassificationConfig(); /** - * - * *
    * Specify this field if your model version performs image classification or
    * general classification.
@@ -54,16 +31,11 @@ public interface EvaluationJobConfigOrBuilder
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @return The imageClassificationConfig. */ com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageClassificationConfig(); /** - * - * *
    * Specify this field if your model version performs image classification or
    * general classification.
@@ -73,16 +45,11 @@ public interface EvaluationJobConfigOrBuilder
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; */ - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder - getImageClassificationConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder getImageClassificationConfigOrBuilder(); /** - * - * *
    * Specify this field if your model version performs image object detection
    * (bounding box detection).
@@ -91,13 +58,10 @@ public interface EvaluationJobConfigOrBuilder
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; - * * @return Whether the boundingPolyConfig field is set. */ boolean hasBoundingPolyConfig(); /** - * - * *
    * Specify this field if your model version performs image object detection
    * (bounding box detection).
@@ -106,13 +70,10 @@ public interface EvaluationJobConfigOrBuilder
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; - * * @return The boundingPolyConfig. */ com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyConfig(); /** - * - * *
    * Specify this field if your model version performs image object detection
    * (bounding box detection).
@@ -122,12 +83,9 @@ public interface EvaluationJobConfigOrBuilder
    *
    * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
    */
-  com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder
-      getBoundingPolyConfigOrBuilder();
+  com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoundingPolyConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Specify this field if your model version performs text classification.
    * `annotationSpecSet` in this configuration must match
@@ -136,16 +94,11 @@ public interface EvaluationJobConfigOrBuilder
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; * @return Whether the textClassificationConfig field is set. */ boolean hasTextClassificationConfig(); /** - * - * *
    * Specify this field if your model version performs text classification.
    * `annotationSpecSet` in this configuration must match
@@ -154,16 +107,11 @@ public interface EvaluationJobConfigOrBuilder
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; * @return The textClassificationConfig. */ com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextClassificationConfig(); /** - * - * *
    * Specify this field if your model version performs text classification.
    * `annotationSpecSet` in this configuration must match
@@ -172,16 +120,11 @@ public interface EvaluationJobConfigOrBuilder
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; */ - com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder - getTextClassificationConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder getTextClassificationConfigOrBuilder(); /** - * - * *
    * Rquired. Details for the sampled prediction input. Within this
    * configuration, there are requirements for several fields:
@@ -195,13 +138,10 @@ public interface EvaluationJobConfigOrBuilder
    * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; - * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Rquired. Details for the sampled prediction input. Within this
    * configuration, there are requirements for several fields:
@@ -215,13 +155,10 @@ public interface EvaluationJobConfigOrBuilder
    * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; - * * @return The inputConfig. */ com.google.cloud.datalabeling.v1beta1.InputConfig getInputConfig(); /** - * - * *
    * Rquired. Details for the sampled prediction input. Within this
    * configuration, there are requirements for several fields:
@@ -239,8 +176,6 @@ public interface EvaluationJobConfigOrBuilder
   com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Required. Details for calculating evaluation metrics and creating
    * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -250,13 +185,10 @@ public interface EvaluationJobConfigOrBuilder
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; - * * @return Whether the evaluationConfig field is set. */ boolean hasEvaluationConfig(); /** - * - * *
    * Required. Details for calculating evaluation metrics and creating
    * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -266,13 +198,10 @@ public interface EvaluationJobConfigOrBuilder
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; - * * @return The evaluationConfig. */ com.google.cloud.datalabeling.v1beta1.EvaluationConfig getEvaluationConfig(); /** - * - * *
    * Required. Details for calculating evaluation metrics and creating
    * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -286,8 +215,6 @@ public interface EvaluationJobConfigOrBuilder
   com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder getEvaluationConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Optional. Details for human annotation of your data. If you set
    * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -298,15 +225,11 @@ public interface EvaluationJobConfigOrBuilder
    * `instruction` field within this configuration.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; * @return Whether the humanAnnotationConfig field is set. */ boolean hasHumanAnnotationConfig(); /** - * - * *
    * Optional. Details for human annotation of your data. If you set
    * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -317,15 +240,11 @@ public interface EvaluationJobConfigOrBuilder
    * `instruction` field within this configuration.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; * @return The humanAnnotationConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getHumanAnnotationConfig(); /** - * - * *
    * Optional. Details for human annotation of your data. If you set
    * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -336,15 +255,11 @@ public interface EvaluationJobConfigOrBuilder
    * `instruction` field within this configuration.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; */ - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getHumanAnnotationConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getHumanAnnotationConfigOrBuilder(); /** - * - * *
    * Required. Prediction keys that tell Data Labeling Service where to find the
    * data for evaluation in your BigQuery table. When the service samples
@@ -368,8 +283,6 @@ public interface EvaluationJobConfigOrBuilder
    */
   int getBigqueryImportKeysCount();
   /**
-   *
-   *
    * 
    * Required. Prediction keys that tell Data Labeling Service where to find the
    * data for evaluation in your BigQuery table. When the service samples
@@ -391,13 +304,15 @@ public interface EvaluationJobConfigOrBuilder
    *
    * map<string, string> bigquery_import_keys = 9;
    */
-  boolean containsBigqueryImportKeys(java.lang.String key);
-  /** Use {@link #getBigqueryImportKeysMap()} instead. */
+  boolean containsBigqueryImportKeys(
+      java.lang.String key);
+  /**
+   * Use {@link #getBigqueryImportKeysMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getBigqueryImportKeys();
+  java.util.Map
+  getBigqueryImportKeys();
   /**
-   *
-   *
    * 
    * Required. Prediction keys that tell Data Labeling Service where to find the
    * data for evaluation in your BigQuery table. When the service samples
@@ -419,10 +334,9 @@ public interface EvaluationJobConfigOrBuilder
    *
    * map<string, string> bigquery_import_keys = 9;
    */
-  java.util.Map getBigqueryImportKeysMap();
+  java.util.Map
+  getBigqueryImportKeysMap();
   /**
-   *
-   *
    * 
    * Required. Prediction keys that tell Data Labeling Service where to find the
    * data for evaluation in your BigQuery table. When the service samples
@@ -446,13 +360,11 @@ public interface EvaluationJobConfigOrBuilder
    */
 
   /* nullable */
-  java.lang.String getBigqueryImportKeysOrDefault(
+java.lang.String getBigqueryImportKeysOrDefault(
       java.lang.String key,
       /* nullable */
-      java.lang.String defaultValue);
+java.lang.String defaultValue);
   /**
-   *
-   *
    * 
    * Required. Prediction keys that tell Data Labeling Service where to find the
    * data for evaluation in your BigQuery table. When the service samples
@@ -474,11 +386,11 @@ java.lang.String getBigqueryImportKeysOrDefault(
    *
    * map<string, string> bigquery_import_keys = 9;
    */
-  java.lang.String getBigqueryImportKeysOrThrow(java.lang.String key);
+
+  java.lang.String getBigqueryImportKeysOrThrow(
+      java.lang.String key);
 
   /**
-   *
-   *
    * 
    * Required. The maximum number of predictions to sample and save to BigQuery
    * during each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. This limit
@@ -488,14 +400,11 @@ java.lang.String getBigqueryImportKeysOrDefault(
    * 
* * int32 example_count = 10; - * * @return The exampleCount. */ int getExampleCount(); /** - * - * *
    * Required. Fraction of predictions to sample and save to BigQuery during
    * each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. For example, 0.1 means
@@ -503,59 +412,42 @@ java.lang.String getBigqueryImportKeysOrDefault(
    * 
* * double example_sample_percentage = 11; - * * @return The exampleSamplePercentage. */ double getExampleSamplePercentage(); /** - * - * *
    * Optional. Configuration details for evaluation job alerts. Specify this
    * field if you want to receive email alerts if the evaluation job finds that
    * your predictions have low mean average precision during a run.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; - * - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; * @return Whether the evaluationJobAlertConfig field is set. */ boolean hasEvaluationJobAlertConfig(); /** - * - * *
    * Optional. Configuration details for evaluation job alerts. Specify this
    * field if you want to receive email alerts if the evaluation job finds that
    * your predictions have low mean average precision during a run.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; - * - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; * @return The evaluationJobAlertConfig. */ com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig getEvaluationJobAlertConfig(); /** - * - * *
    * Optional. Configuration details for evaluation job alerts. Specify this
    * field if you want to receive email alerts if the evaluation job finds that
    * your predictions have low mean average precision during a run.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; */ - com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder - getEvaluationJobAlertConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder getEvaluationJobAlertConfigOrBuilder(); - public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.HumanAnnotationRequestConfigCase - getHumanAnnotationRequestConfigCase(); + public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.HumanAnnotationRequestConfigCase getHumanAnnotationRequestConfigCase(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobName.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobName.java similarity index 100% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobName.java diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOrBuilder.java similarity index 87% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOrBuilder.java index 9f678e69..3d674255 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOrBuilder.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/datalabeling/v1beta1/evaluation_job.proto package com.google.cloud.datalabeling.v1beta1; -public interface EvaluationJobOrBuilder - extends +public interface EvaluationJobOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.EvaluationJob) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. After you create a job, Data Labeling Service assigns a name
    * to the job with the following format:
@@ -33,13 +15,10 @@ public interface EvaluationJobOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. After you create a job, Data Labeling Service assigns a name
    * to the job with the following format:
@@ -47,66 +26,53 @@ public interface EvaluationJobOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. Description of the job. The description can be up to 25,000
    * characters long.
    * 
* * string description = 2; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Required. Description of the job. The description can be up to 25,000
    * characters long.
    * 
* * string description = 2; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. Describes the current state of the job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3; - * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** - * - * *
    * Output only. Describes the current state of the job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3; - * * @return The state. */ com.google.cloud.datalabeling.v1beta1.EvaluationJob.State getState(); /** - * - * *
    * Required. Describes the interval at which the job runs. This interval must
    * be at least 1 day, and it is rounded to the nearest day. For example, if
@@ -120,13 +86,10 @@ public interface EvaluationJobOrBuilder
    * 
* * string schedule = 4; - * * @return The schedule. */ java.lang.String getSchedule(); /** - * - * *
    * Required. Describes the interval at which the job runs. This interval must
    * be at least 1 day, and it is rounded to the nearest day. For example, if
@@ -140,14 +103,12 @@ public interface EvaluationJobOrBuilder
    * 
* * string schedule = 4; - * * @return The bytes for schedule. */ - com.google.protobuf.ByteString getScheduleBytes(); + com.google.protobuf.ByteString + getScheduleBytes(); /** - * - * *
    * Required. The [AI Platform Prediction model
    * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
@@ -158,13 +119,10 @@ public interface EvaluationJobOrBuilder
    * 
* * string model_version = 5; - * * @return The modelVersion. */ java.lang.String getModelVersion(); /** - * - * *
    * Required. The [AI Platform Prediction model
    * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
@@ -175,50 +133,39 @@ public interface EvaluationJobOrBuilder
    * 
* * string model_version = 5; - * * @return The bytes for modelVersion. */ - com.google.protobuf.ByteString getModelVersionBytes(); + com.google.protobuf.ByteString + getModelVersionBytes(); /** - * - * *
    * Required. Configuration details for the evaluation job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; - * * @return Whether the evaluationJobConfig field is set. */ boolean hasEvaluationJobConfig(); /** - * - * *
    * Required. Configuration details for the evaluation job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; - * * @return The evaluationJobConfig. */ com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig getEvaluationJobConfig(); /** - * - * *
    * Required. Configuration details for the evaluation job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; */ - com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder - getEvaluationJobConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder getEvaluationJobConfigOrBuilder(); /** - * - * *
    * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
    * labels that your machine learning model outputs. You must create this
@@ -228,13 +175,10 @@ public interface EvaluationJobOrBuilder
    * 
* * string annotation_spec_set = 7; - * * @return The annotationSpecSet. */ java.lang.String getAnnotationSpecSet(); /** - * - * *
    * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
    * labels that your machine learning model outputs. You must create this
@@ -244,14 +188,12 @@ public interface EvaluationJobOrBuilder
    * 
* * string annotation_spec_set = 7; - * * @return The bytes for annotationSpecSet. */ - com.google.protobuf.ByteString getAnnotationSpecSetBytes(); + com.google.protobuf.ByteString + getAnnotationSpecSetBytes(); /** - * - * *
    * Required. Whether you want Data Labeling Service to provide ground truth
    * labels for prediction input. If you want the service to assign human
@@ -261,14 +203,11 @@ public interface EvaluationJobOrBuilder
    * 
* * bool label_missing_ground_truth = 8; - * * @return The labelMissingGroundTruth. */ boolean getLabelMissingGroundTruth(); /** - * - * *
    * Output only. Every time the evaluation job runs and an error occurs, the
    * failed attempt is appended to this array.
@@ -276,10 +215,9 @@ public interface EvaluationJobOrBuilder
    *
    * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
    */
-  java.util.List getAttemptsList();
+  java.util.List 
+      getAttemptsList();
   /**
-   *
-   *
    * 
    * Output only. Every time the evaluation job runs and an error occurs, the
    * failed attempt is appended to this array.
@@ -289,8 +227,6 @@ public interface EvaluationJobOrBuilder
    */
   com.google.cloud.datalabeling.v1beta1.Attempt getAttempts(int index);
   /**
-   *
-   *
    * 
    * Output only. Every time the evaluation job runs and an error occurs, the
    * failed attempt is appended to this array.
@@ -300,8 +236,6 @@ public interface EvaluationJobOrBuilder
    */
   int getAttemptsCount();
   /**
-   *
-   *
    * 
    * Output only. Every time the evaluation job runs and an error occurs, the
    * failed attempt is appended to this array.
@@ -309,11 +243,9 @@ public interface EvaluationJobOrBuilder
    *
    * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
    */
-  java.util.List
+  java.util.List 
       getAttemptsOrBuilderList();
   /**
-   *
-   *
    * 
    * Output only. Every time the evaluation job runs and an error occurs, the
    * failed attempt is appended to this array.
@@ -321,35 +253,28 @@ public interface EvaluationJobOrBuilder
    *
    * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
    */
-  com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder getAttemptsOrBuilder(int index);
+  com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder getAttemptsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Output only. Timestamp of when this evaluation job was created.
    * 
* * .google.protobuf.Timestamp create_time = 10; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Timestamp of when this evaluation job was created.
    * 
* * .google.protobuf.Timestamp create_time = 10; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Timestamp of when this evaluation job was created.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOuterClass.java new file mode 100644 index 00000000..859ef0af --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOuterClass.java @@ -0,0 +1,167 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/evaluation_job.proto + +package com.google.cloud.datalabeling.v1beta1; + +public final class EvaluationJobOuterClass { + private EvaluationJobOuterClass() {} + 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_datalabeling_v1beta1_EvaluationJob_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_Attempt_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/datalabeling/v1beta1/eval" + + "uation_job.proto\022!google.cloud.datalabel" + + "ing.v1beta1\032\034google/api/annotations.prot" + + "o\032\031google/api/resource.proto\032/google/clo" + + "ud/datalabeling/v1beta1/dataset.proto\0322g" + + "oogle/cloud/datalabeling/v1beta1/evaluat" + + "ion.proto\032?google/cloud/datalabeling/v1b" + + "eta1/human_annotation_config.proto\032\037goog" + + "le/protobuf/timestamp.proto\032\027google/rpc/" + + "status.proto\"\342\004\n\rEvaluationJob\022\014\n\004name\030\001" + + " \001(\t\022\023\n\013description\030\002 \001(\t\022E\n\005state\030\003 \001(\016" + + "26.google.cloud.datalabeling.v1beta1.Eva" + + "luationJob.State\022\020\n\010schedule\030\004 \001(\t\022\025\n\rmo" + + "del_version\030\005 \001(\t\022U\n\025evaluation_job_conf" + + "ig\030\006 \001(\01326.google.cloud.datalabeling.v1b" + + "eta1.EvaluationJobConfig\022\033\n\023annotation_s" + + "pec_set\030\007 \001(\t\022\"\n\032label_missing_ground_tr" + + "uth\030\010 \001(\010\022<\n\010attempts\030\t \003(\0132*.google.clo" + + "ud.datalabeling.v1beta1.Attempt\022/\n\013creat" + + "e_time\030\n \001(\0132\032.google.protobuf.Timestamp" + + "\"S\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\r\n\tSCHE" + + "DULED\020\001\022\013\n\007RUNNING\020\002\022\n\n\006PAUSED\020\003\022\013\n\007STOP" + + "PED\020\004:b\352A_\n)datalabeling.googleapis.com/" + + "EvaluationJob\0222projects/{project}/evalua" + + "tionJobs/{evaluation_job}\"\215\007\n\023Evaluation" + + "JobConfig\022c\n\033image_classification_config" + + "\030\004 \001(\0132<.google.cloud.datalabeling.v1bet" + + "a1.ImageClassificationConfigH\000\022U\n\024boundi" + + "ng_poly_config\030\005 \001(\01325.google.cloud.data" + + "labeling.v1beta1.BoundingPolyConfigH\000\022a\n" + + "\032text_classification_config\030\010 \001(\0132;.goog" + + "le.cloud.datalabeling.v1beta1.TextClassi" + + "ficationConfigH\000\022D\n\014input_config\030\001 \001(\0132." + + ".google.cloud.datalabeling.v1beta1.Input" + + "Config\022N\n\021evaluation_config\030\002 \001(\01323.goog" + + "le.cloud.datalabeling.v1beta1.Evaluation" + + "Config\022Y\n\027human_annotation_config\030\003 \001(\0132" + + "8.google.cloud.datalabeling.v1beta1.Huma" + + "nAnnotationConfig\022l\n\024bigquery_import_key" + + "s\030\t \003(\0132N.google.cloud.datalabeling.v1be" + + "ta1.EvaluationJobConfig.BigqueryImportKe" + + "ysEntry\022\025\n\rexample_count\030\n \001(\005\022!\n\031exampl" + + "e_sample_percentage\030\013 \001(\001\022`\n\033evaluation_" + + "job_alert_config\030\r \001(\0132;.google.cloud.da" + + "talabeling.v1beta1.EvaluationJobAlertCon" + + "fig\0329\n\027BigqueryImportKeysEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B!\n\037human_annotati" + + "on_request_config\"X\n\030EvaluationJobAlertC" + + "onfig\022\r\n\005email\030\001 \001(\t\022-\n%min_acceptable_m" + + "ean_average_precision\030\002 \001(\001\"i\n\007Attempt\0220" + + "\n\014attempt_time\030\001 \001(\0132\032.google.protobuf.T" + + "imestamp\022,\n\020partial_failures\030\002 \003(\0132\022.goo" + + "gle.rpc.StatusB\347\001\n%com.google.cloud.data" + + "labeling.v1beta1P\001ZMgoogle.golang.org/ge" + + "nproto/googleapis/cloud/datalabeling/v1b" + + "eta1;datalabeling\252\002!Google.Cloud.DataLab" + + "eling.V1Beta1\312\002!Google\\Cloud\\DataLabelin" + + "g\\V1beta1\352\002$Google::Cloud::DataLabeling:" + + ":V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_descriptor, + new java.lang.String[] { "Name", "Description", "State", "Schedule", "ModelVersion", "EvaluationJobConfig", "AnnotationSpecSet", "LabelMissingGroundTruth", "Attempts", "CreateTime", }); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor, + new java.lang.String[] { "ImageClassificationConfig", "BoundingPolyConfig", "TextClassificationConfig", "InputConfig", "EvaluationConfig", "HumanAnnotationConfig", "BigqueryImportKeys", "ExampleCount", "ExampleSamplePercentage", "EvaluationJobAlertConfig", "HumanAnnotationRequestConfig", }); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_descriptor = + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor, + new java.lang.String[] { "Email", "MinAcceptableMeanAveragePrecision", }); + internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datalabeling_v1beta1_Attempt_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor, + new java.lang.String[] { "AttemptTime", "PartialFailures", }); + 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.AnnotationsProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetrics.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetrics.java similarity index 64% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetrics.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetrics.java index 88169df4..10429715 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetrics.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetrics.java @@ -1,47 +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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; -/** Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationMetrics} */ -public final class EvaluationMetrics extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationMetrics} + */ +public final class EvaluationMetrics extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.EvaluationMetrics) EvaluationMetricsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EvaluationMetrics.newBuilder() to construct. private EvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private EvaluationMetrics() {} + private EvaluationMetrics() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EvaluationMetrics(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private EvaluationMetrics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -60,54 +48,41 @@ private EvaluationMetrics( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder subBuilder = null; - if (metricsCase_ == 1) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_) - .toBuilder(); - } - metrics_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_); - metrics_ = subBuilder.buildPartial(); - } - metricsCase_ = 1; - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder subBuilder = null; + if (metricsCase_ == 1) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_).toBuilder(); } - case 18: - { - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder subBuilder = - null; - if (metricsCase_ == 2) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_) - .toBuilder(); - } - metrics_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_); - metrics_ = subBuilder.buildPartial(); - } - metricsCase_ = 2; - break; + metrics_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_); + metrics_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + metricsCase_ = 1; + break; + } + case 18: { + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder subBuilder = null; + if (metricsCase_ == 2) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_).toBuilder(); + } + metrics_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_); + metrics_ = subBuilder.buildPartial(); + } + metricsCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -115,40 +90,35 @@ private EvaluationMetrics( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.class, - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder.class); + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.class, com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.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_METRICS(1), OBJECT_DETECTION_METRICS(2), METRICS_NOT_SET(0); private final int value; - private MetricsCase(int value) { this.value = value; } @@ -164,31 +134,26 @@ public static MetricsCase valueOf(int value) { public static MetricsCase forNumber(int value) { switch (value) { - case 1: - return CLASSIFICATION_METRICS; - case 2: - return OBJECT_DETECTION_METRICS; - case 0: - return METRICS_NOT_SET; - default: - return null; + case 1: return CLASSIFICATION_METRICS; + case 2: return OBJECT_DETECTION_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_METRICS_FIELD_NUMBER = 1; /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; - * - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; * @return Whether the classificationMetrics field is set. */ @java.lang.Override @@ -196,36 +161,30 @@ public boolean hasClassificationMetrics() { return metricsCase_ == 1; } /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; - * - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; * @return The classificationMetrics. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ClassificationMetrics getClassificationMetrics() { if (metricsCase_ == 1) { - return (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_; + return (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_; } return com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.getDefaultInstance(); } /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder - getClassificationMetricsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder getClassificationMetricsOrBuilder() { if (metricsCase_ == 1) { - return (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_; + return (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_; } return com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.getDefaultInstance(); } public static final int OBJECT_DETECTION_METRICS_FIELD_NUMBER = 2; /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; * @return Whether the objectDetectionMetrics field is set. */ @java.lang.Override @@ -233,33 +192,28 @@ public boolean hasObjectDetectionMetrics() { return metricsCase_ == 2; } /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; * @return The objectDetectionMetrics. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics getObjectDetectionMetrics() { if (metricsCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_; + return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_; } return com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.getDefaultInstance(); } /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder - getObjectDetectionMetricsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder getObjectDetectionMetricsOrBuilder() { if (metricsCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_; + return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_; } return com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -271,14 +225,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (metricsCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_); + output.writeMessage(1, (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_); } if (metricsCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_); + output.writeMessage(2, (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_); } unknownFields.writeTo(output); } @@ -290,14 +243,12 @@ public int getSerializedSize() { size = 0; if (metricsCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_); } if (metricsCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -307,21 +258,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.datalabeling.v1beta1.EvaluationMetrics)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics other = - (com.google.cloud.datalabeling.v1beta1.EvaluationMetrics) obj; + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics other = (com.google.cloud.datalabeling.v1beta1.EvaluationMetrics) obj; if (!getMetricsCase().equals(other.getMetricsCase())) return false; switch (metricsCase_) { case 1: - if (!getClassificationMetrics().equals(other.getClassificationMetrics())) return false; + if (!getClassificationMetrics() + .equals(other.getClassificationMetrics())) return false; break; case 2: - if (!getObjectDetectionMetrics().equals(other.getObjectDetectionMetrics())) return false; + if (!getObjectDetectionMetrics() + .equals(other.getObjectDetectionMetrics())) return false; break; case 0: default: @@ -355,119 +307,113 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics 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.datalabeling.v1beta1.EvaluationMetrics parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.EvaluationMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationMetrics} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationMetrics} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.EvaluationMetrics) com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.class, - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder.class); + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.class, com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.newBuilder() @@ -475,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(); @@ -493,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor; } @java.lang.Override @@ -514,8 +461,7 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics buildPartial() { - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics result = - new com.google.cloud.datalabeling.v1beta1.EvaluationMetrics(this); + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics result = new com.google.cloud.datalabeling.v1beta1.EvaluationMetrics(this); if (metricsCase_ == 1) { if (classificationMetricsBuilder_ == null) { result.metrics_ = metrics_; @@ -539,39 +485,38 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.EvaluationMetrics) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.EvaluationMetrics) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.EvaluationMetrics)other); } else { super.mergeFrom(other); return this; @@ -579,23 +524,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.EvaluationMetrics other) { - if (other == com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.getDefaultInstance()) return this; switch (other.getMetricsCase()) { - case CLASSIFICATION_METRICS: - { - mergeClassificationMetrics(other.getClassificationMetrics()); - break; - } - case OBJECT_DETECTION_METRICS: - { - mergeObjectDetectionMetrics(other.getObjectDetectionMetrics()); - break; - } - case METRICS_NOT_SET: - { - break; - } + case CLASSIFICATION_METRICS: { + mergeClassificationMetrics(other.getClassificationMetrics()); + break; + } + case OBJECT_DETECTION_METRICS: { + mergeObjectDetectionMetrics(other.getObjectDetectionMetrics()); + break; + } + case METRICS_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -616,8 +557,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.EvaluationMetrics) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.EvaluationMetrics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -626,12 +566,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() { @@ -641,15 +581,11 @@ public Builder clearMetrics() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics, - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder, - com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder> - classificationMetricsBuilder_; + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics, com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder, com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder> classificationMetricsBuilder_; /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; - * - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; * @return Whether the classificationMetrics field is set. */ @java.lang.Override @@ -657,9 +593,7 @@ public boolean hasClassificationMetrics() { return metricsCase_ == 1; } /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; - * - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; * @return The classificationMetrics. */ @java.lang.Override @@ -677,11 +611,9 @@ public com.google.cloud.datalabeling.v1beta1.ClassificationMetrics getClassifica } } /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; */ - public Builder setClassificationMetrics( - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics value) { + public Builder setClassificationMetrics(com.google.cloud.datalabeling.v1beta1.ClassificationMetrics value) { if (classificationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -695,8 +627,7 @@ public Builder setClassificationMetrics( return this; } /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; */ public Builder setClassificationMetrics( com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder builderForValue) { @@ -710,21 +641,14 @@ public Builder setClassificationMetrics( return this; } /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; */ - public Builder mergeClassificationMetrics( - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics value) { + public Builder mergeClassificationMetrics(com.google.cloud.datalabeling.v1beta1.ClassificationMetrics value) { if (classificationMetricsBuilder_ == null) { - if (metricsCase_ == 1 - && metrics_ - != com.google.cloud.datalabeling.v1beta1.ClassificationMetrics - .getDefaultInstance()) { - metrics_ = - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.newBuilder( - (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_) - .mergeFrom(value) - .buildPartial(); + if (metricsCase_ == 1 && + metrics_ != com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.getDefaultInstance()) { + metrics_ = com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.newBuilder((com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_) + .mergeFrom(value).buildPartial(); } else { metrics_ = value; } @@ -740,8 +664,7 @@ public Builder mergeClassificationMetrics( return this; } /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; */ public Builder clearClassificationMetrics() { if (classificationMetricsBuilder_ == null) { @@ -760,20 +683,16 @@ public Builder clearClassificationMetrics() { return this; } /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; */ - public com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder - getClassificationMetricsBuilder() { + public com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder getClassificationMetricsBuilder() { return getClassificationMetricsFieldBuilder().getBuilder(); } /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder - getClassificationMetricsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder getClassificationMetricsOrBuilder() { if ((metricsCase_ == 1) && (classificationMetricsBuilder_ != null)) { return classificationMetricsBuilder_.getMessageOrBuilder(); } else { @@ -784,44 +703,31 @@ public Builder clearClassificationMetrics() { } } /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics, - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder, - com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder> + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics, com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder, com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder> getClassificationMetricsFieldBuilder() { if (classificationMetricsBuilder_ == null) { if (!(metricsCase_ == 1)) { - metrics_ = - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.getDefaultInstance(); + metrics_ = com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.getDefaultInstance(); } - classificationMetricsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics, - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder, - com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder>( + classificationMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics, com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder, com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder>( (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_, getParentForChildren(), isClean()); metrics_ = null; } metricsCase_ = 1; - onChanged(); - ; + onChanged();; return classificationMetricsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics, - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder, - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder> - objectDetectionMetricsBuilder_; + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics, com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder, com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder> objectDetectionMetricsBuilder_; /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; * @return Whether the objectDetectionMetrics field is set. */ @java.lang.Override @@ -829,14 +735,11 @@ public boolean hasObjectDetectionMetrics() { return metricsCase_ == 2; } /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; * @return The objectDetectionMetrics. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics - getObjectDetectionMetrics() { + public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics getObjectDetectionMetrics() { if (objectDetectionMetricsBuilder_ == null) { if (metricsCase_ == 2) { return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_; @@ -850,11 +753,9 @@ public boolean hasObjectDetectionMetrics() { } } /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; */ - public Builder setObjectDetectionMetrics( - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics value) { + public Builder setObjectDetectionMetrics(com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics value) { if (objectDetectionMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -868,8 +769,7 @@ public Builder setObjectDetectionMetrics( return this; } /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; */ public Builder setObjectDetectionMetrics( com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder builderForValue) { @@ -883,21 +783,14 @@ public Builder setObjectDetectionMetrics( return this; } /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; */ - public Builder mergeObjectDetectionMetrics( - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics value) { + public Builder mergeObjectDetectionMetrics(com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics value) { if (objectDetectionMetricsBuilder_ == null) { - if (metricsCase_ == 2 - && metrics_ - != com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics - .getDefaultInstance()) { - metrics_ = - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.newBuilder( - (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_) - .mergeFrom(value) - .buildPartial(); + if (metricsCase_ == 2 && + metrics_ != com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.getDefaultInstance()) { + metrics_ = com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.newBuilder((com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_) + .mergeFrom(value).buildPartial(); } else { metrics_ = value; } @@ -913,8 +806,7 @@ public Builder mergeObjectDetectionMetrics( return this; } /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; */ public Builder clearObjectDetectionMetrics() { if (objectDetectionMetricsBuilder_ == null) { @@ -933,20 +825,16 @@ public Builder clearObjectDetectionMetrics() { return this; } /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; */ - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder - getObjectDetectionMetricsBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder getObjectDetectionMetricsBuilder() { return getObjectDetectionMetricsFieldBuilder().getBuilder(); } /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder - getObjectDetectionMetricsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder getObjectDetectionMetricsOrBuilder() { if ((metricsCase_ == 2) && (objectDetectionMetricsBuilder_ != null)) { return objectDetectionMetricsBuilder_.getMessageOrBuilder(); } else { @@ -957,37 +845,29 @@ public Builder clearObjectDetectionMetrics() { } } /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics, - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder, - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder> + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics, com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder, com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder> getObjectDetectionMetricsFieldBuilder() { if (objectDetectionMetricsBuilder_ == null) { if (!(metricsCase_ == 2)) { - metrics_ = - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.getDefaultInstance(); + metrics_ = com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.getDefaultInstance(); } - objectDetectionMetricsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics, - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder, - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder>( + objectDetectionMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics, com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder, com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder>( (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_, getParentForChildren(), isClean()); metrics_ = null; } metricsCase_ = 2; - onChanged(); - ; + onChanged();; return objectDetectionMetricsBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -997,12 +877,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.EvaluationMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.EvaluationMetrics) private static final com.google.cloud.datalabeling.v1beta1.EvaluationMetrics DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.EvaluationMetrics(); } @@ -1011,16 +891,16 @@ public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvaluationMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvaluationMetrics(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvaluationMetrics(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1035,4 +915,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetricsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetricsOrBuilder.java similarity index 58% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetricsOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetricsOrBuilder.java index c003912c..a0c6395b 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetricsOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetricsOrBuilder.java @@ -1,69 +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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; -public interface EvaluationMetricsOrBuilder - extends +public interface EvaluationMetricsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.EvaluationMetrics) com.google.protobuf.MessageOrBuilder { /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; - * - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; * @return Whether the classificationMetrics field is set. */ boolean hasClassificationMetrics(); /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; - * - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; * @return The classificationMetrics. */ com.google.cloud.datalabeling.v1beta1.ClassificationMetrics getClassificationMetrics(); /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; */ - com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder - getClassificationMetricsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder getClassificationMetricsOrBuilder(); /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; * @return Whether the objectDetectionMetrics field is set. */ boolean hasObjectDetectionMetrics(); /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; * @return The objectDetectionMetrics. */ com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics getObjectDetectionMetrics(); /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; */ - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder - getObjectDetectionMetricsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder getObjectDetectionMetricsOrBuilder(); public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.MetricsCase getMetricsCase(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationName.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationName.java similarity index 100% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationName.java diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOrBuilder.java similarity index 86% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOrBuilder.java index 66d5ce69..8a009cef 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOrBuilder.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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; -public interface EvaluationOrBuilder - extends +public interface EvaluationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.Evaluation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Resource name of an evaluation. The name has the following
    * format:
@@ -33,13 +15,10 @@ public interface EvaluationOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Resource name of an evaluation. The name has the following
    * format:
@@ -47,40 +26,32 @@ public interface EvaluationOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. Options used in the evaluation job that created this
    * evaluation.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; - * * @return Whether the config field is set. */ boolean hasConfig(); /** - * - * *
    * Output only. Options used in the evaluation job that created this
    * evaluation.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; - * * @return The config. */ com.google.cloud.datalabeling.v1beta1.EvaluationConfig getConfig(); /** - * - * *
    * Output only. Options used in the evaluation job that created this
    * evaluation.
@@ -91,34 +62,26 @@ public interface EvaluationOrBuilder
   com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder getConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. Timestamp for when the evaluation job that created this
    * evaluation ran.
    * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; - * * @return Whether the evaluationJobRunTime field is set. */ boolean hasEvaluationJobRunTime(); /** - * - * *
    * Output only. Timestamp for when the evaluation job that created this
    * evaluation ran.
    * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; - * * @return The evaluationJobRunTime. */ com.google.protobuf.Timestamp getEvaluationJobRunTime(); /** - * - * *
    * Output only. Timestamp for when the evaluation job that created this
    * evaluation ran.
@@ -129,32 +92,24 @@ public interface EvaluationOrBuilder
   com.google.protobuf.TimestampOrBuilder getEvaluationJobRunTimeOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. Timestamp for when this evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 4; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Timestamp for when this evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 4; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Timestamp for when this evaluation was created.
    * 
@@ -164,32 +119,24 @@ public interface EvaluationOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Metrics comparing predictions to ground truth labels.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; - * * @return Whether the evaluationMetrics field is set. */ boolean hasEvaluationMetrics(); /** - * - * *
    * Output only. Metrics comparing predictions to ground truth labels.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; - * * @return The evaluationMetrics. */ com.google.cloud.datalabeling.v1beta1.EvaluationMetrics getEvaluationMetrics(); /** - * - * *
    * Output only. Metrics comparing predictions to ground truth labels.
    * 
@@ -199,8 +146,6 @@ public interface EvaluationOrBuilder com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder getEvaluationMetricsOrBuilder(); /** - * - * *
    * Output only. Type of task that the model version being evaluated performs,
    * as defined in the
@@ -209,13 +154,10 @@ public interface EvaluationOrBuilder
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; - * * @return The enum numeric value on the wire for annotationType. */ int getAnnotationTypeValue(); /** - * - * *
    * Output only. Type of task that the model version being evaluated performs,
    * as defined in the
@@ -224,14 +166,11 @@ public interface EvaluationOrBuilder
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; - * * @return The annotationType. */ com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType(); /** - * - * *
    * Output only. The number of items in the ground truth dataset that were used
    * for this evaluation. Only populated when the evaulation is for certain
@@ -239,7 +178,6 @@ public interface EvaluationOrBuilder
    * 
* * int64 evaluated_item_count = 7; - * * @return The evaluatedItemCount. */ long getEvaluatedItemCount(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOuterClass.java new file mode 100644 index 00000000..4781f495 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOuterClass.java @@ -0,0 +1,235 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/evaluation.proto + +package com.google.cloud.datalabeling.v1beta1; + +public final class EvaluationOuterClass { + private EvaluationOuterClass() {} + 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_datalabeling_v1beta1_Evaluation_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_Evaluation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_PrCurve_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_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 = { + "\n2google/cloud/datalabeling/v1beta1/eval" + + "uation.proto\022!google.cloud.datalabeling." + + "v1beta1\032\034google/api/annotations.proto\032\031g" + + "oogle/api/resource.proto\0322google/cloud/d" + + "atalabeling/v1beta1/annotation.proto\032;go" + + "ogle/cloud/datalabeling/v1beta1/annotati" + + "on_spec_set.proto\032\037google/protobuf/times" + + "tamp.proto\"\366\003\n\nEvaluation\022\014\n\004name\030\001 \001(\t\022" + + "C\n\006config\030\002 \001(\01323.google.cloud.datalabel" + + "ing.v1beta1.EvaluationConfig\022;\n\027evaluati" + + "on_job_run_time\030\003 \001(\0132\032.google.protobuf." + + "Timestamp\022/\n\013create_time\030\004 \001(\0132\032.google." + + "protobuf.Timestamp\022P\n\022evaluation_metrics" + + "\030\005 \001(\01324.google.cloud.datalabeling.v1bet" + + "a1.EvaluationMetrics\022J\n\017annotation_type\030" + + "\006 \001(\01621.google.cloud.datalabeling.v1beta" + + "1.AnnotationType\022\034\n\024evaluated_item_count" + + "\030\007 \001(\003:k\352Ah\n&datalabeling.googleapis.com" + + "/Evaluation\022>projects/{project}/datasets" + + "/{dataset}/evaluations/{evaluation}\"\221\001\n\020" + + "EvaluationConfig\022j\n\037bounding_box_evaluat" + + "ion_options\030\001 \001(\0132?.google.cloud.datalab" + + "eling.v1beta1.BoundingBoxEvaluationOptio" + + "nsH\000B\021\n\017vertical_option\"5\n\034BoundingBoxEv" + + "aluationOptions\022\025\n\riou_threshold\030\001 \001(\002\"\331" + + "\001\n\021EvaluationMetrics\022Z\n\026classification_m" + + "etrics\030\001 \001(\01328.google.cloud.datalabeling" + + ".v1beta1.ClassificationMetricsH\000\022]\n\030obje" + + "ct_detection_metrics\030\002 \001(\01329.google.clou" + + "d.datalabeling.v1beta1.ObjectDetectionMe" + + "tricsH\000B\t\n\007metrics\"\243\001\n\025ClassificationMet" + + "rics\022<\n\010pr_curve\030\001 \001(\0132*.google.cloud.da" + + "talabeling.v1beta1.PrCurve\022L\n\020confusion_" + + "matrix\030\002 \001(\01322.google.cloud.datalabeling" + + ".v1beta1.ConfusionMatrix\"V\n\026ObjectDetect" + + "ionMetrics\022<\n\010pr_curve\030\001 \001(\0132*.google.cl" + + "oud.datalabeling.v1beta1.PrCurve\"\346\003\n\007PrC" + + "urve\022J\n\017annotation_spec\030\001 \001(\01321.google.c" + + "loud.datalabeling.v1beta1.AnnotationSpec" + + "\022\030\n\020area_under_curve\030\002 \001(\002\022e\n\032confidence" + + "_metrics_entries\030\003 \003(\0132A.google.cloud.da" + + "talabeling.v1beta1.PrCurve.ConfidenceMet" + + "ricsEntry\022\036\n\026mean_average_precision\030\004 \001(" + + "\002\032\355\001\n\026ConfidenceMetricsEntry\022\034\n\024confiden" + + "ce_threshold\030\001 \001(\002\022\016\n\006recall\030\002 \001(\002\022\021\n\tpr" + + "ecision\030\003 \001(\002\022\020\n\010f1_score\030\004 \001(\002\022\022\n\nrecal" + + "l_at1\030\005 \001(\002\022\025\n\rprecision_at1\030\006 \001(\002\022\024\n\014f1" + + "_score_at1\030\007 \001(\002\022\022\n\nrecall_at5\030\010 \001(\002\022\025\n\r" + + "precision_at5\030\t \001(\002\022\024\n\014f1_score_at5\030\n \001(" + + "\002\"\374\002\n\017ConfusionMatrix\022C\n\003row\030\001 \003(\01326.goo" + + "gle.cloud.datalabeling.v1beta1.Confusion" + + "Matrix.Row\032v\n\024ConfusionMatrixEntry\022J\n\017an" + + "notation_spec\030\001 \001(\01321.google.cloud.datal" + + "abeling.v1beta1.AnnotationSpec\022\022\n\nitem_c" + + "ount\030\002 \001(\005\032\253\001\n\003Row\022J\n\017annotation_spec\030\001 " + + "\001(\01321.google.cloud.datalabeling.v1beta1." + + "AnnotationSpec\022X\n\007entries\030\002 \003(\0132G.google" + + ".cloud.datalabeling.v1beta1.ConfusionMat" + + "rix.ConfusionMatrixEntryB\347\001\n%com.google." + + "cloud.datalabeling.v1beta1P\001ZMgoogle.gol" + + "ang.org/genproto/googleapis/cloud/datala" + + "beling/v1beta1;datalabeling\252\002!Google.Clo" + + "ud.DataLabeling.V1Beta1\312\002!Google\\Cloud\\D" + + "ataLabeling\\V1beta1\352\002$Google::Cloud::Dat" + + "aLabeling::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_datalabeling_v1beta1_Evaluation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_Evaluation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_Evaluation_descriptor, + new java.lang.String[] { "Name", "Config", "EvaluationJobRunTime", "CreateTime", "EvaluationMetrics", "AnnotationType", "EvaluatedItemCount", }); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor, + new java.lang.String[] { "BoundingBoxEvaluationOptions", "VerticalOption", }); + internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor, + new java.lang.String[] { "IouThreshold", }); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor, + new java.lang.String[] { "ClassificationMetrics", "ObjectDetectionMetrics", "Metrics", }); + internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor, + new java.lang.String[] { "PrCurve", "ConfusionMatrix", }); + internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor, + new java.lang.String[] { "PrCurve", }); + internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_datalabeling_v1beta1_PrCurve_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor, + new java.lang.String[] { "AnnotationSpec", "AreaUnderCurve", "ConfidenceMetricsEntries", "MeanAveragePrecision", }); + internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor = + internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor, + new java.lang.String[] { "ConfidenceThreshold", "Recall", "Precision", "F1Score", "RecallAt1", "PrecisionAt1", "F1ScoreAt1", "RecallAt5", "PrecisionAt5", "F1ScoreAt5", }); + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor, + new java.lang.String[] { "Row", }); + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor = + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor, + new java.lang.String[] { "AnnotationSpec", "ItemCount", }); + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor = + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor.getNestedTypes().get(1); + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor, + new java.lang.String[] { "AnnotationSpec", "Entries", }); + 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.AnnotationsProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfig.java similarity index 71% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfig.java index c676cd3f..34e7677e 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Config for video event human labeling task.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.EventConfig} */ -public final class EventConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EventConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.EventConfig) EventConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EventConfig.newBuilder() to construct. private EventConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EventConfig() { annotationSpecSets_ = 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 EventConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private EventConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,23 +54,22 @@ private EventConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - annotationSpecSets_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - annotationSpecSets_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + annotationSpecSets_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + annotationSpecSets_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -95,7 +77,8 @@ private EventConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { annotationSpecSets_ = annotationSpecSets_.getUnmodifiableView(); @@ -104,70 +87,56 @@ private EventConfig( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_EventConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EventConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.EventConfig.class, - com.google.cloud.datalabeling.v1beta1.EventConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.EventConfig.class, com.google.cloud.datalabeling.v1beta1.EventConfig.Builder.class); } public static final int ANNOTATION_SPEC_SETS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList annotationSpecSets_; /** - * - * *
    * Required. The list of annotation spec set resource name. Similar to video
    * classification, we support selecting event from multiple AnnotationSpecSet
    * at the same time.
    * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the annotationSpecSets. */ - public com.google.protobuf.ProtocolStringList getAnnotationSpecSetsList() { + public com.google.protobuf.ProtocolStringList + getAnnotationSpecSetsList() { return annotationSpecSets_; } /** - * - * *
    * Required. The list of annotation spec set resource name. Similar to video
    * classification, we support selecting event from multiple AnnotationSpecSet
    * at the same time.
    * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The count of annotationSpecSets. */ public int getAnnotationSpecSetsCount() { return annotationSpecSets_.size(); } /** - * - * *
    * Required. The list of annotation spec set resource name. Similar to video
    * classification, we support selecting event from multiple AnnotationSpecSet
    * at the same time.
    * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The annotationSpecSets at the given index. */ @@ -175,26 +144,22 @@ public java.lang.String getAnnotationSpecSets(int index) { return annotationSpecSets_.get(index); } /** - * - * *
    * Required. The list of annotation spec set resource name. Similar to video
    * classification, we support selecting event from multiple AnnotationSpecSet
    * at the same time.
    * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the annotationSpecSets at the given index. */ - public com.google.protobuf.ByteString getAnnotationSpecSetsBytes(int index) { + public com.google.protobuf.ByteString + getAnnotationSpecSetsBytes(int index) { return annotationSpecSets_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,7 +171,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 < annotationSpecSets_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecSets_.getRaw(i)); } @@ -235,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.datalabeling.v1beta1.EventConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.EventConfig other = - (com.google.cloud.datalabeling.v1beta1.EventConfig) obj; + com.google.cloud.datalabeling.v1beta1.EventConfig other = (com.google.cloud.datalabeling.v1beta1.EventConfig) obj; - if (!getAnnotationSpecSetsList().equals(other.getAnnotationSpecSetsList())) return false; + if (!getAnnotationSpecSetsList() + .equals(other.getAnnotationSpecSetsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -265,126 +231,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.EventConfig 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.datalabeling.v1beta1.EventConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EventConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.EventConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EventConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.EventConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.EventConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.EventConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.EventConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.EventConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.EventConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.EventConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EventConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.EventConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.EventConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Config for video event human labeling task.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.EventConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.EventConfig) com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_EventConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EventConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.EventConfig.class, - com.google.cloud.datalabeling.v1beta1.EventConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.EventConfig.class, com.google.cloud.datalabeling.v1beta1.EventConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.EventConfig.newBuilder() @@ -392,15 +349,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(); @@ -410,9 +368,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor; } @java.lang.Override @@ -431,8 +389,7 @@ public com.google.cloud.datalabeling.v1beta1.EventConfig build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EventConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.EventConfig result = - new com.google.cloud.datalabeling.v1beta1.EventConfig(this); + com.google.cloud.datalabeling.v1beta1.EventConfig result = new com.google.cloud.datalabeling.v1beta1.EventConfig(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { annotationSpecSets_ = annotationSpecSets_.getUnmodifiableView(); @@ -447,39 +404,38 @@ public com.google.cloud.datalabeling.v1beta1.EventConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.EventConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.EventConfig) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.EventConfig)other); } else { super.mergeFrom(other); return this; @@ -487,8 +443,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.EventConfig other) { - if (other == com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance()) return this; if (!other.annotationSpecSets_.isEmpty()) { if (annotationSpecSets_.isEmpty()) { annotationSpecSets_ = other.annotationSpecSets_; @@ -518,8 +473,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.EventConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.EventConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -528,64 +482,50 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList annotationSpecSets_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList annotationSpecSets_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAnnotationSpecSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { annotationSpecSets_ = new com.google.protobuf.LazyStringArrayList(annotationSpecSets_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. The list of annotation spec set resource name. Similar to video
      * classification, we support selecting event from multiple AnnotationSpecSet
      * at the same time.
      * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the annotationSpecSets. */ - public com.google.protobuf.ProtocolStringList getAnnotationSpecSetsList() { + public com.google.protobuf.ProtocolStringList + getAnnotationSpecSetsList() { return annotationSpecSets_.getUnmodifiableView(); } /** - * - * *
      * Required. The list of annotation spec set resource name. Similar to video
      * classification, we support selecting event from multiple AnnotationSpecSet
      * at the same time.
      * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The count of annotationSpecSets. */ public int getAnnotationSpecSetsCount() { return annotationSpecSets_.size(); } /** - * - * *
      * Required. The list of annotation spec set resource name. Similar to video
      * classification, we support selecting event from multiple AnnotationSpecSet
      * at the same time.
      * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The annotationSpecSets at the given index. */ @@ -593,105 +533,90 @@ public java.lang.String getAnnotationSpecSets(int index) { return annotationSpecSets_.get(index); } /** - * - * *
      * Required. The list of annotation spec set resource name. Similar to video
      * classification, we support selecting event from multiple AnnotationSpecSet
      * at the same time.
      * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the annotationSpecSets at the given index. */ - public com.google.protobuf.ByteString getAnnotationSpecSetsBytes(int index) { + public com.google.protobuf.ByteString + getAnnotationSpecSetsBytes(int index) { return annotationSpecSets_.getByteString(index); } /** - * - * *
      * Required. The list of annotation spec set resource name. Similar to video
      * classification, we support selecting event from multiple AnnotationSpecSet
      * at the same time.
      * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; * @param index The index to set the value at. * @param value The annotationSpecSets to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSets(int index, java.lang.String value) { + public Builder setAnnotationSpecSets( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecSetsIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecSetsIsMutable(); annotationSpecSets_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. The list of annotation spec set resource name. Similar to video
      * classification, we support selecting event from multiple AnnotationSpecSet
      * at the same time.
      * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The annotationSpecSets to add. * @return This builder for chaining. */ - public Builder addAnnotationSpecSets(java.lang.String value) { + public Builder addAnnotationSpecSets( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecSetsIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecSetsIsMutable(); annotationSpecSets_.add(value); onChanged(); return this; } /** - * - * *
      * Required. The list of annotation spec set resource name. Similar to video
      * classification, we support selecting event from multiple AnnotationSpecSet
      * at the same time.
      * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; * @param values The annotationSpecSets to add. * @return This builder for chaining. */ - public Builder addAllAnnotationSpecSets(java.lang.Iterable values) { + public Builder addAllAnnotationSpecSets( + java.lang.Iterable values) { ensureAnnotationSpecSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationSpecSets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, annotationSpecSets_); onChanged(); return this; } /** - * - * *
      * Required. The list of annotation spec set resource name. Similar to video
      * classification, we support selecting event from multiple AnnotationSpecSet
      * at the same time.
      * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearAnnotationSpecSets() { @@ -701,33 +626,30 @@ public Builder clearAnnotationSpecSets() { return this; } /** - * - * *
      * Required. The list of annotation spec set resource name. Similar to video
      * classification, we support selecting event from multiple AnnotationSpecSet
      * at the same time.
      * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes of the annotationSpecSets to add. * @return This builder for chaining. */ - public Builder addAnnotationSpecSetsBytes(com.google.protobuf.ByteString value) { + public Builder addAnnotationSpecSetsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAnnotationSpecSetsIsMutable(); annotationSpecSets_.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); } @@ -737,12 +659,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.EventConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.EventConfig) private static final com.google.cloud.datalabeling.v1beta1.EventConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.EventConfig(); } @@ -751,16 +673,16 @@ public static com.google.cloud.datalabeling.v1beta1.EventConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -775,4 +697,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.EventConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfigOrBuilder.java similarity index 65% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfigOrBuilder.java index 1002aafa..f0873242 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfigOrBuilder.java @@ -1,88 +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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface EventConfigOrBuilder - extends +public interface EventConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.EventConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The list of annotation spec set resource name. Similar to video
    * classification, we support selecting event from multiple AnnotationSpecSet
    * at the same time.
    * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; * @return A list containing the annotationSpecSets. */ - java.util.List getAnnotationSpecSetsList(); + java.util.List + getAnnotationSpecSetsList(); /** - * - * *
    * Required. The list of annotation spec set resource name. Similar to video
    * classification, we support selecting event from multiple AnnotationSpecSet
    * at the same time.
    * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The count of annotationSpecSets. */ int getAnnotationSpecSetsCount(); /** - * - * *
    * Required. The list of annotation spec set resource name. Similar to video
    * classification, we support selecting event from multiple AnnotationSpecSet
    * at the same time.
    * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the element to return. * @return The annotationSpecSets at the given index. */ java.lang.String getAnnotationSpecSets(int index); /** - * - * *
    * Required. The list of annotation spec set resource name. Similar to video
    * classification, we support selecting event from multiple AnnotationSpecSet
    * at the same time.
    * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; * @param index The index of the value to return. * @return The bytes of the annotationSpecSets at the given index. */ - com.google.protobuf.ByteString getAnnotationSpecSetsBytes(int index); + com.google.protobuf.ByteString + getAnnotationSpecSetsBytes(int index); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Example.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Example.java similarity index 75% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Example.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Example.java index 2281aab4..7189ceed 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Example.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Example.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * An Example is a piece of data and its annotation. For example, an image with
  * label "house".
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.Example}
  */
-public final class Example extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Example extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.Example)
     ExampleOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Example.newBuilder() to construct.
   private Example(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Example() {
     name_ = "";
     annotations_ = java.util.Collections.emptyList();
@@ -45,15 +27,16 @@ private Example() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Example();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Example(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,87 +56,70 @@ private Example(
           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.datalabeling.v1beta1.ImagePayload.Builder subBuilder = null;
+            if (payloadCase_ == 2) {
+              subBuilder = ((com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_).toBuilder();
+            }
+            payload_ =
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.ImagePayload.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_);
+              payload_ = subBuilder.buildPartial();
+            }
+            payloadCase_ = 2;
+            break;
+          }
+          case 42: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              annotations_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder subBuilder = null;
-              if (payloadCase_ == 2) {
-                subBuilder =
-                    ((com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_).toBuilder();
-              }
-              payload_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.ImagePayload.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_);
-                payload_ = subBuilder.buildPartial();
-              }
-              payloadCase_ = 2;
-              break;
+            annotations_.add(
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.Annotation.parser(), extensionRegistry));
+            break;
+          }
+          case 50: {
+            com.google.cloud.datalabeling.v1beta1.TextPayload.Builder subBuilder = null;
+            if (payloadCase_ == 6) {
+              subBuilder = ((com.google.cloud.datalabeling.v1beta1.TextPayload) payload_).toBuilder();
             }
-          case 42:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                annotations_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              annotations_.add(
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.Annotation.parser(),
-                      extensionRegistry));
-              break;
+            payload_ =
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.TextPayload.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextPayload) payload_);
+              payload_ = subBuilder.buildPartial();
             }
-          case 50:
-            {
-              com.google.cloud.datalabeling.v1beta1.TextPayload.Builder subBuilder = null;
-              if (payloadCase_ == 6) {
-                subBuilder =
-                    ((com.google.cloud.datalabeling.v1beta1.TextPayload) payload_).toBuilder();
-              }
-              payload_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.TextPayload.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextPayload) payload_);
-                payload_ = subBuilder.buildPartial();
-              }
-              payloadCase_ = 6;
-              break;
+            payloadCase_ = 6;
+            break;
+          }
+          case 58: {
+            com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder subBuilder = null;
+            if (payloadCase_ == 7) {
+              subBuilder = ((com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_).toBuilder();
             }
-          case 58:
-            {
-              com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder subBuilder = null;
-              if (payloadCase_ == 7) {
-                subBuilder =
-                    ((com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_).toBuilder();
-              }
-              payload_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.VideoPayload.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_);
-                payload_ = subBuilder.buildPartial();
-              }
-              payloadCase_ = 7;
-              break;
+            payload_ =
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.VideoPayload.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_);
+              payload_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            payloadCase_ = 7;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -161,7 +127,8 @@ private Example(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } 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)) {
         annotations_ = java.util.Collections.unmodifiableList(annotations_);
@@ -170,35 +137,29 @@ private Example(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_Example_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Example_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.Example.class,
-            com.google.cloud.datalabeling.v1beta1.Example.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.Example.class, com.google.cloud.datalabeling.v1beta1.Example.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_PAYLOAD(2),
     TEXT_PAYLOAD(6),
     VIDEO_PAYLOAD(7),
     PAYLOAD_NOT_SET(0);
     private final int value;
-
     private PayloadCase(int value) {
       this.value = value;
     }
@@ -214,38 +175,31 @@ public static PayloadCase valueOf(int value) {
 
     public static PayloadCase forNumber(int value) {
       switch (value) {
-        case 2:
-          return IMAGE_PAYLOAD;
-        case 6:
-          return TEXT_PAYLOAD;
-        case 7:
-          return VIDEO_PAYLOAD;
-        case 0:
-          return PAYLOAD_NOT_SET;
-        default:
-          return null;
+        case 2: return IMAGE_PAYLOAD;
+        case 6: return TEXT_PAYLOAD;
+        case 7: return VIDEO_PAYLOAD;
+        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_PAYLOAD_FIELD_NUMBER = 2;
   /**
-   *
-   *
    * 
    * The image payload, a container of the image bytes/uri.
    * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; - * * @return Whether the imagePayload field is set. */ @java.lang.Override @@ -253,26 +207,21 @@ public boolean hasImagePayload() { return payloadCase_ == 2; } /** - * - * *
    * The image payload, a container of the image bytes/uri.
    * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; - * * @return The imagePayload. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImagePayload getImagePayload() { if (payloadCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_; } return com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance(); } /** - * - * *
    * The image payload, a container of the image bytes/uri.
    * 
@@ -282,21 +231,18 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayload getImagePayload() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder getImagePayloadOrBuilder() { if (payloadCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_; } return com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance(); } public static final int TEXT_PAYLOAD_FIELD_NUMBER = 6; /** - * - * *
    * The text payload, a container of the text content.
    * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6; - * * @return Whether the textPayload field is set. */ @java.lang.Override @@ -304,26 +250,21 @@ public boolean hasTextPayload() { return payloadCase_ == 6; } /** - * - * *
    * The text payload, a container of the text content.
    * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6; - * * @return The textPayload. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextPayload getTextPayload() { if (payloadCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_; } return com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance(); } /** - * - * *
    * The text payload, a container of the text content.
    * 
@@ -333,21 +274,18 @@ public com.google.cloud.datalabeling.v1beta1.TextPayload getTextPayload() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder getTextPayloadOrBuilder() { if (payloadCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_; } return com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance(); } public static final int VIDEO_PAYLOAD_FIELD_NUMBER = 7; /** - * - * *
    * The video payload, a container of the video uri.
    * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7; - * * @return Whether the videoPayload field is set. */ @java.lang.Override @@ -355,26 +293,21 @@ public boolean hasVideoPayload() { return payloadCase_ == 7; } /** - * - * *
    * The video payload, a container of the video uri.
    * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7; - * * @return The videoPayload. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.VideoPayload getVideoPayload() { if (payloadCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_; } return com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance(); } /** - * - * *
    * The video payload, a container of the video uri.
    * 
@@ -384,7 +317,7 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayload getVideoPayload() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPayloadOrBuilder() { if (payloadCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_; } return com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance(); } @@ -392,8 +325,6 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPaylo public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Output only. Name of the example, in format of:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -401,7 +332,6 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPaylo
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -410,15 +340,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. Name of the example, in format of:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -426,15 +355,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 { @@ -445,8 +375,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ANNOTATIONS_FIELD_NUMBER = 5; private java.util.List annotations_; /** - * - * *
    * Output only. Annotations for the piece of data in Example.
    * One piece of data can have multiple annotations.
@@ -459,8 +387,6 @@ public java.util.List getAnnot
     return annotations_;
   }
   /**
-   *
-   *
    * 
    * Output only. Annotations for the piece of data in Example.
    * One piece of data can have multiple annotations.
@@ -469,13 +395,11 @@ public java.util.List getAnnot
    * repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getAnnotationsOrBuilderList() {
     return annotations_;
   }
   /**
-   *
-   *
    * 
    * Output only. Annotations for the piece of data in Example.
    * One piece of data can have multiple annotations.
@@ -488,8 +412,6 @@ public int getAnnotationsCount() {
     return annotations_.size();
   }
   /**
-   *
-   *
    * 
    * Output only. Annotations for the piece of data in Example.
    * One piece of data can have multiple annotations.
@@ -502,8 +424,6 @@ public com.google.cloud.datalabeling.v1beta1.Annotation getAnnotations(int index
     return annotations_.get(index);
   }
   /**
-   *
-   *
    * 
    * Output only. Annotations for the piece of data in Example.
    * One piece of data can have multiple annotations.
@@ -518,7 +438,6 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder getAnnotationsO
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -530,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
     }
@@ -559,22 +479,20 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (payloadCase_ == 2) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              2, (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_);
     }
     for (int i = 0; i < annotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(5, annotations_.get(i));
     }
     if (payloadCase_ == 6) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              6, (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(6, (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_);
     }
     if (payloadCase_ == 7) {
-      size +=
-          com.google.protobuf.CodedOutputStream.computeMessageSize(
-              7, (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(7, (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -584,26 +502,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.datalabeling.v1beta1.Example)) {
       return super.equals(obj);
     }
-    com.google.cloud.datalabeling.v1beta1.Example other =
-        (com.google.cloud.datalabeling.v1beta1.Example) obj;
+    com.google.cloud.datalabeling.v1beta1.Example other = (com.google.cloud.datalabeling.v1beta1.Example) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (!getAnnotationsList().equals(other.getAnnotationsList())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getAnnotationsList()
+        .equals(other.getAnnotationsList())) return false;
     if (!getPayloadCase().equals(other.getPayloadCase())) return false;
     switch (payloadCase_) {
       case 2:
-        if (!getImagePayload().equals(other.getImagePayload())) return false;
+        if (!getImagePayload()
+            .equals(other.getImagePayload())) return false;
         break;
       case 6:
-        if (!getTextPayload().equals(other.getTextPayload())) return false;
+        if (!getTextPayload()
+            .equals(other.getTextPayload())) return false;
         break;
       case 7:
-        if (!getVideoPayload().equals(other.getVideoPayload())) return false;
+        if (!getVideoPayload()
+            .equals(other.getVideoPayload())) return false;
         break;
       case 0:
       default:
@@ -646,104 +568,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.datalabeling.v1beta1.Example parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.datalabeling.v1beta1.Example parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.Example parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.Example parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.Example parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.Example parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.Example parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.Example 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.datalabeling.v1beta1.Example parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.datalabeling.v1beta1.Example parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.datalabeling.v1beta1.Example parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.Example parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.Example parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.Example parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.Example prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 Example is a piece of data and its annotation. For example, an image with
    * label "house".
@@ -751,23 +666,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.Example}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.Example)
       com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_Example_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Example_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.Example.class,
-              com.google.cloud.datalabeling.v1beta1.Example.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.Example.class, com.google.cloud.datalabeling.v1beta1.Example.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.Example.newBuilder()
@@ -775,17 +688,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) {
         getAnnotationsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -803,9 +716,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor;
     }
 
     @java.lang.Override
@@ -824,8 +737,7 @@ public com.google.cloud.datalabeling.v1beta1.Example build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.Example buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.Example result =
-          new com.google.cloud.datalabeling.v1beta1.Example(this);
+      com.google.cloud.datalabeling.v1beta1.Example result = new com.google.cloud.datalabeling.v1beta1.Example(this);
       int from_bitField0_ = bitField0_;
       if (payloadCase_ == 2) {
         if (imagePayloadBuilder_ == null) {
@@ -867,39 +779,38 @@ public com.google.cloud.datalabeling.v1beta1.Example buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.Example) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Example) other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Example)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -930,35 +841,30 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.Example other) {
             annotationsBuilder_ = null;
             annotations_ = other.annotations_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            annotationsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getAnnotationsFieldBuilder()
-                    : null;
+            annotationsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getAnnotationsFieldBuilder() : null;
           } else {
             annotationsBuilder_.addAllMessages(other.annotations_);
           }
         }
       }
       switch (other.getPayloadCase()) {
-        case IMAGE_PAYLOAD:
-          {
-            mergeImagePayload(other.getImagePayload());
-            break;
-          }
-        case TEXT_PAYLOAD:
-          {
-            mergeTextPayload(other.getTextPayload());
-            break;
-          }
-        case VIDEO_PAYLOAD:
-          {
-            mergeVideoPayload(other.getVideoPayload());
-            break;
-          }
-        case PAYLOAD_NOT_SET:
-          {
-            break;
-          }
+        case IMAGE_PAYLOAD: {
+          mergeImagePayload(other.getImagePayload());
+          break;
+        }
+        case TEXT_PAYLOAD: {
+          mergeTextPayload(other.getTextPayload());
+          break;
+        }
+        case VIDEO_PAYLOAD: {
+          mergeVideoPayload(other.getVideoPayload());
+          break;
+        }
+        case PAYLOAD_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -988,12 +894,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() {
@@ -1006,19 +912,13 @@ public Builder clearPayload() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.ImagePayload,
-            com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder,
-            com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder>
-        imagePayloadBuilder_;
+        com.google.cloud.datalabeling.v1beta1.ImagePayload, com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder, com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder> imagePayloadBuilder_;
     /**
-     *
-     *
      * 
      * The image payload, a container of the image bytes/uri.
      * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; - * * @return Whether the imagePayload field is set. */ @java.lang.Override @@ -1026,14 +926,11 @@ public boolean hasImagePayload() { return payloadCase_ == 2; } /** - * - * *
      * The image payload, a container of the image bytes/uri.
      * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; - * * @return The imagePayload. */ @java.lang.Override @@ -1051,8 +948,6 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayload getImagePayload() { } } /** - * - * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -1073,8 +968,6 @@ public Builder setImagePayload(com.google.cloud.datalabeling.v1beta1.ImagePayloa return this; } /** - * - * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -1093,8 +986,6 @@ public Builder setImagePayload( return this; } /** - * - * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -1103,14 +994,10 @@ public Builder setImagePayload( */ public Builder mergeImagePayload(com.google.cloud.datalabeling.v1beta1.ImagePayload value) { if (imagePayloadBuilder_ == null) { - if (payloadCase_ == 2 - && payload_ - != com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance()) { - payload_ = - com.google.cloud.datalabeling.v1beta1.ImagePayload.newBuilder( - (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_) - .mergeFrom(value) - .buildPartial(); + if (payloadCase_ == 2 && + payload_ != com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance()) { + payload_ = com.google.cloud.datalabeling.v1beta1.ImagePayload.newBuilder((com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_) + .mergeFrom(value).buildPartial(); } else { payload_ = value; } @@ -1126,8 +1013,6 @@ public Builder mergeImagePayload(com.google.cloud.datalabeling.v1beta1.ImagePayl return this; } /** - * - * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -1151,8 +1036,6 @@ public Builder clearImagePayload() { return this; } /** - * - * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -1163,8 +1046,6 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder getImagePayloa return getImagePayloadFieldBuilder().getBuilder(); } /** - * - * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -1183,8 +1064,6 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder getImagePaylo } } /** - * - * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -1192,44 +1071,32 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder getImagePaylo * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImagePayload, - com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder, - com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder> + com.google.cloud.datalabeling.v1beta1.ImagePayload, com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder, com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder> getImagePayloadFieldBuilder() { if (imagePayloadBuilder_ == null) { if (!(payloadCase_ == 2)) { payload_ = com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance(); } - imagePayloadBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImagePayload, - com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder, - com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder>( + imagePayloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ImagePayload, com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder, com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder>( (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 2; - onChanged(); - ; + onChanged();; return imagePayloadBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextPayload, - com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, - com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder> - textPayloadBuilder_; + com.google.cloud.datalabeling.v1beta1.TextPayload, com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder> textPayloadBuilder_; /** - * - * *
      * The text payload, a container of the text content.
      * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6; - * * @return Whether the textPayload field is set. */ @java.lang.Override @@ -1237,14 +1104,11 @@ public boolean hasTextPayload() { return payloadCase_ == 6; } /** - * - * *
      * The text payload, a container of the text content.
      * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6; - * * @return The textPayload. */ @java.lang.Override @@ -1262,8 +1126,6 @@ public com.google.cloud.datalabeling.v1beta1.TextPayload getTextPayload() { } } /** - * - * *
      * The text payload, a container of the text content.
      * 
@@ -1284,8 +1146,6 @@ public Builder setTextPayload(com.google.cloud.datalabeling.v1beta1.TextPayload return this; } /** - * - * *
      * The text payload, a container of the text content.
      * 
@@ -1304,8 +1164,6 @@ public Builder setTextPayload( return this; } /** - * - * *
      * The text payload, a container of the text content.
      * 
@@ -1314,13 +1172,10 @@ public Builder setTextPayload( */ public Builder mergeTextPayload(com.google.cloud.datalabeling.v1beta1.TextPayload value) { if (textPayloadBuilder_ == null) { - if (payloadCase_ == 6 - && payload_ != com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance()) { - payload_ = - com.google.cloud.datalabeling.v1beta1.TextPayload.newBuilder( - (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_) - .mergeFrom(value) - .buildPartial(); + if (payloadCase_ == 6 && + payload_ != com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance()) { + payload_ = com.google.cloud.datalabeling.v1beta1.TextPayload.newBuilder((com.google.cloud.datalabeling.v1beta1.TextPayload) payload_) + .mergeFrom(value).buildPartial(); } else { payload_ = value; } @@ -1336,8 +1191,6 @@ public Builder mergeTextPayload(com.google.cloud.datalabeling.v1beta1.TextPayloa return this; } /** - * - * *
      * The text payload, a container of the text content.
      * 
@@ -1361,8 +1214,6 @@ public Builder clearTextPayload() { return this; } /** - * - * *
      * The text payload, a container of the text content.
      * 
@@ -1373,8 +1224,6 @@ public com.google.cloud.datalabeling.v1beta1.TextPayload.Builder getTextPayloadB return getTextPayloadFieldBuilder().getBuilder(); } /** - * - * *
      * The text payload, a container of the text content.
      * 
@@ -1393,8 +1242,6 @@ public com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder getTextPayload } } /** - * - * *
      * The text payload, a container of the text content.
      * 
@@ -1402,44 +1249,32 @@ public com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder getTextPayload * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextPayload, - com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, - com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder> + com.google.cloud.datalabeling.v1beta1.TextPayload, com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder> getTextPayloadFieldBuilder() { if (textPayloadBuilder_ == null) { if (!(payloadCase_ == 6)) { payload_ = com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance(); } - textPayloadBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextPayload, - com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, - com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder>( + textPayloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TextPayload, com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder>( (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 6; - onChanged(); - ; + onChanged();; return textPayloadBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoPayload, - com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, - com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder> - videoPayloadBuilder_; + com.google.cloud.datalabeling.v1beta1.VideoPayload, com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder> videoPayloadBuilder_; /** - * - * *
      * The video payload, a container of the video uri.
      * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7; - * * @return Whether the videoPayload field is set. */ @java.lang.Override @@ -1447,14 +1282,11 @@ public boolean hasVideoPayload() { return payloadCase_ == 7; } /** - * - * *
      * The video payload, a container of the video uri.
      * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7; - * * @return The videoPayload. */ @java.lang.Override @@ -1472,8 +1304,6 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayload getVideoPayload() { } } /** - * - * *
      * The video payload, a container of the video uri.
      * 
@@ -1494,8 +1324,6 @@ public Builder setVideoPayload(com.google.cloud.datalabeling.v1beta1.VideoPayloa return this; } /** - * - * *
      * The video payload, a container of the video uri.
      * 
@@ -1514,8 +1342,6 @@ public Builder setVideoPayload( return this; } /** - * - * *
      * The video payload, a container of the video uri.
      * 
@@ -1524,14 +1350,10 @@ public Builder setVideoPayload( */ public Builder mergeVideoPayload(com.google.cloud.datalabeling.v1beta1.VideoPayload value) { if (videoPayloadBuilder_ == null) { - if (payloadCase_ == 7 - && payload_ - != com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance()) { - payload_ = - com.google.cloud.datalabeling.v1beta1.VideoPayload.newBuilder( - (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_) - .mergeFrom(value) - .buildPartial(); + if (payloadCase_ == 7 && + payload_ != com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance()) { + payload_ = com.google.cloud.datalabeling.v1beta1.VideoPayload.newBuilder((com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_) + .mergeFrom(value).buildPartial(); } else { payload_ = value; } @@ -1547,8 +1369,6 @@ public Builder mergeVideoPayload(com.google.cloud.datalabeling.v1beta1.VideoPayl return this; } /** - * - * *
      * The video payload, a container of the video uri.
      * 
@@ -1572,8 +1392,6 @@ public Builder clearVideoPayload() { return this; } /** - * - * *
      * The video payload, a container of the video uri.
      * 
@@ -1584,8 +1402,6 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder getVideoPayloa return getVideoPayloadFieldBuilder().getBuilder(); } /** - * - * *
      * The video payload, a container of the video uri.
      * 
@@ -1604,8 +1420,6 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPaylo } } /** - * - * *
      * The video payload, a container of the video uri.
      * 
@@ -1613,34 +1427,26 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPaylo * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoPayload, - com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, - com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder> + com.google.cloud.datalabeling.v1beta1.VideoPayload, com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder> getVideoPayloadFieldBuilder() { if (videoPayloadBuilder_ == null) { if (!(payloadCase_ == 7)) { payload_ = com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance(); } - videoPayloadBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoPayload, - com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, - com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder>( + videoPayloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.VideoPayload, com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder>( (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 7; - onChanged(); - ; + onChanged();; return videoPayloadBuilder_; } private java.lang.Object name_ = ""; /** - * - * *
      * Output only. Name of the example, in format of:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -1648,13 +1454,13 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPaylo
      * 
* * 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; @@ -1663,8 +1469,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Name of the example, in format of:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -1672,14 +1476,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 { @@ -1687,8 +1492,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Name of the example, in format of:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -1696,22 +1499,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. Name of the example, in format of:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -1719,18 +1520,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. Name of the example, in format of:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -1738,41 +1536,34 @@ 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; } private java.util.List annotations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAnnotationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - annotations_ = - new java.util.ArrayList(annotations_); + annotations_ = new java.util.ArrayList(annotations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Annotation, - com.google.cloud.datalabeling.v1beta1.Annotation.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder> - annotationsBuilder_; + com.google.cloud.datalabeling.v1beta1.Annotation, com.google.cloud.datalabeling.v1beta1.Annotation.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder> annotationsBuilder_; /** - * - * *
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1788,8 +1579,6 @@ public java.util.List getAnnot
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1805,8 +1594,6 @@ public int getAnnotationsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1822,8 +1609,6 @@ public com.google.cloud.datalabeling.v1beta1.Annotation getAnnotations(int index
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1846,8 +1631,6 @@ public Builder setAnnotations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1867,8 +1650,6 @@ public Builder setAnnotations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1890,8 +1671,6 @@ public Builder addAnnotations(com.google.cloud.datalabeling.v1beta1.Annotation v
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1914,8 +1693,6 @@ public Builder addAnnotations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1935,8 +1712,6 @@ public Builder addAnnotations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1956,8 +1731,6 @@ public Builder addAnnotations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1969,7 +1742,8 @@ public Builder addAllAnnotations(
         java.lang.Iterable values) {
       if (annotationsBuilder_ == null) {
         ensureAnnotationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, annotations_);
         onChanged();
       } else {
         annotationsBuilder_.addAllMessages(values);
@@ -1977,8 +1751,6 @@ public Builder addAllAnnotations(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1997,8 +1769,6 @@ public Builder clearAnnotations() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -2017,8 +1787,6 @@ public Builder removeAnnotations(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -2031,8 +1799,6 @@ public com.google.cloud.datalabeling.v1beta1.Annotation.Builder getAnnotationsBu
       return getAnnotationsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -2043,14 +1809,11 @@ public com.google.cloud.datalabeling.v1beta1.Annotation.Builder getAnnotationsBu
     public com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder getAnnotationsOrBuilder(
         int index) {
       if (annotationsBuilder_ == null) {
-        return annotations_.get(index);
-      } else {
+        return annotations_.get(index);  } else {
         return annotationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -2058,8 +1821,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder getAnnotationsO
      *
      * repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
      */
-    public java.util.List
-        getAnnotationsOrBuilderList() {
+    public java.util.List 
+         getAnnotationsOrBuilderList() {
       if (annotationsBuilder_ != null) {
         return annotationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2067,8 +1830,6 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder getAnnotationsO
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -2077,12 +1838,10 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder getAnnotationsO
      * repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
      */
     public com.google.cloud.datalabeling.v1beta1.Annotation.Builder addAnnotationsBuilder() {
-      return getAnnotationsFieldBuilder()
-          .addBuilder(com.google.cloud.datalabeling.v1beta1.Annotation.getDefaultInstance());
+      return getAnnotationsFieldBuilder().addBuilder(
+          com.google.cloud.datalabeling.v1beta1.Annotation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -2092,12 +1851,10 @@ public com.google.cloud.datalabeling.v1beta1.Annotation.Builder addAnnotationsBu
      */
     public com.google.cloud.datalabeling.v1beta1.Annotation.Builder addAnnotationsBuilder(
         int index) {
-      return getAnnotationsFieldBuilder()
-          .addBuilder(index, com.google.cloud.datalabeling.v1beta1.Annotation.getDefaultInstance());
+      return getAnnotationsFieldBuilder().addBuilder(
+          index, com.google.cloud.datalabeling.v1beta1.Annotation.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -2105,30 +1862,27 @@ public com.google.cloud.datalabeling.v1beta1.Annotation.Builder addAnnotationsBu
      *
      * repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
      */
-    public java.util.List
-        getAnnotationsBuilderList() {
+    public java.util.List 
+         getAnnotationsBuilderList() {
       return getAnnotationsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.Annotation,
-            com.google.cloud.datalabeling.v1beta1.Annotation.Builder,
-            com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder>
+        com.google.cloud.datalabeling.v1beta1.Annotation, com.google.cloud.datalabeling.v1beta1.Annotation.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder> 
         getAnnotationsFieldBuilder() {
       if (annotationsBuilder_ == null) {
-        annotationsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.datalabeling.v1beta1.Annotation,
-                com.google.cloud.datalabeling.v1beta1.Annotation.Builder,
-                com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder>(
-                annotations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        annotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.datalabeling.v1beta1.Annotation, com.google.cloud.datalabeling.v1beta1.Annotation.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder>(
+                annotations_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         annotations_ = null;
       }
       return annotationsBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -2138,12 +1892,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.Example)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Example)
   private static final com.google.cloud.datalabeling.v1beta1.Example DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.Example();
   }
@@ -2152,16 +1906,16 @@ public static com.google.cloud.datalabeling.v1beta1.Example getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Example parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Example(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Example parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Example(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2176,4 +1930,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datalabeling.v1beta1.Example getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleName.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleName.java
similarity index 100%
rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleName.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleName.java
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleOrBuilder.java
similarity index 83%
rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleOrBuilder.java
index 89a81eb4..10f0cedd 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleOrBuilder.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/datalabeling/v1beta1/dataset.proto
 
 package com.google.cloud.datalabeling.v1beta1;
 
-public interface ExampleOrBuilder
-    extends
+public interface ExampleOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.Example)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The image payload, a container of the image bytes/uri.
    * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; - * * @return Whether the imagePayload field is set. */ boolean hasImagePayload(); /** - * - * *
    * The image payload, a container of the image bytes/uri.
    * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; - * * @return The imagePayload. */ com.google.cloud.datalabeling.v1beta1.ImagePayload getImagePayload(); /** - * - * *
    * The image payload, a container of the image bytes/uri.
    * 
@@ -59,32 +35,24 @@ public interface ExampleOrBuilder com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder getImagePayloadOrBuilder(); /** - * - * *
    * The text payload, a container of the text content.
    * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6; - * * @return Whether the textPayload field is set. */ boolean hasTextPayload(); /** - * - * *
    * The text payload, a container of the text content.
    * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6; - * * @return The textPayload. */ com.google.cloud.datalabeling.v1beta1.TextPayload getTextPayload(); /** - * - * *
    * The text payload, a container of the text content.
    * 
@@ -94,32 +62,24 @@ public interface ExampleOrBuilder com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder getTextPayloadOrBuilder(); /** - * - * *
    * The video payload, a container of the video uri.
    * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7; - * * @return Whether the videoPayload field is set. */ boolean hasVideoPayload(); /** - * - * *
    * The video payload, a container of the video uri.
    * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7; - * * @return The videoPayload. */ com.google.cloud.datalabeling.v1beta1.VideoPayload getVideoPayload(); /** - * - * *
    * The video payload, a container of the video uri.
    * 
@@ -129,8 +89,6 @@ public interface ExampleOrBuilder com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPayloadOrBuilder(); /** - * - * *
    * Output only. Name of the example, in format of:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -138,13 +96,10 @@ public interface ExampleOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Name of the example, in format of:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -152,14 +107,12 @@ public interface ExampleOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Output only. Annotations for the piece of data in Example.
    * One piece of data can have multiple annotations.
@@ -167,10 +120,9 @@ public interface ExampleOrBuilder
    *
    * repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
    */
-  java.util.List getAnnotationsList();
+  java.util.List 
+      getAnnotationsList();
   /**
-   *
-   *
    * 
    * Output only. Annotations for the piece of data in Example.
    * One piece of data can have multiple annotations.
@@ -180,8 +132,6 @@ public interface ExampleOrBuilder
    */
   com.google.cloud.datalabeling.v1beta1.Annotation getAnnotations(int index);
   /**
-   *
-   *
    * 
    * Output only. Annotations for the piece of data in Example.
    * One piece of data can have multiple annotations.
@@ -191,8 +141,6 @@ public interface ExampleOrBuilder
    */
   int getAnnotationsCount();
   /**
-   *
-   *
    * 
    * Output only. Annotations for the piece of data in Example.
    * One piece of data can have multiple annotations.
@@ -200,11 +148,9 @@ public interface ExampleOrBuilder
    *
    * repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
    */
-  java.util.List
+  java.util.List 
       getAnnotationsOrBuilderList();
   /**
-   *
-   *
    * 
    * Output only. Annotations for the piece of data in Example.
    * One piece of data can have multiple annotations.
@@ -212,7 +158,8 @@ public interface ExampleOrBuilder
    *
    * repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
    */
-  com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder getAnnotationsOrBuilder(int index);
+  com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder getAnnotationsOrBuilder(
+      int index);
 
   public com.google.cloud.datalabeling.v1beta1.Example.PayloadCase getPayloadCase();
 }
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadata.java
similarity index 74%
rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadata.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadata.java
index f9a52840..aa9d47d7 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadata.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadata.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/datalabeling/v1beta1/operations.proto
 
 package com.google.cloud.datalabeling.v1beta1;
 
 /**
- *
- *
  * 
  * Metadata of an ExportData operation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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() { dataset_ = ""; partialFailures_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ 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) @@ -72,45 +55,41 @@ private ExportDataOperationMetadata( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - dataset_ = s; - break; + dataset_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + partialFailures_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - 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; + 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(); } - 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; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = 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) { @@ -118,7 +97,8 @@ private ExportDataOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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_); @@ -127,34 +107,28 @@ private ExportDataOperationMetadata( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.Builder.class); } public static final int DATASET_FIELD_NUMBER = 1; private volatile java.lang.Object dataset_; /** - * - * *
    * Output only. The name of dataset to be exported.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; - * * @return The dataset. */ @java.lang.Override @@ -163,30 +137,30 @@ public java.lang.String getDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; } } /** - * - * *
    * Output only. The name of dataset to be exported.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; - * * @return The bytes for dataset. */ @java.lang.Override - public com.google.protobuf.ByteString getDatasetBytes() { + public com.google.protobuf.ByteString + getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataset_ = b; return b; } else { @@ -197,8 +171,6 @@ public com.google.protobuf.ByteString getDatasetBytes() { 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.
@@ -212,8 +184,6 @@ public java.util.List getPartialFailuresList() {
     return partialFailures_;
   }
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -223,13 +193,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.
@@ -243,8 +211,6 @@ public int getPartialFailuresCount() {
     return partialFailures_.size();
   }
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -258,8 +224,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.
@@ -269,21 +233,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. Timestamp when export dataset request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -291,14 +253,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Timestamp when export dataset request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ @java.lang.Override @@ -306,8 +265,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Timestamp when export dataset request was created.
    * 
@@ -320,7 +277,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,7 +288,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(dataset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); } @@ -355,10 +312,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataset_); } 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()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -368,19 +327,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.datalabeling.v1beta1.ExportDataOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata other = - (com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata) obj; - if (!getDataset().equals(other.getDataset())) return false; - if (!getPartialFailuresList().equals(other.getPartialFailuresList())) return false; + if (!getDataset() + .equals(other.getDataset())) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -409,147 +370,135 @@ public int hashCode() { } public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ExportDataOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ExportDataOperationMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ExportDataOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ExportDataOperationMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ExportDataOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.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; } /** - * - * *
    * Metadata of an ExportData operation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.ExportDataOperationMetadata) com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.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) { getPartialFailuresFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -571,14 +520,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.getDefaultInstance(); } @@ -593,8 +541,7 @@ public com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata result = - new com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata(this); + com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata(this); int from_bitField0_ = bitField0_; result.dataset_ = dataset_; if (partialFailuresBuilder_ == null) { @@ -619,50 +566,46 @@ public com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata 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.datalabeling.v1beta1.ExportDataOperationMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata other) { - if (other - == com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata other) { + if (other == com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.getDefaultInstance()) return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; onChanged(); @@ -685,10 +628,9 @@ public Builder mergeFrom( 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_); } @@ -716,9 +658,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -727,26 +667,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object dataset_ = ""; /** - * - * *
      * Output only. The name of dataset to be exported.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; - * * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; @@ -755,22 +692,21 @@ public java.lang.String getDataset() { } } /** - * - * *
      * Output only. The name of dataset to be exported.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; - * * @return The bytes for dataset. */ - public com.google.protobuf.ByteString getDatasetBytes() { + public com.google.protobuf.ByteString + getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataset_ = b; return b; } else { @@ -778,86 +714,75 @@ public com.google.protobuf.ByteString getDatasetBytes() { } } /** - * - * *
      * Output only. The name of dataset to be exported.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; - * * @param value The dataset to set. * @return This builder for chaining. */ - public Builder setDataset(java.lang.String value) { + public Builder setDataset( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataset_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The name of dataset to be exported.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; - * * @return This builder for chaining. */ public Builder clearDataset() { - + dataset_ = getDefaultInstance().getDataset(); onChanged(); return this; } /** - * - * *
      * Output only. The name of dataset to be exported.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; - * * @param value The bytes for dataset to set. * @return This builder for chaining. */ - public Builder setDatasetBytes(com.google.protobuf.ByteString value) { + public Builder setDatasetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; 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.
@@ -874,8 +799,6 @@ public java.util.List getPartialFailuresList() {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -892,8 +815,6 @@ public int getPartialFailuresCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -910,8 +831,6 @@ public com.google.rpc.Status getPartialFailures(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -920,7 +839,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();
@@ -934,8 +854,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.
@@ -944,7 +862,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());
@@ -955,8 +874,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.
@@ -979,8 +896,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.
@@ -989,7 +904,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();
@@ -1003,8 +919,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.
@@ -1013,7 +927,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());
@@ -1024,8 +939,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.
@@ -1034,7 +947,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());
@@ -1045,8 +959,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.
@@ -1059,7 +971,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);
@@ -1067,8 +980,6 @@ public Builder addAllPartialFailures(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1088,8 +999,6 @@ public Builder clearPartialFailures() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1109,8 +1018,6 @@ public Builder removePartialFailures(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1119,12 +1026,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.
@@ -1133,16 +1039,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.
@@ -1151,8 +1055,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 {
@@ -1160,8 +1064,6 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1171,12 +1073,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.
@@ -1185,13 +1085,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.
@@ -1200,19 +1099,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(),
@@ -1224,47 +1120,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. Timestamp when export dataset request 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. Timestamp when export dataset request 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. Timestamp when export dataset request was created.
      * 
@@ -1285,15 +1168,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp when export dataset request 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(); @@ -1304,8 +1186,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Timestamp when export dataset request was created.
      * 
@@ -1316,7 +1196,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; } @@ -1328,8 +1208,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp when export dataset request was created.
      * 
@@ -1348,8 +1226,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Timestamp when export dataset request was created.
      * 
@@ -1357,13 +1233,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 3; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Timestamp when export dataset request was created.
      * 
@@ -1374,14 +1248,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 export dataset request was created.
      * 
@@ -1389,24 +1260,21 @@ 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_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1416,32 +1284,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportDataOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportDataOperationMetadata(input, extensionRegistry); - } - }; + 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; @@ -1453,8 +1319,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadataOrBuilder.java similarity index 73% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadataOrBuilder.java index e55f8e78..b4a733cc 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface ExportDataOperationMetadataOrBuilder - extends +public interface ExportDataOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The name of dataset to be exported.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; - * * @return The dataset. */ java.lang.String getDataset(); /** - * - * *
    * Output only. The name of dataset to be exported.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; - * * @return The bytes for dataset. */ - com.google.protobuf.ByteString getDatasetBytes(); + com.google.protobuf.ByteString + getDatasetBytes(); /** - * - * *
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -61,10 +38,9 @@ public interface ExportDataOperationMetadataOrBuilder
    *
    * 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.
@@ -75,8 +51,6 @@ public interface ExportDataOperationMetadataOrBuilder
    */
   com.google.rpc.Status getPartialFailures(int index);
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -87,8 +61,6 @@ public interface ExportDataOperationMetadataOrBuilder
    */
   int getPartialFailuresCount();
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -97,10 +69,9 @@ public interface ExportDataOperationMetadataOrBuilder
    *
    * 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.
@@ -109,35 +80,28 @@ public interface ExportDataOperationMetadataOrBuilder
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index);
+  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Output only. Timestamp when export dataset request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Timestamp when export dataset request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Timestamp when export dataset request was created.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponse.java similarity index 69% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponse.java index 32a04bcd..6eab0988 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponse.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Response used for ExportDataset longrunning operation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ExportDataOperationResponse} */ -public final class ExportDataOperationResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ExportDataOperationResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ExportDataOperationResponse) ExportDataOperationResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ExportDataOperationResponse.newBuilder() to construct. private ExportDataOperationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExportDataOperationResponse() { dataset_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ExportDataOperationResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ExportDataOperationResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,63 +53,55 @@ private ExportDataOperationResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - dataset_ = s; - break; - } - case 16: - { - totalCount_ = input.readInt32(); - break; + dataset_ = s; + break; + } + case 16: { + + totalCount_ = input.readInt32(); + break; + } + case 24: { + + exportCount_ = input.readInt32(); + break; + } + case 34: { + com.google.cloud.datalabeling.v1beta1.LabelStats.Builder subBuilder = null; + if (labelStats_ != null) { + subBuilder = labelStats_.toBuilder(); } - case 24: - { - exportCount_ = input.readInt32(); - break; + labelStats_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelStats.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(labelStats_); + labelStats_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.datalabeling.v1beta1.LabelStats.Builder subBuilder = null; - if (labelStats_ != null) { - subBuilder = labelStats_.toBuilder(); - } - labelStats_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.LabelStats.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(labelStats_); - labelStats_ = subBuilder.buildPartial(); - } - - break; + + break; + } + case 42: { + com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); } - case 42: - { - com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.OutputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; + outputConfig_ = input.readMessage(com.google.cloud.datalabeling.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) { @@ -134,40 +109,35 @@ private ExportDataOperationResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.class, - com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.class, com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.Builder.class); } public static final int DATASET_FIELD_NUMBER = 1; private volatile java.lang.Object dataset_; /** - * - * *
    * Ouptut only. The name of dataset.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; - * * @return The dataset. */ @java.lang.Override @@ -176,30 +146,30 @@ public java.lang.String getDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; } } /** - * - * *
    * Ouptut only. The name of dataset.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; - * * @return The bytes for dataset. */ @java.lang.Override - public com.google.protobuf.ByteString getDatasetBytes() { + public com.google.protobuf.ByteString + getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataset_ = b; return b; } else { @@ -210,14 +180,11 @@ public com.google.protobuf.ByteString getDatasetBytes() { public static final int TOTAL_COUNT_FIELD_NUMBER = 2; private int totalCount_; /** - * - * *
    * Output only. Total number of examples requested to export
    * 
* * int32 total_count = 2; - * * @return The totalCount. */ @java.lang.Override @@ -228,14 +195,11 @@ public int getTotalCount() { public static final int EXPORT_COUNT_FIELD_NUMBER = 3; private int exportCount_; /** - * - * *
    * Output only. Number of examples exported successfully.
    * 
* * int32 export_count = 3; - * * @return The exportCount. */ @java.lang.Override @@ -246,14 +210,11 @@ public int getExportCount() { public static final int LABEL_STATS_FIELD_NUMBER = 4; private com.google.cloud.datalabeling.v1beta1.LabelStats labelStats_; /** - * - * *
    * Output only. Statistic infos of labels in the exported dataset.
    * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 4; - * * @return Whether the labelStats field is set. */ @java.lang.Override @@ -261,25 +222,18 @@ public boolean hasLabelStats() { return labelStats_ != null; } /** - * - * *
    * Output only. Statistic infos of labels in the exported dataset.
    * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 4; - * * @return The labelStats. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelStats getLabelStats() { - return labelStats_ == null - ? com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() - : labelStats_; + return labelStats_ == null ? com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() : labelStats_; } /** - * - * *
    * Output only. Statistic infos of labels in the exported dataset.
    * 
@@ -294,14 +248,11 @@ public com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder getLabelStatsOr public static final int OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.datalabeling.v1beta1.OutputConfig outputConfig_; /** - * - * *
    * Output only. output_config in the ExportData request.
    * 
* * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 5; - * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -309,25 +260,18 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Output only. output_config in the ExportData request.
    * 
* * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 5; - * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Output only. output_config in the ExportData request.
    * 
@@ -340,7 +284,6 @@ public com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder getOutputConf } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -352,7 +295,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(dataset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); } @@ -381,16 +325,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataset_); } if (totalCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, totalCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, totalCount_); } if (exportCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, exportCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, exportCount_); } if (labelStats_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLabelStats()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getLabelStats()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -400,24 +348,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.datalabeling.v1beta1.ExportDataOperationResponse)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse other = - (com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse) obj; + com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse other = (com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse) obj; - if (!getDataset().equals(other.getDataset())) return false; - if (getTotalCount() != other.getTotalCount()) return false; - if (getExportCount() != other.getExportCount()) return false; + if (!getDataset() + .equals(other.getDataset())) return false; + if (getTotalCount() + != other.getTotalCount()) return false; + if (getExportCount() + != other.getExportCount()) return false; if (hasLabelStats() != other.hasLabelStats()) return false; if (hasLabelStats()) { - if (!getLabelStats().equals(other.getLabelStats())) return false; + if (!getLabelStats() + .equals(other.getLabelStats())) 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; @@ -450,145 +402,134 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse 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.datalabeling.v1beta1.ExportDataOperationResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse - 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.datalabeling.v1beta1.ExportDataOperationResponse 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.datalabeling.v1beta1.ExportDataOperationResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 used for ExportDataset longrunning operation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ExportDataOperationResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ExportDataOperationResponse) com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.class, - com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.class, com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.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(); @@ -614,14 +555,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.getDefaultInstance(); } @@ -636,8 +576,7 @@ public com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse buildPartial() { - com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse result = - new com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse(this); + com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse result = new com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse(this); result.dataset_ = dataset_; result.totalCount_ = totalCount_; result.exportCount_ = exportCount_; @@ -659,50 +598,46 @@ public com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse 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.datalabeling.v1beta1.ExportDataOperationResponse) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse other) { - if (other - == com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse other) { + if (other == com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.getDefaultInstance()) return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; onChanged(); @@ -738,9 +673,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -752,21 +685,19 @@ public Builder mergeFrom( private java.lang.Object dataset_ = ""; /** - * - * *
      * Ouptut only. The name of dataset.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; - * * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; @@ -775,22 +706,21 @@ public java.lang.String getDataset() { } } /** - * - * *
      * Ouptut only. The name of dataset.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; - * * @return The bytes for dataset. */ - public com.google.protobuf.ByteString getDatasetBytes() { + public com.google.protobuf.ByteString + getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataset_ = b; return b; } else { @@ -798,79 +728,69 @@ public com.google.protobuf.ByteString getDatasetBytes() { } } /** - * - * *
      * Ouptut only. The name of dataset.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; - * * @param value The dataset to set. * @return This builder for chaining. */ - public Builder setDataset(java.lang.String value) { + public Builder setDataset( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataset_ = value; onChanged(); return this; } /** - * - * *
      * Ouptut only. The name of dataset.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; - * * @return This builder for chaining. */ public Builder clearDataset() { - + dataset_ = getDefaultInstance().getDataset(); onChanged(); return this; } /** - * - * *
      * Ouptut only. The name of dataset.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; - * * @param value The bytes for dataset to set. * @return This builder for chaining. */ - public Builder setDatasetBytes(com.google.protobuf.ByteString value) { + public Builder setDatasetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; onChanged(); return this; } - private int totalCount_; + private int totalCount_ ; /** - * - * *
      * Output only. Total number of examples requested to export
      * 
* * int32 total_count = 2; - * * @return The totalCount. */ @java.lang.Override @@ -878,51 +798,42 @@ public int getTotalCount() { return totalCount_; } /** - * - * *
      * Output only. Total number of examples requested to export
      * 
* * int32 total_count = 2; - * * @param value The totalCount to set. * @return This builder for chaining. */ public Builder setTotalCount(int value) { - + totalCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Total number of examples requested to export
      * 
* * int32 total_count = 2; - * * @return This builder for chaining. */ public Builder clearTotalCount() { - + totalCount_ = 0; onChanged(); return this; } - private int exportCount_; + private int exportCount_ ; /** - * - * *
      * Output only. Number of examples exported successfully.
      * 
* * int32 export_count = 3; - * * @return The exportCount. */ @java.lang.Override @@ -930,36 +841,30 @@ public int getExportCount() { return exportCount_; } /** - * - * *
      * Output only. Number of examples exported successfully.
      * 
* * int32 export_count = 3; - * * @param value The exportCount to set. * @return This builder for chaining. */ public Builder setExportCount(int value) { - + exportCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Number of examples exported successfully.
      * 
* * int32 export_count = 3; - * * @return This builder for chaining. */ public Builder clearExportCount() { - + exportCount_ = 0; onChanged(); return this; @@ -967,47 +872,34 @@ public Builder clearExportCount() { private com.google.cloud.datalabeling.v1beta1.LabelStats labelStats_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelStats, - com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, - com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder> - labelStatsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelStats, com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder> labelStatsBuilder_; /** - * - * *
      * Output only. Statistic infos of labels in the exported dataset.
      * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 4; - * * @return Whether the labelStats field is set. */ public boolean hasLabelStats() { return labelStatsBuilder_ != null || labelStats_ != null; } /** - * - * *
      * Output only. Statistic infos of labels in the exported dataset.
      * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 4; - * * @return The labelStats. */ public com.google.cloud.datalabeling.v1beta1.LabelStats getLabelStats() { if (labelStatsBuilder_ == null) { - return labelStats_ == null - ? com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() - : labelStats_; + return labelStats_ == null ? com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() : labelStats_; } else { return labelStatsBuilder_.getMessage(); } } /** - * - * *
      * Output only. Statistic infos of labels in the exported dataset.
      * 
@@ -1028,8 +920,6 @@ public Builder setLabelStats(com.google.cloud.datalabeling.v1beta1.LabelStats va return this; } /** - * - * *
      * Output only. Statistic infos of labels in the exported dataset.
      * 
@@ -1048,8 +938,6 @@ public Builder setLabelStats( return this; } /** - * - * *
      * Output only. Statistic infos of labels in the exported dataset.
      * 
@@ -1060,9 +948,7 @@ public Builder mergeLabelStats(com.google.cloud.datalabeling.v1beta1.LabelStats if (labelStatsBuilder_ == null) { if (labelStats_ != null) { labelStats_ = - com.google.cloud.datalabeling.v1beta1.LabelStats.newBuilder(labelStats_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.LabelStats.newBuilder(labelStats_).mergeFrom(value).buildPartial(); } else { labelStats_ = value; } @@ -1074,8 +960,6 @@ public Builder mergeLabelStats(com.google.cloud.datalabeling.v1beta1.LabelStats return this; } /** - * - * *
      * Output only. Statistic infos of labels in the exported dataset.
      * 
@@ -1094,8 +978,6 @@ public Builder clearLabelStats() { return this; } /** - * - * *
      * Output only. Statistic infos of labels in the exported dataset.
      * 
@@ -1103,13 +985,11 @@ public Builder clearLabelStats() { * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 4; */ public com.google.cloud.datalabeling.v1beta1.LabelStats.Builder getLabelStatsBuilder() { - + onChanged(); return getLabelStatsFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Statistic infos of labels in the exported dataset.
      * 
@@ -1120,14 +1000,11 @@ public com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder getLabelStatsOr if (labelStatsBuilder_ != null) { return labelStatsBuilder_.getMessageOrBuilder(); } else { - return labelStats_ == null - ? com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() - : labelStats_; + return labelStats_ == null ? + com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() : labelStats_; } } /** - * - * *
      * Output only. Statistic infos of labels in the exported dataset.
      * 
@@ -1135,17 +1012,14 @@ public com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder getLabelStatsOr * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelStats, - com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, - com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelStats, com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder> getLabelStatsFieldBuilder() { if (labelStatsBuilder_ == null) { - labelStatsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelStats, - com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, - com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder>( - getLabelStats(), getParentForChildren(), isClean()); + labelStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelStats, com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder>( + getLabelStats(), + getParentForChildren(), + isClean()); labelStats_ = null; } return labelStatsBuilder_; @@ -1153,47 +1027,34 @@ public com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder getLabelStatsOr private com.google.cloud.datalabeling.v1beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.OutputConfig, - com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, - com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.OutputConfig, com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Output only. output_config in the ExportData request.
      * 
* * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 5; - * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Output only. output_config in the ExportData request.
      * 
* * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 5; - * * @return The outputConfig. */ public com.google.cloud.datalabeling.v1beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Output only. output_config in the ExportData request.
      * 
@@ -1214,8 +1075,6 @@ public Builder setOutputConfig(com.google.cloud.datalabeling.v1beta1.OutputConfi return this; } /** - * - * *
      * Output only. output_config in the ExportData request.
      * 
@@ -1234,8 +1093,6 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Output only. output_config in the ExportData request.
      * 
@@ -1246,9 +1103,7 @@ public Builder mergeOutputConfig(com.google.cloud.datalabeling.v1beta1.OutputCon if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.datalabeling.v1beta1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1260,8 +1115,6 @@ public Builder mergeOutputConfig(com.google.cloud.datalabeling.v1beta1.OutputCon return this; } /** - * - * *
      * Output only. output_config in the ExportData request.
      * 
@@ -1280,8 +1133,6 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Output only. output_config in the ExportData request.
      * 
@@ -1289,13 +1140,11 @@ public Builder clearOutputConfig() { * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 5; */ public com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. output_config in the ExportData request.
      * 
@@ -1306,14 +1155,11 @@ public com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder getOutputConf if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Output only. output_config in the ExportData request.
      * 
@@ -1321,24 +1167,21 @@ public com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder getOutputConf * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.OutputConfig, - com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, - com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.OutputConfig, com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.OutputConfig, - com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, - com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.OutputConfig, com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, com.google.cloud.datalabeling.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); } @@ -1348,32 +1191,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ExportDataOperationResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ExportDataOperationResponse) - private static final com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse(); } - public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportDataOperationResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportDataOperationResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportDataOperationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportDataOperationResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1385,8 +1226,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponseOrBuilder.java similarity index 76% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponseOrBuilder.java index 0e31db84..d4a0adfd 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponseOrBuilder.java @@ -1,108 +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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface ExportDataOperationResponseOrBuilder - extends +public interface ExportDataOperationResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ExportDataOperationResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Ouptut only. The name of dataset.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; - * * @return The dataset. */ java.lang.String getDataset(); /** - * - * *
    * Ouptut only. The name of dataset.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; - * * @return The bytes for dataset. */ - com.google.protobuf.ByteString getDatasetBytes(); + com.google.protobuf.ByteString + getDatasetBytes(); /** - * - * *
    * Output only. Total number of examples requested to export
    * 
* * int32 total_count = 2; - * * @return The totalCount. */ int getTotalCount(); /** - * - * *
    * Output only. Number of examples exported successfully.
    * 
* * int32 export_count = 3; - * * @return The exportCount. */ int getExportCount(); /** - * - * *
    * Output only. Statistic infos of labels in the exported dataset.
    * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 4; - * * @return Whether the labelStats field is set. */ boolean hasLabelStats(); /** - * - * *
    * Output only. Statistic infos of labels in the exported dataset.
    * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 4; - * * @return The labelStats. */ com.google.cloud.datalabeling.v1beta1.LabelStats getLabelStats(); /** - * - * *
    * Output only. Statistic infos of labels in the exported dataset.
    * 
@@ -112,32 +77,24 @@ public interface ExportDataOperationResponseOrBuilder com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder getLabelStatsOrBuilder(); /** - * - * *
    * Output only. output_config in the ExportData request.
    * 
* * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 5; - * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Output only. output_config in the ExportData request.
    * 
* * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 5; - * * @return The outputConfig. */ com.google.cloud.datalabeling.v1beta1.OutputConfig getOutputConfig(); /** - * - * *
    * Output only. output_config in the ExportData request.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequest.java similarity index 66% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequest.java index 98b1f1a4..0b12b2f1 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for ExportData API.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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_ = ""; annotatedDataset_ = ""; @@ -46,15 +28,16 @@ private ExportDataRequest() { @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) @@ -73,58 +56,50 @@ 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 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - annotatedDataset_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + annotatedDataset_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; + filter_ = s; + break; + } + case 34: { + com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); } - case 34: - { - com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); - } - outputConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.OutputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); - } - - break; + outputConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.OutputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - userEmailAddress_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + userEmailAddress_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -132,42 +107,35 @@ private ExportDataRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ExportDataRequest.class, - com.google.cloud.datalabeling.v1beta1.ExportDataRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ExportDataRequest.class, com.google.cloud.datalabeling.v1beta1.ExportDataRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Dataset resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * string 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 @@ -176,32 +144,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 resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * string 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 { @@ -212,8 +178,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int ANNOTATED_DATASET_FIELD_NUMBER = 2; private volatile java.lang.Object annotatedDataset_; /** - * - * *
    * Required. Annotated dataset resource name. DataItem in
    * Dataset and their annotations in specified annotated dataset will be
@@ -222,10 +186,7 @@ public com.google.protobuf.ByteString getNameBytes() {
    * {annotated_dataset_id}
    * 
* - * - * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The annotatedDataset. */ @java.lang.Override @@ -234,15 +195,14 @@ public java.lang.String getAnnotatedDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotatedDataset_ = s; return s; } } /** - * - * *
    * Required. Annotated dataset resource name. DataItem in
    * Dataset and their annotations in specified annotated dataset will be
@@ -251,18 +211,17 @@ public java.lang.String getAnnotatedDataset() {
    * {annotated_dataset_id}
    * 
* - * - * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for annotatedDataset. */ @java.lang.Override - public com.google.protobuf.ByteString getAnnotatedDatasetBytes() { + public com.google.protobuf.ByteString + getAnnotatedDatasetBytes() { java.lang.Object ref = annotatedDataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotatedDataset_ = b; return b; } else { @@ -273,14 +232,11 @@ public com.google.protobuf.ByteString getAnnotatedDatasetBytes() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -289,29 +245,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; } } /** - * - * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -322,16 +278,11 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.datalabeling.v1beta1.OutputConfig outputConfig_; /** - * - * *
    * Required. Specify the output destination.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -339,34 +290,23 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** - * - * *
    * Required. Specify the output destination.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; } /** - * - * *
    * Required. Specify the output destination.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -376,15 +316,12 @@ public com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder getOutputConf public static final int USER_EMAIL_ADDRESS_FIELD_NUMBER = 5; private volatile java.lang.Object userEmailAddress_; /** - * - * *
    * Email of the user who started the export task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 5; - * * @return The userEmailAddress. */ @java.lang.Override @@ -393,30 +330,30 @@ public java.lang.String getUserEmailAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userEmailAddress_ = s; return s; } } /** - * - * *
    * Email of the user who started the export task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 5; - * * @return The bytes for userEmailAddress. */ @java.lang.Override - public com.google.protobuf.ByteString getUserEmailAddressBytes() { + public com.google.protobuf.ByteString + getUserEmailAddressBytes() { java.lang.Object ref = userEmailAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userEmailAddress_ = b; return b; } else { @@ -425,7 +362,6 @@ public com.google.protobuf.ByteString getUserEmailAddressBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -437,7 +373,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_); } @@ -472,7 +409,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getOutputConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userEmailAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, userEmailAddress_); @@ -485,22 +423,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.datalabeling.v1beta1.ExportDataRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ExportDataRequest other = - (com.google.cloud.datalabeling.v1beta1.ExportDataRequest) obj; + com.google.cloud.datalabeling.v1beta1.ExportDataRequest other = (com.google.cloud.datalabeling.v1beta1.ExportDataRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getAnnotatedDataset().equals(other.getAnnotatedDataset())) return false; - if (!getFilter().equals(other.getFilter())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getAnnotatedDataset() + .equals(other.getAnnotatedDataset())) return false; + if (!getFilter() + .equals(other.getFilter())) 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 (!getUserEmailAddress().equals(other.getUserEmailAddress())) return false; + if (!getUserEmailAddress() + .equals(other.getUserEmailAddress())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -530,127 +472,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ExportDataRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ExportDataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ExportDataRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ExportDataRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ExportDataRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ExportDataRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ExportDataRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.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 ExportData API.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.ExportDataRequest) com.google.cloud.datalabeling.v1beta1.ExportDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ExportDataRequest.class, - com.google.cloud.datalabeling.v1beta1.ExportDataRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ExportDataRequest.class, com.google.cloud.datalabeling.v1beta1.ExportDataRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ExportDataRequest.newBuilder() @@ -658,15 +590,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(); @@ -688,9 +621,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor; } @java.lang.Override @@ -709,8 +642,7 @@ public com.google.cloud.datalabeling.v1beta1.ExportDataRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ExportDataRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.ExportDataRequest result = - new com.google.cloud.datalabeling.v1beta1.ExportDataRequest(this); + com.google.cloud.datalabeling.v1beta1.ExportDataRequest result = new com.google.cloud.datalabeling.v1beta1.ExportDataRequest(this); result.name_ = name_; result.annotatedDataset_ = annotatedDataset_; result.filter_ = filter_; @@ -728,39 +660,38 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.ExportDataRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ExportDataRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ExportDataRequest)other); } else { super.mergeFrom(other); return this; @@ -768,8 +699,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ExportDataRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.ExportDataRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.ExportDataRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -808,8 +738,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ExportDataRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ExportDataRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -821,23 +750,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * string 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; @@ -846,24 +771,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * string 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 { @@ -871,70 +793,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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 resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * string 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 resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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; @@ -942,8 +851,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object annotatedDataset_ = ""; /** - * - * *
      * Required. Annotated dataset resource name. DataItem in
      * Dataset and their annotations in specified annotated dataset will be
@@ -952,16 +859,14 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * {annotated_dataset_id}
      * 
* - * - * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The annotatedDataset. */ public java.lang.String getAnnotatedDataset() { java.lang.Object ref = annotatedDataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotatedDataset_ = s; return s; @@ -970,8 +875,6 @@ public java.lang.String getAnnotatedDataset() { } } /** - * - * *
      * Required. Annotated dataset resource name. DataItem in
      * Dataset and their annotations in specified annotated dataset will be
@@ -980,17 +883,16 @@ public java.lang.String getAnnotatedDataset() {
      * {annotated_dataset_id}
      * 
* - * - * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for annotatedDataset. */ - public com.google.protobuf.ByteString getAnnotatedDatasetBytes() { + public com.google.protobuf.ByteString + getAnnotatedDatasetBytes() { java.lang.Object ref = annotatedDataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotatedDataset_ = b; return b; } else { @@ -998,8 +900,6 @@ public com.google.protobuf.ByteString getAnnotatedDatasetBytes() { } } /** - * - * *
      * Required. Annotated dataset resource name. DataItem in
      * Dataset and their annotations in specified annotated dataset will be
@@ -1008,25 +908,21 @@ public com.google.protobuf.ByteString getAnnotatedDatasetBytes() {
      * {annotated_dataset_id}
      * 
* - * - * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The annotatedDataset to set. * @return This builder for chaining. */ - public Builder setAnnotatedDataset(java.lang.String value) { + public Builder setAnnotatedDataset( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotatedDataset_ = value; onChanged(); return this; } /** - * - * *
      * Required. Annotated dataset resource name. DataItem in
      * Dataset and their annotations in specified annotated dataset will be
@@ -1035,21 +931,16 @@ public Builder setAnnotatedDataset(java.lang.String value) {
      * {annotated_dataset_id}
      * 
* - * - * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearAnnotatedDataset() { - + annotatedDataset_ = getDefaultInstance().getAnnotatedDataset(); onChanged(); return this; } /** - * - * *
      * Required. Annotated dataset resource name. DataItem in
      * Dataset and their annotations in specified annotated dataset will be
@@ -1058,19 +949,17 @@ public Builder clearAnnotatedDataset() {
      * {annotated_dataset_id}
      * 
* - * - * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for annotatedDataset to set. * @return This builder for chaining. */ - public Builder setAnnotatedDatasetBytes(com.google.protobuf.ByteString value) { + public Builder setAnnotatedDatasetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotatedDataset_ = value; onChanged(); return this; @@ -1078,20 +967,18 @@ public Builder setAnnotatedDatasetBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1100,21 +987,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1122,61 +1008,54 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1184,58 +1063,39 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datalabeling.v1beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.OutputConfig, - com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, - com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder> - outputConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.OutputConfig, com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder> outputConfigBuilder_; /** - * - * *
      * Required. Specify the output destination.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** - * - * *
      * Required. Specify the output destination.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ public com.google.cloud.datalabeling.v1beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Specify the output destination.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig(com.google.cloud.datalabeling.v1beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1251,15 +1111,11 @@ public Builder setOutputConfig(com.google.cloud.datalabeling.v1beta1.OutputConfi return this; } /** - * - * *
      * Required. Specify the output destination.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setOutputConfig( com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder builderForValue) { @@ -1273,23 +1129,17 @@ public Builder setOutputConfig( return this; } /** - * - * *
      * Required. Specify the output destination.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeOutputConfig(com.google.cloud.datalabeling.v1beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.datalabeling.v1beta1.OutputConfig.newBuilder(outputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); } else { outputConfig_ = value; } @@ -1301,15 +1151,11 @@ public Builder mergeOutputConfig(com.google.cloud.datalabeling.v1beta1.OutputCon return this; } /** - * - * *
      * Required. Specify the output destination.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1323,64 +1169,48 @@ public Builder clearOutputConfig() { return this; } /** - * - * *
      * Required. Specify the output destination.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Specify the output destination.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() - : outputConfig_; + return outputConfig_ == null ? + com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; } } /** - * - * *
      * Required. Specify the output destination.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.OutputConfig, - com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, - com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.OutputConfig, com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.OutputConfig, - com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, - com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder>( - getOutputConfig(), getParentForChildren(), isClean()); + outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.OutputConfig, com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder>( + getOutputConfig(), + getParentForChildren(), + isClean()); outputConfig_ = null; } return outputConfigBuilder_; @@ -1388,21 +1218,19 @@ public com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder getOutputConf private java.lang.Object userEmailAddress_ = ""; /** - * - * *
      * Email of the user who started the export task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 5; - * * @return The userEmailAddress. */ public java.lang.String getUserEmailAddress() { java.lang.Object ref = userEmailAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userEmailAddress_ = s; return s; @@ -1411,22 +1239,21 @@ public java.lang.String getUserEmailAddress() { } } /** - * - * *
      * Email of the user who started the export task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 5; - * * @return The bytes for userEmailAddress. */ - public com.google.protobuf.ByteString getUserEmailAddressBytes() { + public com.google.protobuf.ByteString + getUserEmailAddressBytes() { java.lang.Object ref = userEmailAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userEmailAddress_ = b; return b; } else { @@ -1434,71 +1261,64 @@ public com.google.protobuf.ByteString getUserEmailAddressBytes() { } } /** - * - * *
      * Email of the user who started the export task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 5; - * * @param value The userEmailAddress to set. * @return This builder for chaining. */ - public Builder setUserEmailAddress(java.lang.String value) { + public Builder setUserEmailAddress( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + userEmailAddress_ = value; onChanged(); return this; } /** - * - * *
      * Email of the user who started the export task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 5; - * * @return This builder for chaining. */ public Builder clearUserEmailAddress() { - + userEmailAddress_ = getDefaultInstance().getUserEmailAddress(); onChanged(); return this; } /** - * - * *
      * Email of the user who started the export task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 5; - * * @param value The bytes for userEmailAddress to set. * @return This builder for chaining. */ - public Builder setUserEmailAddressBytes(com.google.protobuf.ByteString value) { + public Builder setUserEmailAddressBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userEmailAddress_ = 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); } @@ -1508,12 +1328,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ExportDataRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ExportDataRequest) private static final com.google.cloud.datalabeling.v1beta1.ExportDataRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ExportDataRequest(); } @@ -1522,16 +1342,16 @@ public static com.google.cloud.datalabeling.v1beta1.ExportDataRequest getDefault 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; @@ -1546,4 +1366,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ExportDataRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequestOrBuilder.java similarity index 59% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequestOrBuilder.java index f9b528d3..ab8982ca 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequestOrBuilder.java @@ -1,62 +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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ExportDataRequestOrBuilder - extends +public interface ExportDataRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ExportDataRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Dataset resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * string 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. Dataset resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * string 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. Annotated dataset resource name. DataItem in
    * Dataset and their annotations in specified annotated dataset will be
@@ -65,16 +38,11 @@ public interface ExportDataRequestOrBuilder
    * {annotated_dataset_id}
    * 
* - * - * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The annotatedDataset. */ java.lang.String getAnnotatedDataset(); /** - * - * *
    * Required. Annotated dataset resource name. DataItem in
    * Dataset and their annotations in specified annotated dataset will be
@@ -83,104 +51,78 @@ public interface ExportDataRequestOrBuilder
    * {annotated_dataset_id}
    * 
* - * - * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for annotatedDataset. */ - com.google.protobuf.ByteString getAnnotatedDatasetBytes(); + com.google.protobuf.ByteString + getAnnotatedDatasetBytes(); /** - * - * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Required. Specify the output destination.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** - * - * *
    * Required. Specify the output destination.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; * @return The outputConfig. */ com.google.cloud.datalabeling.v1beta1.OutputConfig getOutputConfig(); /** - * - * *
    * Required. Specify the output destination.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** - * - * *
    * Email of the user who started the export task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 5; - * * @return The userEmailAddress. */ java.lang.String getUserEmailAddress(); /** - * - * *
    * Email of the user who started the export task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 5; - * * @return The bytes for userEmailAddress. */ - com.google.protobuf.ByteString getUserEmailAddressBytes(); + com.google.protobuf.ByteString + getUserEmailAddressBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestination.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestination.java similarity index 71% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestination.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestination.java index c0d74bf1..f7b46662 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestination.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestination.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Export destination of the data.Only gcs path is allowed in
  * output_uri.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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() {
     outputUri_ = "";
     mimeType_ = "";
@@ -45,15 +27,16 @@ private GcsDestination() {
 
   @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)
@@ -72,27 +55,25 @@ private GcsDestination(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              outputUri_ = s;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            outputUri_ = s;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              mimeType_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            mimeType_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,39 +81,34 @@ private GcsDestination(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.GcsDestination.class,
-            com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.GcsDestination.class, com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder.class);
   }
 
   public static final int OUTPUT_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object outputUri_;
   /**
-   *
-   *
    * 
    * Required. The output uri of destination file.
    * 
* * string output_uri = 1; - * * @return The outputUri. */ @java.lang.Override @@ -141,29 +117,29 @@ 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. The output uri of destination file.
    * 
* * 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 { @@ -174,8 +150,6 @@ public com.google.protobuf.ByteString getOutputUriBytes() { public static final int MIME_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object mimeType_; /** - * - * *
    * Required. The format of the gcs destination. Only "text/csv" and
    * "application/json"
@@ -183,7 +157,6 @@ public com.google.protobuf.ByteString getOutputUriBytes() {
    * 
* * string mime_type = 2; - * * @return The mimeType. */ @java.lang.Override @@ -192,15 +165,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; } } /** - * - * *
    * Required. The format of the gcs destination. Only "text/csv" and
    * "application/json"
@@ -208,15 +180,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 { @@ -225,7 +198,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,7 +209,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_); } @@ -267,16 +240,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.datalabeling.v1beta1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.GcsDestination other = - (com.google.cloud.datalabeling.v1beta1.GcsDestination) obj; + com.google.cloud.datalabeling.v1beta1.GcsDestination other = (com.google.cloud.datalabeling.v1beta1.GcsDestination) obj; - if (!getOutputUri().equals(other.getOutputUri())) return false; - if (!getMimeType().equals(other.getMimeType())) return false; + if (!getOutputUri() + .equals(other.getOutputUri())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -298,103 +272,96 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.GcsDestination 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.datalabeling.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.datalabeling.v1beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.GcsDestination parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.GcsDestination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.GcsDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.GcsDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.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; } /** - * - * *
    * Export destination of the data.Only gcs path is allowed in
    * output_uri.
@@ -402,23 +369,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.GcsDestination)
       com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.GcsDestination.class,
-              com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.GcsDestination.class, com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.GcsDestination.newBuilder()
@@ -426,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();
@@ -446,9 +412,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor;
     }
 
     @java.lang.Override
@@ -467,8 +433,7 @@ public com.google.cloud.datalabeling.v1beta1.GcsDestination build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.GcsDestination buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.GcsDestination result =
-          new com.google.cloud.datalabeling.v1beta1.GcsDestination(this);
+      com.google.cloud.datalabeling.v1beta1.GcsDestination result = new com.google.cloud.datalabeling.v1beta1.GcsDestination(this);
       result.outputUri_ = outputUri_;
       result.mimeType_ = mimeType_;
       onBuilt();
@@ -479,39 +444,38 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.GcsDestination) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.GcsDestination) other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.GcsDestination)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -519,8 +483,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.GcsDestination other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.GcsDestination.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.GcsDestination.getDefaultInstance()) return this;
       if (!other.getOutputUri().isEmpty()) {
         outputUri_ = other.outputUri_;
         onChanged();
@@ -548,8 +511,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.datalabeling.v1beta1.GcsDestination) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.datalabeling.v1beta1.GcsDestination) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -561,20 +523,18 @@ public Builder mergeFrom(
 
     private java.lang.Object outputUri_ = "";
     /**
-     *
-     *
      * 
      * Required. The output uri of destination file.
      * 
* * 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; @@ -583,21 +543,20 @@ public java.lang.String getOutputUri() { } } /** - * - * *
      * Required. The output uri of destination file.
      * 
* * 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 { @@ -605,61 +564,54 @@ public com.google.protobuf.ByteString getOutputUriBytes() { } } /** - * - * *
      * Required. The output uri of destination file.
      * 
* * 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. The output uri of destination file.
      * 
* * string output_uri = 1; - * * @return This builder for chaining. */ public Builder clearOutputUri() { - + outputUri_ = getDefaultInstance().getOutputUri(); onChanged(); return this; } /** - * - * *
      * Required. The output uri of destination file.
      * 
* * 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; @@ -667,8 +619,6 @@ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object mimeType_ = ""; /** - * - * *
      * Required. The format of the gcs destination. Only "text/csv" and
      * "application/json"
@@ -676,13 +626,13 @@ public Builder setOutputUriBytes(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; @@ -691,8 +641,6 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Required. The format of the gcs destination. Only "text/csv" and
      * "application/json"
@@ -700,14 +648,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 { @@ -715,8 +664,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Required. The format of the gcs destination. Only "text/csv" and
      * "application/json"
@@ -724,22 +671,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; } /** - * - * *
      * Required. The format of the gcs destination. Only "text/csv" and
      * "application/json"
@@ -747,18 +692,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; } /** - * - * *
      * Required. The format of the gcs destination. Only "text/csv" and
      * "application/json"
@@ -766,23 +708,23 @@ 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; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -792,12 +734,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GcsDestination) private static final com.google.cloud.datalabeling.v1beta1.GcsDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.GcsDestination(); } @@ -806,16 +748,16 @@ public static com.google.cloud.datalabeling.v1beta1.GcsDestination getDefaultIns 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; @@ -830,4 +772,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestinationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestinationOrBuilder.java similarity index 58% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestinationOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestinationOrBuilder.java index 3c22890c..bfab9e6f 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestinationOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestinationOrBuilder.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; -public interface GcsDestinationOrBuilder - extends +public interface GcsDestinationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The output uri of destination file.
    * 
* * string output_uri = 1; - * * @return The outputUri. */ java.lang.String getOutputUri(); /** - * - * *
    * Required. The output uri of destination file.
    * 
* * string output_uri = 1; - * * @return The bytes for outputUri. */ - com.google.protobuf.ByteString getOutputUriBytes(); + com.google.protobuf.ByteString + getOutputUriBytes(); /** - * - * *
    * Required. The format of the gcs destination. Only "text/csv" and
    * "application/json"
@@ -58,13 +35,10 @@ public interface GcsDestinationOrBuilder
    * 
* * string mime_type = 2; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Required. The format of the gcs destination. Only "text/csv" and
    * "application/json"
@@ -72,8 +46,8 @@ public interface GcsDestinationOrBuilder
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestination.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestination.java similarity index 69% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestination.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestination.java index a361e2db..114ff380 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestination.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestination.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Export folder destination of the data.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GcsFolderDestination} */ -public final class GcsFolderDestination extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GcsFolderDestination extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.GcsFolderDestination) GcsFolderDestinationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GcsFolderDestination.newBuilder() to construct. private GcsFolderDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GcsFolderDestination() { outputFolderUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GcsFolderDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GcsFolderDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GcsFolderDestination( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - outputFolderUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + outputFolderUri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,39 +73,34 @@ private GcsFolderDestination( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.class, - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder.class); + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.class, com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder.class); } public static final int OUTPUT_FOLDER_URI_FIELD_NUMBER = 1; private volatile java.lang.Object outputFolderUri_; /** - * - * *
    * Required. Cloud Storage directory to export data to.
    * 
* * string output_folder_uri = 1; - * * @return The outputFolderUri. */ @java.lang.Override @@ -132,29 +109,29 @@ public java.lang.String getOutputFolderUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputFolderUri_ = s; return s; } } /** - * - * *
    * Required. Cloud Storage directory to export data to.
    * 
* * string output_folder_uri = 1; - * * @return The bytes for outputFolderUri. */ @java.lang.Override - public com.google.protobuf.ByteString getOutputFolderUriBytes() { + public com.google.protobuf.ByteString + getOutputFolderUriBytes() { java.lang.Object ref = outputFolderUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputFolderUri_ = b; return b; } else { @@ -163,7 +140,6 @@ public com.google.protobuf.ByteString getOutputFolderUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +151,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(outputFolderUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputFolderUri_); } @@ -199,15 +176,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.datalabeling.v1beta1.GcsFolderDestination)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination other = - (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) obj; + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination other = (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) obj; - if (!getOutputFolderUri().equals(other.getOutputFolderUri())) return false; + if (!getOutputFolderUri() + .equals(other.getOutputFolderUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination 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.datalabeling.v1beta1.GcsFolderDestination parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.GcsFolderDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Export folder destination of the data.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GcsFolderDestination} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.GcsFolderDestination) com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.class, - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder.class); + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.class, com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.newBuilder() @@ -355,15 +322,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(); @@ -373,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor; } @java.lang.Override @@ -394,8 +362,7 @@ public com.google.cloud.datalabeling.v1beta1.GcsFolderDestination build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GcsFolderDestination buildPartial() { - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination result = - new com.google.cloud.datalabeling.v1beta1.GcsFolderDestination(this); + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination result = new com.google.cloud.datalabeling.v1beta1.GcsFolderDestination(this); result.outputFolderUri_ = outputFolderUri_; onBuilt(); return result; @@ -405,39 +372,38 @@ public com.google.cloud.datalabeling.v1beta1.GcsFolderDestination buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.GcsFolderDestination)other); } else { super.mergeFrom(other); return this; @@ -445,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.GcsFolderDestination other) { - if (other == com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.getDefaultInstance()) return this; if (!other.getOutputFolderUri().isEmpty()) { outputFolderUri_ = other.outputFolderUri_; onChanged(); @@ -470,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -483,20 +447,18 @@ public Builder mergeFrom( private java.lang.Object outputFolderUri_ = ""; /** - * - * *
      * Required. Cloud Storage directory to export data to.
      * 
* * string output_folder_uri = 1; - * * @return The outputFolderUri. */ public java.lang.String getOutputFolderUri() { java.lang.Object ref = outputFolderUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputFolderUri_ = s; return s; @@ -505,21 +467,20 @@ public java.lang.String getOutputFolderUri() { } } /** - * - * *
      * Required. Cloud Storage directory to export data to.
      * 
* * string output_folder_uri = 1; - * * @return The bytes for outputFolderUri. */ - public com.google.protobuf.ByteString getOutputFolderUriBytes() { + public com.google.protobuf.ByteString + getOutputFolderUriBytes() { java.lang.Object ref = outputFolderUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); outputFolderUri_ = b; return b; } else { @@ -527,68 +488,61 @@ public com.google.protobuf.ByteString getOutputFolderUriBytes() { } } /** - * - * *
      * Required. Cloud Storage directory to export data to.
      * 
* * string output_folder_uri = 1; - * * @param value The outputFolderUri to set. * @return This builder for chaining. */ - public Builder setOutputFolderUri(java.lang.String value) { + public Builder setOutputFolderUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputFolderUri_ = value; onChanged(); return this; } /** - * - * *
      * Required. Cloud Storage directory to export data to.
      * 
* * string output_folder_uri = 1; - * * @return This builder for chaining. */ public Builder clearOutputFolderUri() { - + outputFolderUri_ = getDefaultInstance().getOutputFolderUri(); onChanged(); return this; } /** - * - * *
      * Required. Cloud Storage directory to export data to.
      * 
* * string output_folder_uri = 1; - * * @param value The bytes for outputFolderUri to set. * @return This builder for chaining. */ - public Builder setOutputFolderUriBytes(com.google.protobuf.ByteString value) { + public Builder setOutputFolderUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputFolderUri_ = 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); } @@ -598,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.GcsFolderDestination) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GcsFolderDestination) private static final com.google.cloud.datalabeling.v1beta1.GcsFolderDestination DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.GcsFolderDestination(); } @@ -612,16 +566,16 @@ public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsFolderDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsFolderDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsFolderDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsFolderDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -636,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.GcsFolderDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestinationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestinationOrBuilder.java new file mode 100644 index 00000000..a959b823 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestinationOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/dataset.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface GcsFolderDestinationOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GcsFolderDestination) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Cloud Storage directory to export data to.
+   * 
+ * + * string output_folder_uri = 1; + * @return The outputFolderUri. + */ + java.lang.String getOutputFolderUri(); + /** + *
+   * Required. Cloud Storage directory to export data to.
+   * 
+ * + * string output_folder_uri = 1; + * @return The bytes for outputFolderUri. + */ + com.google.protobuf.ByteString + getOutputFolderUriBytes(); +} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSource.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSource.java similarity index 71% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSource.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSource.java index a1bba2d2..b5a549fe 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSource.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSource.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Source of the Cloud Storage file to be imported.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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() { inputUri_ = ""; mimeType_ = ""; @@ -44,15 +26,16 @@ private GcsSource() { @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,27 +54,25 @@ private GcsSource( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - inputUri_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + inputUri_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + mimeType_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,40 +80,35 @@ private GcsSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GcsSource_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GcsSource.class, - com.google.cloud.datalabeling.v1beta1.GcsSource.Builder.class); + com.google.cloud.datalabeling.v1beta1.GcsSource.class, com.google.cloud.datalabeling.v1beta1.GcsSource.Builder.class); } public static final int INPUT_URI_FIELD_NUMBER = 1; private volatile java.lang.Object inputUri_; /** - * - * *
    * Required. The input URI of source file. This must be a Cloud Storage path
    * (`gs://...`).
    * 
* * string input_uri = 1; - * * @return The inputUri. */ @java.lang.Override @@ -141,30 +117,30 @@ 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. The input URI of source file. This must be a Cloud Storage path
    * (`gs://...`).
    * 
* * 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 { @@ -175,14 +151,11 @@ public com.google.protobuf.ByteString getInputUriBytes() { public static final int MIME_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object mimeType_; /** - * - * *
    * Required. The format of the source file. Only "text/csv" is supported.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ @java.lang.Override @@ -191,29 +164,29 @@ 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; } } /** - * - * *
    * Required. The format of the source file. Only "text/csv" is supported.
    * 
* * 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 { @@ -222,7 +195,6 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,7 +206,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_); } @@ -264,16 +237,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.datalabeling.v1beta1.GcsSource)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.GcsSource other = - (com.google.cloud.datalabeling.v1beta1.GcsSource) obj; + com.google.cloud.datalabeling.v1beta1.GcsSource other = (com.google.cloud.datalabeling.v1beta1.GcsSource) obj; - if (!getInputUri().equals(other.getInputUri())) return false; - if (!getMimeType().equals(other.getMimeType())) return false; + if (!getInputUri() + .equals(other.getInputUri())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -294,127 +268,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.GcsSource parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datalabeling.v1beta1.GcsSource parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.GcsSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.GcsSource parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.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; } /** - * - * *
    * Source of the Cloud Storage file to be imported.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.GcsSource) com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GcsSource_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GcsSource.class, - com.google.cloud.datalabeling.v1beta1.GcsSource.Builder.class); + com.google.cloud.datalabeling.v1beta1.GcsSource.class, com.google.cloud.datalabeling.v1beta1.GcsSource.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.GcsSource.newBuilder() @@ -422,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(); @@ -442,9 +408,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor; } @java.lang.Override @@ -463,8 +429,7 @@ public com.google.cloud.datalabeling.v1beta1.GcsSource build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GcsSource buildPartial() { - com.google.cloud.datalabeling.v1beta1.GcsSource result = - new com.google.cloud.datalabeling.v1beta1.GcsSource(this); + com.google.cloud.datalabeling.v1beta1.GcsSource result = new com.google.cloud.datalabeling.v1beta1.GcsSource(this); result.inputUri_ = inputUri_; result.mimeType_ = mimeType_; onBuilt(); @@ -475,39 +440,38 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.GcsSource) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.GcsSource) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.GcsSource)other); } else { super.mergeFrom(other); return this; @@ -515,8 +479,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.GcsSource other) { - if (other == com.google.cloud.datalabeling.v1beta1.GcsSource.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.GcsSource.getDefaultInstance()) return this; if (!other.getInputUri().isEmpty()) { inputUri_ = other.inputUri_; onChanged(); @@ -556,21 +519,19 @@ public Builder mergeFrom( private java.lang.Object inputUri_ = ""; /** - * - * *
      * Required. The input URI of source file. This must be a Cloud Storage path
      * (`gs://...`).
      * 
* * 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; @@ -579,22 +540,21 @@ public java.lang.String getInputUri() { } } /** - * - * *
      * Required. The input URI of source file. This must be a Cloud Storage path
      * (`gs://...`).
      * 
* * 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 { @@ -602,64 +562,57 @@ public com.google.protobuf.ByteString getInputUriBytes() { } } /** - * - * *
      * Required. The input URI of source file. This must be a Cloud Storage path
      * (`gs://...`).
      * 
* * 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. The input URI of source file. This must be a Cloud Storage path
      * (`gs://...`).
      * 
* * string input_uri = 1; - * * @return This builder for chaining. */ public Builder clearInputUri() { - + inputUri_ = getDefaultInstance().getInputUri(); onChanged(); return this; } /** - * - * *
      * Required. The input URI of source file. This must be a Cloud Storage path
      * (`gs://...`).
      * 
* * 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; @@ -667,20 +620,18 @@ public Builder setInputUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object mimeType_ = ""; /** - * - * *
      * Required. The format of the source file. Only "text/csv" is supported.
      * 
* * 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; @@ -689,21 +640,20 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Required. The format of the source file. Only "text/csv" is supported.
      * 
* * 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 { @@ -711,68 +661,61 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Required. The format of the source file. Only "text/csv" is supported.
      * 
* * 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; } /** - * - * *
      * Required. The format of the source file. Only "text/csv" is supported.
      * 
* * string mime_type = 2; - * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** - * - * *
      * Required. The format of the source file. Only "text/csv" is supported.
      * 
* * 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; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -782,12 +725,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GcsSource) private static final com.google.cloud.datalabeling.v1beta1.GcsSource DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.GcsSource(); } @@ -796,16 +739,16 @@ public static com.google.cloud.datalabeling.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; @@ -820,4 +763,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSourceOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSourceOrBuilder.java similarity index 59% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSourceOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSourceOrBuilder.java index 5243a9cf..f63ab65a 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSourceOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSourceOrBuilder.java @@ -1,77 +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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; -public interface GcsSourceOrBuilder - extends +public interface GcsSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GcsSource) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The input URI of source file. This must be a Cloud Storage path
    * (`gs://...`).
    * 
* * string input_uri = 1; - * * @return The inputUri. */ java.lang.String getInputUri(); /** - * - * *
    * Required. The input URI of source file. This must be a Cloud Storage path
    * (`gs://...`).
    * 
* * string input_uri = 1; - * * @return The bytes for inputUri. */ - com.google.protobuf.ByteString getInputUriBytes(); + com.google.protobuf.ByteString + getInputUriBytes(); /** - * - * *
    * Required. The format of the source file. Only "text/csv" is supported.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Required. The format of the source file. Only "text/csv" is supported.
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequest.java similarity index 64% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequest.java index ca6fb9db..7060790c 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for GetAnnotatedDataset.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest} */ -public final class GetAnnotatedDatasetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetAnnotatedDatasetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) GetAnnotatedDatasetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetAnnotatedDatasetRequest.newBuilder() to construct. private GetAnnotatedDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetAnnotatedDatasetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetAnnotatedDatasetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetAnnotatedDatasetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetAnnotatedDatasetRequest( 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) { @@ -91,43 +73,36 @@ private GetAnnotatedDatasetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.class, - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.class, com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the annotated dataset to get, format:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
    * {annotated_dataset_id}
    * 
* - * - * string 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 @@ -136,33 +111,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 annotated dataset to get, format:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
    * {annotated_dataset_id}
    * 
* - * - * string 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 { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,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.datalabeling.v1beta1.GetAnnotatedDatasetRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest other = - (com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) obj; + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest other = (com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -235,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest 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.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetAnnotatedDataset.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.class, - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.class, com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.newBuilder() @@ -363,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(); @@ -381,14 +345,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.getDefaultInstance(); } @@ -403,8 +366,7 @@ public com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest result = - new com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest(this); + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest result = new com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -414,50 +376,46 @@ public com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest 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.datalabeling.v1beta1.GetAnnotatedDatasetRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest other) { - if (other - == com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest other) { + if (other == com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -481,9 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -495,24 +451,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the annotated dataset to get, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}
      * 
* - * - * string 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; @@ -521,25 +473,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the annotated dataset to get, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}
      * 
* - * - * string 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 { @@ -547,80 +496,67 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the annotated dataset to get, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}
      * 
* - * - * 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 annotated dataset to get, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}
      * 
* - * - * string 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 annotated dataset to get, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}
      * 
* - * - * 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); } @@ -630,32 +566,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) - private static final com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest(); } - public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAnnotatedDatasetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAnnotatedDatasetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAnnotatedDatasetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAnnotatedDatasetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -667,8 +601,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequestOrBuilder.java new file mode 100644 index 00000000..7932eb2c --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequestOrBuilder.java @@ -0,0 +1,33 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface GetAnnotatedDatasetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the annotated dataset to get, format:
+   * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
+   * {annotated_dataset_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the annotated dataset to get, format:
+   * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
+   * {annotated_dataset_id}
+   * 
+ * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequest.java similarity index 63% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequest.java index e7bb5f9b..0aeb583c 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for GetAnnotationSpecSet.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest} */ -public final class GetAnnotationSpecSetRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetAnnotationSpecSetRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) GetAnnotationSpecSetRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetAnnotationSpecSetRequest.newBuilder() to construct. private GetAnnotationSpecSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetAnnotationSpecSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetAnnotationSpecSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetAnnotationSpecSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetAnnotationSpecSetRequest( 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) { @@ -91,42 +73,35 @@ private GetAnnotationSpecSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.class, - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.class, com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. AnnotationSpecSet resource name, format:
    * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
    * 
* - * - * string 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 @@ -135,32 +110,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. AnnotationSpecSet resource name, format:
    * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
    * 
* - * - * string 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,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.datalabeling.v1beta1.GetAnnotationSpecSetRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest other = - (com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) obj; + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest other = (com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,145 +206,134 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest 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.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest - 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.datalabeling.v1beta1.GetAnnotationSpecSetRequest 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.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetAnnotationSpecSet.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.class, - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.class, com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.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(); @@ -381,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.getDefaultInstance(); } @@ -403,8 +364,7 @@ public com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest result = - new com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest(this); + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest result = new com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -414,50 +374,46 @@ public com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest 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.datalabeling.v1beta1.GetAnnotationSpecSetRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest other) { - if (other - == com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest other) { + if (other == com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -481,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -495,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. AnnotationSpecSet resource name, format:
      * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
      * 
* - * - * string 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; @@ -520,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. AnnotationSpecSet resource name, format:
      * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
      * 
* - * - * string 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 { @@ -545,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. AnnotationSpecSet resource name, format:
      * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
      * 
* - * - * 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. AnnotationSpecSet resource name, format:
      * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
      * 
* - * - * string 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. AnnotationSpecSet resource name, format:
      * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
      * 
* - * - * 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); } @@ -625,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) - private static final com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest(); } - public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAnnotationSpecSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAnnotationSpecSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAnnotationSpecSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAnnotationSpecSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -662,8 +594,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequestOrBuilder.java new file mode 100644 index 00000000..aa04847b --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface GetAnnotationSpecSetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. AnnotationSpecSet resource name, format:
+   * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. AnnotationSpecSet resource name, format:
+   * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
+   * 
+ * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequest.java similarity index 66% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequest.java index d3e58c4f..40d7acdb 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for GetDataItem.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetDataItemRequest} */ -public final class GetDataItemRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetDataItemRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.GetDataItemRequest) GetDataItemRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetDataItemRequest.newBuilder() to construct. private GetDataItemRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetDataItemRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetDataItemRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetDataItemRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetDataItemRequest( 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) { @@ -91,42 +73,35 @@ private GetDataItemRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.class, - com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.class, com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the data item to get, format:
    * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
    * 
* - * - * string 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 @@ -135,32 +110,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 name of the data item to get, format:
    * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
    * 
* - * - * string 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,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.datalabeling.v1beta1.GetDataItemRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.GetDataItemRequest other = - (com.google.cloud.datalabeling.v1beta1.GetDataItemRequest) obj; + com.google.cloud.datalabeling.v1beta1.GetDataItemRequest other = (com.google.cloud.datalabeling.v1beta1.GetDataItemRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest 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.datalabeling.v1beta1.GetDataItemRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.GetDataItemRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.GetDataItemRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetDataItem.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetDataItemRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.GetDataItemRequest) com.google.cloud.datalabeling.v1beta1.GetDataItemRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.class, - com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.class, com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.newBuilder() @@ -361,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(); @@ -379,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor; } @java.lang.Override @@ -400,8 +364,7 @@ public com.google.cloud.datalabeling.v1beta1.GetDataItemRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GetDataItemRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.GetDataItemRequest result = - new com.google.cloud.datalabeling.v1beta1.GetDataItemRequest(this); + com.google.cloud.datalabeling.v1beta1.GetDataItemRequest result = new com.google.cloud.datalabeling.v1beta1.GetDataItemRequest(this); result.name_ = name_; onBuilt(); return result; @@ -411,39 +374,38 @@ public com.google.cloud.datalabeling.v1beta1.GetDataItemRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.GetDataItemRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetDataItemRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetDataItemRequest)other); } else { super.mergeFrom(other); return this; @@ -451,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.GetDataItemRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -476,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.GetDataItemRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.GetDataItemRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -489,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the data item to get, format:
      * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
      * 
* - * - * string 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; @@ -514,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the data item to get, format:
      * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
      * 
* - * - * string 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 { @@ -539,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the data item to get, format:
      * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
      * 
* - * - * 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 name of the data item to get, format:
      * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
      * 
* - * - * string 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 name of the data item to get, format:
      * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
      * 
* - * - * 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); } @@ -619,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.GetDataItemRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetDataItemRequest) private static final com.google.cloud.datalabeling.v1beta1.GetDataItemRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.GetDataItemRequest(); } @@ -633,16 +573,16 @@ public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDataItemRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDataItemRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDataItemRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetDataItemRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.GetDataItemRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequestOrBuilder.java new file mode 100644 index 00000000..51554b05 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface GetDataItemRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetDataItemRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the data item to get, format:
+   * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the data item to get, format:
+   * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
+   * 
+ * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequest.java similarity index 65% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequest.java index d46ba1d8..b355dd6c 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for GetDataSet.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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,20 +53,19 @@ 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) { @@ -91,42 +73,35 @@ private GetDatasetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.class, - com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.class, com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Dataset resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * string 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 @@ -135,32 +110,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 resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * string 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,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.datalabeling.v1beta1.GetDatasetRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.GetDatasetRequest other = - (com.google.cloud.datalabeling.v1beta1.GetDatasetRequest) obj; + com.google.cloud.datalabeling.v1beta1.GetDatasetRequest other = (com.google.cloud.datalabeling.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; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.GetDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.GetDatasetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.GetDatasetRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.GetDatasetRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.GetDatasetRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.GetDatasetRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.GetDatasetRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.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 GetDataSet.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.GetDatasetRequest) com.google.cloud.datalabeling.v1beta1.GetDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.class, - com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.class, com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.newBuilder() @@ -361,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(); @@ -379,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor; } @java.lang.Override @@ -400,8 +364,7 @@ public com.google.cloud.datalabeling.v1beta1.GetDatasetRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GetDatasetRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.GetDatasetRequest result = - new com.google.cloud.datalabeling.v1beta1.GetDatasetRequest(this); + com.google.cloud.datalabeling.v1beta1.GetDatasetRequest result = new com.google.cloud.datalabeling.v1beta1.GetDatasetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -411,39 +374,38 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.GetDatasetRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetDatasetRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetDatasetRequest)other); } else { super.mergeFrom(other); return this; @@ -451,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.GetDatasetRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -476,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.GetDatasetRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.GetDatasetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -489,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * string 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; @@ -514,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * string 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 { @@ -539,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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 resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * string 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 resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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); } @@ -619,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.GetDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetDatasetRequest) private static final com.google.cloud.datalabeling.v1beta1.GetDatasetRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.GetDatasetRequest(); } @@ -633,16 +573,16 @@ public static com.google.cloud.datalabeling.v1beta1.GetDatasetRequest getDefault 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; @@ -657,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.GetDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequestOrBuilder.java new file mode 100644 index 00000000..02d15aa3 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface GetDatasetRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Dataset resource name, format:
+   * projects/{project_id}/datasets/{dataset_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Dataset resource name, format:
+   * projects/{project_id}/datasets/{dataset_id}
+   * 
+ * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequest.java similarity index 65% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequest.java index 38407442..42bb0f5f 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for GetEvaluationJob.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest} */ -public final class GetEvaluationJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetEvaluationJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) GetEvaluationJobRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetEvaluationJobRequest.newBuilder() to construct. private GetEvaluationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetEvaluationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetEvaluationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetEvaluationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetEvaluationJobRequest( 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) { @@ -91,42 +73,35 @@ private GetEvaluationJobRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.class, - com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the evaluation job. Format:
    * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * - * string 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 @@ -135,32 +110,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. Name of the evaluation job. Format:
    * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * - * string 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,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.datalabeling.v1beta1.GetEvaluationJobRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest other = - (com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) obj; + com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest other = (com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest 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.datalabeling.v1beta1.GetEvaluationJobRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetEvaluationJob.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.class, - com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.newBuilder() @@ -361,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(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest result = - new com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest(this); + com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest result = new com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,39 +374,38 @@ public com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest 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.datalabeling.v1beta1.GetEvaluationJobRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest)other); } else { super.mergeFrom(other); return this; @@ -452,9 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest other) { - if (other - == com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -478,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -492,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the evaluation job. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * - * string 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; @@ -517,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the evaluation job. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * - * string 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 { @@ -542,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the evaluation job. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * - * 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 evaluation job. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * - * string 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 evaluation job. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * - * 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); } @@ -622,13 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) - private static final com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest(); } @@ -637,16 +573,16 @@ public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEvaluationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetEvaluationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEvaluationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetEvaluationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -661,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequestOrBuilder.java new file mode 100644 index 00000000..7f34645e --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface GetEvaluationJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the evaluation job. Format:
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the evaluation job. Format:
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
+   * 
+ * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequest.java similarity index 67% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequest.java index bc4b205c..3de9a2b6 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for GetEvaluation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetEvaluationRequest} */ -public final class GetEvaluationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetEvaluationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.GetEvaluationRequest) GetEvaluationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetEvaluationRequest.newBuilder() to construct. private GetEvaluationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetEvaluationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetEvaluationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetEvaluationRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetEvaluationRequest( 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) { @@ -91,42 +73,35 @@ private GetEvaluationRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.class, - com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.class, com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the evaluation. Format:
    * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
    * 
* - * - * string 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 @@ -135,32 +110,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. Name of the evaluation. Format:
    * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
    * 
* - * - * string 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,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.datalabeling.v1beta1.GetEvaluationRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest other = - (com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest) obj; + com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest other = (com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest 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.datalabeling.v1beta1.GetEvaluationRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetEvaluation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetEvaluationRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.GetEvaluationRequest) com.google.cloud.datalabeling.v1beta1.GetEvaluationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.class, - com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.class, com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.newBuilder() @@ -361,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(); @@ -379,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor; } @java.lang.Override @@ -400,8 +364,7 @@ public com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest result = - new com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest(this); + com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest result = new com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest(this); result.name_ = name_; onBuilt(); return result; @@ -411,39 +374,38 @@ public com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest)other); } else { super.mergeFrom(other); return this; @@ -451,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -476,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -489,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the evaluation. Format:
      * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
      * 
* - * - * string 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; @@ -514,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the evaluation. Format:
      * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
      * 
* - * - * string 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 { @@ -539,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the evaluation. Format:
      * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
      * 
* - * - * 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 evaluation. Format:
      * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
      * 
* - * - * string 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 evaluation. Format:
      * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
      * 
* - * - * 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); } @@ -619,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.GetEvaluationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetEvaluationRequest) private static final com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest(); } @@ -633,16 +573,16 @@ public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEvaluationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetEvaluationRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEvaluationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetEvaluationRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequestOrBuilder.java new file mode 100644 index 00000000..a71180ca --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface GetEvaluationRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetEvaluationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the evaluation. Format:
+   * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the evaluation. Format:
+   * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
+   * 
+ * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequest.java similarity index 69% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequest.java index dfc4a065..3d62b816 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for GetExample
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetExampleRequest} */ -public final class GetExampleRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetExampleRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.GetExampleRequest) GetExampleRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetExampleRequest.newBuilder() to construct. private GetExampleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetExampleRequest() { name_ = ""; filter_ = ""; @@ -44,15 +26,16 @@ private GetExampleRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetExampleRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetExampleRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private GetExampleRequest( 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(); - filter_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + filter_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,43 +80,36 @@ private GetExampleRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetExampleRequest.class, - com.google.cloud.datalabeling.v1beta1.GetExampleRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetExampleRequest.class, com.google.cloud.datalabeling.v1beta1.GetExampleRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of example, format:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
    * {annotated_dataset_id}/examples/{example_id}
    * 
* - * - * string 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 @@ -144,33 +118,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 example, format:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
    * {annotated_dataset_id}/examples/{example_id}
    * 
* - * - * string 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 { @@ -181,8 +153,6 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. An expression for filtering Examples. Filter by
    * annotation_spec.display_name is supported. Format
@@ -190,7 +160,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -199,15 +168,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; } } /** - * - * *
    * Optional. An expression for filtering Examples. Filter by
    * annotation_spec.display_name is supported. Format
@@ -215,15 +183,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -232,7 +201,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -244,7 +212,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_); } @@ -274,16 +243,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.datalabeling.v1beta1.GetExampleRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.GetExampleRequest other = - (com.google.cloud.datalabeling.v1beta1.GetExampleRequest) obj; + com.google.cloud.datalabeling.v1beta1.GetExampleRequest other = (com.google.cloud.datalabeling.v1beta1.GetExampleRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getFilter().equals(other.getFilter())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getFilter() + .equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -305,127 +275,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest 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.datalabeling.v1beta1.GetExampleRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.GetExampleRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.GetExampleRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetExample
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetExampleRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.GetExampleRequest) com.google.cloud.datalabeling.v1beta1.GetExampleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetExampleRequest.class, - com.google.cloud.datalabeling.v1beta1.GetExampleRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetExampleRequest.class, com.google.cloud.datalabeling.v1beta1.GetExampleRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.GetExampleRequest.newBuilder() @@ -433,15 +393,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(); @@ -453,9 +414,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor; } @java.lang.Override @@ -474,8 +435,7 @@ public com.google.cloud.datalabeling.v1beta1.GetExampleRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GetExampleRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.GetExampleRequest result = - new com.google.cloud.datalabeling.v1beta1.GetExampleRequest(this); + com.google.cloud.datalabeling.v1beta1.GetExampleRequest result = new com.google.cloud.datalabeling.v1beta1.GetExampleRequest(this); result.name_ = name_; result.filter_ = filter_; onBuilt(); @@ -486,39 +446,38 @@ public com.google.cloud.datalabeling.v1beta1.GetExampleRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.GetExampleRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetExampleRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetExampleRequest)other); } else { super.mergeFrom(other); return this; @@ -526,8 +485,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.GetExampleRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.GetExampleRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.GetExampleRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -555,8 +513,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.GetExampleRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.GetExampleRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -568,24 +525,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of example, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}/examples/{example_id}
      * 
* - * - * string 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; @@ -594,25 +547,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of example, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}/examples/{example_id}
      * 
* - * - * string 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 { @@ -620,73 +570,60 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of example, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}/examples/{example_id}
      * 
* - * - * 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 example, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}/examples/{example_id}
      * 
* - * - * string 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 example, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}/examples/{example_id}
      * 
* - * - * 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; @@ -694,8 +631,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. An expression for filtering Examples. Filter by
      * annotation_spec.display_name is supported. Format
@@ -703,13 +638,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -718,8 +653,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. An expression for filtering Examples. Filter by
      * annotation_spec.display_name is supported. Format
@@ -727,14 +660,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -742,8 +676,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. An expression for filtering Examples. Filter by
      * annotation_spec.display_name is supported. Format
@@ -751,22 +683,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. An expression for filtering Examples. Filter by
      * annotation_spec.display_name is supported. Format
@@ -774,18 +704,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. An expression for filtering Examples. Filter by
      * annotation_spec.display_name is supported. Format
@@ -793,23 +720,23 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -819,12 +746,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.GetExampleRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetExampleRequest) private static final com.google.cloud.datalabeling.v1beta1.GetExampleRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.GetExampleRequest(); } @@ -833,16 +760,16 @@ public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetExampleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetExampleRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetExampleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetExampleRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -857,4 +784,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.GetExampleRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequestOrBuilder.java similarity index 58% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequestOrBuilder.java index e97e59af..6c513dd5 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequestOrBuilder.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface GetExampleRequestOrBuilder - extends +public interface GetExampleRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetExampleRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of example, format:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
    * {annotated_dataset_id}/examples/{example_id}
    * 
* - * - * string 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 example, format:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
    * {annotated_dataset_id}/examples/{example_id}
    * 
* - * - * string 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(); /** - * - * *
    * Optional. An expression for filtering Examples. Filter by
    * annotation_spec.display_name is supported. Format
@@ -66,13 +39,10 @@ public interface GetExampleRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. An expression for filtering Examples. Filter by
    * annotation_spec.display_name is supported. Format
@@ -80,8 +50,8 @@ public interface GetExampleRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequest.java similarity index 66% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequest.java index 7ad54fbd..6dea9130 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for GetInstruction.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetInstructionRequest} */ -public final class GetInstructionRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetInstructionRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.GetInstructionRequest) GetInstructionRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetInstructionRequest.newBuilder() to construct. private GetInstructionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetInstructionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetInstructionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetInstructionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetInstructionRequest( 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) { @@ -91,42 +73,35 @@ private GetInstructionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.class, - com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.class, com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Instruction resource name, format:
    * projects/{project_id}/instructions/{instruction_id}
    * 
* - * - * string 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 @@ -135,32 +110,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. Instruction resource name, format:
    * projects/{project_id}/instructions/{instruction_id}
    * 
* - * - * string 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,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.datalabeling.v1beta1.GetInstructionRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.GetInstructionRequest other = - (com.google.cloud.datalabeling.v1beta1.GetInstructionRequest) obj; + com.google.cloud.datalabeling.v1beta1.GetInstructionRequest other = (com.google.cloud.datalabeling.v1beta1.GetInstructionRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest 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.datalabeling.v1beta1.GetInstructionRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.GetInstructionRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.GetInstructionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetInstruction.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetInstructionRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.GetInstructionRequest) com.google.cloud.datalabeling.v1beta1.GetInstructionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.class, - com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.class, com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.newBuilder() @@ -361,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(); @@ -379,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor; } @java.lang.Override @@ -400,8 +364,7 @@ public com.google.cloud.datalabeling.v1beta1.GetInstructionRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GetInstructionRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.GetInstructionRequest result = - new com.google.cloud.datalabeling.v1beta1.GetInstructionRequest(this); + com.google.cloud.datalabeling.v1beta1.GetInstructionRequest result = new com.google.cloud.datalabeling.v1beta1.GetInstructionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -411,39 +374,38 @@ public com.google.cloud.datalabeling.v1beta1.GetInstructionRequest buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.GetInstructionRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetInstructionRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetInstructionRequest)other); } else { super.mergeFrom(other); return this; @@ -451,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.GetInstructionRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -476,8 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.GetInstructionRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.GetInstructionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -489,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_id}
      * 
* - * - * string 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; @@ -514,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_id}
      * 
* - * - * string 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 { @@ -539,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_id}
      * 
* - * - * 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. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_id}
      * 
* - * - * string 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. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_id}
      * 
* - * - * 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); } @@ -619,12 +559,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.GetInstructionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetInstructionRequest) private static final com.google.cloud.datalabeling.v1beta1.GetInstructionRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.GetInstructionRequest(); } @@ -633,16 +573,16 @@ public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstructionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInstructionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstructionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetInstructionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,4 +597,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.GetInstructionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequestOrBuilder.java new file mode 100644 index 00000000..0fcb5f3d --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface GetInstructionRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetInstructionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Instruction resource name, format:
+   * projects/{project_id}/instructions/{instruction_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Instruction resource name, format:
+   * projects/{project_id}/instructions/{instruction_id}
+   * 
+ * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfig.java similarity index 74% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfig.java index 48d1b0b6..9e732dfc 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Configuration for how human labeling task should be done.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.HumanAnnotationConfig} */ -public final class HumanAnnotationConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HumanAnnotationConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.HumanAnnotationConfig) HumanAnnotationConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HumanAnnotationConfig.newBuilder() to construct. private HumanAnnotationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HumanAnnotationConfig() { instruction_ = ""; annotatedDatasetDisplayName_ = ""; @@ -49,15 +31,16 @@ private HumanAnnotationConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HumanAnnotationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private HumanAnnotationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -77,85 +60,76 @@ private HumanAnnotationConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - instruction_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + instruction_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - annotatedDatasetDisplayName_ = s; - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + annotatedDatasetDisplayName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - annotatedDatasetDescription_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + annotatedDatasetDescription_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - labelGroup_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + labelGroup_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 48: - { - replicaCount_ = input.readInt32(); - break; - } - case 58: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (questionDuration_ != null) { - subBuilder = questionDuration_.toBuilder(); - } - questionDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(questionDuration_); - questionDuration_ = subBuilder.buildPartial(); - } - - break; + languageCode_ = s; + break; + } + case 48: { + + replicaCount_ = input.readInt32(); + break; + } + case 58: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (questionDuration_ != null) { + subBuilder = questionDuration_.toBuilder(); } - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - contributorEmails_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - contributorEmails_.add(s); - break; + questionDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(questionDuration_); + questionDuration_ = subBuilder.buildPartial(); } - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - userEmailAddress_ = s; - break; + break; + } + case 74: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + contributorEmails_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + contributorEmails_.add(s); + break; + } + case 82: { + java.lang.String s = input.readStringRequireUtf8(); + + userEmailAddress_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -163,7 +137,8 @@ private HumanAnnotationConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { contributorEmails_ = contributorEmails_.getUnmodifiableView(); @@ -172,33 +147,27 @@ private HumanAnnotationConfig( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.class, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.class, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder.class); } public static final int INSTRUCTION_FIELD_NUMBER = 1; private volatile java.lang.Object instruction_; /** - * - * *
    * Required. Instruction resource name.
    * 
* * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The instruction. */ @java.lang.Override @@ -207,29 +176,29 @@ public java.lang.String getInstruction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instruction_ = s; return s; } } /** - * - * *
    * Required. Instruction resource name.
    * 
* * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for instruction. */ @java.lang.Override - public com.google.protobuf.ByteString getInstructionBytes() { + public com.google.protobuf.ByteString + getInstructionBytes() { java.lang.Object ref = instruction_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instruction_ = b; return b; } else { @@ -240,17 +209,13 @@ public com.google.protobuf.ByteString getInstructionBytes() { public static final int ANNOTATED_DATASET_DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object annotatedDatasetDisplayName_; /** - * - * *
    * Required. A human-readable name for AnnotatedDataset defined by
    * users. Maximum of 64 characters
    * .
    * 
* - * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The annotatedDatasetDisplayName. */ @java.lang.Override @@ -259,32 +224,31 @@ public java.lang.String getAnnotatedDatasetDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotatedDatasetDisplayName_ = s; return s; } } /** - * - * *
    * Required. A human-readable name for AnnotatedDataset defined by
    * users. Maximum of 64 characters
    * .
    * 
* - * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for annotatedDatasetDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString getAnnotatedDatasetDisplayNameBytes() { + public com.google.protobuf.ByteString + getAnnotatedDatasetDisplayNameBytes() { java.lang.Object ref = annotatedDatasetDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotatedDatasetDisplayName_ = b; return b; } else { @@ -295,16 +259,12 @@ public com.google.protobuf.ByteString getAnnotatedDatasetDisplayNameBytes() { public static final int ANNOTATED_DATASET_DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object annotatedDatasetDescription_; /** - * - * *
    * Optional. A human-readable description for AnnotatedDataset.
    * The description can be up to 10000 characters long.
    * 
* - * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The annotatedDatasetDescription. */ @java.lang.Override @@ -313,31 +273,30 @@ public java.lang.String getAnnotatedDatasetDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotatedDatasetDescription_ = s; return s; } } /** - * - * *
    * Optional. A human-readable description for AnnotatedDataset.
    * The description can be up to 10000 characters long.
    * 
* - * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The bytes for annotatedDatasetDescription. */ @java.lang.Override - public com.google.protobuf.ByteString getAnnotatedDatasetDescriptionBytes() { + public com.google.protobuf.ByteString + getAnnotatedDatasetDescriptionBytes() { java.lang.Object ref = annotatedDatasetDescription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotatedDatasetDescription_ = b; return b; } else { @@ -348,15 +307,12 @@ public com.google.protobuf.ByteString getAnnotatedDatasetDescriptionBytes() { public static final int LABEL_GROUP_FIELD_NUMBER = 4; private volatile java.lang.Object labelGroup_; /** - * - * *
    * Optional. A human-readable label used to logically group labeling tasks.
    * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`.
    * 
* * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The labelGroup. */ @java.lang.Override @@ -365,30 +321,30 @@ public java.lang.String getLabelGroup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); labelGroup_ = s; return s; } } /** - * - * *
    * Optional. A human-readable label used to logically group labeling tasks.
    * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`.
    * 
* * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for labelGroup. */ @java.lang.Override - public com.google.protobuf.ByteString getLabelGroupBytes() { + public com.google.protobuf.ByteString + getLabelGroupBytes() { java.lang.Object ref = labelGroup_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); labelGroup_ = b; return b; } else { @@ -399,8 +355,6 @@ public com.google.protobuf.ByteString getLabelGroupBytes() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 5; private volatile java.lang.Object languageCode_; /** - * - * *
    * Optional. The Language of this question, as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -410,7 +364,6 @@ public com.google.protobuf.ByteString getLabelGroupBytes() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ @java.lang.Override @@ -419,15 +372,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * Optional. The Language of this question, as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -437,15 +389,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -456,8 +409,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { public static final int REPLICA_COUNT_FIELD_NUMBER = 6; private int replicaCount_; /** - * - * *
    * Optional. Replication of questions. Each question will be sent to up to
    * this number of contributors to label. Aggregated answers will be returned.
@@ -466,7 +417,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
    * 
* * int32 replica_count = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The replicaCount. */ @java.lang.Override @@ -477,17 +427,12 @@ public int getReplicaCount() { public static final int QUESTION_DURATION_FIELD_NUMBER = 7; private com.google.protobuf.Duration questionDuration_; /** - * - * *
    * Optional. Maximum duration for contributors to answer a question. Maximum
    * is 3600 seconds. Default is 3600 seconds.
    * 
* - * - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the questionDuration field is set. */ @java.lang.Override @@ -495,36 +440,25 @@ public boolean hasQuestionDuration() { return questionDuration_ != null; } /** - * - * *
    * Optional. Maximum duration for contributors to answer a question. Maximum
    * is 3600 seconds. Default is 3600 seconds.
    * 
* - * - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The questionDuration. */ @java.lang.Override public com.google.protobuf.Duration getQuestionDuration() { - return questionDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : questionDuration_; + return questionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : questionDuration_; } /** - * - * *
    * Optional. Maximum duration for contributors to answer a question. Maximum
    * is 3600 seconds. Default is 3600 seconds.
    * 
* - * - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getQuestionDurationOrBuilder() { @@ -534,8 +468,6 @@ public com.google.protobuf.DurationOrBuilder getQuestionDurationOrBuilder() { public static final int CONTRIBUTOR_EMAILS_FIELD_NUMBER = 9; private com.google.protobuf.LazyStringList contributorEmails_; /** - * - * *
    * Optional. If you want your own labeling contributors to manage and work on
    * this labeling request, you can set these contributors here. We will give
@@ -545,15 +477,13 @@ public com.google.protobuf.DurationOrBuilder getQuestionDurationOrBuilder() {
    * 
* * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the contributorEmails. */ - public com.google.protobuf.ProtocolStringList getContributorEmailsList() { + public com.google.protobuf.ProtocolStringList + getContributorEmailsList() { return contributorEmails_; } /** - * - * *
    * Optional. If you want your own labeling contributors to manage and work on
    * this labeling request, you can set these contributors here. We will give
@@ -563,15 +493,12 @@ public com.google.protobuf.ProtocolStringList getContributorEmailsList() {
    * 
* * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of contributorEmails. */ public int getContributorEmailsCount() { return contributorEmails_.size(); } /** - * - * *
    * Optional. If you want your own labeling contributors to manage and work on
    * this labeling request, you can set these contributors here. We will give
@@ -581,7 +508,6 @@ public int getContributorEmailsCount() {
    * 
* * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The contributorEmails at the given index. */ @@ -589,8 +515,6 @@ public java.lang.String getContributorEmails(int index) { return contributorEmails_.get(index); } /** - * - * *
    * Optional. If you want your own labeling contributors to manage and work on
    * this labeling request, you can set these contributors here. We will give
@@ -600,26 +524,23 @@ public java.lang.String getContributorEmails(int index) {
    * 
* * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the contributorEmails at the given index. */ - public com.google.protobuf.ByteString getContributorEmailsBytes(int index) { + public com.google.protobuf.ByteString + getContributorEmailsBytes(int index) { return contributorEmails_.getByteString(index); } public static final int USER_EMAIL_ADDRESS_FIELD_NUMBER = 10; private volatile java.lang.Object userEmailAddress_; /** - * - * *
    * Email of the user who started the labeling task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 10; - * * @return The userEmailAddress. */ @java.lang.Override @@ -628,30 +549,30 @@ public java.lang.String getUserEmailAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userEmailAddress_ = s; return s; } } /** - * - * *
    * Email of the user who started the labeling task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 10; - * * @return The bytes for userEmailAddress. */ @java.lang.Override - public com.google.protobuf.ByteString getUserEmailAddressBytes() { + public com.google.protobuf.ByteString + getUserEmailAddressBytes() { java.lang.Object ref = userEmailAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userEmailAddress_ = b; return b; } else { @@ -660,7 +581,6 @@ public com.google.protobuf.ByteString getUserEmailAddressBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -672,7 +592,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(instruction_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instruction_); } @@ -713,12 +634,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instruction_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotatedDatasetDisplayName_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(2, annotatedDatasetDisplayName_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, annotatedDatasetDisplayName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotatedDatasetDescription_)) { - size += - com.google.protobuf.GeneratedMessageV3.computeStringSize(3, annotatedDatasetDescription_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, annotatedDatasetDescription_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelGroup_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, labelGroup_); @@ -727,10 +646,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, languageCode_); } if (replicaCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, replicaCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(6, replicaCount_); } if (questionDuration_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getQuestionDuration()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getQuestionDuration()); } { int dataSize = 0; @@ -751,28 +672,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.datalabeling.v1beta1.HumanAnnotationConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig other = - (com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig) obj; - - if (!getInstruction().equals(other.getInstruction())) return false; - if (!getAnnotatedDatasetDisplayName().equals(other.getAnnotatedDatasetDisplayName())) - return false; - if (!getAnnotatedDatasetDescription().equals(other.getAnnotatedDatasetDescription())) - return false; - if (!getLabelGroup().equals(other.getLabelGroup())) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; - if (getReplicaCount() != other.getReplicaCount()) return false; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig other = (com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig) obj; + + if (!getInstruction() + .equals(other.getInstruction())) return false; + if (!getAnnotatedDatasetDisplayName() + .equals(other.getAnnotatedDatasetDisplayName())) return false; + if (!getAnnotatedDatasetDescription() + .equals(other.getAnnotatedDatasetDescription())) return false; + if (!getLabelGroup() + .equals(other.getLabelGroup())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; + if (getReplicaCount() + != other.getReplicaCount()) return false; if (hasQuestionDuration() != other.hasQuestionDuration()) return false; if (hasQuestionDuration()) { - if (!getQuestionDuration().equals(other.getQuestionDuration())) return false; + if (!getQuestionDuration() + .equals(other.getQuestionDuration())) return false; } - if (!getContributorEmailsList().equals(other.getContributorEmailsList())) return false; - if (!getUserEmailAddress().equals(other.getUserEmailAddress())) return false; + if (!getContributorEmailsList() + .equals(other.getContributorEmailsList())) return false; + if (!getUserEmailAddress() + .equals(other.getUserEmailAddress())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -812,127 +739,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig 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.datalabeling.v1beta1.HumanAnnotationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Configuration for how human labeling task should be done.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.HumanAnnotationConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.HumanAnnotationConfig) com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.class, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.class, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder() @@ -940,15 +857,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(); @@ -978,9 +896,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_descriptor; } @java.lang.Override @@ -999,8 +917,7 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig result = - new com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig(this); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig result = new com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig(this); int from_bitField0_ = bitField0_; result.instruction_ = instruction_; result.annotatedDatasetDisplayName_ = annotatedDatasetDisplayName_; @@ -1027,39 +944,38 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig)other); } else { super.mergeFrom(other); return this; @@ -1067,8 +983,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig other) { - if (other == com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance()) return this; if (!other.getInstruction().isEmpty()) { instruction_ = other.instruction_; onChanged(); @@ -1128,8 +1043,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1138,25 +1052,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object instruction_ = ""; /** - * - * *
      * Required. Instruction resource name.
      * 
* * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The instruction. */ public java.lang.String getInstruction() { java.lang.Object ref = instruction_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instruction_ = s; return s; @@ -1165,21 +1076,20 @@ public java.lang.String getInstruction() { } } /** - * - * *
      * Required. Instruction resource name.
      * 
* * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for instruction. */ - public com.google.protobuf.ByteString getInstructionBytes() { + public com.google.protobuf.ByteString + getInstructionBytes() { java.lang.Object ref = instruction_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instruction_ = b; return b; } else { @@ -1187,61 +1097,54 @@ public com.google.protobuf.ByteString getInstructionBytes() { } } /** - * - * *
      * Required. Instruction resource name.
      * 
* * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The instruction to set. * @return This builder for chaining. */ - public Builder setInstruction(java.lang.String value) { + public Builder setInstruction( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instruction_ = value; onChanged(); return this; } /** - * - * *
      * Required. Instruction resource name.
      * 
* * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearInstruction() { - + instruction_ = getDefaultInstance().getInstruction(); onChanged(); return this; } /** - * - * *
      * Required. Instruction resource name.
      * 
* * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for instruction to set. * @return This builder for chaining. */ - public Builder setInstructionBytes(com.google.protobuf.ByteString value) { + public Builder setInstructionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instruction_ = value; onChanged(); return this; @@ -1249,23 +1152,20 @@ public Builder setInstructionBytes(com.google.protobuf.ByteString value) { private java.lang.Object annotatedDatasetDisplayName_ = ""; /** - * - * *
      * Required. A human-readable name for AnnotatedDataset defined by
      * users. Maximum of 64 characters
      * .
      * 
* - * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The annotatedDatasetDisplayName. */ public java.lang.String getAnnotatedDatasetDisplayName() { java.lang.Object ref = annotatedDatasetDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotatedDatasetDisplayName_ = s; return s; @@ -1274,24 +1174,22 @@ public java.lang.String getAnnotatedDatasetDisplayName() { } } /** - * - * *
      * Required. A human-readable name for AnnotatedDataset defined by
      * users. Maximum of 64 characters
      * .
      * 
* - * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for annotatedDatasetDisplayName. */ - public com.google.protobuf.ByteString getAnnotatedDatasetDisplayNameBytes() { + public com.google.protobuf.ByteString + getAnnotatedDatasetDisplayNameBytes() { java.lang.Object ref = annotatedDatasetDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotatedDatasetDisplayName_ = b; return b; } else { @@ -1299,70 +1197,60 @@ public com.google.protobuf.ByteString getAnnotatedDatasetDisplayNameBytes() { } } /** - * - * *
      * Required. A human-readable name for AnnotatedDataset defined by
      * users. Maximum of 64 characters
      * .
      * 
* - * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The annotatedDatasetDisplayName to set. * @return This builder for chaining. */ - public Builder setAnnotatedDatasetDisplayName(java.lang.String value) { + public Builder setAnnotatedDatasetDisplayName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotatedDatasetDisplayName_ = value; onChanged(); return this; } /** - * - * *
      * Required. A human-readable name for AnnotatedDataset defined by
      * users. Maximum of 64 characters
      * .
      * 
* - * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearAnnotatedDatasetDisplayName() { - + annotatedDatasetDisplayName_ = getDefaultInstance().getAnnotatedDatasetDisplayName(); onChanged(); return this; } /** - * - * *
      * Required. A human-readable name for AnnotatedDataset defined by
      * users. Maximum of 64 characters
      * .
      * 
* - * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @param value The bytes for annotatedDatasetDisplayName to set. * @return This builder for chaining. */ - public Builder setAnnotatedDatasetDisplayNameBytes(com.google.protobuf.ByteString value) { + public Builder setAnnotatedDatasetDisplayNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotatedDatasetDisplayName_ = value; onChanged(); return this; @@ -1370,22 +1258,19 @@ public Builder setAnnotatedDatasetDisplayNameBytes(com.google.protobuf.ByteStrin private java.lang.Object annotatedDatasetDescription_ = ""; /** - * - * *
      * Optional. A human-readable description for AnnotatedDataset.
      * The description can be up to 10000 characters long.
      * 
* - * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The annotatedDatasetDescription. */ public java.lang.String getAnnotatedDatasetDescription() { java.lang.Object ref = annotatedDatasetDescription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotatedDatasetDescription_ = s; return s; @@ -1394,23 +1279,21 @@ public java.lang.String getAnnotatedDatasetDescription() { } } /** - * - * *
      * Optional. A human-readable description for AnnotatedDataset.
      * The description can be up to 10000 characters long.
      * 
* - * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The bytes for annotatedDatasetDescription. */ - public com.google.protobuf.ByteString getAnnotatedDatasetDescriptionBytes() { + public com.google.protobuf.ByteString + getAnnotatedDatasetDescriptionBytes() { java.lang.Object ref = annotatedDatasetDescription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotatedDatasetDescription_ = b; return b; } else { @@ -1418,67 +1301,57 @@ public com.google.protobuf.ByteString getAnnotatedDatasetDescriptionBytes() { } } /** - * - * *
      * Optional. A human-readable description for AnnotatedDataset.
      * The description can be up to 10000 characters long.
      * 
* - * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The annotatedDatasetDescription to set. * @return This builder for chaining. */ - public Builder setAnnotatedDatasetDescription(java.lang.String value) { + public Builder setAnnotatedDatasetDescription( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotatedDatasetDescription_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A human-readable description for AnnotatedDataset.
      * The description can be up to 10000 characters long.
      * 
* - * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearAnnotatedDatasetDescription() { - + annotatedDatasetDescription_ = getDefaultInstance().getAnnotatedDatasetDescription(); onChanged(); return this; } /** - * - * *
      * Optional. A human-readable description for AnnotatedDataset.
      * The description can be up to 10000 characters long.
      * 
* - * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes for annotatedDatasetDescription to set. * @return This builder for chaining. */ - public Builder setAnnotatedDatasetDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setAnnotatedDatasetDescriptionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotatedDatasetDescription_ = value; onChanged(); return this; @@ -1486,21 +1359,19 @@ public Builder setAnnotatedDatasetDescriptionBytes(com.google.protobuf.ByteStrin private java.lang.Object labelGroup_ = ""; /** - * - * *
      * Optional. A human-readable label used to logically group labeling tasks.
      * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`.
      * 
* * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The labelGroup. */ public java.lang.String getLabelGroup() { java.lang.Object ref = labelGroup_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); labelGroup_ = s; return s; @@ -1509,22 +1380,21 @@ public java.lang.String getLabelGroup() { } } /** - * - * *
      * Optional. A human-readable label used to logically group labeling tasks.
      * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`.
      * 
* * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for labelGroup. */ - public com.google.protobuf.ByteString getLabelGroupBytes() { + public com.google.protobuf.ByteString + getLabelGroupBytes() { java.lang.Object ref = labelGroup_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); labelGroup_ = b; return b; } else { @@ -1532,64 +1402,57 @@ public com.google.protobuf.ByteString getLabelGroupBytes() { } } /** - * - * *
      * Optional. A human-readable label used to logically group labeling tasks.
      * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`.
      * 
* * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The labelGroup to set. * @return This builder for chaining. */ - public Builder setLabelGroup(java.lang.String value) { + public Builder setLabelGroup( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + labelGroup_ = value; onChanged(); return this; } /** - * - * *
      * Optional. A human-readable label used to logically group labeling tasks.
      * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`.
      * 
* * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLabelGroup() { - + labelGroup_ = getDefaultInstance().getLabelGroup(); onChanged(); return this; } /** - * - * *
      * Optional. A human-readable label used to logically group labeling tasks.
      * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`.
      * 
* * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for labelGroup to set. * @return This builder for chaining. */ - public Builder setLabelGroupBytes(com.google.protobuf.ByteString value) { + public Builder setLabelGroupBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + labelGroup_ = value; onChanged(); return this; @@ -1597,8 +1460,6 @@ public Builder setLabelGroupBytes(com.google.protobuf.ByteString value) { private java.lang.Object languageCode_ = ""; /** - * - * *
      * Optional. The Language of this question, as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -1608,13 +1469,13 @@ public Builder setLabelGroupBytes(com.google.protobuf.ByteString value) {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1623,8 +1484,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * Optional. The Language of this question, as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -1634,14 +1493,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1649,8 +1509,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * Optional. The Language of this question, as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -1660,22 +1518,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The Language of this question, as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -1685,18 +1541,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * Optional. The Language of this question, as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -1706,25 +1559,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private int replicaCount_; + private int replicaCount_ ; /** - * - * *
      * Optional. Replication of questions. Each question will be sent to up to
      * this number of contributors to label. Aggregated answers will be returned.
@@ -1733,7 +1584,6 @@ public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 replica_count = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The replicaCount. */ @java.lang.Override @@ -1741,8 +1591,6 @@ public int getReplicaCount() { return replicaCount_; } /** - * - * *
      * Optional. Replication of questions. Each question will be sent to up to
      * this number of contributors to label. Aggregated answers will be returned.
@@ -1751,19 +1599,16 @@ public int getReplicaCount() {
      * 
* * int32 replica_count = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The replicaCount to set. * @return This builder for chaining. */ public Builder setReplicaCount(int value) { - + replicaCount_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Replication of questions. Each question will be sent to up to
      * this number of contributors to label. Aggregated answers will be returned.
@@ -1772,11 +1617,10 @@ public Builder setReplicaCount(int value) {
      * 
* * int32 replica_count = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearReplicaCount() { - + replicaCount_ = 0; onChanged(); return this; @@ -1784,61 +1628,42 @@ public Builder clearReplicaCount() { private com.google.protobuf.Duration questionDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - questionDurationBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> questionDurationBuilder_; /** - * - * *
      * Optional. Maximum duration for contributors to answer a question. Maximum
      * is 3600 seconds. Default is 3600 seconds.
      * 
* - * - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the questionDuration field is set. */ public boolean hasQuestionDuration() { return questionDurationBuilder_ != null || questionDuration_ != null; } /** - * - * *
      * Optional. Maximum duration for contributors to answer a question. Maximum
      * is 3600 seconds. Default is 3600 seconds.
      * 
* - * - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The questionDuration. */ public com.google.protobuf.Duration getQuestionDuration() { if (questionDurationBuilder_ == null) { - return questionDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : questionDuration_; + return questionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : questionDuration_; } else { return questionDurationBuilder_.getMessage(); } } /** - * - * *
      * Optional. Maximum duration for contributors to answer a question. Maximum
      * is 3600 seconds. Default is 3600 seconds.
      * 
* - * - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setQuestionDuration(com.google.protobuf.Duration value) { if (questionDurationBuilder_ == null) { @@ -1854,18 +1679,15 @@ public Builder setQuestionDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Optional. Maximum duration for contributors to answer a question. Maximum
      * is 3600 seconds. Default is 3600 seconds.
      * 
* - * - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setQuestionDuration(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setQuestionDuration( + com.google.protobuf.Duration.Builder builderForValue) { if (questionDurationBuilder_ == null) { questionDuration_ = builderForValue.build(); onChanged(); @@ -1876,24 +1698,18 @@ public Builder setQuestionDuration(com.google.protobuf.Duration.Builder builderF return this; } /** - * - * *
      * Optional. Maximum duration for contributors to answer a question. Maximum
      * is 3600 seconds. Default is 3600 seconds.
      * 
* - * - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeQuestionDuration(com.google.protobuf.Duration value) { if (questionDurationBuilder_ == null) { if (questionDuration_ != null) { questionDuration_ = - com.google.protobuf.Duration.newBuilder(questionDuration_) - .mergeFrom(value) - .buildPartial(); + com.google.protobuf.Duration.newBuilder(questionDuration_).mergeFrom(value).buildPartial(); } else { questionDuration_ = value; } @@ -1905,16 +1721,12 @@ public Builder mergeQuestionDuration(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Optional. Maximum duration for contributors to answer a question. Maximum
      * is 3600 seconds. Default is 3600 seconds.
      * 
* - * - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearQuestionDuration() { if (questionDurationBuilder_ == null) { @@ -1928,84 +1740,64 @@ public Builder clearQuestionDuration() { return this; } /** - * - * *
      * Optional. Maximum duration for contributors to answer a question. Maximum
      * is 3600 seconds. Default is 3600 seconds.
      * 
* - * - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Duration.Builder getQuestionDurationBuilder() { - + onChanged(); return getQuestionDurationFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Maximum duration for contributors to answer a question. Maximum
      * is 3600 seconds. Default is 3600 seconds.
      * 
* - * - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.DurationOrBuilder getQuestionDurationOrBuilder() { if (questionDurationBuilder_ != null) { return questionDurationBuilder_.getMessageOrBuilder(); } else { - return questionDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : questionDuration_; + return questionDuration_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : questionDuration_; } } /** - * - * *
      * Optional. Maximum duration for contributors to answer a question. Maximum
      * is 3600 seconds. Default is 3600 seconds.
      * 
* - * - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; */ 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> getQuestionDurationFieldBuilder() { if (questionDurationBuilder_ == null) { - questionDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getQuestionDuration(), getParentForChildren(), isClean()); + questionDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getQuestionDuration(), + getParentForChildren(), + isClean()); questionDuration_ = null; } return questionDurationBuilder_; } - private com.google.protobuf.LazyStringList contributorEmails_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList contributorEmails_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureContributorEmailsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { contributorEmails_ = new com.google.protobuf.LazyStringArrayList(contributorEmails_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Optional. If you want your own labeling contributors to manage and work on
      * this labeling request, you can set these contributors here. We will give
@@ -2014,17 +1806,14 @@ private void ensureContributorEmailsIsMutable() {
      * https://crowd-compute.appspot.com/
      * 
* - * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return A list containing the contributorEmails. */ - public com.google.protobuf.ProtocolStringList getContributorEmailsList() { + public com.google.protobuf.ProtocolStringList + getContributorEmailsList() { return contributorEmails_.getUnmodifiableView(); } /** - * - * *
      * Optional. If you want your own labeling contributors to manage and work on
      * this labeling request, you can set these contributors here. We will give
@@ -2033,17 +1822,13 @@ public com.google.protobuf.ProtocolStringList getContributorEmailsList() {
      * https://crowd-compute.appspot.com/
      * 
* - * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return The count of contributorEmails. */ public int getContributorEmailsCount() { return contributorEmails_.size(); } /** - * - * *
      * Optional. If you want your own labeling contributors to manage and work on
      * this labeling request, you can set these contributors here. We will give
@@ -2052,9 +1837,7 @@ public int getContributorEmailsCount() {
      * https://crowd-compute.appspot.com/
      * 
* - * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the element to return. * @return The contributorEmails at the given index. */ @@ -2062,8 +1845,6 @@ public java.lang.String getContributorEmails(int index) { return contributorEmails_.get(index); } /** - * - * *
      * Optional. If you want your own labeling contributors to manage and work on
      * this labeling request, you can set these contributors here. We will give
@@ -2072,18 +1853,15 @@ public java.lang.String getContributorEmails(int index) {
      * https://crowd-compute.appspot.com/
      * 
* - * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index of the value to return. * @return The bytes of the contributorEmails at the given index. */ - public com.google.protobuf.ByteString getContributorEmailsBytes(int index) { + public com.google.protobuf.ByteString + getContributorEmailsBytes(int index) { return contributorEmails_.getByteString(index); } /** - * - * *
      * Optional. If you want your own labeling contributors to manage and work on
      * this labeling request, you can set these contributors here. We will give
@@ -2092,25 +1870,22 @@ public com.google.protobuf.ByteString getContributorEmailsBytes(int index) {
      * https://crowd-compute.appspot.com/
      * 
* - * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; * @param index The index to set the value at. * @param value The contributorEmails to set. * @return This builder for chaining. */ - public Builder setContributorEmails(int index, java.lang.String value) { + public Builder setContributorEmails( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureContributorEmailsIsMutable(); + throw new NullPointerException(); + } + ensureContributorEmailsIsMutable(); contributorEmails_.set(index, value); onChanged(); return this; } /** - * - * *
      * Optional. If you want your own labeling contributors to manage and work on
      * this labeling request, you can set these contributors here. We will give
@@ -2119,24 +1894,21 @@ public Builder setContributorEmails(int index, java.lang.String value) {
      * https://crowd-compute.appspot.com/
      * 
* - * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; * @param value The contributorEmails to add. * @return This builder for chaining. */ - public Builder addContributorEmails(java.lang.String value) { + public Builder addContributorEmails( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureContributorEmailsIsMutable(); + throw new NullPointerException(); + } + ensureContributorEmailsIsMutable(); contributorEmails_.add(value); onChanged(); return this; } /** - * - * *
      * Optional. If you want your own labeling contributors to manage and work on
      * this labeling request, you can set these contributors here. We will give
@@ -2145,21 +1917,19 @@ public Builder addContributorEmails(java.lang.String value) {
      * https://crowd-compute.appspot.com/
      * 
* - * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; * @param values The contributorEmails to add. * @return This builder for chaining. */ - public Builder addAllContributorEmails(java.lang.Iterable values) { + public Builder addAllContributorEmails( + java.lang.Iterable values) { ensureContributorEmailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contributorEmails_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, contributorEmails_); onChanged(); return this; } /** - * - * *
      * Optional. If you want your own labeling contributors to manage and work on
      * this labeling request, you can set these contributors here. We will give
@@ -2168,9 +1938,7 @@ public Builder addAllContributorEmails(java.lang.Iterable valu
      * https://crowd-compute.appspot.com/
      * 
* - * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearContributorEmails() { @@ -2180,8 +1948,6 @@ public Builder clearContributorEmails() { return this; } /** - * - * *
      * Optional. If you want your own labeling contributors to manage and work on
      * this labeling request, you can set these contributors here. We will give
@@ -2190,17 +1956,16 @@ public Builder clearContributorEmails() {
      * https://crowd-compute.appspot.com/
      * 
* - * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; * @param value The bytes of the contributorEmails to add. * @return This builder for chaining. */ - public Builder addContributorEmailsBytes(com.google.protobuf.ByteString value) { + public Builder addContributorEmailsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureContributorEmailsIsMutable(); contributorEmails_.add(value); onChanged(); @@ -2209,21 +1974,19 @@ public Builder addContributorEmailsBytes(com.google.protobuf.ByteString value) { private java.lang.Object userEmailAddress_ = ""; /** - * - * *
      * Email of the user who started the labeling task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 10; - * * @return The userEmailAddress. */ public java.lang.String getUserEmailAddress() { java.lang.Object ref = userEmailAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userEmailAddress_ = s; return s; @@ -2232,22 +1995,21 @@ public java.lang.String getUserEmailAddress() { } } /** - * - * *
      * Email of the user who started the labeling task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 10; - * * @return The bytes for userEmailAddress. */ - public com.google.protobuf.ByteString getUserEmailAddressBytes() { + public com.google.protobuf.ByteString + getUserEmailAddressBytes() { java.lang.Object ref = userEmailAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userEmailAddress_ = b; return b; } else { @@ -2255,71 +2017,64 @@ public com.google.protobuf.ByteString getUserEmailAddressBytes() { } } /** - * - * *
      * Email of the user who started the labeling task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 10; - * * @param value The userEmailAddress to set. * @return This builder for chaining. */ - public Builder setUserEmailAddress(java.lang.String value) { + public Builder setUserEmailAddress( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + userEmailAddress_ = value; onChanged(); return this; } /** - * - * *
      * Email of the user who started the labeling task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 10; - * * @return This builder for chaining. */ public Builder clearUserEmailAddress() { - + userEmailAddress_ = getDefaultInstance().getUserEmailAddress(); onChanged(); return this; } /** - * - * *
      * Email of the user who started the labeling task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 10; - * * @param value The bytes for userEmailAddress to set. * @return This builder for chaining. */ - public Builder setUserEmailAddressBytes(com.google.protobuf.ByteString value) { + public Builder setUserEmailAddressBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userEmailAddress_ = 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); } @@ -2329,12 +2084,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.HumanAnnotationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.HumanAnnotationConfig) private static final com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig(); } @@ -2343,16 +2098,16 @@ public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HumanAnnotationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HumanAnnotationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HumanAnnotationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HumanAnnotationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2367,4 +2122,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOrBuilder.java similarity index 79% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOrBuilder.java index 0ca187a5..996f7660 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOrBuilder.java @@ -1,143 +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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface HumanAnnotationConfigOrBuilder - extends +public interface HumanAnnotationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.HumanAnnotationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Instruction resource name.
    * 
* * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The instruction. */ java.lang.String getInstruction(); /** - * - * *
    * Required. Instruction resource name.
    * 
* * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for instruction. */ - com.google.protobuf.ByteString getInstructionBytes(); + com.google.protobuf.ByteString + getInstructionBytes(); /** - * - * *
    * Required. A human-readable name for AnnotatedDataset defined by
    * users. Maximum of 64 characters
    * .
    * 
* - * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The annotatedDatasetDisplayName. */ java.lang.String getAnnotatedDatasetDisplayName(); /** - * - * *
    * Required. A human-readable name for AnnotatedDataset defined by
    * users. Maximum of 64 characters
    * .
    * 
* - * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The bytes for annotatedDatasetDisplayName. */ - com.google.protobuf.ByteString getAnnotatedDatasetDisplayNameBytes(); + com.google.protobuf.ByteString + getAnnotatedDatasetDisplayNameBytes(); /** - * - * *
    * Optional. A human-readable description for AnnotatedDataset.
    * The description can be up to 10000 characters long.
    * 
* - * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The annotatedDatasetDescription. */ java.lang.String getAnnotatedDatasetDescription(); /** - * - * *
    * Optional. A human-readable description for AnnotatedDataset.
    * The description can be up to 10000 characters long.
    * 
* - * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The bytes for annotatedDatasetDescription. */ - com.google.protobuf.ByteString getAnnotatedDatasetDescriptionBytes(); + com.google.protobuf.ByteString + getAnnotatedDatasetDescriptionBytes(); /** - * - * *
    * Optional. A human-readable label used to logically group labeling tasks.
    * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`.
    * 
* * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The labelGroup. */ java.lang.String getLabelGroup(); /** - * - * *
    * Optional. A human-readable label used to logically group labeling tasks.
    * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`.
    * 
* * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for labelGroup. */ - com.google.protobuf.ByteString getLabelGroupBytes(); + com.google.protobuf.ByteString + getLabelGroupBytes(); /** - * - * *
    * Optional. The Language of this question, as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -147,13 +105,10 @@ public interface HumanAnnotationConfigOrBuilder
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * Optional. The Language of this question, as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -163,14 +118,12 @@ public interface HumanAnnotationConfigOrBuilder
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); /** - * - * *
    * Optional. Replication of questions. Each question will be sent to up to
    * this number of contributors to label. Aggregated answers will be returned.
@@ -179,58 +132,41 @@ public interface HumanAnnotationConfigOrBuilder
    * 
* * int32 replica_count = 6 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The replicaCount. */ int getReplicaCount(); /** - * - * *
    * Optional. Maximum duration for contributors to answer a question. Maximum
    * is 3600 seconds. Default is 3600 seconds.
    * 
* - * - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the questionDuration field is set. */ boolean hasQuestionDuration(); /** - * - * *
    * Optional. Maximum duration for contributors to answer a question. Maximum
    * is 3600 seconds. Default is 3600 seconds.
    * 
* - * - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; * @return The questionDuration. */ com.google.protobuf.Duration getQuestionDuration(); /** - * - * *
    * Optional. Maximum duration for contributors to answer a question. Maximum
    * is 3600 seconds. Default is 3600 seconds.
    * 
* - * - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.DurationOrBuilder getQuestionDurationOrBuilder(); /** - * - * *
    * Optional. If you want your own labeling contributors to manage and work on
    * this labeling request, you can set these contributors here. We will give
@@ -240,13 +176,11 @@ public interface HumanAnnotationConfigOrBuilder
    * 
* * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return A list containing the contributorEmails. */ - java.util.List getContributorEmailsList(); + java.util.List + getContributorEmailsList(); /** - * - * *
    * Optional. If you want your own labeling contributors to manage and work on
    * this labeling request, you can set these contributors here. We will give
@@ -256,13 +190,10 @@ public interface HumanAnnotationConfigOrBuilder
    * 
* * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The count of contributorEmails. */ int getContributorEmailsCount(); /** - * - * *
    * Optional. If you want your own labeling contributors to manage and work on
    * this labeling request, you can set these contributors here. We will give
@@ -272,14 +203,11 @@ public interface HumanAnnotationConfigOrBuilder
    * 
* * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the element to return. * @return The contributorEmails at the given index. */ java.lang.String getContributorEmails(int index); /** - * - * *
    * Optional. If you want your own labeling contributors to manage and work on
    * this labeling request, you can set these contributors here. We will give
@@ -289,36 +217,31 @@ public interface HumanAnnotationConfigOrBuilder
    * 
* * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; - * * @param index The index of the value to return. * @return The bytes of the contributorEmails at the given index. */ - com.google.protobuf.ByteString getContributorEmailsBytes(int index); + com.google.protobuf.ByteString + getContributorEmailsBytes(int index); /** - * - * *
    * Email of the user who started the labeling task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 10; - * * @return The userEmailAddress. */ java.lang.String getUserEmailAddress(); /** - * - * *
    * Email of the user who started the labeling task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 10; - * * @return The bytes for userEmailAddress. */ - com.google.protobuf.ByteString getUserEmailAddressBytes(); + com.google.protobuf.ByteString + getUserEmailAddressBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOuterClass.java new file mode 100644 index 00000000..2ad546a4 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOuterClass.java @@ -0,0 +1,242 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/human_annotation_config.proto + +package com.google.cloud.datalabeling.v1beta1; + +public final class HumanAnnotationConfigOuterClass { + private HumanAnnotationConfigOuterClass() {} + 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_datalabeling_v1beta1_HumanAnnotationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_EventConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_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/datalabeling/v1beta1/huma" + + "n_annotation_config.proto\022!google.cloud." + + "datalabeling.v1beta1\032\034google/api/annotat" + + "ions.proto\032\037google/api/field_behavior.pr" + + "oto\032\036google/protobuf/duration.proto\"\324\002\n\025" + + "HumanAnnotationConfig\022\030\n\013instruction\030\001 \001" + + "(\tB\003\340A\002\022+\n\036annotated_dataset_display_nam" + + "e\030\002 \001(\tB\003\340A\002\022*\n\035annotated_dataset_descri" + + "ption\030\003 \001(\tB\003\340A\001\022\030\n\013label_group\030\004 \001(\tB\003\340" + + "A\001\022\032\n\rlanguage_code\030\005 \001(\tB\003\340A\001\022\032\n\rreplic" + + "a_count\030\006 \001(\005B\003\340A\001\0229\n\021question_duration\030" + + "\007 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\037\n" + + "\022contributor_emails\030\t \003(\tB\003\340A\001\022\032\n\022user_e" + + "mail_address\030\n \001(\t\"\275\001\n\031ImageClassificati" + + "onConfig\022 \n\023annotation_spec_set\030\001 \001(\tB\003\340" + + "A\002\022\036\n\021allow_multi_label\030\002 \001(\010B\003\340A\001\022^\n\027an" + + "swer_aggregation_type\030\003 \001(\01628.google.clo" + + "ud.datalabeling.v1beta1.StringAggregatio" + + "nTypeB\003\340A\001\"X\n\022BoundingPolyConfig\022 \n\023anno" + + "tation_spec_set\030\001 \001(\tB\003\340A\002\022 \n\023instructio" + + "n_message\030\002 \001(\tB\003\340A\001\"T\n\016PolylineConfig\022 " + + "\n\023annotation_spec_set\030\001 \001(\tB\003\340A\002\022 \n\023inst" + + "ruction_message\030\002 \001(\tB\003\340A\001\"S\n\022Segmentati" + + "onConfig\022 \n\023annotation_spec_set\030\001 \001(\tB\003\340" + + "A\002\022\033\n\023instruction_message\030\002 \001(\t\"\233\002\n\031Vide" + + "oClassificationConfig\022~\n\033annotation_spec" + + "_set_configs\030\001 \003(\0132T.google.cloud.datala" + + "beling.v1beta1.VideoClassificationConfig" + + ".AnnotationSpecSetConfigB\003\340A\002\022!\n\024apply_s" + + "hot_detection\030\002 \001(\010B\003\340A\001\032[\n\027AnnotationSp" + + "ecSetConfig\022 \n\023annotation_spec_set\030\001 \001(\t" + + "B\003\340A\002\022\036\n\021allow_multi_label\030\002 \001(\010B\003\340A\001\"]\n" + + "\025ObjectDetectionConfig\022 \n\023annotation_spe" + + "c_set\030\001 \001(\tB\003\340A\002\022\"\n\025extraction_frame_rat" + + "e\030\003 \001(\001B\003\340A\002\"8\n\024ObjectTrackingConfig\022 \n\023" + + "annotation_spec_set\030\001 \001(\tB\003\340A\002\"0\n\013EventC" + + "onfig\022!\n\024annotation_spec_sets\030\001 \003(\tB\003\340A\002" + + "\"\257\001\n\030TextClassificationConfig\022\036\n\021allow_m" + + "ulti_label\030\001 \001(\010B\003\340A\001\022 \n\023annotation_spec" + + "_set\030\002 \001(\tB\003\340A\002\022Q\n\020sentiment_config\030\003 \001(" + + "\01322.google.cloud.datalabeling.v1beta1.Se" + + "ntimentConfigB\003\340A\001\";\n\017SentimentConfig\022(\n" + + " enable_label_sentiment_selection\030\001 \001(\010\"" + + ">\n\032TextEntityExtractionConfig\022 \n\023annotat" + + "ion_spec_set\030\001 \001(\tB\003\340A\002*{\n\025StringAggrega" + + "tionType\022\'\n#STRING_AGGREGATION_TYPE_UNSP" + + "ECIFIED\020\000\022\021\n\rMAJORITY_VOTE\020\001\022\022\n\016UNANIMOU" + + "S_VOTE\020\002\022\022\n\016NO_AGGREGATION\020\003B\347\001\n%com.goo" + + "gle.cloud.datalabeling.v1beta1P\001ZMgoogle" + + ".golang.org/genproto/googleapis/cloud/da" + + "talabeling/v1beta1;datalabeling\252\002!Google" + + ".Cloud.DataLabeling.V1Beta1\312\002!Google\\Clo" + + "ud\\DataLabeling\\V1beta1\352\002$Google::Cloud:" + + ":DataLabeling::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_descriptor, + new java.lang.String[] { "Instruction", "AnnotatedDatasetDisplayName", "AnnotatedDatasetDescription", "LabelGroup", "LanguageCode", "ReplicaCount", "QuestionDuration", "ContributorEmails", "UserEmailAddress", }); + internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor, + new java.lang.String[] { "AnnotationSpecSet", "AllowMultiLabel", "AnswerAggregationType", }); + internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor, + new java.lang.String[] { "AnnotationSpecSet", "InstructionMessage", }); + internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor, + new java.lang.String[] { "AnnotationSpecSet", "InstructionMessage", }); + internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor, + new java.lang.String[] { "AnnotationSpecSet", "InstructionMessage", }); + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor, + new java.lang.String[] { "AnnotationSpecSetConfigs", "ApplyShotDetection", }); + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor = + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor, + new java.lang.String[] { "AnnotationSpecSet", "AllowMultiLabel", }); + internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor, + new java.lang.String[] { "AnnotationSpecSet", "ExtractionFrameRate", }); + internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor, + new java.lang.String[] { "AnnotationSpecSet", }); + internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_datalabeling_v1beta1_EventConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor, + new java.lang.String[] { "AnnotationSpecSets", }); + internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor, + new java.lang.String[] { "AllowMultiLabel", "AnnotationSpecSet", "SentimentConfig", }); + internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor, + new java.lang.String[] { "EnableLabelSentimentSelection", }); + internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor, + new java.lang.String[] { "AnnotationSpecSet", }); + 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.AnnotationsProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotation.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotation.java similarity index 65% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotation.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotation.java index d08ec339..6b78cc93 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotation.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotation.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Image bounding poly annotation. It represents a polygon including
  * bounding box in the image.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation}
  */
-public final class ImageBoundingPolyAnnotation extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ImageBoundingPolyAnnotation extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation)
     ImageBoundingPolyAnnotationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ImageBoundingPolyAnnotation.newBuilder() to construct.
   private ImageBoundingPolyAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private ImageBoundingPolyAnnotation() {}
+  private ImageBoundingPolyAnnotation() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ImageBoundingPolyAnnotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ImageBoundingPolyAnnotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,70 +53,54 @@ private ImageBoundingPolyAnnotation(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null;
-              if (annotationSpec_ != null) {
-                subBuilder = annotationSpec_.toBuilder();
-              }
-              annotationSpec_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(annotationSpec_);
-                annotationSpec_ = subBuilder.buildPartial();
-              }
+          case 10: {
+            com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null;
+            if (annotationSpec_ != null) {
+              subBuilder = annotationSpec_.toBuilder();
+            }
+            annotationSpec_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(annotationSpec_);
+              annotationSpec_ = subBuilder.buildPartial();
+            }
 
-              break;
+            break;
+          }
+          case 18: {
+            com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder subBuilder = null;
+            if (boundedAreaCase_ == 2) {
+              subBuilder = ((com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_).toBuilder();
             }
-          case 18:
-            {
-              com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder subBuilder = null;
-              if (boundedAreaCase_ == 2) {
-                subBuilder =
-                    ((com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_).toBuilder();
-              }
-              boundedArea_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.BoundingPoly.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_);
-                boundedArea_ = subBuilder.buildPartial();
-              }
-              boundedAreaCase_ = 2;
-              break;
+            boundedArea_ =
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.BoundingPoly.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_);
+              boundedArea_ = subBuilder.buildPartial();
+            }
+            boundedAreaCase_ = 2;
+            break;
+          }
+          case 26: {
+            com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder subBuilder = null;
+            if (boundedAreaCase_ == 3) {
+              subBuilder = ((com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_).toBuilder();
             }
-          case 26:
-            {
-              com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder subBuilder =
-                  null;
-              if (boundedAreaCase_ == 3) {
-                subBuilder =
-                    ((com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_)
-                        .toBuilder();
-              }
-              boundedArea_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_);
-                boundedArea_ = subBuilder.buildPartial();
-              }
-              boundedAreaCase_ = 3;
-              break;
+            boundedArea_ =
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_);
+              boundedArea_ = subBuilder.buildPartial();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            boundedAreaCase_ = 3;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -140,40 +108,35 @@ private ImageBoundingPolyAnnotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.class,
-            com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.class, com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder.class);
   }
 
   private int boundedAreaCase_ = 0;
   private java.lang.Object boundedArea_;
-
   public enum BoundedAreaCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     BOUNDING_POLY(2),
     NORMALIZED_BOUNDING_POLY(3),
     BOUNDEDAREA_NOT_SET(0);
     private final int value;
-
     private BoundedAreaCase(int value) {
       this.value = value;
     }
@@ -189,30 +152,26 @@ public static BoundedAreaCase valueOf(int value) {
 
     public static BoundedAreaCase forNumber(int value) {
       switch (value) {
-        case 2:
-          return BOUNDING_POLY;
-        case 3:
-          return NORMALIZED_BOUNDING_POLY;
-        case 0:
-          return BOUNDEDAREA_NOT_SET;
-        default:
-          return null;
+        case 2: return BOUNDING_POLY;
+        case 3: return NORMALIZED_BOUNDING_POLY;
+        case 0: return BOUNDEDAREA_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public BoundedAreaCase getBoundedAreaCase() {
-    return BoundedAreaCase.forNumber(boundedAreaCase_);
+  public BoundedAreaCase
+  getBoundedAreaCase() {
+    return BoundedAreaCase.forNumber(
+        boundedAreaCase_);
   }
 
   public static final int BOUNDING_POLY_FIELD_NUMBER = 2;
   /**
    * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
-   *
    * @return Whether the boundingPoly field is set.
    */
   @java.lang.Override
@@ -221,30 +180,29 @@ public boolean hasBoundingPoly() {
   }
   /**
    * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
-   *
    * @return The boundingPoly.
    */
   @java.lang.Override
   public com.google.cloud.datalabeling.v1beta1.BoundingPoly getBoundingPoly() {
     if (boundedAreaCase_ == 2) {
-      return (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_;
+       return (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_;
     }
     return com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance();
   }
-  /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; */
+  /**
+   * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
+   */
   @java.lang.Override
   public com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder() {
     if (boundedAreaCase_ == 2) {
-      return (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_;
+       return (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_;
     }
     return com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance();
   }
 
   public static final int NORMALIZED_BOUNDING_POLY_FIELD_NUMBER = 3;
   /**
-   * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
-   * 
-   *
+   * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
    * @return Whether the normalizedBoundingPoly field is set.
    */
   @java.lang.Override
@@ -252,27 +210,23 @@ public boolean hasNormalizedBoundingPoly() {
     return boundedAreaCase_ == 3;
   }
   /**
-   * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
-   * 
-   *
+   * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
    * @return The normalizedBoundingPoly.
    */
   @java.lang.Override
   public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly getNormalizedBoundingPoly() {
     if (boundedAreaCase_ == 3) {
-      return (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_;
+       return (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_;
     }
     return com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance();
   }
   /**
-   * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
-   * 
+   * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder
-      getNormalizedBoundingPolyOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder getNormalizedBoundingPolyOrBuilder() {
     if (boundedAreaCase_ == 3) {
-      return (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_;
+       return (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_;
     }
     return com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance();
   }
@@ -280,14 +234,11 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly getNormalize
   public static final int ANNOTATION_SPEC_FIELD_NUMBER = 1;
   private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_;
   /**
-   *
-   *
    * 
    * Label of object in this bounding polygon.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ @java.lang.Override @@ -295,25 +246,18 @@ public boolean hasAnnotationSpec() { return annotationSpec_ != null; } /** - * - * *
    * Label of object in this bounding polygon.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } /** - * - * *
    * Label of object in this bounding polygon.
    * 
@@ -321,13 +265,11 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder - getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { return getAnnotationSpec(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -339,7 +281,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 (annotationSpec_ != null) { output.writeMessage(1, getAnnotationSpec()); } @@ -347,8 +290,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(2, (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_); } if (boundedAreaCase_ == 3) { - output.writeMessage( - 3, (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_); + output.writeMessage(3, (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_); } unknownFields.writeTo(output); } @@ -360,17 +302,16 @@ public int getSerializedSize() { size = 0; if (annotationSpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnnotationSpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAnnotationSpec()); } if (boundedAreaCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_); } if (boundedAreaCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -380,25 +321,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.datalabeling.v1beta1.ImageBoundingPolyAnnotation)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation other = - (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) obj; + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation other = (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) obj; if (hasAnnotationSpec() != other.hasAnnotationSpec()) return false; if (hasAnnotationSpec()) { - if (!getAnnotationSpec().equals(other.getAnnotationSpec())) return false; + if (!getAnnotationSpec() + .equals(other.getAnnotationSpec())) return false; } if (!getBoundedAreaCase().equals(other.getBoundedAreaCase())) return false; switch (boundedAreaCase_) { case 2: - if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly() + .equals(other.getBoundingPoly())) return false; break; case 3: - if (!getNormalizedBoundingPoly().equals(other.getNormalizedBoundingPoly())) return false; + if (!getNormalizedBoundingPoly() + .equals(other.getNormalizedBoundingPoly())) return false; break; case 0: default: @@ -436,105 +379,96 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation 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.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation - 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.datalabeling.v1beta1.ImageBoundingPolyAnnotation 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.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Image bounding poly annotation. It represents a polygon including
    * bounding box in the image.
@@ -542,40 +476,38 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation)
       com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.class,
-              com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.class, com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder.class);
     }
 
-    // Construct using
-    // com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.newBuilder()
+    // Construct using com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.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();
@@ -591,14 +523,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation
-        getDefaultInstanceForType() {
+    public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation getDefaultInstanceForType() {
       return com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.getDefaultInstance();
     }
 
@@ -613,8 +544,7 @@ public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation build()
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation result =
-          new com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation(this);
+      com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation result = new com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation(this);
       if (boundedAreaCase_ == 2) {
         if (boundingPolyBuilder_ == null) {
           result.boundedArea_ = boundedArea_;
@@ -643,68 +573,61 @@ public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation 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.datalabeling.v1beta1.ImageBoundingPolyAnnotation) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation other) {
-      if (other
-          == com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation other) {
+      if (other == com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.getDefaultInstance()) return this;
       if (other.hasAnnotationSpec()) {
         mergeAnnotationSpec(other.getAnnotationSpec());
       }
       switch (other.getBoundedAreaCase()) {
-        case BOUNDING_POLY:
-          {
-            mergeBoundingPoly(other.getBoundingPoly());
-            break;
-          }
-        case NORMALIZED_BOUNDING_POLY:
-          {
-            mergeNormalizedBoundingPoly(other.getNormalizedBoundingPoly());
-            break;
-          }
-        case BOUNDEDAREA_NOT_SET:
-          {
-            break;
-          }
+        case BOUNDING_POLY: {
+          mergeBoundingPoly(other.getBoundingPoly());
+          break;
+        }
+        case NORMALIZED_BOUNDING_POLY: {
+          mergeNormalizedBoundingPoly(other.getNormalizedBoundingPoly());
+          break;
+        }
+        case BOUNDEDAREA_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -725,9 +648,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -736,12 +657,12 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int boundedAreaCase_ = 0;
     private java.lang.Object boundedArea_;
-
-    public BoundedAreaCase getBoundedAreaCase() {
-      return BoundedAreaCase.forNumber(boundedAreaCase_);
+    public BoundedAreaCase
+        getBoundedAreaCase() {
+      return BoundedAreaCase.forNumber(
+          boundedAreaCase_);
     }
 
     public Builder clearBoundedArea() {
@@ -751,14 +672,11 @@ public Builder clearBoundedArea() {
       return this;
     }
 
+
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.BoundingPoly,
-            com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder,
-            com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder>
-        boundingPolyBuilder_;
+        com.google.cloud.datalabeling.v1beta1.BoundingPoly, com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder> boundingPolyBuilder_;
     /**
      * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
-     *
      * @return Whether the boundingPoly field is set.
      */
     @java.lang.Override
@@ -767,7 +685,6 @@ public boolean hasBoundingPoly() {
     }
     /**
      * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
-     *
      * @return The boundingPoly.
      */
     @java.lang.Override
@@ -784,7 +701,9 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPoly getBoundingPoly() {
         return com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance();
       }
     }
-    /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; */
+    /**
+     * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
+     */
     public Builder setBoundingPoly(com.google.cloud.datalabeling.v1beta1.BoundingPoly value) {
       if (boundingPolyBuilder_ == null) {
         if (value == null) {
@@ -798,7 +717,9 @@ public Builder setBoundingPoly(com.google.cloud.datalabeling.v1beta1.BoundingPol
       boundedAreaCase_ = 2;
       return this;
     }
-    /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; */
+    /**
+     * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
+     */
     public Builder setBoundingPoly(
         com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder builderForValue) {
       if (boundingPolyBuilder_ == null) {
@@ -810,17 +731,15 @@ public Builder setBoundingPoly(
       boundedAreaCase_ = 2;
       return this;
     }
-    /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; */
+    /**
+     * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
+     */
     public Builder mergeBoundingPoly(com.google.cloud.datalabeling.v1beta1.BoundingPoly value) {
       if (boundingPolyBuilder_ == null) {
-        if (boundedAreaCase_ == 2
-            && boundedArea_
-                != com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance()) {
-          boundedArea_ =
-              com.google.cloud.datalabeling.v1beta1.BoundingPoly.newBuilder(
-                      (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (boundedAreaCase_ == 2 &&
+            boundedArea_ != com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance()) {
+          boundedArea_ = com.google.cloud.datalabeling.v1beta1.BoundingPoly.newBuilder((com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_)
+              .mergeFrom(value).buildPartial();
         } else {
           boundedArea_ = value;
         }
@@ -835,7 +754,9 @@ public Builder mergeBoundingPoly(com.google.cloud.datalabeling.v1beta1.BoundingP
       boundedAreaCase_ = 2;
       return this;
     }
-    /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; */
+    /**
+     * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
+     */
     public Builder clearBoundingPoly() {
       if (boundingPolyBuilder_ == null) {
         if (boundedAreaCase_ == 2) {
@@ -852,11 +773,15 @@ public Builder clearBoundingPoly() {
       }
       return this;
     }
-    /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; */
+    /**
+     * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
+     */
     public com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
       return getBoundingPolyFieldBuilder().getBuilder();
     }
-    /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; */
+    /**
+     * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
+     */
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder() {
       if ((boundedAreaCase_ == 2) && (boundingPolyBuilder_ != null)) {
@@ -868,41 +793,32 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder getBoundingPo
         return com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance();
       }
     }
-    /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; */
+    /**
+     * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
+     */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.BoundingPoly,
-            com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder,
-            com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder>
+        com.google.cloud.datalabeling.v1beta1.BoundingPoly, com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder> 
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
         if (!(boundedAreaCase_ == 2)) {
           boundedArea_ = com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance();
         }
-        boundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.datalabeling.v1beta1.BoundingPoly,
-                com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder,
-                com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder>(
+        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.datalabeling.v1beta1.BoundingPoly, com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder>(
                 (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_,
                 getParentForChildren(),
                 isClean());
         boundedArea_ = null;
       }
       boundedAreaCase_ = 2;
-      onChanged();
-      ;
+      onChanged();;
       return boundingPolyBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly,
-            com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder,
-            com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder>
-        normalizedBoundingPolyBuilder_;
+        com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder> normalizedBoundingPolyBuilder_;
     /**
-     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
-     * 
-     *
+     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
      * @return Whether the normalizedBoundingPoly field is set.
      */
     @java.lang.Override
@@ -910,14 +826,11 @@ public boolean hasNormalizedBoundingPoly() {
       return boundedAreaCase_ == 3;
     }
     /**
-     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
-     * 
-     *
+     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
      * @return The normalizedBoundingPoly.
      */
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly
-        getNormalizedBoundingPoly() {
+    public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly getNormalizedBoundingPoly() {
       if (normalizedBoundingPolyBuilder_ == null) {
         if (boundedAreaCase_ == 3) {
           return (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_;
@@ -931,11 +844,9 @@ public boolean hasNormalizedBoundingPoly() {
       }
     }
     /**
-     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
-     * 
+     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
      */
-    public Builder setNormalizedBoundingPoly(
-        com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly value) {
+    public Builder setNormalizedBoundingPoly(com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly value) {
       if (normalizedBoundingPolyBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -949,8 +860,7 @@ public Builder setNormalizedBoundingPoly(
       return this;
     }
     /**
-     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
-     * 
+     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
      */
     public Builder setNormalizedBoundingPoly(
         com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder builderForValue) {
@@ -964,21 +874,14 @@ public Builder setNormalizedBoundingPoly(
       return this;
     }
     /**
-     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
-     * 
+     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
      */
-    public Builder mergeNormalizedBoundingPoly(
-        com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly value) {
+    public Builder mergeNormalizedBoundingPoly(com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly value) {
       if (normalizedBoundingPolyBuilder_ == null) {
-        if (boundedAreaCase_ == 3
-            && boundedArea_
-                != com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly
-                    .getDefaultInstance()) {
-          boundedArea_ =
-              com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.newBuilder(
-                      (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (boundedAreaCase_ == 3 &&
+            boundedArea_ != com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance()) {
+          boundedArea_ = com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.newBuilder((com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_)
+              .mergeFrom(value).buildPartial();
         } else {
           boundedArea_ = value;
         }
@@ -994,8 +897,7 @@ public Builder mergeNormalizedBoundingPoly(
       return this;
     }
     /**
-     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
-     * 
+     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
      */
     public Builder clearNormalizedBoundingPoly() {
       if (normalizedBoundingPolyBuilder_ == null) {
@@ -1014,20 +916,16 @@ public Builder clearNormalizedBoundingPoly() {
       return this;
     }
     /**
-     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
-     * 
+     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
      */
-    public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder
-        getNormalizedBoundingPolyBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder getNormalizedBoundingPolyBuilder() {
       return getNormalizedBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
-     * 
+     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
      */
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder
-        getNormalizedBoundingPolyOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder getNormalizedBoundingPolyOrBuilder() {
       if ((boundedAreaCase_ == 3) && (normalizedBoundingPolyBuilder_ != null)) {
         return normalizedBoundingPolyBuilder_.getMessageOrBuilder();
       } else {
@@ -1038,78 +936,57 @@ public Builder clearNormalizedBoundingPoly() {
       }
     }
     /**
-     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
-     * 
+     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly,
-            com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder,
-            com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder>
+        com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder> 
         getNormalizedBoundingPolyFieldBuilder() {
       if (normalizedBoundingPolyBuilder_ == null) {
         if (!(boundedAreaCase_ == 3)) {
-          boundedArea_ =
-              com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance();
+          boundedArea_ = com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance();
         }
-        normalizedBoundingPolyBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly,
-                com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder,
-                com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder>(
+        normalizedBoundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder>(
                 (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_,
                 getParentForChildren(),
                 isClean());
         boundedArea_ = null;
       }
       boundedAreaCase_ = 3;
-      onChanged();
-      ;
+      onChanged();;
       return normalizedBoundingPolyBuilder_;
     }
 
     private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_;
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.AnnotationSpec,
-            com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder,
-            com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>
-        annotationSpecBuilder_;
+        com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecBuilder_;
     /**
-     *
-     *
      * 
      * Label of object in this bounding polygon.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ public boolean hasAnnotationSpec() { return annotationSpecBuilder_ != null || annotationSpec_ != null; } /** - * - * *
      * Label of object in this bounding polygon.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { if (annotationSpecBuilder_ == null) { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } else { return annotationSpecBuilder_.getMessage(); } } /** - * - * *
      * Label of object in this bounding polygon.
      * 
@@ -1130,8 +1007,6 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio return this; } /** - * - * *
      * Label of object in this bounding polygon.
      * 
@@ -1150,8 +1025,6 @@ public Builder setAnnotationSpec( return this; } /** - * - * *
      * Label of object in this bounding polygon.
      * 
@@ -1162,9 +1035,7 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat if (annotationSpecBuilder_ == null) { if (annotationSpec_ != null) { annotationSpec_ = - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_).mergeFrom(value).buildPartial(); } else { annotationSpec_ = value; } @@ -1176,8 +1047,6 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat return this; } /** - * - * *
      * Label of object in this bounding polygon.
      * 
@@ -1196,8 +1065,6 @@ public Builder clearAnnotationSpec() { return this; } /** - * - * *
      * Label of object in this bounding polygon.
      * 
@@ -1205,32 +1072,26 @@ public Builder clearAnnotationSpec() { * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotationSpecBuilder() { - + onChanged(); return getAnnotationSpecFieldBuilder().getBuilder(); } /** - * - * *
      * Label of object in this bounding polygon.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder - getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { if (annotationSpecBuilder_ != null) { return annotationSpecBuilder_.getMessageOrBuilder(); } else { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } } /** - * - * *
      * Label of object in this bounding polygon.
      * 
@@ -1238,24 +1099,21 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> getAnnotationSpecFieldBuilder() { if (annotationSpecBuilder_ == null) { - annotationSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( - getAnnotationSpec(), getParentForChildren(), isClean()); + annotationSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( + getAnnotationSpec(), + getParentForChildren(), + isClean()); annotationSpec_ = null; } return annotationSpecBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1265,32 +1123,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) - private static final com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation(); } - public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageBoundingPolyAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageBoundingPolyAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageBoundingPolyAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageBoundingPolyAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1302,8 +1158,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotationOrBuilder.java similarity index 67% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotationOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotationOrBuilder.java index ab9d5172..f70a48d2 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotationOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotationOrBuilder.java @@ -1,91 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface ImageBoundingPolyAnnotationOrBuilder - extends +public interface ImageBoundingPolyAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) com.google.protobuf.MessageOrBuilder { /** * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; - * * @return The boundingPoly. */ com.google.cloud.datalabeling.v1beta1.BoundingPoly getBoundingPoly(); - /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; */ + /** + * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; + */ com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder(); /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3; - * - * + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3; * @return Whether the normalizedBoundingPoly field is set. */ boolean hasNormalizedBoundingPoly(); /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3; - * - * + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3; * @return The normalizedBoundingPoly. */ com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly getNormalizedBoundingPoly(); /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3; - * + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3; */ - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder - getNormalizedBoundingPolyOrBuilder(); + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder getNormalizedBoundingPolyOrBuilder(); /** - * - * *
    * Label of object in this bounding polygon.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ boolean hasAnnotationSpec(); /** - * - * *
    * Label of object in this bounding polygon.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec(); /** - * - * *
    * Label of object in this bounding polygon.
    * 
@@ -94,6 +64,5 @@ public interface ImageBoundingPolyAnnotationOrBuilder */ com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder(); - public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.BoundedAreaCase - getBoundedAreaCase(); + public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.BoundedAreaCase getBoundedAreaCase(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotation.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotation.java similarity index 65% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotation.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotation.java index 3bb03b90..2c652bfc 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotation.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotation.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Image classification annotation definition.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation} */ -public final class ImageClassificationAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageClassificationAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) ImageClassificationAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageClassificationAnnotation.newBuilder() to construct. private ImageClassificationAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImageClassificationAnnotation() {} + private ImageClassificationAnnotation() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageClassificationAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageClassificationAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,30 +52,26 @@ private ImageClassificationAnnotation( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; - if (annotationSpec_ != null) { - subBuilder = annotationSpec_.toBuilder(); - } - annotationSpec_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotationSpec_); - annotationSpec_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; + if (annotationSpec_ != null) { + subBuilder = annotationSpec_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + annotationSpec_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotationSpec_); + annotationSpec_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,39 +79,34 @@ private ImageClassificationAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.class, - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.class, com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder.class); } public static final int ANNOTATION_SPEC_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; /** - * - * *
    * Label of image.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ @java.lang.Override @@ -139,25 +114,18 @@ public boolean hasAnnotationSpec() { return annotationSpec_ != null; } /** - * - * *
    * Label of image.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } /** - * - * *
    * Label of image.
    * 
@@ -165,13 +133,11 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder - getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { return getAnnotationSpec(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,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 (annotationSpec_ != null) { output.writeMessage(1, getAnnotationSpec()); } @@ -197,7 +164,8 @@ public int getSerializedSize() { size = 0; if (annotationSpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnnotationSpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAnnotationSpec()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -207,17 +175,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.datalabeling.v1beta1.ImageClassificationAnnotation)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation other = - (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) obj; + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation other = (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) obj; if (hasAnnotationSpec() != other.hasAnnotationSpec()) return false; if (hasAnnotationSpec()) { - if (!getAnnotationSpec().equals(other.getAnnotationSpec())) return false; + if (!getAnnotationSpec() + .equals(other.getAnnotationSpec())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -240,145 +208,134 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation 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.datalabeling.v1beta1.ImageClassificationAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation - 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.datalabeling.v1beta1.ImageClassificationAnnotation 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.datalabeling.v1beta1.ImageClassificationAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Image classification annotation definition.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.class, - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.class, com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.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(); @@ -392,16 +349,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.getDefaultInstance(); } @java.lang.Override @@ -415,8 +370,7 @@ public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation build @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation buildPartial() { - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation result = - new com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation(this); + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation result = new com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation(this); if (annotationSpecBuilder_ == null) { result.annotationSpec_ = annotationSpec_; } else { @@ -430,51 +384,46 @@ public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation 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.datalabeling.v1beta1.ImageClassificationAnnotation) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation other) { - if (other - == com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation other) { + if (other == com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.getDefaultInstance()) return this; if (other.hasAnnotationSpec()) { mergeAnnotationSpec(other.getAnnotationSpec()); } @@ -497,9 +446,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -511,47 +458,34 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> - annotationSpecBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecBuilder_; /** - * - * *
      * Label of image.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ public boolean hasAnnotationSpec() { return annotationSpecBuilder_ != null || annotationSpec_ != null; } /** - * - * *
      * Label of image.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { if (annotationSpecBuilder_ == null) { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } else { return annotationSpecBuilder_.getMessage(); } } /** - * - * *
      * Label of image.
      * 
@@ -572,8 +506,6 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio return this; } /** - * - * *
      * Label of image.
      * 
@@ -592,8 +524,6 @@ public Builder setAnnotationSpec( return this; } /** - * - * *
      * Label of image.
      * 
@@ -604,9 +534,7 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat if (annotationSpecBuilder_ == null) { if (annotationSpec_ != null) { annotationSpec_ = - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_).mergeFrom(value).buildPartial(); } else { annotationSpec_ = value; } @@ -618,8 +546,6 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat return this; } /** - * - * *
      * Label of image.
      * 
@@ -638,8 +564,6 @@ public Builder clearAnnotationSpec() { return this; } /** - * - * *
      * Label of image.
      * 
@@ -647,32 +571,26 @@ public Builder clearAnnotationSpec() { * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotationSpecBuilder() { - + onChanged(); return getAnnotationSpecFieldBuilder().getBuilder(); } /** - * - * *
      * Label of image.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder - getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { if (annotationSpecBuilder_ != null) { return annotationSpecBuilder_.getMessageOrBuilder(); } else { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } } /** - * - * *
      * Label of image.
      * 
@@ -680,24 +598,21 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> getAnnotationSpecFieldBuilder() { if (annotationSpecBuilder_ == null) { - annotationSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( - getAnnotationSpec(), getParentForChildren(), isClean()); + annotationSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( + getAnnotationSpec(), + getParentForChildren(), + isClean()); annotationSpec_ = null; } return annotationSpecBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -707,32 +622,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) - private static final com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation(); } - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageClassificationAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageClassificationAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageClassificationAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageClassificationAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -744,8 +657,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotationOrBuilder.java similarity index 60% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotationOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotationOrBuilder.java index adb37fa9..cd931544 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotationOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotationOrBuilder.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface ImageClassificationAnnotationOrBuilder - extends +public interface ImageClassificationAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Label of image.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ boolean hasAnnotationSpec(); /** - * - * *
    * Label of image.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec(); /** - * - * *
    * Label of image.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfig.java similarity index 65% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfig.java index 63256900..c3fe63fa 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Config for image classification human labeling task.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImageClassificationConfig} */ -public final class ImageClassificationConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageClassificationConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ImageClassificationConfig) ImageClassificationConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageClassificationConfig.newBuilder() to construct. private ImageClassificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageClassificationConfig() { annotationSpecSet_ = ""; answerAggregationType_ = 0; @@ -44,15 +26,16 @@ private ImageClassificationConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageClassificationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageClassificationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ImageClassificationConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - annotationSpecSet_ = s; - break; - } - case 16: - { - allowMultiLabel_ = input.readBool(); - break; - } - case 24: - { - int rawValue = input.readEnum(); + annotationSpecSet_ = s; + break; + } + case 16: { - answerAggregationType_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + allowMultiLabel_ = input.readBool(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + answerAggregationType_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,39 +85,34 @@ private ImageClassificationConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.class, - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.class, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder.class); } public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER = 1; private volatile java.lang.Object annotationSpecSet_; /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ @java.lang.Override @@ -145,29 +121,29 @@ public java.lang.String getAnnotationSpecSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; } } /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ @java.lang.Override - public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -178,15 +154,12 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { public static final int ALLOW_MULTI_LABEL_FIELD_NUMBER = 2; private boolean allowMultiLabel_; /** - * - * *
    * Optional. If allow_multi_label is true, contributors are able to choose
    * multiple labels for one image.
    * 
* * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMultiLabel. */ @java.lang.Override @@ -197,47 +170,31 @@ public boolean getAllowMultiLabel() { public static final int ANSWER_AGGREGATION_TYPE_FIELD_NUMBER = 3; private int answerAggregationType_; /** - * - * *
    * Optional. The type of how to aggregate answers.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for answerAggregationType. */ - @java.lang.Override - public int getAnswerAggregationTypeValue() { + @java.lang.Override public int getAnswerAggregationTypeValue() { return answerAggregationType_; } /** - * - * *
    * Optional. The type of how to aggregate answers.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The answerAggregationType. */ - @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.StringAggregationType getAnswerAggregationType() { + @java.lang.Override public com.google.cloud.datalabeling.v1beta1.StringAggregationType getAnswerAggregationType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.StringAggregationType result = - com.google.cloud.datalabeling.v1beta1.StringAggregationType.valueOf(answerAggregationType_); - return result == null - ? com.google.cloud.datalabeling.v1beta1.StringAggregationType.UNRECOGNIZED - : result; + com.google.cloud.datalabeling.v1beta1.StringAggregationType result = com.google.cloud.datalabeling.v1beta1.StringAggregationType.valueOf(answerAggregationType_); + return result == null ? com.google.cloud.datalabeling.v1beta1.StringAggregationType.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -249,17 +206,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(annotationSpecSet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecSet_); } if (allowMultiLabel_ != false) { output.writeBool(2, allowMultiLabel_); } - if (answerAggregationType_ - != com.google.cloud.datalabeling.v1beta1.StringAggregationType - .STRING_AGGREGATION_TYPE_UNSPECIFIED - .getNumber()) { + if (answerAggregationType_ != com.google.cloud.datalabeling.v1beta1.StringAggregationType.STRING_AGGREGATION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(3, answerAggregationType_); } unknownFields.writeTo(output); @@ -275,13 +230,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, annotationSpecSet_); } if (allowMultiLabel_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowMultiLabel_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, allowMultiLabel_); } - if (answerAggregationType_ - != com.google.cloud.datalabeling.v1beta1.StringAggregationType - .STRING_AGGREGATION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, answerAggregationType_); + if (answerAggregationType_ != com.google.cloud.datalabeling.v1beta1.StringAggregationType.STRING_AGGREGATION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, answerAggregationType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -291,16 +245,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.datalabeling.v1beta1.ImageClassificationConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig other = - (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) obj; + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig other = (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) obj; - if (!getAnnotationSpecSet().equals(other.getAnnotationSpecSet())) return false; - if (getAllowMultiLabel() != other.getAllowMultiLabel()) return false; + if (!getAnnotationSpecSet() + .equals(other.getAnnotationSpecSet())) return false; + if (getAllowMultiLabel() + != other.getAllowMultiLabel()) return false; if (answerAggregationType_ != other.answerAggregationType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -316,7 +271,8 @@ public int hashCode() { hash = (37 * hash) + ANNOTATION_SPEC_SET_FIELD_NUMBER; hash = (53 * hash) + getAnnotationSpecSet().hashCode(); hash = (37 * hash) + ALLOW_MULTI_LABEL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMultiLabel()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMultiLabel()); hash = (37 * hash) + ANSWER_AGGREGATION_TYPE_FIELD_NUMBER; hash = (53 * hash) + answerAggregationType_; hash = (29 * hash) + unknownFields.hashCode(); @@ -325,127 +281,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig 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.datalabeling.v1beta1.ImageClassificationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Config for image classification human labeling task.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImageClassificationConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ImageClassificationConfig) com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.class, - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.class, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.newBuilder() @@ -453,15 +399,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(); @@ -475,14 +422,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } @@ -497,8 +443,7 @@ public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig result = - new com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig(this); + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig result = new com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig(this); result.annotationSpecSet_ = annotationSpecSet_; result.allowMultiLabel_ = allowMultiLabel_; result.answerAggregationType_ = answerAggregationType_; @@ -510,50 +455,46 @@ public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig 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.datalabeling.v1beta1.ImageClassificationConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig other) { - if (other - == com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig other) { + if (other == com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance()) return this; if (!other.getAnnotationSpecSet().isEmpty()) { annotationSpecSet_ = other.annotationSpecSet_; onChanged(); @@ -583,9 +524,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -597,20 +536,18 @@ public Builder mergeFrom( private java.lang.Object annotationSpecSet_ = ""; /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ public java.lang.String getAnnotationSpecSet() { java.lang.Object ref = annotationSpecSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; @@ -619,21 +556,20 @@ public java.lang.String getAnnotationSpecSet() { } } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ - public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -641,77 +577,67 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { } } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSet(java.lang.String value) { + public Builder setAnnotationSpecSet( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecSet_ = value; onChanged(); return this; } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAnnotationSpecSet() { - + annotationSpecSet_ = getDefaultInstance().getAnnotationSpecSet(); onChanged(); return this; } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecSetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecSet_ = value; onChanged(); return this; } - private boolean allowMultiLabel_; + private boolean allowMultiLabel_ ; /** - * - * *
      * Optional. If allow_multi_label is true, contributors are able to choose
      * multiple labels for one image.
      * 
* * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMultiLabel. */ @java.lang.Override @@ -719,38 +645,32 @@ public boolean getAllowMultiLabel() { return allowMultiLabel_; } /** - * - * *
      * Optional. If allow_multi_label is true, contributors are able to choose
      * multiple labels for one image.
      * 
* * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The allowMultiLabel to set. * @return This builder for chaining. */ public Builder setAllowMultiLabel(boolean value) { - + allowMultiLabel_ = value; onChanged(); return this; } /** - * - * *
      * Optional. If allow_multi_label is true, contributors are able to choose
      * multiple labels for one image.
      * 
* * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAllowMultiLabel() { - + allowMultiLabel_ = false; onChanged(); return this; @@ -758,111 +678,80 @@ public Builder clearAllowMultiLabel() { private int answerAggregationType_ = 0; /** - * - * *
      * Optional. The type of how to aggregate answers.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for answerAggregationType. */ - @java.lang.Override - public int getAnswerAggregationTypeValue() { + @java.lang.Override public int getAnswerAggregationTypeValue() { return answerAggregationType_; } /** - * - * *
      * Optional. The type of how to aggregate answers.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The enum numeric value on the wire for answerAggregationType to set. * @return This builder for chaining. */ public Builder setAnswerAggregationTypeValue(int value) { - + answerAggregationType_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The type of how to aggregate answers.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The answerAggregationType. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.StringAggregationType getAnswerAggregationType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.StringAggregationType result = - com.google.cloud.datalabeling.v1beta1.StringAggregationType.valueOf( - answerAggregationType_); - return result == null - ? com.google.cloud.datalabeling.v1beta1.StringAggregationType.UNRECOGNIZED - : result; + com.google.cloud.datalabeling.v1beta1.StringAggregationType result = com.google.cloud.datalabeling.v1beta1.StringAggregationType.valueOf(answerAggregationType_); + return result == null ? com.google.cloud.datalabeling.v1beta1.StringAggregationType.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The type of how to aggregate answers.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * @param value The answerAggregationType to set. * @return This builder for chaining. */ - public Builder setAnswerAggregationType( - com.google.cloud.datalabeling.v1beta1.StringAggregationType value) { + public Builder setAnswerAggregationType(com.google.cloud.datalabeling.v1beta1.StringAggregationType value) { if (value == null) { throw new NullPointerException(); } - + answerAggregationType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. The type of how to aggregate answers.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return This builder for chaining. */ public Builder clearAnswerAggregationType() { - + answerAggregationType_ = 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); } @@ -872,32 +761,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ImageClassificationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - private static final com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig(); } - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageClassificationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageClassificationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageClassificationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageClassificationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -909,8 +796,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfigOrBuilder.java similarity index 58% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfigOrBuilder.java index d1a91c09..906e7816 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfigOrBuilder.java @@ -1,92 +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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface ImageClassificationConfigOrBuilder - extends +public interface ImageClassificationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ImageClassificationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ java.lang.String getAnnotationSpecSet(); /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ - com.google.protobuf.ByteString getAnnotationSpecSetBytes(); + com.google.protobuf.ByteString + getAnnotationSpecSetBytes(); /** - * - * *
    * Optional. If allow_multi_label is true, contributors are able to choose
    * multiple labels for one image.
    * 
* * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMultiLabel. */ boolean getAllowMultiLabel(); /** - * - * *
    * Optional. The type of how to aggregate answers.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The enum numeric value on the wire for answerAggregationType. */ int getAnswerAggregationTypeValue(); /** - * - * *
    * Optional. The type of how to aggregate answers.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The answerAggregationType. */ com.google.cloud.datalabeling.v1beta1.StringAggregationType getAnswerAggregationType(); diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayload.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayload.java similarity index 70% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayload.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayload.java index 2aeee780..1866fb62 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayload.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayload.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/datalabeling/v1beta1/data_payloads.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Container of information about an image.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImagePayload} */ -public final class ImagePayload extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImagePayload extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ImagePayload) ImagePayloadOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImagePayload.newBuilder() to construct. private ImagePayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImagePayload() { mimeType_ = ""; imageThumbnail_ = com.google.protobuf.ByteString.EMPTY; @@ -46,15 +28,16 @@ private ImagePayload() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImagePayload(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImagePayload( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,39 +56,36 @@ private ImagePayload( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 18: - { - imageThumbnail_ = input.readBytes(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + mimeType_ = s; + break; + } + case 18: { - imageUri_ = s; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + imageThumbnail_ = input.readBytes(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); - signedUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + imageUri_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + signedUri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,39 +93,34 @@ private ImagePayload( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads - .internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads - .internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImagePayload.class, - com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImagePayload.class, com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder.class); } public static final int MIME_TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object mimeType_; /** - * - * *
    * Image format.
    * 
* * string mime_type = 1; - * * @return The mimeType. */ @java.lang.Override @@ -154,29 +129,29 @@ 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; } } /** - * - * *
    * Image format.
    * 
* * string mime_type = 1; - * * @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 { @@ -187,14 +162,11 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { public static final int IMAGE_THUMBNAIL_FIELD_NUMBER = 2; private com.google.protobuf.ByteString imageThumbnail_; /** - * - * *
    * A byte string of a thumbnail image.
    * 
* * bytes image_thumbnail = 2; - * * @return The imageThumbnail. */ @java.lang.Override @@ -205,14 +177,11 @@ public com.google.protobuf.ByteString getImageThumbnail() { public static final int IMAGE_URI_FIELD_NUMBER = 3; private volatile java.lang.Object imageUri_; /** - * - * *
    * Image uri from the user bucket.
    * 
* * string image_uri = 3; - * * @return The imageUri. */ @java.lang.Override @@ -221,29 +190,29 @@ public java.lang.String getImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; } } /** - * - * *
    * Image uri from the user bucket.
    * 
* * string image_uri = 3; - * * @return The bytes for imageUri. */ @java.lang.Override - public com.google.protobuf.ByteString getImageUriBytes() { + public com.google.protobuf.ByteString + getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); imageUri_ = b; return b; } else { @@ -254,14 +223,11 @@ public com.google.protobuf.ByteString getImageUriBytes() { public static final int SIGNED_URI_FIELD_NUMBER = 4; private volatile java.lang.Object signedUri_; /** - * - * *
    * Signed uri of the image file in the service bucket.
    * 
* * string signed_uri = 4; - * * @return The signedUri. */ @java.lang.Override @@ -270,29 +236,29 @@ public java.lang.String getSignedUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); signedUri_ = s; return s; } } /** - * - * *
    * Signed uri of the image file in the service bucket.
    * 
* * string signed_uri = 4; - * * @return The bytes for signedUri. */ @java.lang.Override - public com.google.protobuf.ByteString getSignedUriBytes() { + public com.google.protobuf.ByteString + getSignedUriBytes() { java.lang.Object ref = signedUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); signedUri_ = b; return b; } else { @@ -301,7 +267,6 @@ public com.google.protobuf.ByteString getSignedUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -313,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mimeType_); } @@ -339,7 +305,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mimeType_); } if (!imageThumbnail_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, imageThumbnail_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, imageThumbnail_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, imageUri_); @@ -355,18 +322,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.datalabeling.v1beta1.ImagePayload)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ImagePayload other = - (com.google.cloud.datalabeling.v1beta1.ImagePayload) obj; + com.google.cloud.datalabeling.v1beta1.ImagePayload other = (com.google.cloud.datalabeling.v1beta1.ImagePayload) obj; - if (!getMimeType().equals(other.getMimeType())) return false; - if (!getImageThumbnail().equals(other.getImageThumbnail())) return false; - if (!getImageUri().equals(other.getImageUri())) return false; - if (!getSignedUri().equals(other.getSignedUri())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; + if (!getImageThumbnail() + .equals(other.getImageThumbnail())) return false; + if (!getImageUri() + .equals(other.getImageUri())) return false; + if (!getSignedUri() + .equals(other.getSignedUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -392,126 +362,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ImagePayload 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.datalabeling.v1beta1.ImagePayload parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ImagePayload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Container of information about an image.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImagePayload} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ImagePayload) com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads - .internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads - .internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImagePayload.class, - com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImagePayload.class, com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ImagePayload.newBuilder() @@ -519,15 +480,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(); @@ -543,9 +505,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads - .internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_descriptor; } @java.lang.Override @@ -564,8 +526,7 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayload build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImagePayload buildPartial() { - com.google.cloud.datalabeling.v1beta1.ImagePayload result = - new com.google.cloud.datalabeling.v1beta1.ImagePayload(this); + com.google.cloud.datalabeling.v1beta1.ImagePayload result = new com.google.cloud.datalabeling.v1beta1.ImagePayload(this); result.mimeType_ = mimeType_; result.imageThumbnail_ = imageThumbnail_; result.imageUri_ = imageUri_; @@ -578,39 +539,38 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayload buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.ImagePayload) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImagePayload) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImagePayload)other); } else { super.mergeFrom(other); return this; @@ -618,8 +578,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ImagePayload other) { - if (other == com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance()) return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; onChanged(); @@ -654,8 +613,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ImagePayload) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ImagePayload) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -667,20 +625,18 @@ public Builder mergeFrom( private java.lang.Object mimeType_ = ""; /** - * - * *
      * Image format.
      * 
* * string mime_type = 1; - * * @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; @@ -689,21 +645,20 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Image format.
      * 
* * string mime_type = 1; - * * @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 { @@ -711,61 +666,54 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Image format.
      * 
* * string mime_type = 1; - * * @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; } /** - * - * *
      * Image format.
      * 
* * string mime_type = 1; - * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** - * - * *
      * Image format.
      * 
* * string mime_type = 1; - * * @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; @@ -773,14 +721,11 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString imageThumbnail_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * A byte string of a thumbnail image.
      * 
* * bytes image_thumbnail = 2; - * * @return The imageThumbnail. */ @java.lang.Override @@ -788,39 +733,33 @@ public com.google.protobuf.ByteString getImageThumbnail() { return imageThumbnail_; } /** - * - * *
      * A byte string of a thumbnail image.
      * 
* * bytes image_thumbnail = 2; - * * @param value The imageThumbnail to set. * @return This builder for chaining. */ public Builder setImageThumbnail(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imageThumbnail_ = value; onChanged(); return this; } /** - * - * *
      * A byte string of a thumbnail image.
      * 
* * bytes image_thumbnail = 2; - * * @return This builder for chaining. */ public Builder clearImageThumbnail() { - + imageThumbnail_ = getDefaultInstance().getImageThumbnail(); onChanged(); return this; @@ -828,20 +767,18 @@ public Builder clearImageThumbnail() { private java.lang.Object imageUri_ = ""; /** - * - * *
      * Image uri from the user bucket.
      * 
* * string image_uri = 3; - * * @return The imageUri. */ public java.lang.String getImageUri() { java.lang.Object ref = imageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; @@ -850,21 +787,20 @@ public java.lang.String getImageUri() { } } /** - * - * *
      * Image uri from the user bucket.
      * 
* * string image_uri = 3; - * * @return The bytes for imageUri. */ - public com.google.protobuf.ByteString getImageUriBytes() { + public com.google.protobuf.ByteString + getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); imageUri_ = b; return b; } else { @@ -872,61 +808,54 @@ public com.google.protobuf.ByteString getImageUriBytes() { } } /** - * - * *
      * Image uri from the user bucket.
      * 
* * string image_uri = 3; - * * @param value The imageUri to set. * @return This builder for chaining. */ - public Builder setImageUri(java.lang.String value) { + public Builder setImageUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imageUri_ = value; onChanged(); return this; } /** - * - * *
      * Image uri from the user bucket.
      * 
* * string image_uri = 3; - * * @return This builder for chaining. */ public Builder clearImageUri() { - + imageUri_ = getDefaultInstance().getImageUri(); onChanged(); return this; } /** - * - * *
      * Image uri from the user bucket.
      * 
* * string image_uri = 3; - * * @param value The bytes for imageUri to set. * @return This builder for chaining. */ - public Builder setImageUriBytes(com.google.protobuf.ByteString value) { + public Builder setImageUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageUri_ = value; onChanged(); return this; @@ -934,20 +863,18 @@ public Builder setImageUriBytes(com.google.protobuf.ByteString value) { private java.lang.Object signedUri_ = ""; /** - * - * *
      * Signed uri of the image file in the service bucket.
      * 
* * string signed_uri = 4; - * * @return The signedUri. */ public java.lang.String getSignedUri() { java.lang.Object ref = signedUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); signedUri_ = s; return s; @@ -956,21 +883,20 @@ public java.lang.String getSignedUri() { } } /** - * - * *
      * Signed uri of the image file in the service bucket.
      * 
* * string signed_uri = 4; - * * @return The bytes for signedUri. */ - public com.google.protobuf.ByteString getSignedUriBytes() { + public com.google.protobuf.ByteString + getSignedUriBytes() { java.lang.Object ref = signedUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); signedUri_ = b; return b; } else { @@ -978,68 +904,61 @@ public com.google.protobuf.ByteString getSignedUriBytes() { } } /** - * - * *
      * Signed uri of the image file in the service bucket.
      * 
* * string signed_uri = 4; - * * @param value The signedUri to set. * @return This builder for chaining. */ - public Builder setSignedUri(java.lang.String value) { + public Builder setSignedUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + signedUri_ = value; onChanged(); return this; } /** - * - * *
      * Signed uri of the image file in the service bucket.
      * 
* * string signed_uri = 4; - * * @return This builder for chaining. */ public Builder clearSignedUri() { - + signedUri_ = getDefaultInstance().getSignedUri(); onChanged(); return this; } /** - * - * *
      * Signed uri of the image file in the service bucket.
      * 
* * string signed_uri = 4; - * * @param value The bytes for signedUri to set. * @return This builder for chaining. */ - public Builder setSignedUriBytes(com.google.protobuf.ByteString value) { + public Builder setSignedUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + signedUri_ = 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); } @@ -1049,12 +968,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ImagePayload) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImagePayload) private static final com.google.cloud.datalabeling.v1beta1.ImagePayload DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ImagePayload(); } @@ -1063,16 +982,16 @@ public static com.google.cloud.datalabeling.v1beta1.ImagePayload getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImagePayload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImagePayload(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImagePayload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImagePayload(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1087,4 +1006,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ImagePayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayloadOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayloadOrBuilder.java similarity index 62% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayloadOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayloadOrBuilder.java index ac665631..4719965c 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayloadOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayloadOrBuilder.java @@ -1,113 +1,79 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/data_payloads.proto package com.google.cloud.datalabeling.v1beta1; -public interface ImagePayloadOrBuilder - extends +public interface ImagePayloadOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ImagePayload) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Image format.
    * 
* * string mime_type = 1; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Image format.
    * 
* * string mime_type = 1; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * A byte string of a thumbnail image.
    * 
* * bytes image_thumbnail = 2; - * * @return The imageThumbnail. */ com.google.protobuf.ByteString getImageThumbnail(); /** - * - * *
    * Image uri from the user bucket.
    * 
* * string image_uri = 3; - * * @return The imageUri. */ java.lang.String getImageUri(); /** - * - * *
    * Image uri from the user bucket.
    * 
* * string image_uri = 3; - * * @return The bytes for imageUri. */ - com.google.protobuf.ByteString getImageUriBytes(); + com.google.protobuf.ByteString + getImageUriBytes(); /** - * - * *
    * Signed uri of the image file in the service bucket.
    * 
* * string signed_uri = 4; - * * @return The signedUri. */ java.lang.String getSignedUri(); /** - * - * *
    * Signed uri of the image file in the service bucket.
    * 
* * string signed_uri = 4; - * * @return The bytes for signedUri. */ - com.google.protobuf.ByteString getSignedUriBytes(); + com.google.protobuf.ByteString + getSignedUriBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotation.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotation.java similarity index 68% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotation.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotation.java index c3295c6b..764c828e 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotation.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotation.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * A polyline for the image annotation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation} */ -public final class ImagePolylineAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImagePolylineAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) ImagePolylineAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImagePolylineAnnotation.newBuilder() to construct. private ImagePolylineAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ImagePolylineAnnotation() {} + private ImagePolylineAnnotation() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImagePolylineAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImagePolylineAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,65 +52,54 @@ private ImagePolylineAnnotation( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; - if (annotationSpec_ != null) { - subBuilder = annotationSpec_.toBuilder(); - } - annotationSpec_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotationSpec_); - annotationSpec_ = subBuilder.buildPartial(); - } + case 10: { + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; + if (annotationSpec_ != null) { + subBuilder = annotationSpec_.toBuilder(); + } + annotationSpec_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotationSpec_); + annotationSpec_ = subBuilder.buildPartial(); + } - break; + break; + } + case 18: { + com.google.cloud.datalabeling.v1beta1.Polyline.Builder subBuilder = null; + if (polyCase_ == 2) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.Polyline) poly_).toBuilder(); } - case 18: - { - com.google.cloud.datalabeling.v1beta1.Polyline.Builder subBuilder = null; - if (polyCase_ == 2) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.Polyline) poly_).toBuilder(); - } - poly_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.Polyline.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.Polyline) poly_); - poly_ = subBuilder.buildPartial(); - } - polyCase_ = 2; - break; + poly_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.Polyline.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.Polyline) poly_); + poly_ = subBuilder.buildPartial(); + } + polyCase_ = 2; + break; + } + case 26: { + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder subBuilder = null; + if (polyCase_ == 3) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_).toBuilder(); } - case 26: - { - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder subBuilder = null; - if (polyCase_ == 3) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_).toBuilder(); - } - poly_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_); - poly_ = subBuilder.buildPartial(); - } - polyCase_ = 3; - break; + poly_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_); + poly_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + polyCase_ = 3; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -134,40 +107,35 @@ private ImagePolylineAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.class, - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.class, com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder.class); } private int polyCase_ = 0; private java.lang.Object poly_; - public enum PolyCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { POLYLINE(2), NORMALIZED_POLYLINE(3), POLY_NOT_SET(0); private final int value; - private PolyCase(int value) { this.value = value; } @@ -183,30 +151,26 @@ public static PolyCase valueOf(int value) { public static PolyCase forNumber(int value) { switch (value) { - case 2: - return POLYLINE; - case 3: - return NORMALIZED_POLYLINE; - case 0: - return POLY_NOT_SET; - default: - return null; + case 2: return POLYLINE; + case 3: return NORMALIZED_POLYLINE; + case 0: return POLY_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public PolyCase getPolyCase() { - return PolyCase.forNumber(polyCase_); + public PolyCase + getPolyCase() { + return PolyCase.forNumber( + polyCase_); } public static final int POLYLINE_FIELD_NUMBER = 2; /** * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; - * * @return Whether the polyline field is set. */ @java.lang.Override @@ -215,21 +179,22 @@ public boolean hasPolyline() { } /** * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; - * * @return The polyline. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.Polyline getPolyline() { if (polyCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.Polyline) poly_; + return (com.google.cloud.datalabeling.v1beta1.Polyline) poly_; } return com.google.cloud.datalabeling.v1beta1.Polyline.getDefaultInstance(); } - /** .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; */ + /** + * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; + */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder getPolylineOrBuilder() { if (polyCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.Polyline) poly_; + return (com.google.cloud.datalabeling.v1beta1.Polyline) poly_; } return com.google.cloud.datalabeling.v1beta1.Polyline.getDefaultInstance(); } @@ -237,7 +202,6 @@ public com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder getPolylineOrBuil public static final int NORMALIZED_POLYLINE_FIELD_NUMBER = 3; /** * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; - * * @return Whether the normalizedPolyline field is set. */ @java.lang.Override @@ -246,22 +210,22 @@ public boolean hasNormalizedPolyline() { } /** * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; - * * @return The normalizedPolyline. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.NormalizedPolyline getNormalizedPolyline() { if (polyCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_; + return (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_; } return com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.getDefaultInstance(); } - /** .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; */ + /** + * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; + */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder - getNormalizedPolylineOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder getNormalizedPolylineOrBuilder() { if (polyCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_; + return (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_; } return com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.getDefaultInstance(); } @@ -269,14 +233,11 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedPolyline getNormalizedPol public static final int ANNOTATION_SPEC_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; /** - * - * *
    * Label of this polyline.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ @java.lang.Override @@ -284,25 +245,18 @@ public boolean hasAnnotationSpec() { return annotationSpec_ != null; } /** - * - * *
    * Label of this polyline.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } /** - * - * *
    * Label of this polyline.
    * 
@@ -310,13 +264,11 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder - getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { return getAnnotationSpec(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -328,7 +280,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 (annotationSpec_ != null) { output.writeMessage(1, getAnnotationSpec()); } @@ -348,17 +301,16 @@ public int getSerializedSize() { size = 0; if (annotationSpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnnotationSpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAnnotationSpec()); } if (polyCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.datalabeling.v1beta1.Polyline) poly_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.datalabeling.v1beta1.Polyline) poly_); } if (polyCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -368,25 +320,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.datalabeling.v1beta1.ImagePolylineAnnotation)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation other = - (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) obj; + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation other = (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) obj; if (hasAnnotationSpec() != other.hasAnnotationSpec()) return false; if (hasAnnotationSpec()) { - if (!getAnnotationSpec().equals(other.getAnnotationSpec())) return false; + if (!getAnnotationSpec() + .equals(other.getAnnotationSpec())) return false; } if (!getPolyCase().equals(other.getPolyCase())) return false; switch (polyCase_) { case 2: - if (!getPolyline().equals(other.getPolyline())) return false; + if (!getPolyline() + .equals(other.getPolyline())) return false; break; case 3: - if (!getNormalizedPolyline().equals(other.getNormalizedPolyline())) return false; + if (!getNormalizedPolyline() + .equals(other.getNormalizedPolyline())) return false; break; case 0: default: @@ -424,127 +378,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation 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.datalabeling.v1beta1.ImagePolylineAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 polyline for the image annotation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.class, - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.class, com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.newBuilder() @@ -552,15 +496,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(); @@ -576,14 +521,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.getDefaultInstance(); } @@ -598,8 +542,7 @@ public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation buildPartial() { - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation result = - new com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation(this); + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation result = new com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation(this); if (polyCase_ == 2) { if (polylineBuilder_ == null) { result.poly_ = poly_; @@ -628,39 +571,38 @@ public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation 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.datalabeling.v1beta1.ImagePolylineAnnotation) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation)other); } else { super.mergeFrom(other); return this; @@ -668,27 +610,22 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation other) { - if (other - == com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.getDefaultInstance()) return this; if (other.hasAnnotationSpec()) { mergeAnnotationSpec(other.getAnnotationSpec()); } switch (other.getPolyCase()) { - case POLYLINE: - { - mergePolyline(other.getPolyline()); - break; - } - case NORMALIZED_POLYLINE: - { - mergeNormalizedPolyline(other.getNormalizedPolyline()); - break; - } - case POLY_NOT_SET: - { - break; - } + case POLYLINE: { + mergePolyline(other.getPolyline()); + break; + } + case NORMALIZED_POLYLINE: { + mergeNormalizedPolyline(other.getNormalizedPolyline()); + break; + } + case POLY_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -709,9 +646,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -720,12 +655,12 @@ public Builder mergeFrom( } return this; } - private int polyCase_ = 0; private java.lang.Object poly_; - - public PolyCase getPolyCase() { - return PolyCase.forNumber(polyCase_); + public PolyCase + getPolyCase() { + return PolyCase.forNumber( + polyCase_); } public Builder clearPoly() { @@ -735,14 +670,11 @@ public Builder clearPoly() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Polyline, - com.google.cloud.datalabeling.v1beta1.Polyline.Builder, - com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder> - polylineBuilder_; + com.google.cloud.datalabeling.v1beta1.Polyline, com.google.cloud.datalabeling.v1beta1.Polyline.Builder, com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder> polylineBuilder_; /** * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; - * * @return Whether the polyline field is set. */ @java.lang.Override @@ -751,7 +683,6 @@ public boolean hasPolyline() { } /** * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; - * * @return The polyline. */ @java.lang.Override @@ -768,7 +699,9 @@ public com.google.cloud.datalabeling.v1beta1.Polyline getPolyline() { return com.google.cloud.datalabeling.v1beta1.Polyline.getDefaultInstance(); } } - /** .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; */ + /** + * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; + */ public Builder setPolyline(com.google.cloud.datalabeling.v1beta1.Polyline value) { if (polylineBuilder_ == null) { if (value == null) { @@ -782,7 +715,9 @@ public Builder setPolyline(com.google.cloud.datalabeling.v1beta1.Polyline value) polyCase_ = 2; return this; } - /** .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; */ + /** + * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; + */ public Builder setPolyline( com.google.cloud.datalabeling.v1beta1.Polyline.Builder builderForValue) { if (polylineBuilder_ == null) { @@ -794,16 +729,15 @@ public Builder setPolyline( polyCase_ = 2; return this; } - /** .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; */ + /** + * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; + */ public Builder mergePolyline(com.google.cloud.datalabeling.v1beta1.Polyline value) { if (polylineBuilder_ == null) { - if (polyCase_ == 2 - && poly_ != com.google.cloud.datalabeling.v1beta1.Polyline.getDefaultInstance()) { - poly_ = - com.google.cloud.datalabeling.v1beta1.Polyline.newBuilder( - (com.google.cloud.datalabeling.v1beta1.Polyline) poly_) - .mergeFrom(value) - .buildPartial(); + if (polyCase_ == 2 && + poly_ != com.google.cloud.datalabeling.v1beta1.Polyline.getDefaultInstance()) { + poly_ = com.google.cloud.datalabeling.v1beta1.Polyline.newBuilder((com.google.cloud.datalabeling.v1beta1.Polyline) poly_) + .mergeFrom(value).buildPartial(); } else { poly_ = value; } @@ -818,7 +752,9 @@ public Builder mergePolyline(com.google.cloud.datalabeling.v1beta1.Polyline valu polyCase_ = 2; return this; } - /** .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; */ + /** + * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; + */ public Builder clearPolyline() { if (polylineBuilder_ == null) { if (polyCase_ == 2) { @@ -835,11 +771,15 @@ public Builder clearPolyline() { } return this; } - /** .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; */ + /** + * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; + */ public com.google.cloud.datalabeling.v1beta1.Polyline.Builder getPolylineBuilder() { return getPolylineFieldBuilder().getBuilder(); } - /** .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; */ + /** + * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; + */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder getPolylineOrBuilder() { if ((polyCase_ == 2) && (polylineBuilder_ != null)) { @@ -851,40 +791,32 @@ public com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder getPolylineOrBuil return com.google.cloud.datalabeling.v1beta1.Polyline.getDefaultInstance(); } } - /** .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; */ + /** + * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; + */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Polyline, - com.google.cloud.datalabeling.v1beta1.Polyline.Builder, - com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder> + com.google.cloud.datalabeling.v1beta1.Polyline, com.google.cloud.datalabeling.v1beta1.Polyline.Builder, com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder> getPolylineFieldBuilder() { if (polylineBuilder_ == null) { if (!(polyCase_ == 2)) { poly_ = com.google.cloud.datalabeling.v1beta1.Polyline.getDefaultInstance(); } - polylineBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Polyline, - com.google.cloud.datalabeling.v1beta1.Polyline.Builder, - com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder>( + polylineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.Polyline, com.google.cloud.datalabeling.v1beta1.Polyline.Builder, com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder>( (com.google.cloud.datalabeling.v1beta1.Polyline) poly_, getParentForChildren(), isClean()); poly_ = null; } polyCase_ = 2; - onChanged(); - ; + onChanged();; return polylineBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline, - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder, - com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder> - normalizedPolylineBuilder_; + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline, com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder> normalizedPolylineBuilder_; /** * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; - * * @return Whether the normalizedPolyline field is set. */ @java.lang.Override @@ -893,7 +825,6 @@ public boolean hasNormalizedPolyline() { } /** * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; - * * @return The normalizedPolyline. */ @java.lang.Override @@ -913,8 +844,7 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedPolyline getNormalizedPol /** * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; */ - public Builder setNormalizedPolyline( - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline value) { + public Builder setNormalizedPolyline(com.google.cloud.datalabeling.v1beta1.NormalizedPolyline value) { if (normalizedPolylineBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -944,17 +874,12 @@ public Builder setNormalizedPolyline( /** * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; */ - public Builder mergeNormalizedPolyline( - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline value) { + public Builder mergeNormalizedPolyline(com.google.cloud.datalabeling.v1beta1.NormalizedPolyline value) { if (normalizedPolylineBuilder_ == null) { - if (polyCase_ == 3 - && poly_ - != com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.getDefaultInstance()) { - poly_ = - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.newBuilder( - (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_) - .mergeFrom(value) - .buildPartial(); + if (polyCase_ == 3 && + poly_ != com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.getDefaultInstance()) { + poly_ = com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.newBuilder((com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_) + .mergeFrom(value).buildPartial(); } else { poly_ = value; } @@ -991,16 +916,14 @@ public Builder clearNormalizedPolyline() { /** * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; */ - public com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder - getNormalizedPolylineBuilder() { + public com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder getNormalizedPolylineBuilder() { return getNormalizedPolylineFieldBuilder().getBuilder(); } /** * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder - getNormalizedPolylineOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder getNormalizedPolylineOrBuilder() { if ((polyCase_ == 3) && (normalizedPolylineBuilder_ != null)) { return normalizedPolylineBuilder_.getMessageOrBuilder(); } else { @@ -1014,73 +937,54 @@ public Builder clearNormalizedPolyline() { * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline, - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder, - com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder> + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline, com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder> getNormalizedPolylineFieldBuilder() { if (normalizedPolylineBuilder_ == null) { if (!(polyCase_ == 3)) { poly_ = com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.getDefaultInstance(); } - normalizedPolylineBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline, - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder, - com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder>( + normalizedPolylineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline, com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder>( (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_, getParentForChildren(), isClean()); poly_ = null; } polyCase_ = 3; - onChanged(); - ; + onChanged();; return normalizedPolylineBuilder_; } private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> - annotationSpecBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecBuilder_; /** - * - * *
      * Label of this polyline.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ public boolean hasAnnotationSpec() { return annotationSpecBuilder_ != null || annotationSpec_ != null; } /** - * - * *
      * Label of this polyline.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { if (annotationSpecBuilder_ == null) { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } else { return annotationSpecBuilder_.getMessage(); } } /** - * - * *
      * Label of this polyline.
      * 
@@ -1101,8 +1005,6 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio return this; } /** - * - * *
      * Label of this polyline.
      * 
@@ -1121,8 +1023,6 @@ public Builder setAnnotationSpec( return this; } /** - * - * *
      * Label of this polyline.
      * 
@@ -1133,9 +1033,7 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat if (annotationSpecBuilder_ == null) { if (annotationSpec_ != null) { annotationSpec_ = - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_).mergeFrom(value).buildPartial(); } else { annotationSpec_ = value; } @@ -1147,8 +1045,6 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat return this; } /** - * - * *
      * Label of this polyline.
      * 
@@ -1167,8 +1063,6 @@ public Builder clearAnnotationSpec() { return this; } /** - * - * *
      * Label of this polyline.
      * 
@@ -1176,32 +1070,26 @@ public Builder clearAnnotationSpec() { * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotationSpecBuilder() { - + onChanged(); return getAnnotationSpecFieldBuilder().getBuilder(); } /** - * - * *
      * Label of this polyline.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder - getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { if (annotationSpecBuilder_ != null) { return annotationSpecBuilder_.getMessageOrBuilder(); } else { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } } /** - * - * *
      * Label of this polyline.
      * 
@@ -1209,24 +1097,21 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> getAnnotationSpecFieldBuilder() { if (annotationSpecBuilder_ == null) { - annotationSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( - getAnnotationSpec(), getParentForChildren(), isClean()); + annotationSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( + getAnnotationSpec(), + getParentForChildren(), + isClean()); annotationSpec_ = null; } return annotationSpecBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1236,13 +1121,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) - private static final com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation(); } @@ -1251,16 +1135,16 @@ public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImagePolylineAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImagePolylineAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImagePolylineAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImagePolylineAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1275,4 +1159,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotationOrBuilder.java similarity index 69% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotationOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotationOrBuilder.java index fa8d45c5..4094c6fb 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotationOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotationOrBuilder.java @@ -1,86 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface ImagePolylineAnnotationOrBuilder - extends +public interface ImagePolylineAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) com.google.protobuf.MessageOrBuilder { /** * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; - * * @return Whether the polyline field is set. */ boolean hasPolyline(); /** * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; - * * @return The polyline. */ com.google.cloud.datalabeling.v1beta1.Polyline getPolyline(); - /** .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; */ + /** + * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; + */ com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder getPolylineOrBuilder(); /** * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; - * * @return Whether the normalizedPolyline field is set. */ boolean hasNormalizedPolyline(); /** * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; - * * @return The normalizedPolyline. */ com.google.cloud.datalabeling.v1beta1.NormalizedPolyline getNormalizedPolyline(); - /** .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; */ - com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder - getNormalizedPolylineOrBuilder(); + /** + * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; + */ + com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder getNormalizedPolylineOrBuilder(); /** - * - * *
    * Label of this polyline.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ boolean hasAnnotationSpec(); /** - * - * *
    * Label of this polyline.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec(); /** - * - * *
    * Label of this polyline.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotation.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotation.java similarity index 60% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotation.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotation.java index 62f73419..b19936be 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotation.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotation.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Image segmentation annotation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation} */ -public final class ImageSegmentationAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImageSegmentationAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) ImageSegmentationAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImageSegmentationAnnotation.newBuilder() to construct. private ImageSegmentationAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageSegmentationAnnotation() { mimeType_ = ""; imageBytes_ = com.google.protobuf.ByteString.EMPTY; @@ -44,15 +26,16 @@ private ImageSegmentationAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImageSegmentationAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImageSegmentationAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,44 +55,37 @@ private ImageSegmentationAnnotation( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - annotationColors_ = - com.google.protobuf.MapField.newMapField( - AnnotationColorsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datalabeling.v1beta1.AnnotationSpec> - annotationColors__ = - input.readMessage( - AnnotationColorsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - annotationColors_ - .getMutableMap() - .put(annotationColors__.getKey(), annotationColors__.getValue()); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + annotationColors_ = com.google.protobuf.MapField.newMapField( + AnnotationColorsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + com.google.protobuf.MapEntry + annotationColors__ = input.readMessage( + AnnotationColorsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + annotationColors_.getMutableMap().put( + annotationColors__.getKey(), annotationColors__.getValue()); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 26: - { - imageBytes_ = input.readBytes(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + mimeType_ = s; + break; + } + case 26: { + + imageBytes_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -117,63 +93,54 @@ private ImageSegmentationAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_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 internalGetAnnotationColors(); 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.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.class, - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.class, com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder.class); } public static final int ANNOTATION_COLORS_FIELD_NUMBER = 1; - private static final class AnnotationColorsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datalabeling.v1beta1.AnnotationSpec> - defaultEntry = + java.lang.String, com.google.cloud.datalabeling.v1beta1.AnnotationSpec> defaultEntry = com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance()); + .newDefaultInstance( + com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance()); } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datalabeling.v1beta1.AnnotationSpec> - annotationColors_; - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datalabeling.v1beta1.AnnotationSpec> - internalGetAnnotationColors() { + java.lang.String, com.google.cloud.datalabeling.v1beta1.AnnotationSpec> annotationColors_; + private com.google.protobuf.MapField + internalGetAnnotationColors() { if (annotationColors_ == null) { return com.google.protobuf.MapField.emptyMapField( AnnotationColorsDefaultEntryHolder.defaultEntry); @@ -185,92 +152,76 @@ public int getAnnotationColorsCount() { return internalGetAnnotationColors().getMap().size(); } /** - * - * *
    * The mapping between rgb color and annotation spec. The key is the rgb
    * color represented in format of rgb(0, 0, 0). The value is the
    * AnnotationSpec.
    * 
* - * - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; - * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; */ + @java.lang.Override - public boolean containsAnnotationColors(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotationColors( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotationColors().getMap().containsKey(key); } - /** Use {@link #getAnnotationColorsMap()} instead. */ + /** + * Use {@link #getAnnotationColorsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getAnnotationColors() { + public java.util.Map getAnnotationColors() { return getAnnotationColorsMap(); } /** - * - * *
    * The mapping between rgb color and annotation spec. The key is the rgb
    * color represented in format of rgb(0, 0, 0). The value is the
    * AnnotationSpec.
    * 
* - * - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; - * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; */ @java.lang.Override - public java.util.Map - getAnnotationColorsMap() { + + public java.util.Map getAnnotationColorsMap() { return internalGetAnnotationColors().getMap(); } /** - * - * *
    * The mapping between rgb color and annotation spec. The key is the rgb
    * color represented in format of rgb(0, 0, 0). The value is the
    * AnnotationSpec.
    * 
* - * - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; - * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; */ @java.lang.Override + public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationColorsOrDefault( - java.lang.String key, com.google.cloud.datalabeling.v1beta1.AnnotationSpec defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotationColors().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
    * The mapping between rgb color and annotation spec. The key is the rgb
    * color represented in format of rgb(0, 0, 0). The value is the
    * AnnotationSpec.
    * 
* - * - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; - * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; */ @java.lang.Override + public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationColorsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotationColors().getMap(); if (!map.containsKey(key)) { @@ -282,14 +233,11 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationColorsO public static final int MIME_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object mimeType_; /** - * - * *
    * Image format.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ @java.lang.Override @@ -298,29 +246,29 @@ 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; } } /** - * - * *
    * Image format.
    * 
* * 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 { @@ -331,14 +279,11 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { public static final int IMAGE_BYTES_FIELD_NUMBER = 3; private com.google.protobuf.ByteString imageBytes_; /** - * - * *
    * A byte string of a full image's color map.
    * 
* * bytes image_bytes = 3; - * * @return The imageBytes. */ @java.lang.Override @@ -347,7 +292,6 @@ public com.google.protobuf.ByteString getImageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -359,9 +303,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, internalGetAnnotationColors(), AnnotationColorsDefaultEntryHolder.defaultEntry, 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAnnotationColors(), + AnnotationColorsDefaultEntryHolder.defaultEntry, + 1); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mimeType_); } @@ -377,23 +326,22 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry - entry : internalGetAnnotationColors().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datalabeling.v1beta1.AnnotationSpec> - annotationColors__ = - AnnotationColorsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, annotationColors__); + for (java.util.Map.Entry entry + : internalGetAnnotationColors().getMap().entrySet()) { + com.google.protobuf.MapEntry + annotationColors__ = AnnotationColorsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, annotationColors__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mimeType_); } if (!imageBytes_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, imageBytes_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, imageBytes_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -403,17 +351,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.datalabeling.v1beta1.ImageSegmentationAnnotation)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation other = - (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) obj; + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation other = (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) obj; - if (!internalGetAnnotationColors().equals(other.internalGetAnnotationColors())) return false; - if (!getMimeType().equals(other.getMimeType())) return false; - if (!getImageBytes().equals(other.getImageBytes())) return false; + if (!internalGetAnnotationColors().equals( + other.internalGetAnnotationColors())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; + if (!getImageBytes() + .equals(other.getImageBytes())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -439,165 +389,156 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation 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.datalabeling.v1beta1.ImageSegmentationAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation - 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.datalabeling.v1beta1.ImageSegmentationAnnotation 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.datalabeling.v1beta1.ImageSegmentationAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Image segmentation annotation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetAnnotationColors(); 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 internalGetMutableAnnotationColors(); 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.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.class, - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.class, com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.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(); @@ -610,14 +551,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.getDefaultInstance(); } @@ -632,8 +572,7 @@ public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation buildPartial() { - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation result = - new com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation(this); + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation result = new com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation(this); int from_bitField0_ = bitField0_; result.annotationColors_ = internalGetAnnotationColors(); result.annotationColors_.makeImmutable(); @@ -647,51 +586,48 @@ public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation 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.datalabeling.v1beta1.ImageSegmentationAnnotation) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation other) { - if (other - == com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.getDefaultInstance()) - return this; - internalGetMutableAnnotationColors().mergeFrom(other.internalGetAnnotationColors()); + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation other) { + if (other == com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.getDefaultInstance()) return this; + internalGetMutableAnnotationColors().mergeFrom( + other.internalGetAnnotationColors()); if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; onChanged(); @@ -718,9 +654,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -729,32 +663,24 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datalabeling.v1beta1.AnnotationSpec> - annotationColors_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datalabeling.v1beta1.AnnotationSpec> - internalGetAnnotationColors() { + java.lang.String, com.google.cloud.datalabeling.v1beta1.AnnotationSpec> annotationColors_; + private com.google.protobuf.MapField + internalGetAnnotationColors() { if (annotationColors_ == null) { return com.google.protobuf.MapField.emptyMapField( AnnotationColorsDefaultEntryHolder.defaultEntry); } return annotationColors_; } - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datalabeling.v1beta1.AnnotationSpec> - internalGetMutableAnnotationColors() { - onChanged(); - ; + private com.google.protobuf.MapField + internalGetMutableAnnotationColors() { + onChanged();; if (annotationColors_ == null) { - annotationColors_ = - com.google.protobuf.MapField.newMapField( - AnnotationColorsDefaultEntryHolder.defaultEntry); + annotationColors_ = com.google.protobuf.MapField.newMapField( + AnnotationColorsDefaultEntryHolder.defaultEntry); } if (!annotationColors_.isMutable()) { annotationColors_ = annotationColors_.copy(); @@ -766,92 +692,76 @@ public int getAnnotationColorsCount() { return internalGetAnnotationColors().getMap().size(); } /** - * - * *
      * The mapping between rgb color and annotation spec. The key is the rgb
      * color represented in format of rgb(0, 0, 0). The value is the
      * AnnotationSpec.
      * 
* - * - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; - * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; */ + @java.lang.Override - public boolean containsAnnotationColors(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + public boolean containsAnnotationColors( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } return internalGetAnnotationColors().getMap().containsKey(key); } - /** Use {@link #getAnnotationColorsMap()} instead. */ + /** + * Use {@link #getAnnotationColorsMap()} instead. + */ @java.lang.Override @java.lang.Deprecated - public java.util.Map - getAnnotationColors() { + public java.util.Map getAnnotationColors() { return getAnnotationColorsMap(); } /** - * - * *
      * The mapping between rgb color and annotation spec. The key is the rgb
      * color represented in format of rgb(0, 0, 0). The value is the
      * AnnotationSpec.
      * 
* - * - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; - * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; */ @java.lang.Override - public java.util.Map - getAnnotationColorsMap() { + + public java.util.Map getAnnotationColorsMap() { return internalGetAnnotationColors().getMap(); } /** - * - * *
      * The mapping between rgb color and annotation spec. The key is the rgb
      * color represented in format of rgb(0, 0, 0). The value is the
      * AnnotationSpec.
      * 
* - * - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; - * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; */ @java.lang.Override + public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationColorsOrDefault( - java.lang.String key, com.google.cloud.datalabeling.v1beta1.AnnotationSpec defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotationColors().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * - * *
      * The mapping between rgb color and annotation spec. The key is the rgb
      * color represented in format of rgb(0, 0, 0). The value is the
      * AnnotationSpec.
      * 
* - * - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; - * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; */ @java.lang.Override + public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationColorsOrThrow( java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } + if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetAnnotationColors().getMap(); if (!map.containsKey(key)) { @@ -861,96 +771,87 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationColorsO } public Builder clearAnnotationColors() { - internalGetMutableAnnotationColors().getMutableMap().clear(); + internalGetMutableAnnotationColors().getMutableMap() + .clear(); return this; } /** - * - * *
      * The mapping between rgb color and annotation spec. The key is the rgb
      * color represented in format of rgb(0, 0, 0). The value is the
      * AnnotationSpec.
      * 
* - * - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; - * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; */ - public Builder removeAnnotationColors(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableAnnotationColors().getMutableMap().remove(key); + + public Builder removeAnnotationColors( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableAnnotationColors().getMutableMap() + .remove(key); return this; } - /** Use alternate mutation accessors instead. */ + /** + * Use alternate mutation accessors instead. + */ @java.lang.Deprecated public java.util.Map - getMutableAnnotationColors() { + getMutableAnnotationColors() { return internalGetMutableAnnotationColors().getMutableMap(); } /** - * - * *
      * The mapping between rgb color and annotation spec. The key is the rgb
      * color represented in format of rgb(0, 0, 0). The value is the
      * AnnotationSpec.
      * 
* - * - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; - * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; */ public Builder putAnnotationColors( - java.lang.String key, com.google.cloud.datalabeling.v1beta1.AnnotationSpec value) { - if (key == null) { - throw new NullPointerException("map key"); - } + java.lang.String key, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec value) { + if (key == null) { throw new NullPointerException("map key"); } if (value == null) { - throw new NullPointerException("map value"); - } + throw new NullPointerException("map value"); +} - internalGetMutableAnnotationColors().getMutableMap().put(key, value); + internalGetMutableAnnotationColors().getMutableMap() + .put(key, value); return this; } /** - * - * *
      * The mapping between rgb color and annotation spec. The key is the rgb
      * color represented in format of rgb(0, 0, 0). The value is the
      * AnnotationSpec.
      * 
* - * - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; - * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; */ + public Builder putAllAnnotationColors( - java.util.Map - values) { - internalGetMutableAnnotationColors().getMutableMap().putAll(values); + java.util.Map values) { + internalGetMutableAnnotationColors().getMutableMap() + .putAll(values); return this; } private java.lang.Object mimeType_ = ""; /** - * - * *
      * Image format.
      * 
* * 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; @@ -959,21 +860,20 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Image format.
      * 
* * 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 { @@ -981,61 +881,54 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Image format.
      * 
* * 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; } /** - * - * *
      * Image format.
      * 
* * string mime_type = 2; - * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** - * - * *
      * Image format.
      * 
* * 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; @@ -1043,14 +936,11 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.ByteString imageBytes_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * A byte string of a full image's color map.
      * 
* * bytes image_bytes = 3; - * * @return The imageBytes. */ @java.lang.Override @@ -1058,46 +948,40 @@ public com.google.protobuf.ByteString getImageBytes() { return imageBytes_; } /** - * - * *
      * A byte string of a full image's color map.
      * 
* * bytes image_bytes = 3; - * * @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(); - } - + throw new NullPointerException(); + } + imageBytes_ = value; onChanged(); return this; } /** - * - * *
      * A byte string of a full image's color map.
      * 
* * bytes image_bytes = 3; - * * @return This builder for chaining. */ public Builder clearImageBytes() { - + imageBytes_ = getDefaultInstance().getImageBytes(); 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); } @@ -1107,32 +991,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) - private static final com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation(); } - public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageSegmentationAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageSegmentationAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageSegmentationAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageSegmentationAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1144,8 +1026,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotationOrBuilder.java similarity index 56% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotationOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotationOrBuilder.java index abcf04a5..35ef122c 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotationOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotationOrBuilder.java @@ -1,144 +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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface ImageSegmentationAnnotationOrBuilder - extends +public interface ImageSegmentationAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The mapping between rgb color and annotation spec. The key is the rgb
    * color represented in format of rgb(0, 0, 0). The value is the
    * AnnotationSpec.
    * 
* - * - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; - * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; */ int getAnnotationColorsCount(); /** - * - * *
    * The mapping between rgb color and annotation spec. The key is the rgb
    * color represented in format of rgb(0, 0, 0). The value is the
    * AnnotationSpec.
    * 
* - * - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; - * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + */ + boolean containsAnnotationColors( + java.lang.String key); + /** + * Use {@link #getAnnotationColorsMap()} instead. */ - boolean containsAnnotationColors(java.lang.String key); - /** Use {@link #getAnnotationColorsMap()} instead. */ @java.lang.Deprecated java.util.Map - getAnnotationColors(); + getAnnotationColors(); /** - * - * *
    * The mapping between rgb color and annotation spec. The key is the rgb
    * color represented in format of rgb(0, 0, 0). The value is the
    * AnnotationSpec.
    * 
* - * - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; - * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; */ java.util.Map - getAnnotationColorsMap(); + getAnnotationColorsMap(); /** - * - * *
    * The mapping between rgb color and annotation spec. The key is the rgb
    * color represented in format of rgb(0, 0, 0). The value is the
    * AnnotationSpec.
    * 
* - * - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; - * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; */ /* nullable */ - com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationColorsOrDefault( +com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationColorsOrDefault( java.lang.String key, /* nullable */ - com.google.cloud.datalabeling.v1beta1.AnnotationSpec defaultValue); +com.google.cloud.datalabeling.v1beta1.AnnotationSpec defaultValue); /** - * - * *
    * The mapping between rgb color and annotation spec. The key is the rgb
    * color represented in format of rgb(0, 0, 0). The value is the
    * AnnotationSpec.
    * 
* - * - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; - * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; */ + com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationColorsOrThrow( java.lang.String key); /** - * - * *
    * Image format.
    * 
* * string mime_type = 2; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Image format.
    * 
* * string mime_type = 2; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * A byte string of a full image's color map.
    * 
* * bytes image_bytes = 3; - * * @return The imageBytes. */ com.google.protobuf.ByteString getImageBytes(); diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadata.java similarity index 74% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadata.java index 6e87621b..d76c859c 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadata.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Metadata of an ImportData operation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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() { dataset_ = ""; partialFailures_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ 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) @@ -72,45 +55,41 @@ private ImportDataOperationMetadata( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - dataset_ = s; - break; + dataset_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + partialFailures_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - 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; + 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(); } - 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; + createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = 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) { @@ -118,7 +97,8 @@ private ImportDataOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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_); @@ -127,34 +107,28 @@ private ImportDataOperationMetadata( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.Builder.class); } public static final int DATASET_FIELD_NUMBER = 1; private volatile java.lang.Object dataset_; /** - * - * *
    * Output only. The name of imported dataset.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; - * * @return The dataset. */ @java.lang.Override @@ -163,30 +137,30 @@ public java.lang.String getDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; } } /** - * - * *
    * Output only. The name of imported dataset.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; - * * @return The bytes for dataset. */ @java.lang.Override - public com.google.protobuf.ByteString getDatasetBytes() { + public com.google.protobuf.ByteString + getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataset_ = b; return b; } else { @@ -197,8 +171,6 @@ public com.google.protobuf.ByteString getDatasetBytes() { 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.
@@ -212,8 +184,6 @@ public java.util.List getPartialFailuresList() {
     return partialFailures_;
   }
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -223,13 +193,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.
@@ -243,8 +211,6 @@ public int getPartialFailuresCount() {
     return partialFailures_.size();
   }
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -258,8 +224,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.
@@ -269,21 +233,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. Timestamp when import dataset request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -291,14 +253,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Timestamp when import dataset request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ @java.lang.Override @@ -306,8 +265,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Timestamp when import dataset request was created.
    * 
@@ -320,7 +277,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -332,7 +288,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(dataset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); } @@ -355,10 +312,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataset_); } 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()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -368,19 +327,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.datalabeling.v1beta1.ImportDataOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata other = - (com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata) obj; - if (!getDataset().equals(other.getDataset())) return false; - if (!getPartialFailuresList().equals(other.getPartialFailuresList())) return false; + if (!getDataset() + .equals(other.getDataset())) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -409,147 +370,135 @@ public int hashCode() { } public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ImportDataOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ImportDataOperationMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ImportDataOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ImportDataOperationMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ImportDataOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.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; } /** - * - * *
    * Metadata of an ImportData operation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.ImportDataOperationMetadata) com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.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) { getPartialFailuresFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -571,14 +520,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.getDefaultInstance(); } @@ -593,8 +541,7 @@ public com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata result = - new com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata(this); + com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata(this); int from_bitField0_ = bitField0_; result.dataset_ = dataset_; if (partialFailuresBuilder_ == null) { @@ -619,50 +566,46 @@ public com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata 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.datalabeling.v1beta1.ImportDataOperationMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata other) { - if (other - == com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata other) { + if (other == com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.getDefaultInstance()) return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; onChanged(); @@ -685,10 +628,9 @@ public Builder mergeFrom( 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_); } @@ -716,9 +658,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -727,26 +667,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object dataset_ = ""; /** - * - * *
      * Output only. The name of imported dataset.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; - * * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; @@ -755,22 +692,21 @@ public java.lang.String getDataset() { } } /** - * - * *
      * Output only. The name of imported dataset.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; - * * @return The bytes for dataset. */ - public com.google.protobuf.ByteString getDatasetBytes() { + public com.google.protobuf.ByteString + getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataset_ = b; return b; } else { @@ -778,86 +714,75 @@ public com.google.protobuf.ByteString getDatasetBytes() { } } /** - * - * *
      * Output only. The name of imported dataset.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; - * * @param value The dataset to set. * @return This builder for chaining. */ - public Builder setDataset(java.lang.String value) { + public Builder setDataset( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataset_ = value; onChanged(); return this; } /** - * - * *
      * Output only. The name of imported dataset.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; - * * @return This builder for chaining. */ public Builder clearDataset() { - + dataset_ = getDefaultInstance().getDataset(); onChanged(); return this; } /** - * - * *
      * Output only. The name of imported dataset.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; - * * @param value The bytes for dataset to set. * @return This builder for chaining. */ - public Builder setDatasetBytes(com.google.protobuf.ByteString value) { + public Builder setDatasetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; 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.
@@ -874,8 +799,6 @@ public java.util.List getPartialFailuresList() {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -892,8 +815,6 @@ public int getPartialFailuresCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -910,8 +831,6 @@ public com.google.rpc.Status getPartialFailures(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -920,7 +839,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();
@@ -934,8 +854,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.
@@ -944,7 +862,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());
@@ -955,8 +874,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.
@@ -979,8 +896,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.
@@ -989,7 +904,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();
@@ -1003,8 +919,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.
@@ -1013,7 +927,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());
@@ -1024,8 +939,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.
@@ -1034,7 +947,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());
@@ -1045,8 +959,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.
@@ -1059,7 +971,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);
@@ -1067,8 +980,6 @@ public Builder addAllPartialFailures(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1088,8 +999,6 @@ public Builder clearPartialFailures() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1109,8 +1018,6 @@ public Builder removePartialFailures(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1119,12 +1026,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.
@@ -1133,16 +1039,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.
@@ -1151,8 +1055,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 {
@@ -1160,8 +1064,6 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1171,12 +1073,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.
@@ -1185,13 +1085,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.
@@ -1200,19 +1099,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(),
@@ -1224,47 +1120,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. Timestamp when import dataset request 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. Timestamp when import dataset request 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. Timestamp when import dataset request was created.
      * 
@@ -1285,15 +1168,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp when import dataset request 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(); @@ -1304,8 +1186,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Timestamp when import dataset request was created.
      * 
@@ -1316,7 +1196,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; } @@ -1328,8 +1208,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp when import dataset request was created.
      * 
@@ -1348,8 +1226,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Timestamp when import dataset request was created.
      * 
@@ -1357,13 +1233,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 3; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Timestamp when import dataset request was created.
      * 
@@ -1374,14 +1248,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 import dataset request was created.
      * 
@@ -1389,24 +1260,21 @@ 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_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1416,32 +1284,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportDataOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportDataOperationMetadata(input, extensionRegistry); - } - }; + 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; @@ -1453,8 +1319,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadataOrBuilder.java similarity index 73% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadataOrBuilder.java index 8bfa49a2..74d328aa 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface ImportDataOperationMetadataOrBuilder - extends +public interface ImportDataOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. The name of imported dataset.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; - * * @return The dataset. */ java.lang.String getDataset(); /** - * - * *
    * Output only. The name of imported dataset.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; - * * @return The bytes for dataset. */ - com.google.protobuf.ByteString getDatasetBytes(); + com.google.protobuf.ByteString + getDatasetBytes(); /** - * - * *
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -61,10 +38,9 @@ public interface ImportDataOperationMetadataOrBuilder
    *
    * 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.
@@ -75,8 +51,6 @@ public interface ImportDataOperationMetadataOrBuilder
    */
   com.google.rpc.Status getPartialFailures(int index);
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -87,8 +61,6 @@ public interface ImportDataOperationMetadataOrBuilder
    */
   int getPartialFailuresCount();
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -97,10 +69,9 @@ public interface ImportDataOperationMetadataOrBuilder
    *
    * 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.
@@ -109,35 +80,28 @@ public interface ImportDataOperationMetadataOrBuilder
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index);
+  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Output only. Timestamp when import dataset request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Timestamp when import dataset request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Timestamp when import dataset request was created.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponse.java similarity index 67% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponse.java index 27a993cc..8c94eb9c 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponse.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Response used for ImportData longrunning operation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImportDataOperationResponse} */ -public final class ImportDataOperationResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ImportDataOperationResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ImportDataOperationResponse) ImportDataOperationResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ImportDataOperationResponse.newBuilder() to construct. private ImportDataOperationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImportDataOperationResponse() { dataset_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ImportDataOperationResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ImportDataOperationResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,30 +53,29 @@ private ImportDataOperationResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - dataset_ = s; - break; - } - case 16: - { - totalCount_ = input.readInt32(); - break; - } - case 24: - { - importCount_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + dataset_ = s; + break; + } + case 16: { + + totalCount_ = input.readInt32(); + break; + } + case 24: { + + importCount_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,39 +83,34 @@ private ImportDataOperationResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.class, - com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.class, com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.Builder.class); } public static final int DATASET_FIELD_NUMBER = 1; private volatile java.lang.Object dataset_; /** - * - * *
    * Ouptut only. The name of imported dataset.
    * 
* * string dataset = 1; - * * @return The dataset. */ @java.lang.Override @@ -142,29 +119,29 @@ public java.lang.String getDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; } } /** - * - * *
    * Ouptut only. The name of imported dataset.
    * 
* * string dataset = 1; - * * @return The bytes for dataset. */ @java.lang.Override - public com.google.protobuf.ByteString getDatasetBytes() { + public com.google.protobuf.ByteString + getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataset_ = b; return b; } else { @@ -175,14 +152,11 @@ public com.google.protobuf.ByteString getDatasetBytes() { public static final int TOTAL_COUNT_FIELD_NUMBER = 2; private int totalCount_; /** - * - * *
    * Output only. Total number of examples requested to import
    * 
* * int32 total_count = 2; - * * @return The totalCount. */ @java.lang.Override @@ -193,14 +167,11 @@ public int getTotalCount() { public static final int IMPORT_COUNT_FIELD_NUMBER = 3; private int importCount_; /** - * - * *
    * Output only. Number of examples imported successfully.
    * 
* * int32 import_count = 3; - * * @return The importCount. */ @java.lang.Override @@ -209,7 +180,6 @@ public int getImportCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,7 +191,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(dataset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); } @@ -244,10 +215,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataset_); } if (totalCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, totalCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, totalCount_); } if (importCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, importCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, importCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -257,17 +230,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.datalabeling.v1beta1.ImportDataOperationResponse)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse other = - (com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse) obj; + com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse other = (com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse) obj; - if (!getDataset().equals(other.getDataset())) return false; - if (getTotalCount() != other.getTotalCount()) return false; - if (getImportCount() != other.getImportCount()) return false; + if (!getDataset() + .equals(other.getDataset())) return false; + if (getTotalCount() + != other.getTotalCount()) return false; + if (getImportCount() + != other.getImportCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,145 +266,134 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse 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.datalabeling.v1beta1.ImportDataOperationResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse - 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.datalabeling.v1beta1.ImportDataOperationResponse 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.datalabeling.v1beta1.ImportDataOperationResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 used for ImportData longrunning operation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImportDataOperationResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ImportDataOperationResponse) com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.class, - com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.class, com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.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(); @@ -443,14 +407,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.getDefaultInstance(); } @@ -465,8 +428,7 @@ public com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse buildPartial() { - com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse result = - new com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse(this); + com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse result = new com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse(this); result.dataset_ = dataset_; result.totalCount_ = totalCount_; result.importCount_ = importCount_; @@ -478,50 +440,46 @@ public com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse 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.datalabeling.v1beta1.ImportDataOperationResponse) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse other) { - if (other - == com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse other) { + if (other == com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.getDefaultInstance()) return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; onChanged(); @@ -551,9 +509,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -565,20 +521,18 @@ public Builder mergeFrom( private java.lang.Object dataset_ = ""; /** - * - * *
      * Ouptut only. The name of imported dataset.
      * 
* * string dataset = 1; - * * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; @@ -587,21 +541,20 @@ public java.lang.String getDataset() { } } /** - * - * *
      * Ouptut only. The name of imported dataset.
      * 
* * string dataset = 1; - * * @return The bytes for dataset. */ - public com.google.protobuf.ByteString getDatasetBytes() { + public com.google.protobuf.ByteString + getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); dataset_ = b; return b; } else { @@ -609,76 +562,66 @@ public com.google.protobuf.ByteString getDatasetBytes() { } } /** - * - * *
      * Ouptut only. The name of imported dataset.
      * 
* * string dataset = 1; - * * @param value The dataset to set. * @return This builder for chaining. */ - public Builder setDataset(java.lang.String value) { + public Builder setDataset( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataset_ = value; onChanged(); return this; } /** - * - * *
      * Ouptut only. The name of imported dataset.
      * 
* * string dataset = 1; - * * @return This builder for chaining. */ public Builder clearDataset() { - + dataset_ = getDefaultInstance().getDataset(); onChanged(); return this; } /** - * - * *
      * Ouptut only. The name of imported dataset.
      * 
* * string dataset = 1; - * * @param value The bytes for dataset to set. * @return This builder for chaining. */ - public Builder setDatasetBytes(com.google.protobuf.ByteString value) { + public Builder setDatasetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; onChanged(); return this; } - private int totalCount_; + private int totalCount_ ; /** - * - * *
      * Output only. Total number of examples requested to import
      * 
* * int32 total_count = 2; - * * @return The totalCount. */ @java.lang.Override @@ -686,51 +629,42 @@ public int getTotalCount() { return totalCount_; } /** - * - * *
      * Output only. Total number of examples requested to import
      * 
* * int32 total_count = 2; - * * @param value The totalCount to set. * @return This builder for chaining. */ public Builder setTotalCount(int value) { - + totalCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Total number of examples requested to import
      * 
* * int32 total_count = 2; - * * @return This builder for chaining. */ public Builder clearTotalCount() { - + totalCount_ = 0; onChanged(); return this; } - private int importCount_; + private int importCount_ ; /** - * - * *
      * Output only. Number of examples imported successfully.
      * 
* * int32 import_count = 3; - * * @return The importCount. */ @java.lang.Override @@ -738,43 +672,37 @@ public int getImportCount() { return importCount_; } /** - * - * *
      * Output only. Number of examples imported successfully.
      * 
* * int32 import_count = 3; - * * @param value The importCount to set. * @return This builder for chaining. */ public Builder setImportCount(int value) { - + importCount_ = value; onChanged(); return this; } /** - * - * *
      * Output only. Number of examples imported successfully.
      * 
* * int32 import_count = 3; - * * @return This builder for chaining. */ public Builder clearImportCount() { - + importCount_ = 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); } @@ -784,32 +712,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ImportDataOperationResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImportDataOperationResponse) - private static final com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse(); } - public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportDataOperationResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportDataOperationResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportDataOperationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportDataOperationResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -821,8 +747,9 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponseOrBuilder.java similarity index 58% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponseOrBuilder.java index e004729a..b939a423 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponseOrBuilder.java @@ -1,75 +1,48 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface ImportDataOperationResponseOrBuilder - extends +public interface ImportDataOperationResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ImportDataOperationResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Ouptut only. The name of imported dataset.
    * 
* * string dataset = 1; - * * @return The dataset. */ java.lang.String getDataset(); /** - * - * *
    * Ouptut only. The name of imported dataset.
    * 
* * string dataset = 1; - * * @return The bytes for dataset. */ - com.google.protobuf.ByteString getDatasetBytes(); + com.google.protobuf.ByteString + getDatasetBytes(); /** - * - * *
    * Output only. Total number of examples requested to import
    * 
* * int32 total_count = 2; - * * @return The totalCount. */ int getTotalCount(); /** - * - * *
    * Output only. Number of examples imported successfully.
    * 
* * int32 import_count = 3; - * * @return The importCount. */ int getImportCount(); diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequest.java similarity index 65% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequest.java index 3a72fa86..e85c9b9a 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for ImportData API.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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_ = ""; userEmailAddress_ = ""; @@ -44,15 +26,16 @@ private ImportDataRequest() { @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) @@ -71,44 +54,38 @@ 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 18: { + com.google.cloud.datalabeling.v1beta1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); } - case 18: - { - com.google.cloud.datalabeling.v1beta1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.InputConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); - } - - break; + inputConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.InputConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - userEmailAddress_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + userEmailAddress_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,42 +93,35 @@ private ImportDataRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImportDataRequest.class, - com.google.cloud.datalabeling.v1beta1.ImportDataRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImportDataRequest.class, com.google.cloud.datalabeling.v1beta1.ImportDataRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Dataset resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * string 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 @@ -160,32 +130,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 resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * string 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 { @@ -196,16 +164,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int INPUT_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.InputConfig inputConfig_; /** - * - * *
    * Required. Specify the input source of the data.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -213,34 +176,23 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** - * - * *
    * Required. Specify the input source of the data.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.InputConfig getInputConfig() { - return inputConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; } /** - * - * *
    * Required. Specify the input source of the data.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { @@ -250,15 +202,12 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig public static final int USER_EMAIL_ADDRESS_FIELD_NUMBER = 3; private volatile java.lang.Object userEmailAddress_; /** - * - * *
    * Email of the user who started the import task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 3; - * * @return The userEmailAddress. */ @java.lang.Override @@ -267,30 +216,30 @@ public java.lang.String getUserEmailAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userEmailAddress_ = s; return s; } } /** - * - * *
    * Email of the user who started the import task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 3; - * * @return The bytes for userEmailAddress. */ @java.lang.Override - public com.google.protobuf.ByteString getUserEmailAddressBytes() { + public com.google.protobuf.ByteString + getUserEmailAddressBytes() { java.lang.Object ref = userEmailAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userEmailAddress_ = b; return b; } else { @@ -299,7 +248,6 @@ public com.google.protobuf.ByteString getUserEmailAddressBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -311,7 +259,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_); } @@ -334,7 +283,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInputConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getInputConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userEmailAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userEmailAddress_); @@ -347,20 +297,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.datalabeling.v1beta1.ImportDataRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ImportDataRequest other = - (com.google.cloud.datalabeling.v1beta1.ImportDataRequest) obj; + com.google.cloud.datalabeling.v1beta1.ImportDataRequest other = (com.google.cloud.datalabeling.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 (!getUserEmailAddress().equals(other.getUserEmailAddress())) return false; + if (!getUserEmailAddress() + .equals(other.getUserEmailAddress())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -386,127 +338,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ImportDataRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ImportDataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ImportDataRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ImportDataRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ImportDataRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ImportDataRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ImportDataRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.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 ImportData API.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.ImportDataRequest) com.google.cloud.datalabeling.v1beta1.ImportDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImportDataRequest.class, - com.google.cloud.datalabeling.v1beta1.ImportDataRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImportDataRequest.class, com.google.cloud.datalabeling.v1beta1.ImportDataRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ImportDataRequest.newBuilder() @@ -514,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(); @@ -540,9 +483,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor; } @java.lang.Override @@ -561,8 +504,7 @@ public com.google.cloud.datalabeling.v1beta1.ImportDataRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImportDataRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.ImportDataRequest result = - new com.google.cloud.datalabeling.v1beta1.ImportDataRequest(this); + com.google.cloud.datalabeling.v1beta1.ImportDataRequest result = new com.google.cloud.datalabeling.v1beta1.ImportDataRequest(this); result.name_ = name_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -578,39 +520,38 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.ImportDataRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImportDataRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImportDataRequest)other); } else { super.mergeFrom(other); return this; @@ -618,8 +559,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ImportDataRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.ImportDataRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.ImportDataRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -650,8 +590,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ImportDataRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ImportDataRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -663,23 +602,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * string 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; @@ -688,24 +623,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * string 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 { @@ -713,70 +645,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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 resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * string 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 resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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; @@ -784,58 +703,39 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datalabeling.v1beta1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.InputConfig, - com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, - com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder> - inputConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.InputConfig, com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder> inputConfigBuilder_; /** - * - * *
      * Required. Specify the input source of the data.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** - * - * *
      * Required. Specify the input source of the data.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ public com.google.cloud.datalabeling.v1beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Specify the input source of the data.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig(com.google.cloud.datalabeling.v1beta1.InputConfig value) { if (inputConfigBuilder_ == null) { @@ -851,15 +751,11 @@ public Builder setInputConfig(com.google.cloud.datalabeling.v1beta1.InputConfig return this; } /** - * - * *
      * Required. Specify the input source of the data.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setInputConfig( com.google.cloud.datalabeling.v1beta1.InputConfig.Builder builderForValue) { @@ -873,23 +769,17 @@ public Builder setInputConfig( return this; } /** - * - * *
      * Required. Specify the input source of the data.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeInputConfig(com.google.cloud.datalabeling.v1beta1.InputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.datalabeling.v1beta1.InputConfig.newBuilder(inputConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); } else { inputConfig_ = value; } @@ -901,15 +791,11 @@ public Builder mergeInputConfig(com.google.cloud.datalabeling.v1beta1.InputConfi return this; } /** - * - * *
      * Required. Specify the input source of the data.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -923,64 +809,48 @@ public Builder clearInputConfig() { return this; } /** - * - * *
      * Required. Specify the input source of the data.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datalabeling.v1beta1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Specify the input source of the data.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance() - : inputConfig_; + return inputConfig_ == null ? + com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; } } /** - * - * *
      * Required. Specify the input source of the data.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.InputConfig, - com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, - com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.InputConfig, com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.InputConfig, - com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, - com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder>( - getInputConfig(), getParentForChildren(), isClean()); + inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.InputConfig, com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder>( + getInputConfig(), + getParentForChildren(), + isClean()); inputConfig_ = null; } return inputConfigBuilder_; @@ -988,21 +858,19 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig private java.lang.Object userEmailAddress_ = ""; /** - * - * *
      * Email of the user who started the import task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 3; - * * @return The userEmailAddress. */ public java.lang.String getUserEmailAddress() { java.lang.Object ref = userEmailAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userEmailAddress_ = s; return s; @@ -1011,22 +879,21 @@ public java.lang.String getUserEmailAddress() { } } /** - * - * *
      * Email of the user who started the import task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 3; - * * @return The bytes for userEmailAddress. */ - public com.google.protobuf.ByteString getUserEmailAddressBytes() { + public com.google.protobuf.ByteString + getUserEmailAddressBytes() { java.lang.Object ref = userEmailAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); userEmailAddress_ = b; return b; } else { @@ -1034,71 +901,64 @@ public com.google.protobuf.ByteString getUserEmailAddressBytes() { } } /** - * - * *
      * Email of the user who started the import task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 3; - * * @param value The userEmailAddress to set. * @return This builder for chaining. */ - public Builder setUserEmailAddress(java.lang.String value) { + public Builder setUserEmailAddress( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + userEmailAddress_ = value; onChanged(); return this; } /** - * - * *
      * Email of the user who started the import task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 3; - * * @return This builder for chaining. */ public Builder clearUserEmailAddress() { - + userEmailAddress_ = getDefaultInstance().getUserEmailAddress(); onChanged(); return this; } /** - * - * *
      * Email of the user who started the import task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 3; - * * @param value The bytes for userEmailAddress to set. * @return This builder for chaining. */ - public Builder setUserEmailAddressBytes(com.google.protobuf.ByteString value) { + public Builder setUserEmailAddressBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userEmailAddress_ = 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 +968,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ImportDataRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImportDataRequest) private static final com.google.cloud.datalabeling.v1beta1.ImportDataRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ImportDataRequest(); } @@ -1122,16 +982,16 @@ public static com.google.cloud.datalabeling.v1beta1.ImportDataRequest getDefault 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; @@ -1146,4 +1006,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ImportDataRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequestOrBuilder.java similarity index 53% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequestOrBuilder.java index 4a4ae040..c10aab81 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequestOrBuilder.java @@ -1,124 +1,80 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ImportDataRequestOrBuilder - extends +public interface ImportDataRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ImportDataRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Dataset resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * string 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. Dataset resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * string 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. Specify the input source of the data.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** - * - * *
    * Required. Specify the input source of the data.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The inputConfig. */ com.google.cloud.datalabeling.v1beta1.InputConfig getInputConfig(); /** - * - * *
    * Required. Specify the input source of the data.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder(); /** - * - * *
    * Email of the user who started the import task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 3; - * * @return The userEmailAddress. */ java.lang.String getUserEmailAddress(); /** - * - * *
    * Email of the user who started the import task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 3; - * * @return The bytes for userEmailAddress. */ - com.google.protobuf.ByteString getUserEmailAddressBytes(); + com.google.protobuf.ByteString + getUserEmailAddressBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfig.java similarity index 72% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfig.java index de27d0ce..d00e9d4c 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfig.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * The configuration of input data, including data type, location, etc.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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() { dataType_ = 0; annotationType_ = 0; @@ -44,15 +26,16 @@ 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) @@ -71,101 +54,80 @@ private InputConfig( case 0: done = true; break; - case 8: - { - int rawValue = input.readEnum(); + case 8: { + int rawValue = input.readEnum(); - dataType_ = rawValue; - break; + dataType_ = rawValue; + break; + } + case 18: { + com.google.cloud.datalabeling.v1beta1.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 2) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.GcsSource) source_).toBuilder(); } - case 18: - { - com.google.cloud.datalabeling.v1beta1.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 2) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.GcsSource) source_).toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.GcsSource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 2; - break; + source_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.GcsSource) source_); + source_ = subBuilder.buildPartial(); } - case 24: - { - int rawValue = input.readEnum(); + sourceCase_ = 2; + break; + } + case 24: { + int rawValue = input.readEnum(); - annotationType_ = rawValue; - break; + annotationType_ = rawValue; + break; + } + case 34: { + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder subBuilder = null; + if (classificationMetadata_ != null) { + subBuilder = classificationMetadata_.toBuilder(); } - case 34: - { - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder subBuilder = - null; - if (classificationMetadata_ != null) { - subBuilder = classificationMetadata_.toBuilder(); - } - classificationMetadata_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(classificationMetadata_); - classificationMetadata_ = subBuilder.buildPartial(); - } - - break; + classificationMetadata_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(classificationMetadata_); + classificationMetadata_ = subBuilder.buildPartial(); } - case 42: - { - com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder subBuilder = null; - if (sourceCase_ == 5) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_).toBuilder(); - } - source_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.BigQuerySource.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_); - source_ = subBuilder.buildPartial(); - } - sourceCase_ = 5; - break; + + break; + } + case 42: { + com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder subBuilder = null; + if (sourceCase_ == 5) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_).toBuilder(); } - case 50: - { - com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder subBuilder = null; - if (dataTypeMetadataCase_ == 6) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_) - .toBuilder(); - } - dataTypeMetadata_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.TextMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_); - dataTypeMetadata_ = subBuilder.buildPartial(); - } - dataTypeMetadataCase_ = 6; - break; + source_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.BigQuerySource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_); + source_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + sourceCase_ = 5; + break; + } + case 50: { + com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder subBuilder = null; + if (dataTypeMetadataCase_ == 6) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_).toBuilder(); + } + dataTypeMetadata_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.TextMetadata.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_); + dataTypeMetadata_ = subBuilder.buildPartial(); + } + dataTypeMetadataCase_ = 6; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -173,39 +135,34 @@ private InputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_InputConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.InputConfig.class, - com.google.cloud.datalabeling.v1beta1.InputConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.InputConfig.class, com.google.cloud.datalabeling.v1beta1.InputConfig.Builder.class); } private int dataTypeMetadataCase_ = 0; private java.lang.Object dataTypeMetadata_; - public enum DataTypeMetadataCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TEXT_METADATA(6), DATATYPEMETADATA_NOT_SET(0); private final int value; - private DataTypeMetadataCase(int value) { this.value = value; } @@ -221,36 +178,31 @@ public static DataTypeMetadataCase valueOf(int value) { public static DataTypeMetadataCase forNumber(int value) { switch (value) { - case 6: - return TEXT_METADATA; - case 0: - return DATATYPEMETADATA_NOT_SET; - default: - return null; + case 6: return TEXT_METADATA; + case 0: return DATATYPEMETADATA_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DataTypeMetadataCase getDataTypeMetadataCase() { - return DataTypeMetadataCase.forNumber(dataTypeMetadataCase_); + public DataTypeMetadataCase + getDataTypeMetadataCase() { + return DataTypeMetadataCase.forNumber( + dataTypeMetadataCase_); } 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(2), BIGQUERY_SOURCE(5), SOURCE_NOT_SET(0); private final int value; - private SourceCase(int value) { this.value = value; } @@ -266,36 +218,30 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 2: - return GCS_SOURCE; - case 5: - return BIGQUERY_SOURCE; - case 0: - return SOURCE_NOT_SET; - default: - return null; + case 2: return GCS_SOURCE; + case 5: 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 TEXT_METADATA_FIELD_NUMBER = 6; /** - * - * *
    * Required for text import, as language code must be specified.
    * 
* * .google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6; - * * @return Whether the textMetadata field is set. */ @java.lang.Override @@ -303,26 +249,21 @@ public boolean hasTextMetadata() { return dataTypeMetadataCase_ == 6; } /** - * - * *
    * Required for text import, as language code must be specified.
    * 
* * .google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6; - * * @return The textMetadata. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextMetadata getTextMetadata() { if (dataTypeMetadataCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_; + return (com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_; } return com.google.cloud.datalabeling.v1beta1.TextMetadata.getDefaultInstance(); } /** - * - * *
    * Required for text import, as language code must be specified.
    * 
@@ -332,21 +273,18 @@ public com.google.cloud.datalabeling.v1beta1.TextMetadata getTextMetadata() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextMetadataOrBuilder getTextMetadataOrBuilder() { if (dataTypeMetadataCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_; + return (com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_; } return com.google.cloud.datalabeling.v1beta1.TextMetadata.getDefaultInstance(); } public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** - * - * *
    * Source located in Cloud Storage.
    * 
* * .google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -354,26 +292,21 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
    * Source located in Cloud Storage.
    * 
* * .google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.GcsSource) source_; + return (com.google.cloud.datalabeling.v1beta1.GcsSource) source_; } return com.google.cloud.datalabeling.v1beta1.GcsSource.getDefaultInstance(); } /** - * - * *
    * Source located in Cloud Storage.
    * 
@@ -383,22 +316,19 @@ public com.google.cloud.datalabeling.v1beta1.GcsSource getGcsSource() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { if (sourceCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.GcsSource) source_; + return (com.google.cloud.datalabeling.v1beta1.GcsSource) source_; } return com.google.cloud.datalabeling.v1beta1.GcsSource.getDefaultInstance(); } public static final int BIGQUERY_SOURCE_FIELD_NUMBER = 5; /** - * - * *
    * Source located in BigQuery. You must specify this field if you are using
    * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
    * 
* * .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5; - * * @return Whether the bigquerySource field is set. */ @java.lang.Override @@ -406,27 +336,22 @@ public boolean hasBigquerySource() { return sourceCase_ == 5; } /** - * - * *
    * Source located in BigQuery. You must specify this field if you are using
    * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
    * 
* * .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5; - * * @return The bigquerySource. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BigQuerySource getBigquerySource() { if (sourceCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_; + return (com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_; } return com.google.cloud.datalabeling.v1beta1.BigQuerySource.getDefaultInstance(); } /** - * - * *
    * Source located in BigQuery. You must specify this field if you are using
    * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
@@ -435,10 +360,9 @@ public com.google.cloud.datalabeling.v1beta1.BigQuerySource getBigquerySource()
    * .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder
-      getBigquerySourceOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder() {
     if (sourceCase_ == 5) {
-      return (com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_;
+       return (com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_;
     }
     return com.google.cloud.datalabeling.v1beta1.BigQuerySource.getDefaultInstance();
   }
@@ -446,44 +370,33 @@ public com.google.cloud.datalabeling.v1beta1.BigQuerySource getBigquerySource()
   public static final int DATA_TYPE_FIELD_NUMBER = 1;
   private int dataType_;
   /**
-   *
-   *
    * 
    * Required. Data type must be specifed when user tries to import data.
    * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 1; - * * @return The enum numeric value on the wire for dataType. */ - @java.lang.Override - public int getDataTypeValue() { + @java.lang.Override public int getDataTypeValue() { return dataType_; } /** - * - * *
    * Required. Data type must be specifed when user tries to import data.
    * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 1; - * * @return The dataType. */ - @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.DataType getDataType() { + @java.lang.Override public com.google.cloud.datalabeling.v1beta1.DataType getDataType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.DataType result = - com.google.cloud.datalabeling.v1beta1.DataType.valueOf(dataType_); + com.google.cloud.datalabeling.v1beta1.DataType result = com.google.cloud.datalabeling.v1beta1.DataType.valueOf(dataType_); return result == null ? com.google.cloud.datalabeling.v1beta1.DataType.UNRECOGNIZED : result; } public static final int ANNOTATION_TYPE_FIELD_NUMBER = 3; private int annotationType_; /** - * - * *
    * Optional. The type of annotation to be performed on this data. You must
    * specify this field if you are using this InputConfig in an
@@ -491,16 +404,12 @@ public com.google.cloud.datalabeling.v1beta1.DataType getDataType() {
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; - * * @return The enum numeric value on the wire for annotationType. */ - @java.lang.Override - public int getAnnotationTypeValue() { + @java.lang.Override public int getAnnotationTypeValue() { return annotationType_; } /** - * - * *
    * Optional. The type of annotation to be performed on this data. You must
    * specify this field if you are using this InputConfig in an
@@ -508,33 +417,24 @@ public int getAnnotationTypeValue() {
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; - * * @return The annotationType. */ - @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType() { + @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationType result = - com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); - return result == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED - : result; + com.google.cloud.datalabeling.v1beta1.AnnotationType result = com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); + return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED : result; } public static final int CLASSIFICATION_METADATA_FIELD_NUMBER = 4; private com.google.cloud.datalabeling.v1beta1.ClassificationMetadata classificationMetadata_; /** - * - * *
    * Optional. Metadata about annotations for the input. You must specify this
    * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
    * model version that performs classification.
    * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; - * - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; * @return Whether the classificationMetadata field is set. */ @java.lang.Override @@ -542,45 +442,34 @@ public boolean hasClassificationMetadata() { return classificationMetadata_ != null; } /** - * - * *
    * Optional. Metadata about annotations for the input. You must specify this
    * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
    * model version that performs classification.
    * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; - * - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; * @return The classificationMetadata. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ClassificationMetadata getClassificationMetadata() { - return classificationMetadata_ == null - ? com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.getDefaultInstance() - : classificationMetadata_; + return classificationMetadata_ == null ? com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.getDefaultInstance() : classificationMetadata_; } /** - * - * *
    * Optional. Metadata about annotations for the input. You must specify this
    * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
    * model version that performs classification.
    * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder - getClassificationMetadataOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder getClassificationMetadataOrBuilder() { return getClassificationMetadata(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -592,17 +481,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (dataType_ - != com.google.cloud.datalabeling.v1beta1.DataType.DATA_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (dataType_ != com.google.cloud.datalabeling.v1beta1.DataType.DATA_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, dataType_); } if (sourceCase_ == 2) { output.writeMessage(2, (com.google.cloud.datalabeling.v1beta1.GcsSource) source_); } - if (annotationType_ - != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED - .getNumber()) { + if (annotationType_ != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(3, annotationType_); } if (classificationMetadata_ != null) { @@ -612,8 +499,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(5, (com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_); } if (dataTypeMetadataCase_ == 6) { - output.writeMessage( - 6, (com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_); + output.writeMessage(6, (com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_); } unknownFields.writeTo(output); } @@ -624,33 +510,29 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (dataType_ - != com.google.cloud.datalabeling.v1beta1.DataType.DATA_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, dataType_); + if (dataType_ != com.google.cloud.datalabeling.v1beta1.DataType.DATA_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, dataType_); } if (sourceCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.datalabeling.v1beta1.GcsSource) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.datalabeling.v1beta1.GcsSource) source_); } - if (annotationType_ - != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, annotationType_); + if (annotationType_ != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, annotationType_); } if (classificationMetadata_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getClassificationMetadata()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getClassificationMetadata()); } if (sourceCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_); } if (dataTypeMetadataCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -660,24 +542,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.datalabeling.v1beta1.InputConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.InputConfig other = - (com.google.cloud.datalabeling.v1beta1.InputConfig) obj; + com.google.cloud.datalabeling.v1beta1.InputConfig other = (com.google.cloud.datalabeling.v1beta1.InputConfig) obj; if (dataType_ != other.dataType_) return false; if (annotationType_ != other.annotationType_) return false; if (hasClassificationMetadata() != other.hasClassificationMetadata()) return false; if (hasClassificationMetadata()) { - if (!getClassificationMetadata().equals(other.getClassificationMetadata())) return false; + if (!getClassificationMetadata() + .equals(other.getClassificationMetadata())) return false; } if (!getDataTypeMetadataCase().equals(other.getDataTypeMetadataCase())) return false; switch (dataTypeMetadataCase_) { case 6: - if (!getTextMetadata().equals(other.getTextMetadata())) return false; + if (!getTextMetadata() + .equals(other.getTextMetadata())) return false; break; case 0: default: @@ -685,10 +568,12 @@ public boolean equals(final java.lang.Object obj) { if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 2: - if (!getGcsSource().equals(other.getGcsSource())) return false; + if (!getGcsSource() + .equals(other.getGcsSource())) return false; break; case 5: - if (!getBigquerySource().equals(other.getBigquerySource())) return false; + if (!getBigquerySource() + .equals(other.getBigquerySource())) return false; break; case 0: default: @@ -738,126 +623,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.InputConfig 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.datalabeling.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.datalabeling.v1beta1.InputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.InputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.InputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.InputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.InputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.InputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.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; } /** - * - * *
    * The configuration of input data, including data type, location, etc.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.InputConfig) com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_InputConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.InputConfig.class, - com.google.cloud.datalabeling.v1beta1.InputConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.InputConfig.class, com.google.cloud.datalabeling.v1beta1.InputConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.InputConfig.newBuilder() @@ -865,15 +741,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(); @@ -895,9 +772,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor; } @java.lang.Override @@ -916,8 +793,7 @@ public com.google.cloud.datalabeling.v1beta1.InputConfig build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.InputConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.InputConfig result = - new com.google.cloud.datalabeling.v1beta1.InputConfig(this); + com.google.cloud.datalabeling.v1beta1.InputConfig result = new com.google.cloud.datalabeling.v1beta1.InputConfig(this); if (dataTypeMetadataCase_ == 6) { if (textMetadataBuilder_ == null) { result.dataTypeMetadata_ = dataTypeMetadata_; @@ -956,39 +832,38 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.InputConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.InputConfig) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.InputConfig)other); } else { super.mergeFrom(other); return this; @@ -996,8 +871,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.InputConfig other) { - if (other == com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance()) return this; if (other.dataType_ != 0) { setDataTypeValue(other.getDataTypeValue()); } @@ -1008,31 +882,26 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.InputConfig other mergeClassificationMetadata(other.getClassificationMetadata()); } switch (other.getDataTypeMetadataCase()) { - case TEXT_METADATA: - { - mergeTextMetadata(other.getTextMetadata()); - break; - } - case DATATYPEMETADATA_NOT_SET: - { - break; - } + case TEXT_METADATA: { + mergeTextMetadata(other.getTextMetadata()); + break; + } + case DATATYPEMETADATA_NOT_SET: { + break; + } } 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(); @@ -1053,8 +922,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.InputConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.InputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1063,12 +931,12 @@ public Builder mergeFrom( } return this; } - private int dataTypeMetadataCase_ = 0; private java.lang.Object dataTypeMetadata_; - - public DataTypeMetadataCase getDataTypeMetadataCase() { - return DataTypeMetadataCase.forNumber(dataTypeMetadataCase_); + public DataTypeMetadataCase + getDataTypeMetadataCase() { + return DataTypeMetadataCase.forNumber( + dataTypeMetadataCase_); } public Builder clearDataTypeMetadata() { @@ -1080,9 +948,10 @@ public Builder clearDataTypeMetadata() { 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() { @@ -1092,20 +961,15 @@ public Builder clearSource() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextMetadata, - com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.TextMetadataOrBuilder> - textMetadataBuilder_; + com.google.cloud.datalabeling.v1beta1.TextMetadata, com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder, com.google.cloud.datalabeling.v1beta1.TextMetadataOrBuilder> textMetadataBuilder_; /** - * - * *
      * Required for text import, as language code must be specified.
      * 
* * .google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6; - * * @return Whether the textMetadata field is set. */ @java.lang.Override @@ -1113,14 +977,11 @@ public boolean hasTextMetadata() { return dataTypeMetadataCase_ == 6; } /** - * - * *
      * Required for text import, as language code must be specified.
      * 
* * .google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6; - * * @return The textMetadata. */ @java.lang.Override @@ -1138,8 +999,6 @@ public com.google.cloud.datalabeling.v1beta1.TextMetadata getTextMetadata() { } } /** - * - * *
      * Required for text import, as language code must be specified.
      * 
@@ -1160,8 +1019,6 @@ public Builder setTextMetadata(com.google.cloud.datalabeling.v1beta1.TextMetadat return this; } /** - * - * *
      * Required for text import, as language code must be specified.
      * 
@@ -1180,8 +1037,6 @@ public Builder setTextMetadata( return this; } /** - * - * *
      * Required for text import, as language code must be specified.
      * 
@@ -1190,14 +1045,10 @@ public Builder setTextMetadata( */ public Builder mergeTextMetadata(com.google.cloud.datalabeling.v1beta1.TextMetadata value) { if (textMetadataBuilder_ == null) { - if (dataTypeMetadataCase_ == 6 - && dataTypeMetadata_ - != com.google.cloud.datalabeling.v1beta1.TextMetadata.getDefaultInstance()) { - dataTypeMetadata_ = - com.google.cloud.datalabeling.v1beta1.TextMetadata.newBuilder( - (com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_) - .mergeFrom(value) - .buildPartial(); + if (dataTypeMetadataCase_ == 6 && + dataTypeMetadata_ != com.google.cloud.datalabeling.v1beta1.TextMetadata.getDefaultInstance()) { + dataTypeMetadata_ = com.google.cloud.datalabeling.v1beta1.TextMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_) + .mergeFrom(value).buildPartial(); } else { dataTypeMetadata_ = value; } @@ -1213,8 +1064,6 @@ public Builder mergeTextMetadata(com.google.cloud.datalabeling.v1beta1.TextMetad return this; } /** - * - * *
      * Required for text import, as language code must be specified.
      * 
@@ -1238,8 +1087,6 @@ public Builder clearTextMetadata() { return this; } /** - * - * *
      * Required for text import, as language code must be specified.
      * 
@@ -1250,8 +1097,6 @@ public com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder getTextMetadat return getTextMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Required for text import, as language code must be specified.
      * 
@@ -1270,8 +1115,6 @@ public com.google.cloud.datalabeling.v1beta1.TextMetadataOrBuilder getTextMetada } } /** - * - * *
      * Required for text import, as language code must be specified.
      * 
@@ -1279,45 +1122,32 @@ public com.google.cloud.datalabeling.v1beta1.TextMetadataOrBuilder getTextMetada * .google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextMetadata, - com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.TextMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.TextMetadata, com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder, com.google.cloud.datalabeling.v1beta1.TextMetadataOrBuilder> getTextMetadataFieldBuilder() { if (textMetadataBuilder_ == null) { if (!(dataTypeMetadataCase_ == 6)) { - dataTypeMetadata_ = - com.google.cloud.datalabeling.v1beta1.TextMetadata.getDefaultInstance(); + dataTypeMetadata_ = com.google.cloud.datalabeling.v1beta1.TextMetadata.getDefaultInstance(); } - textMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextMetadata, - com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.TextMetadataOrBuilder>( + textMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TextMetadata, com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder, com.google.cloud.datalabeling.v1beta1.TextMetadataOrBuilder>( (com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_, getParentForChildren(), isClean()); dataTypeMetadata_ = null; } dataTypeMetadataCase_ = 6; - onChanged(); - ; + onChanged();; return textMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.GcsSource, - com.google.cloud.datalabeling.v1beta1.GcsSource.Builder, - com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder> - gcsSourceBuilder_; + com.google.cloud.datalabeling.v1beta1.GcsSource, com.google.cloud.datalabeling.v1beta1.GcsSource.Builder, com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder> gcsSourceBuilder_; /** - * - * *
      * Source located in Cloud Storage.
      * 
* * .google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -1325,14 +1155,11 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** - * - * *
      * Source located in Cloud Storage.
      * 
* * .google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ @java.lang.Override @@ -1350,8 +1177,6 @@ public com.google.cloud.datalabeling.v1beta1.GcsSource getGcsSource() { } } /** - * - * *
      * Source located in Cloud Storage.
      * 
@@ -1372,8 +1197,6 @@ public Builder setGcsSource(com.google.cloud.datalabeling.v1beta1.GcsSource valu return this; } /** - * - * *
      * Source located in Cloud Storage.
      * 
@@ -1392,8 +1215,6 @@ public Builder setGcsSource( return this; } /** - * - * *
      * Source located in Cloud Storage.
      * 
@@ -1402,13 +1223,10 @@ public Builder setGcsSource( */ public Builder mergeGcsSource(com.google.cloud.datalabeling.v1beta1.GcsSource value) { if (gcsSourceBuilder_ == null) { - if (sourceCase_ == 2 - && source_ != com.google.cloud.datalabeling.v1beta1.GcsSource.getDefaultInstance()) { - source_ = - com.google.cloud.datalabeling.v1beta1.GcsSource.newBuilder( - (com.google.cloud.datalabeling.v1beta1.GcsSource) source_) - .mergeFrom(value) - .buildPartial(); + if (sourceCase_ == 2 && + source_ != com.google.cloud.datalabeling.v1beta1.GcsSource.getDefaultInstance()) { + source_ = com.google.cloud.datalabeling.v1beta1.GcsSource.newBuilder((com.google.cloud.datalabeling.v1beta1.GcsSource) source_) + .mergeFrom(value).buildPartial(); } else { source_ = value; } @@ -1424,8 +1242,6 @@ public Builder mergeGcsSource(com.google.cloud.datalabeling.v1beta1.GcsSource va return this; } /** - * - * *
      * Source located in Cloud Storage.
      * 
@@ -1449,8 +1265,6 @@ public Builder clearGcsSource() { return this; } /** - * - * *
      * Source located in Cloud Storage.
      * 
@@ -1461,8 +1275,6 @@ public com.google.cloud.datalabeling.v1beta1.GcsSource.Builder getGcsSourceBuild return getGcsSourceFieldBuilder().getBuilder(); } /** - * - * *
      * Source located in Cloud Storage.
      * 
@@ -1481,8 +1293,6 @@ public com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder getGcsSourceOrBu } } /** - * - * *
      * Source located in Cloud Storage.
      * 
@@ -1490,45 +1300,33 @@ public com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder getGcsSourceOrBu * .google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.GcsSource, - com.google.cloud.datalabeling.v1beta1.GcsSource.Builder, - com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder> + com.google.cloud.datalabeling.v1beta1.GcsSource, com.google.cloud.datalabeling.v1beta1.GcsSource.Builder, com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder> getGcsSourceFieldBuilder() { if (gcsSourceBuilder_ == null) { if (!(sourceCase_ == 2)) { source_ = com.google.cloud.datalabeling.v1beta1.GcsSource.getDefaultInstance(); } - gcsSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.GcsSource, - com.google.cloud.datalabeling.v1beta1.GcsSource.Builder, - com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder>( + gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.GcsSource, com.google.cloud.datalabeling.v1beta1.GcsSource.Builder, com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder>( (com.google.cloud.datalabeling.v1beta1.GcsSource) source_, getParentForChildren(), isClean()); source_ = null; } sourceCase_ = 2; - onChanged(); - ; + onChanged();; return gcsSourceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.BigQuerySource, - com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder, - com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder> - bigquerySourceBuilder_; + com.google.cloud.datalabeling.v1beta1.BigQuerySource, com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder, com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder> bigquerySourceBuilder_; /** - * - * *
      * Source located in BigQuery. You must specify this field if you are using
      * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
      * 
* * .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5; - * * @return Whether the bigquerySource field is set. */ @java.lang.Override @@ -1536,15 +1334,12 @@ public boolean hasBigquerySource() { return sourceCase_ == 5; } /** - * - * *
      * Source located in BigQuery. You must specify this field if you are using
      * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
      * 
* * .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5; - * * @return The bigquerySource. */ @java.lang.Override @@ -1562,8 +1357,6 @@ public com.google.cloud.datalabeling.v1beta1.BigQuerySource getBigquerySource() } } /** - * - * *
      * Source located in BigQuery. You must specify this field if you are using
      * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
@@ -1585,8 +1378,6 @@ public Builder setBigquerySource(com.google.cloud.datalabeling.v1beta1.BigQueryS
       return this;
     }
     /**
-     *
-     *
      * 
      * Source located in BigQuery. You must specify this field if you are using
      * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
@@ -1606,8 +1397,6 @@ public Builder setBigquerySource(
       return this;
     }
     /**
-     *
-     *
      * 
      * Source located in BigQuery. You must specify this field if you are using
      * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
@@ -1617,14 +1406,10 @@ public Builder setBigquerySource(
      */
     public Builder mergeBigquerySource(com.google.cloud.datalabeling.v1beta1.BigQuerySource value) {
       if (bigquerySourceBuilder_ == null) {
-        if (sourceCase_ == 5
-            && source_
-                != com.google.cloud.datalabeling.v1beta1.BigQuerySource.getDefaultInstance()) {
-          source_ =
-              com.google.cloud.datalabeling.v1beta1.BigQuerySource.newBuilder(
-                      (com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (sourceCase_ == 5 &&
+            source_ != com.google.cloud.datalabeling.v1beta1.BigQuerySource.getDefaultInstance()) {
+          source_ = com.google.cloud.datalabeling.v1beta1.BigQuerySource.newBuilder((com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_)
+              .mergeFrom(value).buildPartial();
         } else {
           source_ = value;
         }
@@ -1640,8 +1425,6 @@ public Builder mergeBigquerySource(com.google.cloud.datalabeling.v1beta1.BigQuer
       return this;
     }
     /**
-     *
-     *
      * 
      * Source located in BigQuery. You must specify this field if you are using
      * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
@@ -1666,8 +1449,6 @@ public Builder clearBigquerySource() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Source located in BigQuery. You must specify this field if you are using
      * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
@@ -1679,8 +1460,6 @@ public com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder getBigqueryS
       return getBigquerySourceFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Source located in BigQuery. You must specify this field if you are using
      * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
@@ -1689,8 +1468,7 @@ public com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder getBigqueryS
      * .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5;
      */
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder
-        getBigquerySourceOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder() {
       if ((sourceCase_ == 5) && (bigquerySourceBuilder_ != null)) {
         return bigquerySourceBuilder_.getMessageOrBuilder();
       } else {
@@ -1701,8 +1479,6 @@ public com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder getBigqueryS
       }
     }
     /**
-     *
-     *
      * 
      * Source located in BigQuery. You must specify this field if you are using
      * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
@@ -1711,91 +1487,71 @@ public com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder getBigqueryS
      * .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.BigQuerySource,
-            com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder,
-            com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder>
+        com.google.cloud.datalabeling.v1beta1.BigQuerySource, com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder, com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder> 
         getBigquerySourceFieldBuilder() {
       if (bigquerySourceBuilder_ == null) {
         if (!(sourceCase_ == 5)) {
           source_ = com.google.cloud.datalabeling.v1beta1.BigQuerySource.getDefaultInstance();
         }
-        bigquerySourceBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.datalabeling.v1beta1.BigQuerySource,
-                com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder,
-                com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder>(
+        bigquerySourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.datalabeling.v1beta1.BigQuerySource, com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder, com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder>(
                 (com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_,
                 getParentForChildren(),
                 isClean());
         source_ = null;
       }
       sourceCase_ = 5;
-      onChanged();
-      ;
+      onChanged();;
       return bigquerySourceBuilder_;
     }
 
     private int dataType_ = 0;
     /**
-     *
-     *
      * 
      * Required. Data type must be specifed when user tries to import data.
      * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 1; - * * @return The enum numeric value on the wire for dataType. */ - @java.lang.Override - public int getDataTypeValue() { + @java.lang.Override public int getDataTypeValue() { return dataType_; } /** - * - * *
      * Required. Data type must be specifed when user tries to import data.
      * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 1; - * * @param value The enum numeric value on the wire for dataType to set. * @return This builder for chaining. */ public Builder setDataTypeValue(int value) { - + dataType_ = value; onChanged(); return this; } /** - * - * *
      * Required. Data type must be specifed when user tries to import data.
      * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 1; - * * @return The dataType. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.DataType getDataType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.DataType result = - com.google.cloud.datalabeling.v1beta1.DataType.valueOf(dataType_); + com.google.cloud.datalabeling.v1beta1.DataType result = com.google.cloud.datalabeling.v1beta1.DataType.valueOf(dataType_); return result == null ? com.google.cloud.datalabeling.v1beta1.DataType.UNRECOGNIZED : result; } /** - * - * *
      * Required. Data type must be specifed when user tries to import data.
      * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 1; - * * @param value The dataType to set. * @return This builder for chaining. */ @@ -1803,24 +1559,21 @@ public Builder setDataType(com.google.cloud.datalabeling.v1beta1.DataType value) if (value == null) { throw new NullPointerException(); } - + dataType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. Data type must be specifed when user tries to import data.
      * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 1; - * * @return This builder for chaining. */ public Builder clearDataType() { - + dataType_ = 0; onChanged(); return this; @@ -1828,8 +1581,6 @@ public Builder clearDataType() { private int annotationType_ = 0; /** - * - * *
      * Optional. The type of annotation to be performed on this data. You must
      * specify this field if you are using this InputConfig in an
@@ -1837,16 +1588,12 @@ public Builder clearDataType() {
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; - * * @return The enum numeric value on the wire for annotationType. */ - @java.lang.Override - public int getAnnotationTypeValue() { + @java.lang.Override public int getAnnotationTypeValue() { return annotationType_; } /** - * - * *
      * Optional. The type of annotation to be performed on this data. You must
      * specify this field if you are using this InputConfig in an
@@ -1854,19 +1601,16 @@ public int getAnnotationTypeValue() {
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; - * * @param value The enum numeric value on the wire for annotationType to set. * @return This builder for chaining. */ public Builder setAnnotationTypeValue(int value) { - + annotationType_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The type of annotation to be performed on this data. You must
      * specify this field if you are using this InputConfig in an
@@ -1874,21 +1618,15 @@ public Builder setAnnotationTypeValue(int value) {
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; - * * @return The annotationType. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationType result = - com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); - return result == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED - : result; + com.google.cloud.datalabeling.v1beta1.AnnotationType result = com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); + return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED : result; } /** - * - * *
      * Optional. The type of annotation to be performed on this data. You must
      * specify this field if you are using this InputConfig in an
@@ -1896,7 +1634,6 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType()
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; - * * @param value The annotationType to set. * @return This builder for chaining. */ @@ -1904,14 +1641,12 @@ public Builder setAnnotationType(com.google.cloud.datalabeling.v1beta1.Annotatio if (value == null) { throw new NullPointerException(); } - + annotationType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Optional. The type of annotation to be performed on this data. You must
      * specify this field if you are using this InputConfig in an
@@ -1919,11 +1654,10 @@ public Builder setAnnotationType(com.google.cloud.datalabeling.v1beta1.Annotatio
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; - * * @return This builder for chaining. */ public Builder clearAnnotationType() { - + annotationType_ = 0; onChanged(); return this; @@ -1931,65 +1665,47 @@ public Builder clearAnnotationType() { private com.google.cloud.datalabeling.v1beta1.ClassificationMetadata classificationMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata, - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder> - classificationMetadataBuilder_; + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata, com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder> classificationMetadataBuilder_; /** - * - * *
      * Optional. Metadata about annotations for the input. You must specify this
      * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
      * model version that performs classification.
      * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; - * - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; * @return Whether the classificationMetadata field is set. */ public boolean hasClassificationMetadata() { return classificationMetadataBuilder_ != null || classificationMetadata_ != null; } /** - * - * *
      * Optional. Metadata about annotations for the input. You must specify this
      * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
      * model version that performs classification.
      * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; - * - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; * @return The classificationMetadata. */ - public com.google.cloud.datalabeling.v1beta1.ClassificationMetadata - getClassificationMetadata() { + public com.google.cloud.datalabeling.v1beta1.ClassificationMetadata getClassificationMetadata() { if (classificationMetadataBuilder_ == null) { - return classificationMetadata_ == null - ? com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.getDefaultInstance() - : classificationMetadata_; + return classificationMetadata_ == null ? com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.getDefaultInstance() : classificationMetadata_; } else { return classificationMetadataBuilder_.getMessage(); } } /** - * - * *
      * Optional. Metadata about annotations for the input. You must specify this
      * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
      * model version that performs classification.
      * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; */ - public Builder setClassificationMetadata( - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata value) { + public Builder setClassificationMetadata(com.google.cloud.datalabeling.v1beta1.ClassificationMetadata value) { if (classificationMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2003,16 +1719,13 @@ public Builder setClassificationMetadata( return this; } /** - * - * *
      * Optional. Metadata about annotations for the input. You must specify this
      * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
      * model version that performs classification.
      * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; */ public Builder setClassificationMetadata( com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder builderForValue) { @@ -2026,26 +1739,19 @@ public Builder setClassificationMetadata( return this; } /** - * - * *
      * Optional. Metadata about annotations for the input. You must specify this
      * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
      * model version that performs classification.
      * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; */ - public Builder mergeClassificationMetadata( - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata value) { + public Builder mergeClassificationMetadata(com.google.cloud.datalabeling.v1beta1.ClassificationMetadata value) { if (classificationMetadataBuilder_ == null) { if (classificationMetadata_ != null) { classificationMetadata_ = - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.newBuilder( - classificationMetadata_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.newBuilder(classificationMetadata_).mergeFrom(value).buildPartial(); } else { classificationMetadata_ = value; } @@ -2057,16 +1763,13 @@ public Builder mergeClassificationMetadata( return this; } /** - * - * *
      * Optional. Metadata about annotations for the input. You must specify this
      * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
      * model version that performs classification.
      * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; */ public Builder clearClassificationMetadata() { if (classificationMetadataBuilder_ == null) { @@ -2080,76 +1783,61 @@ public Builder clearClassificationMetadata() { return this; } /** - * - * *
      * Optional. Metadata about annotations for the input. You must specify this
      * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
      * model version that performs classification.
      * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; */ - public com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder - getClassificationMetadataBuilder() { - + public com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder getClassificationMetadataBuilder() { + onChanged(); return getClassificationMetadataFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Metadata about annotations for the input. You must specify this
      * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
      * model version that performs classification.
      * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; */ - public com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder - getClassificationMetadataOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder getClassificationMetadataOrBuilder() { if (classificationMetadataBuilder_ != null) { return classificationMetadataBuilder_.getMessageOrBuilder(); } else { - return classificationMetadata_ == null - ? com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.getDefaultInstance() - : classificationMetadata_; + return classificationMetadata_ == null ? + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.getDefaultInstance() : classificationMetadata_; } } /** - * - * *
      * Optional. Metadata about annotations for the input. You must specify this
      * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
      * model version that performs classification.
      * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata, - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata, com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder> getClassificationMetadataFieldBuilder() { if (classificationMetadataBuilder_ == null) { - classificationMetadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata, - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder>( - getClassificationMetadata(), getParentForChildren(), isClean()); + classificationMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata, com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder>( + getClassificationMetadata(), + getParentForChildren(), + isClean()); classificationMetadata_ = null; } return classificationMetadataBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2159,12 +1847,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.InputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.InputConfig) private static final com.google.cloud.datalabeling.v1beta1.InputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.InputConfig(); } @@ -2173,16 +1861,16 @@ public static com.google.cloud.datalabeling.v1beta1.InputConfig getDefaultInstan 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; @@ -2197,4 +1885,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.InputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfigOrBuilder.java similarity index 84% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfigOrBuilder.java index d0d860ff..835af6c7 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfigOrBuilder.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; -public interface InputConfigOrBuilder - extends +public interface InputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.InputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required for text import, as language code must be specified.
    * 
* * .google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6; - * * @return Whether the textMetadata field is set. */ boolean hasTextMetadata(); /** - * - * *
    * Required for text import, as language code must be specified.
    * 
* * .google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6; - * * @return The textMetadata. */ com.google.cloud.datalabeling.v1beta1.TextMetadata getTextMetadata(); /** - * - * *
    * Required for text import, as language code must be specified.
    * 
@@ -59,32 +35,24 @@ public interface InputConfigOrBuilder com.google.cloud.datalabeling.v1beta1.TextMetadataOrBuilder getTextMetadataOrBuilder(); /** - * - * *
    * Source located in Cloud Storage.
    * 
* * .google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2; - * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** - * - * *
    * Source located in Cloud Storage.
    * 
* * .google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2; - * * @return The gcsSource. */ com.google.cloud.datalabeling.v1beta1.GcsSource getGcsSource(); /** - * - * *
    * Source located in Cloud Storage.
    * 
@@ -94,34 +62,26 @@ public interface InputConfigOrBuilder com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(); /** - * - * *
    * Source located in BigQuery. You must specify this field if you are using
    * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
    * 
* * .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5; - * * @return Whether the bigquerySource field is set. */ boolean hasBigquerySource(); /** - * - * *
    * Source located in BigQuery. You must specify this field if you are using
    * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
    * 
* * .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5; - * * @return The bigquerySource. */ com.google.cloud.datalabeling.v1beta1.BigQuerySource getBigquerySource(); /** - * - * *
    * Source located in BigQuery. You must specify this field if you are using
    * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
@@ -132,33 +92,25 @@ public interface InputConfigOrBuilder
   com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder();
 
   /**
-   *
-   *
    * 
    * Required. Data type must be specifed when user tries to import data.
    * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 1; - * * @return The enum numeric value on the wire for dataType. */ int getDataTypeValue(); /** - * - * *
    * Required. Data type must be specifed when user tries to import data.
    * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 1; - * * @return The dataType. */ com.google.cloud.datalabeling.v1beta1.DataType getDataType(); /** - * - * *
    * Optional. The type of annotation to be performed on this data. You must
    * specify this field if you are using this InputConfig in an
@@ -166,13 +118,10 @@ public interface InputConfigOrBuilder
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; - * * @return The enum numeric value on the wire for annotationType. */ int getAnnotationTypeValue(); /** - * - * *
    * Optional. The type of annotation to be performed on this data. You must
    * specify this field if you are using this InputConfig in an
@@ -180,58 +129,44 @@ public interface InputConfigOrBuilder
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; - * * @return The annotationType. */ com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType(); /** - * - * *
    * Optional. Metadata about annotations for the input. You must specify this
    * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
    * model version that performs classification.
    * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; - * - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; * @return Whether the classificationMetadata field is set. */ boolean hasClassificationMetadata(); /** - * - * *
    * Optional. Metadata about annotations for the input. You must specify this
    * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
    * model version that performs classification.
    * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; - * - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; * @return The classificationMetadata. */ com.google.cloud.datalabeling.v1beta1.ClassificationMetadata getClassificationMetadata(); /** - * - * *
    * Optional. Metadata about annotations for the input. You must specify this
    * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
    * model version that performs classification.
    * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; - * + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; */ - com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder - getClassificationMetadataOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder getClassificationMetadataOrBuilder(); - public com.google.cloud.datalabeling.v1beta1.InputConfig.DataTypeMetadataCase - getDataTypeMetadataCase(); + public com.google.cloud.datalabeling.v1beta1.InputConfig.DataTypeMetadataCase getDataTypeMetadataCase(); public com.google.cloud.datalabeling.v1beta1.InputConfig.SourceCase getSourceCase(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Instruction.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Instruction.java similarity index 72% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Instruction.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Instruction.java index 867b4e57..4f33867c 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Instruction.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Instruction.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/datalabeling/v1beta1/instruction.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Instruction of how to perform the labeling task for human operators.
  * Currently only PDF instruction is supported.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.Instruction}
  */
-public final class Instruction extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Instruction extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.Instruction)
     InstructionOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Instruction.newBuilder() to construct.
   private Instruction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Instruction() {
     name_ = "";
     displayName_ = "";
@@ -48,15 +30,16 @@ private Instruction() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Instruction();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Instruction(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -76,115 +59,98 @@ private Instruction(
           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 34: {
+            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 34:
-            {
-              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 42: {
+            com.google.protobuf.Timestamp.Builder subBuilder = null;
+            if (updateTime_ != null) {
+              subBuilder = updateTime_.toBuilder();
             }
-          case 42:
-            {
-              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;
+            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(updateTime_);
+              updateTime_ = subBuilder.buildPartial();
             }
-          case 48:
-            {
-              int rawValue = input.readEnum();
 
-              dataType_ = rawValue;
-              break;
+            break;
+          }
+          case 48: {
+            int rawValue = input.readEnum();
+
+            dataType_ = rawValue;
+            break;
+          }
+          case 58: {
+            com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder subBuilder = null;
+            if (csvInstruction_ != null) {
+              subBuilder = csvInstruction_.toBuilder();
             }
-          case 58:
-            {
-              com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder subBuilder = null;
-              if (csvInstruction_ != null) {
-                subBuilder = csvInstruction_.toBuilder();
-              }
-              csvInstruction_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.CsvInstruction.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(csvInstruction_);
-                csvInstruction_ = subBuilder.buildPartial();
-              }
-
-              break;
+            csvInstruction_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.CsvInstruction.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(csvInstruction_);
+              csvInstruction_ = subBuilder.buildPartial();
             }
-          case 74:
-            {
-              com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder subBuilder = null;
-              if (pdfInstruction_ != null) {
-                subBuilder = pdfInstruction_.toBuilder();
-              }
-              pdfInstruction_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.PdfInstruction.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(pdfInstruction_);
-                pdfInstruction_ = subBuilder.buildPartial();
-              }
-
-              break;
+
+            break;
+          }
+          case 74: {
+            com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder subBuilder = null;
+            if (pdfInstruction_ != null) {
+              subBuilder = pdfInstruction_.toBuilder();
             }
-          case 82:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                blockingResources_ = new com.google.protobuf.LazyStringArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              blockingResources_.add(s);
-              break;
+            pdfInstruction_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.PdfInstruction.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom(pdfInstruction_);
+              pdfInstruction_ = subBuilder.buildPartial();
+            }
+
+            break;
+          }
+          case 82: {
+            java.lang.String s = input.readStringRequireUtf8();
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              blockingResources_ = new com.google.protobuf.LazyStringArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            blockingResources_.add(s);
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -192,7 +158,8 @@ private Instruction(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } 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)) {
         blockingResources_ = blockingResources_.getUnmodifiableView();
@@ -201,34 +168,28 @@ private Instruction(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_Instruction_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Instruction_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_Instruction_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Instruction_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.Instruction.class,
-            com.google.cloud.datalabeling.v1beta1.Instruction.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.Instruction.class, com.google.cloud.datalabeling.v1beta1.Instruction.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
-   *
-   *
    * 
    * Output only. Instruction resource name, format:
    * projects/{project_id}/instructions/{instruction_id}
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -237,30 +198,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. Instruction resource name, format:
    * projects/{project_id}/instructions/{instruction_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 { @@ -271,14 +232,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** - * - * *
    * Required. The display name of the instruction. Maximum of 64 characters.
    * 
* * string display_name = 2; - * * @return The displayName. */ @java.lang.Override @@ -287,29 +245,29 @@ 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 display name of the instruction. Maximum of 64 characters.
    * 
* * 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 { @@ -320,15 +278,12 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** - * - * *
    * Optional. User-provided description of the instruction.
    * The description can be up to 10000 characters long.
    * 
* * string description = 3; - * * @return The description. */ @java.lang.Override @@ -337,30 +292,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; } } /** - * - * *
    * Optional. User-provided description of the instruction.
    * The description can be up to 10000 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 { @@ -371,14 +326,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Creation time of instruction.
    * 
* * .google.protobuf.Timestamp create_time = 4; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -386,14 +338,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Creation time of instruction.
    * 
* * .google.protobuf.Timestamp create_time = 4; - * * @return The createTime. */ @java.lang.Override @@ -401,8 +350,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Creation time of instruction.
    * 
@@ -417,14 +364,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** - * - * *
    * Output only. Last update time of instruction.
    * 
* * .google.protobuf.Timestamp update_time = 5; - * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -432,14 +376,11 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** - * - * *
    * Output only. Last update time of instruction.
    * 
* * .google.protobuf.Timestamp update_time = 5; - * * @return The updateTime. */ @java.lang.Override @@ -447,8 +388,6 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** - * - * *
    * Output only. Last update time of instruction.
    * 
@@ -463,44 +402,33 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DATA_TYPE_FIELD_NUMBER = 6; private int dataType_; /** - * - * *
    * Required. The data type of this instruction.
    * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 6; - * * @return The enum numeric value on the wire for dataType. */ - @java.lang.Override - public int getDataTypeValue() { + @java.lang.Override public int getDataTypeValue() { return dataType_; } /** - * - * *
    * Required. The data type of this instruction.
    * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 6; - * * @return The dataType. */ - @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.DataType getDataType() { + @java.lang.Override public com.google.cloud.datalabeling.v1beta1.DataType getDataType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.DataType result = - com.google.cloud.datalabeling.v1beta1.DataType.valueOf(dataType_); + com.google.cloud.datalabeling.v1beta1.DataType result = com.google.cloud.datalabeling.v1beta1.DataType.valueOf(dataType_); return result == null ? com.google.cloud.datalabeling.v1beta1.DataType.UNRECOGNIZED : result; } public static final int CSV_INSTRUCTION_FIELD_NUMBER = 7; private com.google.cloud.datalabeling.v1beta1.CsvInstruction csvInstruction_; /** - * - * *
    * Deprecated: this instruction format is not supported any more.
    * Instruction from a CSV file, such as for classification task.
@@ -509,22 +437,16 @@ public com.google.cloud.datalabeling.v1beta1.DataType getDataType() {
    * * The second column is comma separated labels associated with data.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; - * - * - * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. See - * google/cloud/datalabeling/v1beta1/instruction.proto;l=65 + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. + * See google/cloud/datalabeling/v1beta1/instruction.proto;l=65 * @return Whether the csvInstruction field is set. */ @java.lang.Override - @java.lang.Deprecated - public boolean hasCsvInstruction() { + @java.lang.Deprecated public boolean hasCsvInstruction() { return csvInstruction_ != null; } /** - * - * *
    * Deprecated: this instruction format is not supported any more.
    * Instruction from a CSV file, such as for classification task.
@@ -533,24 +455,16 @@ public boolean hasCsvInstruction() {
    * * The second column is comma separated labels associated with data.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; - * - * - * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. See - * google/cloud/datalabeling/v1beta1/instruction.proto;l=65 + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. + * See google/cloud/datalabeling/v1beta1/instruction.proto;l=65 * @return The csvInstruction. */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.datalabeling.v1beta1.CsvInstruction getCsvInstruction() { - return csvInstruction_ == null - ? com.google.cloud.datalabeling.v1beta1.CsvInstruction.getDefaultInstance() - : csvInstruction_; + @java.lang.Deprecated public com.google.cloud.datalabeling.v1beta1.CsvInstruction getCsvInstruction() { + return csvInstruction_ == null ? com.google.cloud.datalabeling.v1beta1.CsvInstruction.getDefaultInstance() : csvInstruction_; } /** - * - * *
    * Deprecated: this instruction format is not supported any more.
    * Instruction from a CSV file, such as for classification task.
@@ -559,29 +473,22 @@ public com.google.cloud.datalabeling.v1beta1.CsvInstruction getCsvInstruction()
    * * The second column is comma separated labels associated with data.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; - * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; */ @java.lang.Override - @java.lang.Deprecated - public com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder - getCsvInstructionOrBuilder() { + @java.lang.Deprecated public com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder getCsvInstructionOrBuilder() { return getCsvInstruction(); } public static final int PDF_INSTRUCTION_FIELD_NUMBER = 9; private com.google.cloud.datalabeling.v1beta1.PdfInstruction pdfInstruction_; /** - * - * *
    * Instruction from a PDF document. The PDF should be in a Cloud Storage
    * bucket.
    * 
* * .google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9; - * * @return Whether the pdfInstruction field is set. */ @java.lang.Override @@ -589,26 +496,19 @@ public boolean hasPdfInstruction() { return pdfInstruction_ != null; } /** - * - * *
    * Instruction from a PDF document. The PDF should be in a Cloud Storage
    * bucket.
    * 
* * .google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9; - * * @return The pdfInstruction. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PdfInstruction getPdfInstruction() { - return pdfInstruction_ == null - ? com.google.cloud.datalabeling.v1beta1.PdfInstruction.getDefaultInstance() - : pdfInstruction_; + return pdfInstruction_ == null ? com.google.cloud.datalabeling.v1beta1.PdfInstruction.getDefaultInstance() : pdfInstruction_; } /** - * - * *
    * Instruction from a PDF document. The PDF should be in a Cloud Storage
    * bucket.
@@ -617,53 +517,44 @@ public com.google.cloud.datalabeling.v1beta1.PdfInstruction getPdfInstruction()
    * .google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder
-      getPdfInstructionOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder getPdfInstructionOrBuilder() {
     return getPdfInstruction();
   }
 
   public static final int BLOCKING_RESOURCES_FIELD_NUMBER = 10;
   private com.google.protobuf.LazyStringList blockingResources_;
   /**
-   *
-   *
    * 
    * Output only. The names of any related resources that are blocking changes
    * to the instruction.
    * 
* * repeated string blocking_resources = 10; - * * @return A list containing the blockingResources. */ - public com.google.protobuf.ProtocolStringList getBlockingResourcesList() { + public com.google.protobuf.ProtocolStringList + getBlockingResourcesList() { return blockingResources_; } /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the instruction.
    * 
* * repeated string blocking_resources = 10; - * * @return The count of blockingResources. */ public int getBlockingResourcesCount() { return blockingResources_.size(); } /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the instruction.
    * 
* * repeated string blocking_resources = 10; - * * @param index The index of the element to return. * @return The blockingResources at the given index. */ @@ -671,24 +562,21 @@ public java.lang.String getBlockingResources(int index) { return blockingResources_.get(index); } /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the instruction.
    * 
* * repeated string blocking_resources = 10; - * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - public com.google.protobuf.ByteString getBlockingResourcesBytes(int index) { + public com.google.protobuf.ByteString + getBlockingResourcesBytes(int index) { return blockingResources_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -700,7 +588,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_); } @@ -716,8 +605,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(5, getUpdateTime()); } - if (dataType_ - != com.google.cloud.datalabeling.v1beta1.DataType.DATA_TYPE_UNSPECIFIED.getNumber()) { + if (dataType_ != com.google.cloud.datalabeling.v1beta1.DataType.DATA_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(6, dataType_); } if (csvInstruction_ != null) { @@ -748,20 +636,24 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getUpdateTime()); } - if (dataType_ - != com.google.cloud.datalabeling.v1beta1.DataType.DATA_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, dataType_); + if (dataType_ != com.google.cloud.datalabeling.v1beta1.DataType.DATA_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, dataType_); } if (csvInstruction_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCsvInstruction()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCsvInstruction()); } if (pdfInstruction_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getPdfInstruction()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getPdfInstruction()); } { int dataSize = 0; @@ -779,35 +671,42 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.Instruction)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.Instruction other = - (com.google.cloud.datalabeling.v1beta1.Instruction) obj; + com.google.cloud.datalabeling.v1beta1.Instruction other = (com.google.cloud.datalabeling.v1beta1.Instruction) obj; - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) 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 (dataType_ != other.dataType_) return false; if (hasCsvInstruction() != other.hasCsvInstruction()) return false; if (hasCsvInstruction()) { - if (!getCsvInstruction().equals(other.getCsvInstruction())) return false; + if (!getCsvInstruction() + .equals(other.getCsvInstruction())) return false; } if (hasPdfInstruction() != other.hasPdfInstruction()) return false; if (hasPdfInstruction()) { - if (!getPdfInstruction().equals(other.getPdfInstruction())) return false; + if (!getPdfInstruction() + .equals(other.getPdfInstruction())) return false; } - if (!getBlockingResourcesList().equals(other.getBlockingResourcesList())) return false; + if (!getBlockingResourcesList() + .equals(other.getBlockingResourcesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -853,103 +752,96 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.Instruction 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.datalabeling.v1beta1.Instruction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Instruction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.Instruction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Instruction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.Instruction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.Instruction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.Instruction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.Instruction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.Instruction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.Instruction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.Instruction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Instruction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.Instruction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.Instruction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Instruction of how to perform the labeling task for human operators.
    * Currently only PDF instruction is supported.
@@ -957,23 +849,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.Instruction}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.Instruction)
       com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_Instruction_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Instruction_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_Instruction_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Instruction_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.Instruction.class,
-              com.google.cloud.datalabeling.v1beta1.Instruction.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.Instruction.class, com.google.cloud.datalabeling.v1beta1.Instruction.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.Instruction.newBuilder()
@@ -981,15 +871,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();
@@ -1031,9 +922,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_Instruction_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Instruction_descriptor;
     }
 
     @java.lang.Override
@@ -1052,8 +943,7 @@ public com.google.cloud.datalabeling.v1beta1.Instruction build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.Instruction buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.Instruction result =
-          new com.google.cloud.datalabeling.v1beta1.Instruction(this);
+      com.google.cloud.datalabeling.v1beta1.Instruction result = new com.google.cloud.datalabeling.v1beta1.Instruction(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.displayName_ = displayName_;
@@ -1092,39 +982,38 @@ public com.google.cloud.datalabeling.v1beta1.Instruction buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.Instruction) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Instruction) other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Instruction)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1132,8 +1021,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.Instruction other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1190,8 +1078,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.datalabeling.v1beta1.Instruction) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.datalabeling.v1beta1.Instruction) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1200,26 +1087,23 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * Output only. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_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; @@ -1228,22 +1112,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Output only. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_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 { @@ -1251,64 +1134,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Output only. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_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. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_id}
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Output only. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_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; @@ -1316,20 +1192,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object displayName_ = ""; /** - * - * *
      * Required. The display name of the instruction. Maximum of 64 characters.
      * 
* * 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; @@ -1338,21 +1212,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * Required. The display name of the instruction. Maximum of 64 characters.
      * 
* * 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 { @@ -1360,61 +1233,54 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * Required. The display name of the instruction. Maximum of 64 characters.
      * 
* * 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 display name of the instruction. Maximum of 64 characters.
      * 
* * string display_name = 2; - * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** - * - * *
      * Required. The display name of the instruction. Maximum of 64 characters.
      * 
* * 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; @@ -1422,21 +1288,19 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object description_ = ""; /** - * - * *
      * Optional. User-provided description of the instruction.
      * The description can be up to 10000 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; @@ -1445,22 +1309,21 @@ public java.lang.String getDescription() { } } /** - * - * *
      * Optional. User-provided description of the instruction.
      * The description can be up to 10000 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 { @@ -1468,64 +1331,57 @@ public com.google.protobuf.ByteString getDescriptionBytes() { } } /** - * - * *
      * Optional. User-provided description of the instruction.
      * The description can be up to 10000 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; } /** - * - * *
      * Optional. User-provided description of the instruction.
      * The description can be up to 10000 characters long.
      * 
* * string description = 3; - * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** - * - * *
      * Optional. User-provided description of the instruction.
      * The description can be up to 10000 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; @@ -1533,47 +1389,34 @@ public Builder setDescriptionBytes(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. Creation time of instruction.
      * 
* * .google.protobuf.Timestamp create_time = 4; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Creation time of instruction.
      * 
* * .google.protobuf.Timestamp create_time = 4; - * * @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. Creation time of instruction.
      * 
@@ -1594,15 +1437,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Creation time of instruction.
      * 
* * .google.protobuf.Timestamp create_time = 4; */ - 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(); @@ -1613,8 +1455,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Creation time of instruction.
      * 
@@ -1625,7 +1465,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; } @@ -1637,8 +1477,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Creation time of instruction.
      * 
@@ -1657,8 +1495,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Creation time of instruction.
      * 
@@ -1666,13 +1502,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 4; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Creation time of instruction.
      * 
@@ -1683,14 +1517,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. Creation time of instruction.
      * 
@@ -1698,17 +1529,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_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> 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_; @@ -1716,47 +1544,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. Last update time of instruction.
      * 
* * .google.protobuf.Timestamp update_time = 5; - * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** - * - * *
      * Output only. Last update time of instruction.
      * 
* * .google.protobuf.Timestamp update_time = 5; - * * @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. Last update time of instruction.
      * 
@@ -1777,15 +1592,14 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Last update time of instruction.
      * 
* * .google.protobuf.Timestamp update_time = 5; */ - 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(); @@ -1796,8 +1610,6 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Last update time of instruction.
      * 
@@ -1808,7 +1620,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; } @@ -1820,8 +1632,6 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Last update time of instruction.
      * 
@@ -1840,8 +1650,6 @@ public Builder clearUpdateTime() { return this; } /** - * - * *
      * Output only. Last update time of instruction.
      * 
@@ -1849,13 +1657,11 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 5; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Last update time of instruction.
      * 
@@ -1866,14 +1672,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. Last update time of instruction.
      * 
@@ -1881,17 +1684,14 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_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> 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_; @@ -1899,65 +1699,51 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private int dataType_ = 0; /** - * - * *
      * Required. The data type of this instruction.
      * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 6; - * * @return The enum numeric value on the wire for dataType. */ - @java.lang.Override - public int getDataTypeValue() { + @java.lang.Override public int getDataTypeValue() { return dataType_; } /** - * - * *
      * Required. The data type of this instruction.
      * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 6; - * * @param value The enum numeric value on the wire for dataType to set. * @return This builder for chaining. */ public Builder setDataTypeValue(int value) { - + dataType_ = value; onChanged(); return this; } /** - * - * *
      * Required. The data type of this instruction.
      * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 6; - * * @return The dataType. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.DataType getDataType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.DataType result = - com.google.cloud.datalabeling.v1beta1.DataType.valueOf(dataType_); + com.google.cloud.datalabeling.v1beta1.DataType result = com.google.cloud.datalabeling.v1beta1.DataType.valueOf(dataType_); return result == null ? com.google.cloud.datalabeling.v1beta1.DataType.UNRECOGNIZED : result; } /** - * - * *
      * Required. The data type of this instruction.
      * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 6; - * * @param value The dataType to set. * @return This builder for chaining. */ @@ -1965,24 +1751,21 @@ public Builder setDataType(com.google.cloud.datalabeling.v1beta1.DataType value) if (value == null) { throw new NullPointerException(); } - + dataType_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The data type of this instruction.
      * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 6; - * * @return This builder for chaining. */ public Builder clearDataType() { - + dataType_ = 0; onChanged(); return this; @@ -1990,13 +1773,8 @@ public Builder clearDataType() { private com.google.cloud.datalabeling.v1beta1.CsvInstruction csvInstruction_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.CsvInstruction, - com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder, - com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder> - csvInstructionBuilder_; + com.google.cloud.datalabeling.v1beta1.CsvInstruction, com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder, com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder> csvInstructionBuilder_; /** - * - * *
      * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
@@ -2005,21 +1783,15 @@ public Builder clearDataType() {
      * * The second column is comma separated labels associated with data.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; - * - * - * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. See - * google/cloud/datalabeling/v1beta1/instruction.proto;l=65 + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. + * See google/cloud/datalabeling/v1beta1/instruction.proto;l=65 * @return Whether the csvInstruction field is set. */ - @java.lang.Deprecated - public boolean hasCsvInstruction() { + @java.lang.Deprecated public boolean hasCsvInstruction() { return csvInstructionBuilder_ != null || csvInstruction_ != null; } /** - * - * *
      * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
@@ -2028,27 +1800,19 @@ public boolean hasCsvInstruction() {
      * * The second column is comma separated labels associated with data.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; - * - * - * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. See - * google/cloud/datalabeling/v1beta1/instruction.proto;l=65 + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. + * See google/cloud/datalabeling/v1beta1/instruction.proto;l=65 * @return The csvInstruction. */ - @java.lang.Deprecated - public com.google.cloud.datalabeling.v1beta1.CsvInstruction getCsvInstruction() { + @java.lang.Deprecated public com.google.cloud.datalabeling.v1beta1.CsvInstruction getCsvInstruction() { if (csvInstructionBuilder_ == null) { - return csvInstruction_ == null - ? com.google.cloud.datalabeling.v1beta1.CsvInstruction.getDefaultInstance() - : csvInstruction_; + return csvInstruction_ == null ? com.google.cloud.datalabeling.v1beta1.CsvInstruction.getDefaultInstance() : csvInstruction_; } else { return csvInstructionBuilder_.getMessage(); } } /** - * - * *
      * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
@@ -2057,12 +1821,9 @@ public com.google.cloud.datalabeling.v1beta1.CsvInstruction getCsvInstruction()
      * * The second column is comma separated labels associated with data.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; - * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setCsvInstruction(com.google.cloud.datalabeling.v1beta1.CsvInstruction value) { + @java.lang.Deprecated public Builder setCsvInstruction(com.google.cloud.datalabeling.v1beta1.CsvInstruction value) { if (csvInstructionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2076,8 +1837,6 @@ public Builder setCsvInstruction(com.google.cloud.datalabeling.v1beta1.CsvInstru return this; } /** - * - * *
      * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
@@ -2086,12 +1845,9 @@ public Builder setCsvInstruction(com.google.cloud.datalabeling.v1beta1.CsvInstru
      * * The second column is comma separated labels associated with data.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; - * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; */ - @java.lang.Deprecated - public Builder setCsvInstruction( + @java.lang.Deprecated public Builder setCsvInstruction( com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder builderForValue) { if (csvInstructionBuilder_ == null) { csvInstruction_ = builderForValue.build(); @@ -2103,8 +1859,6 @@ public Builder setCsvInstruction( return this; } /** - * - * *
      * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
@@ -2113,18 +1867,13 @@ public Builder setCsvInstruction(
      * * The second column is comma separated labels associated with data.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; - * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; */ - @java.lang.Deprecated - public Builder mergeCsvInstruction(com.google.cloud.datalabeling.v1beta1.CsvInstruction value) { + @java.lang.Deprecated public Builder mergeCsvInstruction(com.google.cloud.datalabeling.v1beta1.CsvInstruction value) { if (csvInstructionBuilder_ == null) { if (csvInstruction_ != null) { csvInstruction_ = - com.google.cloud.datalabeling.v1beta1.CsvInstruction.newBuilder(csvInstruction_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.CsvInstruction.newBuilder(csvInstruction_).mergeFrom(value).buildPartial(); } else { csvInstruction_ = value; } @@ -2136,8 +1885,6 @@ public Builder mergeCsvInstruction(com.google.cloud.datalabeling.v1beta1.CsvInst return this; } /** - * - * *
      * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
@@ -2146,12 +1893,9 @@ public Builder mergeCsvInstruction(com.google.cloud.datalabeling.v1beta1.CsvInst
      * * The second column is comma separated labels associated with data.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; - * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; */ - @java.lang.Deprecated - public Builder clearCsvInstruction() { + @java.lang.Deprecated public Builder clearCsvInstruction() { if (csvInstructionBuilder_ == null) { csvInstruction_ = null; onChanged(); @@ -2163,8 +1907,6 @@ public Builder clearCsvInstruction() { return this; } /** - * - * *
      * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
@@ -2173,19 +1915,14 @@ public Builder clearCsvInstruction() {
      * * The second column is comma separated labels associated with data.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; - * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder getCsvInstructionBuilder() { - + @java.lang.Deprecated public com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder getCsvInstructionBuilder() { + onChanged(); return getCsvInstructionFieldBuilder().getBuilder(); } /** - * - * *
      * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
@@ -2194,24 +1931,17 @@ public com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder getCsvInstru
      * * The second column is comma separated labels associated with data.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; - * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; */ - @java.lang.Deprecated - public com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder - getCsvInstructionOrBuilder() { + @java.lang.Deprecated public com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder getCsvInstructionOrBuilder() { if (csvInstructionBuilder_ != null) { return csvInstructionBuilder_.getMessageOrBuilder(); } else { - return csvInstruction_ == null - ? com.google.cloud.datalabeling.v1beta1.CsvInstruction.getDefaultInstance() - : csvInstruction_; + return csvInstruction_ == null ? + com.google.cloud.datalabeling.v1beta1.CsvInstruction.getDefaultInstance() : csvInstruction_; } } /** - * - * *
      * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
@@ -2220,22 +1950,17 @@ public com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder getCsvInstru
      * * The second column is comma separated labels associated with data.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; - * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.CsvInstruction, - com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder, - com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder> + com.google.cloud.datalabeling.v1beta1.CsvInstruction, com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder, com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder> getCsvInstructionFieldBuilder() { if (csvInstructionBuilder_ == null) { - csvInstructionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.CsvInstruction, - com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder, - com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder>( - getCsvInstruction(), getParentForChildren(), isClean()); + csvInstructionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.CsvInstruction, com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder, com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder>( + getCsvInstruction(), + getParentForChildren(), + isClean()); csvInstruction_ = null; } return csvInstructionBuilder_; @@ -2243,49 +1968,36 @@ public com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder getCsvInstru private com.google.cloud.datalabeling.v1beta1.PdfInstruction pdfInstruction_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.PdfInstruction, - com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder, - com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder> - pdfInstructionBuilder_; + com.google.cloud.datalabeling.v1beta1.PdfInstruction, com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder, com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder> pdfInstructionBuilder_; /** - * - * *
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
      * 
* * .google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9; - * * @return Whether the pdfInstruction field is set. */ public boolean hasPdfInstruction() { return pdfInstructionBuilder_ != null || pdfInstruction_ != null; } /** - * - * *
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
      * 
* * .google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9; - * * @return The pdfInstruction. */ public com.google.cloud.datalabeling.v1beta1.PdfInstruction getPdfInstruction() { if (pdfInstructionBuilder_ == null) { - return pdfInstruction_ == null - ? com.google.cloud.datalabeling.v1beta1.PdfInstruction.getDefaultInstance() - : pdfInstruction_; + return pdfInstruction_ == null ? com.google.cloud.datalabeling.v1beta1.PdfInstruction.getDefaultInstance() : pdfInstruction_; } else { return pdfInstructionBuilder_.getMessage(); } } /** - * - * *
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
@@ -2307,8 +2019,6 @@ public Builder setPdfInstruction(com.google.cloud.datalabeling.v1beta1.PdfInstru
       return this;
     }
     /**
-     *
-     *
      * 
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
@@ -2328,8 +2038,6 @@ public Builder setPdfInstruction(
       return this;
     }
     /**
-     *
-     *
      * 
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
@@ -2341,9 +2049,7 @@ public Builder mergePdfInstruction(com.google.cloud.datalabeling.v1beta1.PdfInst
       if (pdfInstructionBuilder_ == null) {
         if (pdfInstruction_ != null) {
           pdfInstruction_ =
-              com.google.cloud.datalabeling.v1beta1.PdfInstruction.newBuilder(pdfInstruction_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.datalabeling.v1beta1.PdfInstruction.newBuilder(pdfInstruction_).mergeFrom(value).buildPartial();
         } else {
           pdfInstruction_ = value;
         }
@@ -2355,8 +2061,6 @@ public Builder mergePdfInstruction(com.google.cloud.datalabeling.v1beta1.PdfInst
       return this;
     }
     /**
-     *
-     *
      * 
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
@@ -2376,8 +2080,6 @@ public Builder clearPdfInstruction() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
@@ -2386,13 +2088,11 @@ public Builder clearPdfInstruction() {
      * .google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9;
      */
     public com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder getPdfInstructionBuilder() {
-
+      
       onChanged();
       return getPdfInstructionFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
@@ -2400,19 +2100,15 @@ public com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder getPdfInstru
      *
      * .google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9;
      */
-    public com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder
-        getPdfInstructionOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder getPdfInstructionOrBuilder() {
       if (pdfInstructionBuilder_ != null) {
         return pdfInstructionBuilder_.getMessageOrBuilder();
       } else {
-        return pdfInstruction_ == null
-            ? com.google.cloud.datalabeling.v1beta1.PdfInstruction.getDefaultInstance()
-            : pdfInstruction_;
+        return pdfInstruction_ == null ?
+            com.google.cloud.datalabeling.v1beta1.PdfInstruction.getDefaultInstance() : pdfInstruction_;
       }
     }
     /**
-     *
-     *
      * 
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
@@ -2421,71 +2117,58 @@ public com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder getPdfInstru
      * .google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.PdfInstruction,
-            com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder,
-            com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder>
+        com.google.cloud.datalabeling.v1beta1.PdfInstruction, com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder, com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder> 
         getPdfInstructionFieldBuilder() {
       if (pdfInstructionBuilder_ == null) {
-        pdfInstructionBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.datalabeling.v1beta1.PdfInstruction,
-                com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder,
-                com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder>(
-                getPdfInstruction(), getParentForChildren(), isClean());
+        pdfInstructionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.datalabeling.v1beta1.PdfInstruction, com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder, com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder>(
+                getPdfInstruction(),
+                getParentForChildren(),
+                isClean());
         pdfInstruction_ = null;
       }
       return pdfInstructionBuilder_;
     }
 
-    private com.google.protobuf.LazyStringList blockingResources_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
-
+    private com.google.protobuf.LazyStringList blockingResources_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     private void ensureBlockingResourcesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         blockingResources_ = new com.google.protobuf.LazyStringArrayList(blockingResources_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * Output only. The names of any related resources that are blocking changes
      * to the instruction.
      * 
* * repeated string blocking_resources = 10; - * * @return A list containing the blockingResources. */ - public com.google.protobuf.ProtocolStringList getBlockingResourcesList() { + public com.google.protobuf.ProtocolStringList + getBlockingResourcesList() { return blockingResources_.getUnmodifiableView(); } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the instruction.
      * 
* * repeated string blocking_resources = 10; - * * @return The count of blockingResources. */ public int getBlockingResourcesCount() { return blockingResources_.size(); } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the instruction.
      * 
* * repeated string blocking_resources = 10; - * * @param index The index of the element to return. * @return The blockingResources at the given index. */ @@ -2493,95 +2176,85 @@ public java.lang.String getBlockingResources(int index) { return blockingResources_.get(index); } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the instruction.
      * 
* * repeated string blocking_resources = 10; - * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - public com.google.protobuf.ByteString getBlockingResourcesBytes(int index) { + public com.google.protobuf.ByteString + getBlockingResourcesBytes(int index) { return blockingResources_.getByteString(index); } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the instruction.
      * 
* * repeated string blocking_resources = 10; - * * @param index The index to set the value at. * @param value The blockingResources to set. * @return This builder for chaining. */ - public Builder setBlockingResources(int index, java.lang.String value) { + public Builder setBlockingResources( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlockingResourcesIsMutable(); + throw new NullPointerException(); + } + ensureBlockingResourcesIsMutable(); blockingResources_.set(index, value); onChanged(); return this; } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the instruction.
      * 
* * repeated string blocking_resources = 10; - * * @param value The blockingResources to add. * @return This builder for chaining. */ - public Builder addBlockingResources(java.lang.String value) { + public Builder addBlockingResources( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlockingResourcesIsMutable(); + throw new NullPointerException(); + } + ensureBlockingResourcesIsMutable(); blockingResources_.add(value); onChanged(); return this; } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the instruction.
      * 
* * repeated string blocking_resources = 10; - * * @param values The blockingResources to add. * @return This builder for chaining. */ - public Builder addAllBlockingResources(java.lang.Iterable values) { + public Builder addAllBlockingResources( + java.lang.Iterable values) { ensureBlockingResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blockingResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, blockingResources_); onChanged(); return this; } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the instruction.
      * 
* * repeated string blocking_resources = 10; - * * @return This builder for chaining. */ public Builder clearBlockingResources() { @@ -2591,31 +2264,29 @@ public Builder clearBlockingResources() { return this; } /** - * - * *
      * Output only. The names of any related resources that are blocking changes
      * to the instruction.
      * 
* * repeated string blocking_resources = 10; - * * @param value The bytes of the blockingResources to add. * @return This builder for chaining. */ - public Builder addBlockingResourcesBytes(com.google.protobuf.ByteString value) { + public Builder addBlockingResourcesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureBlockingResourcesIsMutable(); blockingResources_.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); } @@ -2625,12 +2296,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.Instruction) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Instruction) private static final com.google.cloud.datalabeling.v1beta1.Instruction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.Instruction(); } @@ -2639,16 +2310,16 @@ public static com.google.cloud.datalabeling.v1beta1.Instruction getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Instruction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Instruction(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Instruction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Instruction(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2663,4 +2334,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.Instruction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionName.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionName.java similarity index 100% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionName.java diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOrBuilder.java similarity index 77% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOrBuilder.java index b6a513d0..e629f160 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOrBuilder.java @@ -1,134 +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/datalabeling/v1beta1/instruction.proto package com.google.cloud.datalabeling.v1beta1; -public interface InstructionOrBuilder - extends +public interface InstructionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.Instruction) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output only. Instruction resource name, format:
    * projects/{project_id}/instructions/{instruction_id}
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Output only. Instruction resource name, format:
    * projects/{project_id}/instructions/{instruction_id}
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The display name of the instruction. Maximum of 64 characters.
    * 
* * string display_name = 2; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * Required. The display name of the instruction. Maximum of 64 characters.
    * 
* * string display_name = 2; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); /** - * - * *
    * Optional. User-provided description of the instruction.
    * The description can be up to 10000 characters long.
    * 
* * string description = 3; - * * @return The description. */ java.lang.String getDescription(); /** - * - * *
    * Optional. User-provided description of the instruction.
    * The description can be up to 10000 characters long.
    * 
* * string description = 3; - * * @return The bytes for description. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString + getDescriptionBytes(); /** - * - * *
    * Output only. Creation time of instruction.
    * 
* * .google.protobuf.Timestamp create_time = 4; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Creation time of instruction.
    * 
* * .google.protobuf.Timestamp create_time = 4; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Creation time of instruction.
    * 
@@ -138,32 +99,24 @@ public interface InstructionOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Output only. Last update time of instruction.
    * 
* * .google.protobuf.Timestamp update_time = 5; - * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** - * - * *
    * Output only. Last update time of instruction.
    * 
* * .google.protobuf.Timestamp update_time = 5; - * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** - * - * *
    * Output only. Last update time of instruction.
    * 
@@ -173,33 +126,25 @@ public interface InstructionOrBuilder com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** - * - * *
    * Required. The data type of this instruction.
    * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 6; - * * @return The enum numeric value on the wire for dataType. */ int getDataTypeValue(); /** - * - * *
    * Required. The data type of this instruction.
    * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 6; - * * @return The dataType. */ com.google.cloud.datalabeling.v1beta1.DataType getDataType(); /** - * - * *
    * Deprecated: this instruction format is not supported any more.
    * Instruction from a CSV file, such as for classification task.
@@ -208,19 +153,13 @@ public interface InstructionOrBuilder
    * * The second column is comma separated labels associated with data.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; - * - * - * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. See - * google/cloud/datalabeling/v1beta1/instruction.proto;l=65 + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. + * See google/cloud/datalabeling/v1beta1/instruction.proto;l=65 * @return Whether the csvInstruction field is set. */ - @java.lang.Deprecated - boolean hasCsvInstruction(); + @java.lang.Deprecated boolean hasCsvInstruction(); /** - * - * *
    * Deprecated: this instruction format is not supported any more.
    * Instruction from a CSV file, such as for classification task.
@@ -229,19 +168,13 @@ public interface InstructionOrBuilder
    * * The second column is comma separated labels associated with data.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; - * - * - * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. See - * google/cloud/datalabeling/v1beta1/instruction.proto;l=65 + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. + * See google/cloud/datalabeling/v1beta1/instruction.proto;l=65 * @return The csvInstruction. */ - @java.lang.Deprecated - com.google.cloud.datalabeling.v1beta1.CsvInstruction getCsvInstruction(); + @java.lang.Deprecated com.google.cloud.datalabeling.v1beta1.CsvInstruction getCsvInstruction(); /** - * - * *
    * Deprecated: this instruction format is not supported any more.
    * Instruction from a CSV file, such as for classification task.
@@ -250,42 +183,31 @@ public interface InstructionOrBuilder
    * * The second column is comma separated labels associated with data.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; - * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; */ - @java.lang.Deprecated - com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder getCsvInstructionOrBuilder(); + @java.lang.Deprecated com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder getCsvInstructionOrBuilder(); /** - * - * *
    * Instruction from a PDF document. The PDF should be in a Cloud Storage
    * bucket.
    * 
* * .google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9; - * * @return Whether the pdfInstruction field is set. */ boolean hasPdfInstruction(); /** - * - * *
    * Instruction from a PDF document. The PDF should be in a Cloud Storage
    * bucket.
    * 
* * .google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9; - * * @return The pdfInstruction. */ com.google.cloud.datalabeling.v1beta1.PdfInstruction getPdfInstruction(); /** - * - * *
    * Instruction from a PDF document. The PDF should be in a Cloud Storage
    * bucket.
@@ -296,57 +218,47 @@ public interface InstructionOrBuilder
   com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder getPdfInstructionOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output only. The names of any related resources that are blocking changes
    * to the instruction.
    * 
* * repeated string blocking_resources = 10; - * * @return A list containing the blockingResources. */ - java.util.List getBlockingResourcesList(); + java.util.List + getBlockingResourcesList(); /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the instruction.
    * 
* * repeated string blocking_resources = 10; - * * @return The count of blockingResources. */ int getBlockingResourcesCount(); /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the instruction.
    * 
* * repeated string blocking_resources = 10; - * * @param index The index of the element to return. * @return The blockingResources at the given index. */ java.lang.String getBlockingResources(int index); /** - * - * *
    * Output only. The names of any related resources that are blocking changes
    * to the instruction.
    * 
* * repeated string blocking_resources = 10; - * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - com.google.protobuf.ByteString getBlockingResourcesBytes(int index); + com.google.protobuf.ByteString + getBlockingResourcesBytes(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOuterClass.java new file mode 100644 index 00000000..76aa774e --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOuterClass.java @@ -0,0 +1,107 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/instruction.proto + +package com.google.cloud.datalabeling.v1beta1; + +public final class InstructionOuterClass { + private InstructionOuterClass() {} + 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_datalabeling_v1beta1_Instruction_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_Instruction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/datalabeling/v1beta1/inst" + + "ruction.proto\022!google.cloud.datalabeling" + + ".v1beta1\032\034google/api/annotations.proto\032\031" + + "google/api/resource.proto\032/google/cloud/" + + "datalabeling/v1beta1/dataset.proto\032\037goog" + + "le/protobuf/timestamp.proto\"\375\003\n\013Instruct" + + "ion\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/\n\013create_time\030\004 \001(" + + "\0132\032.google.protobuf.Timestamp\022/\n\013update_" + + "time\030\005 \001(\0132\032.google.protobuf.Timestamp\022>" + + "\n\tdata_type\030\006 \001(\0162+.google.cloud.datalab" + + "eling.v1beta1.DataType\022N\n\017csv_instructio" + + "n\030\007 \001(\01321.google.cloud.datalabeling.v1be" + + "ta1.CsvInstructionB\002\030\001\022J\n\017pdf_instructio" + + "n\030\t \001(\01321.google.cloud.datalabeling.v1be" + + "ta1.PdfInstruction\022\032\n\022blocking_resources" + + "\030\n \003(\t:[\352AX\n\'datalabeling.googleapis.com" + + "/Instruction\022-projects/{project}/instruc" + + "tions/{instruction}\"&\n\016CsvInstruction\022\024\n" + + "\014gcs_file_uri\030\001 \001(\t\"&\n\016PdfInstruction\022\024\n" + + "\014gcs_file_uri\030\001 \001(\tB\347\001\n%com.google.cloud" + + ".datalabeling.v1beta1P\001ZMgoogle.golang.o" + + "rg/genproto/googleapis/cloud/datalabelin" + + "g/v1beta1;datalabeling\252\002!Google.Cloud.Da" + + "taLabeling.V1Beta1\312\002!Google\\Cloud\\DataLa" + + "beling\\V1beta1\352\002$Google::Cloud::DataLabe" + + "ling::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_datalabeling_v1beta1_Instruction_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_Instruction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_Instruction_descriptor, + new java.lang.String[] { "Name", "DisplayName", "Description", "CreateTime", "UpdateTime", "DataType", "CsvInstruction", "PdfInstruction", "BlockingResources", }); + internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor, + new java.lang.String[] { "GcsFileUri", }); + internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor, + new java.lang.String[] { "GcsFileUri", }); + 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.AnnotationsProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadata.java similarity index 58% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadata.java index d6890505..97b7210b 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadata.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Details of a LabelImageBoundingBox operation metadata.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata} */ -public final class LabelImageBoundingBoxOperationMetadata - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LabelImageBoundingBoxOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) LabelImageBoundingBoxOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LabelImageBoundingBoxOperationMetadata.newBuilder() to construct. - private LabelImageBoundingBoxOperationMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelImageBoundingBoxOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LabelImageBoundingBoxOperationMetadata() {} + private LabelImageBoundingBoxOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LabelImageBoundingBoxOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LabelImageBoundingBoxOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,30 +52,26 @@ private LabelImageBoundingBoxOperationMetadata( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); - } - basicConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,40 +79,34 @@ private LabelImageBoundingBoxOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder - .class); + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder.class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -142,25 +114,18 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
@@ -168,13 +133,11 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -200,7 +164,8 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -210,18 +175,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.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata)) { + if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata other = - (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig().equals(other.getBasicConfig())) return false; + if (!getBasicConfig() + .equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -243,152 +207,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata 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.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - 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.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata 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.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - 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.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata 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.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - 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.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata 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.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 a LabelImageBoundingBox operation metadata.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder - .class); + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.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(); @@ -402,22 +349,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata build() { - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata result = - buildPartial(); + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -425,10 +369,8 @@ public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetad } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata result = - new com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata(this); + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata buildPartial() { + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata(this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -442,52 +384,46 @@ public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetad public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) other); + if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) { + return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata other) { - if (other - == com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata other) { + if (other == com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -506,14 +442,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata parsedMessage = - null; + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -525,55 +458,41 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> - basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -587,8 +506,6 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -607,22 +524,17 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); } else { basicConfig_ = value; } @@ -634,8 +546,6 @@ public Builder mergeBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -654,42 +564,33 @@ public Builder clearBasicConfig() { return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder - getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -697,24 +598,21 @@ public Builder clearBasicConfig() { * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), getParentForChildren(), isClean()); + basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), + getParentForChildren(), + isClean()); basicConfig_ = null; } return basicConfigBuilder_; } - @java.lang.Override - 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,33 +622,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata(); + DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelImageBoundingBoxOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelImageBoundingBoxOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelImageBoundingBoxOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelImageBoundingBoxOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -762,8 +657,9 @@ public com.google.protobuf.Parser getPar } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadataOrBuilder.java similarity index 66% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadataOrBuilder.java index 43a93c15..061c38de 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelImageBoundingBoxOperationMetadataOrBuilder - extends +public interface LabelImageBoundingBoxOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadata.java similarity index 58% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadata.java index 6bad74c6..c9ab4143 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadata.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Details of LabelImageBoundingPoly operation metadata.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata} */ -public final class LabelImageBoundingPolyOperationMetadata - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LabelImageBoundingPolyOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) LabelImageBoundingPolyOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LabelImageBoundingPolyOperationMetadata.newBuilder() to construct. - private LabelImageBoundingPolyOperationMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelImageBoundingPolyOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LabelImageBoundingPolyOperationMetadata() {} + private LabelImageBoundingPolyOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LabelImageBoundingPolyOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LabelImageBoundingPolyOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,30 +52,26 @@ private LabelImageBoundingPolyOperationMetadata( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); - } - basicConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,40 +79,34 @@ private LabelImageBoundingPolyOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder - .class); + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder.class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -142,25 +114,18 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
@@ -168,13 +133,11 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -200,7 +164,8 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -210,18 +175,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.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata)) { + if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata other = - (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig().equals(other.getBasicConfig())) return false; + if (!getBasicConfig() + .equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -243,152 +207,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata 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.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - 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.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata 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.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - 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.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata 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.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - 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.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata 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.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 LabelImageBoundingPoly operation metadata.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder - .class); + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.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(); @@ -402,22 +349,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata build() { - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata result = - buildPartial(); + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -425,10 +369,8 @@ public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMeta } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata result = - new com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata(this); + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata buildPartial() { + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata(this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -442,53 +384,46 @@ public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMeta public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) other); + if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) { + return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata other) { - if (other - == com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata other) { + if (other == com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -507,14 +442,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata parsedMessage = - null; + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -526,55 +458,41 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> - basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -588,8 +506,6 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -608,22 +524,17 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); } else { basicConfig_ = value; } @@ -635,8 +546,6 @@ public Builder mergeBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -655,42 +564,33 @@ public Builder clearBasicConfig() { return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder - getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -698,24 +598,21 @@ public Builder clearBasicConfig() { * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), getParentForChildren(), isClean()); + basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), + getParentForChildren(), + isClean()); basicConfig_ = null; } return basicConfigBuilder_; } - @java.lang.Override - 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,33 +622,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata(); + DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelImageBoundingPolyOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelImageBoundingPolyOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelImageBoundingPolyOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelImageBoundingPolyOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -763,8 +657,9 @@ public com.google.protobuf.Parser getPa } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadataOrBuilder.java similarity index 66% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadataOrBuilder.java index 85b30265..2dd0147d 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelImageBoundingPolyOperationMetadataOrBuilder - extends +public interface LabelImageBoundingPolyOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadata.java similarity index 57% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadata.java index e0ef6511..a24d7088 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadata.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Metadata of a LabelImageClassification operation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata} */ -public final class LabelImageClassificationOperationMetadata - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LabelImageClassificationOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) LabelImageClassificationOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LabelImageClassificationOperationMetadata.newBuilder() to construct. - private LabelImageClassificationOperationMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelImageClassificationOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LabelImageClassificationOperationMetadata() {} + private LabelImageClassificationOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LabelImageClassificationOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LabelImageClassificationOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,30 +52,26 @@ private LabelImageClassificationOperationMetadata( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); - } - basicConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,40 +79,34 @@ private LabelImageClassificationOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder - .class); + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder.class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -142,25 +114,18 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
@@ -168,13 +133,11 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -200,7 +164,8 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -210,19 +175,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.datalabeling.v1beta1.LabelImageClassificationOperationMetadata)) { + if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata other = - (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig().equals(other.getBasicConfig())) return false; + if (!getBasicConfig() + .equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -244,153 +207,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata 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.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - 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.datalabeling.v1beta1.LabelImageClassificationOperationMetadata 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.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - 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.datalabeling.v1beta1.LabelImageClassificationOperationMetadata 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.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - 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.datalabeling.v1beta1.LabelImageClassificationOperationMetadata 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.datalabeling.v1beta1.LabelImageClassificationOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 of a LabelImageClassification operation.
    * 
* - * Protobuf type {@code - * google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata} + * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - .Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.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(); @@ -404,22 +349,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata build() { - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata result = - buildPartial(); + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -427,10 +369,8 @@ public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMe } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata result = - new com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata(this); + public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata buildPartial() { + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata(this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -444,54 +384,46 @@ public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) - other); + if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) { + return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata other) { - if (other - == com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata other) { + if (other == com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -510,14 +442,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - parsedMessage = null; + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -529,55 +458,41 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> - basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -591,8 +506,6 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -611,22 +524,17 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); } else { basicConfig_ = value; } @@ -638,8 +546,6 @@ public Builder mergeBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -658,42 +564,33 @@ public Builder clearBasicConfig() { return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder - getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -701,24 +598,21 @@ public Builder clearBasicConfig() { * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), getParentForChildren(), isClean()); + basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), + getParentForChildren(), + isClean()); basicConfig_ = null; } return basicConfigBuilder_; } - @java.lang.Override - 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,35 +622,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1 - .LabelImageClassificationOperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata(); + DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelImageClassificationOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelImageClassificationOperationMetadata(input, extensionRegistry); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelImageClassificationOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelImageClassificationOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -768,8 +657,9 @@ public com.google.protobuf.Parser get } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadataOrBuilder.java similarity index 66% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadataOrBuilder.java index f9950212..746a65b6 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelImageClassificationOperationMetadataOrBuilder - extends +public interface LabelImageClassificationOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadata.java similarity index 55% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadata.java index ea4ce023..aa0bf0e2 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadata.java @@ -1,58 +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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Details of a LabelImageOrientedBoundingBox operation metadata.
  * 
* - * Protobuf type {@code - * google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata} + * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata} */ -public final class LabelImageOrientedBoundingBoxOperationMetadata - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LabelImageOrientedBoundingBoxOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) LabelImageOrientedBoundingBoxOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LabelImageOrientedBoundingBoxOperationMetadata.newBuilder() to construct. - private LabelImageOrientedBoundingBoxOperationMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelImageOrientedBoundingBoxOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LabelImageOrientedBoundingBoxOperationMetadata() {} + private LabelImageOrientedBoundingBoxOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LabelImageOrientedBoundingBoxOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LabelImageOrientedBoundingBoxOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,30 +52,26 @@ private LabelImageOrientedBoundingBoxOperationMetadata( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); - } - basicConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,41 +79,34 @@ private LabelImageOrientedBoundingBoxOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - .class, - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - .Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.Builder.class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** - * - * *
    * Basic human annotation config.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -144,25 +114,18 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** - * - * *
    * Basic human annotation config.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } /** - * - * *
    * Basic human annotation config.
    * 
@@ -170,13 +133,11 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -188,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -202,7 +164,8 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -212,19 +175,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.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata)) { + if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata other = - (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig().equals(other.getBasicConfig())) return false; + if (!getBasicConfig() + .equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -246,156 +207,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata 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.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - 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.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata 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.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - 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.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata 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.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - 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.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata 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.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 a LabelImageOrientedBoundingBox operation metadata.
    * 
* - * Protobuf type {@code - * google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata} + * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) - com.google.cloud.datalabeling.v1beta1 - .LabelImageOrientedBoundingBoxOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor; + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - .class, - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - .Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.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(); @@ -409,23 +349,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - build() { - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata result = - buildPartial(); + public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata build() { + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -433,11 +369,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata result = - new com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata( - this); + public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata buildPartial() { + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata(this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -451,55 +384,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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) - other); + if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) { + return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - other) { - if (other - == com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata other) { + if (other == com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -518,14 +442,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - parsedMessage = null; + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -537,55 +458,41 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> - basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; /** - * - * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** - * - * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** - * - * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -599,8 +506,6 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config.
      * 
@@ -619,22 +524,17 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); } else { basicConfig_ = value; } @@ -646,8 +546,6 @@ public Builder mergeBasicConfig( return this; } /** - * - * *
      * Basic human annotation config.
      * 
@@ -666,42 +564,33 @@ public Builder clearBasicConfig() { return this; } /** - * - * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder - getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } } /** - * - * *
      * Basic human annotation config.
      * 
@@ -709,24 +598,21 @@ public Builder clearBasicConfig() { * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), getParentForChildren(), isClean()); + basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), + getParentForChildren(), + isClean()); basicConfig_ = null; } return basicConfigBuilder_; } - @java.lang.Override - 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,50 +622,44 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1 - .LabelImageOrientedBoundingBoxOperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata(); + DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelImageOrientedBoundingBoxOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelImageOrientedBoundingBoxOperationMetadata(input, extensionRegistry); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelImageOrientedBoundingBoxOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelImageOrientedBoundingBoxOperationMetadata(input, extensionRegistry); + } + }; - public static com.google.protobuf.Parser - parser() { + 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.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadataOrBuilder.java similarity index 64% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadataOrBuilder.java index 33ff967a..850d9a8d 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelImageOrientedBoundingBoxOperationMetadataOrBuilder - extends +public interface LabelImageOrientedBoundingBoxOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Basic human annotation config.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** - * - * *
    * Basic human annotation config.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** - * - * *
    * Basic human annotation config.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadata.java similarity index 62% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadata.java index 15c10787..d3111a84 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadata.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Details of LabelImagePolyline operation metadata.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata} */ -public final class LabelImagePolylineOperationMetadata - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LabelImagePolylineOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) LabelImagePolylineOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LabelImagePolylineOperationMetadata.newBuilder() to construct. - private LabelImagePolylineOperationMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelImagePolylineOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LabelImagePolylineOperationMetadata() {} + private LabelImagePolylineOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LabelImagePolylineOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LabelImagePolylineOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,30 +52,26 @@ private LabelImagePolylineOperationMetadata( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); - } - basicConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,40 +79,34 @@ private LabelImagePolylineOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder - .class); + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder.class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -142,25 +114,18 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
@@ -168,13 +133,11 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -200,7 +164,8 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -210,18 +175,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.datalabeling.v1beta1.LabelImagePolylineOperationMetadata)) { + if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata other = - (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig().equals(other.getBasicConfig())) return false; + if (!getBasicConfig() + .equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -244,146 +208,134 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata 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.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata - 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.datalabeling.v1beta1.LabelImagePolylineOperationMetadata 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.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 LabelImagePolyline operation metadata.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder - .class); + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.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 +349,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata build() { - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata result = - buildPartial(); + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -420,10 +369,8 @@ public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata - buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata result = - new com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata(this); + public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata buildPartial() { + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata(this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -437,52 +384,46 @@ public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) other); + if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) { + return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata other) { - if (other - == com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata other) { + if (other == com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -501,14 +442,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parsedMessage = - null; + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -520,55 +458,41 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> - basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -582,8 +506,6 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -602,22 +524,17 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); } else { basicConfig_ = value; } @@ -629,8 +546,6 @@ public Builder mergeBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -649,42 +564,33 @@ public Builder clearBasicConfig() { return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder - getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -692,24 +598,21 @@ public Builder clearBasicConfig() { * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), getParentForChildren(), isClean()); + basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), + getParentForChildren(), + isClean()); basicConfig_ = null; } return basicConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -719,33 +622,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata(); + DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelImagePolylineOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelImagePolylineOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelImagePolylineOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelImagePolylineOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -757,8 +657,9 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadataOrBuilder.java similarity index 62% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadataOrBuilder.java index 04fbfcd0..fc8feddc 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelImagePolylineOperationMetadataOrBuilder - extends +public interface LabelImagePolylineOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequest.java similarity index 67% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequest.java index da3198fa..abc606b0 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for starting an image labeling task.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageRequest} */ -public final class LabelImageRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LabelImageRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelImageRequest) LabelImageRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LabelImageRequest.newBuilder() to construct. private LabelImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LabelImageRequest() { parent_ = ""; feature_ = 0; @@ -44,15 +26,16 @@ private LabelImageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LabelImageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LabelImageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,127 +54,94 @@ private LabelImageRequest( 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.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); } - case 18: - { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); - } - basicConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = subBuilder.buildPartial(); - } - - break; + basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); } - case 24: - { - int rawValue = input.readEnum(); - feature_ = rawValue; - break; + break; + } + case 24: { + int rawValue = input.readEnum(); + + feature_ = rawValue; + break; + } + case 34: { + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder subBuilder = null; + if (requestConfigCase_ == 4) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_).toBuilder(); + } + requestConfig_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_); + requestConfig_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder subBuilder = - null; - if (requestConfigCase_ == 4) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - requestConfig_) - .toBuilder(); - } - requestConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - requestConfig_); - requestConfig_ = subBuilder.buildPartial(); - } - requestConfigCase_ = 4; - break; + requestConfigCase_ = 4; + break; + } + case 42: { + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder subBuilder = null; + if (requestConfigCase_ == 5) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_).toBuilder(); + } + requestConfig_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_); + requestConfig_ = subBuilder.buildPartial(); + } + requestConfigCase_ = 5; + break; + } + case 50: { + com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder subBuilder = null; + if (requestConfigCase_ == 6) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_).toBuilder(); } - case 42: - { - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder subBuilder = null; - if (requestConfigCase_ == 5) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_) - .toBuilder(); - } - requestConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_); - requestConfig_ = subBuilder.buildPartial(); - } - requestConfigCase_ = 5; - break; + requestConfig_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.PolylineConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_); + requestConfig_ = subBuilder.buildPartial(); } - case 50: - { - com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder subBuilder = null; - if (requestConfigCase_ == 6) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_) - .toBuilder(); - } - requestConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.PolylineConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_); - requestConfig_ = subBuilder.buildPartial(); - } - requestConfigCase_ = 6; - break; + requestConfigCase_ = 6; + break; + } + case 58: { + com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder subBuilder = null; + if (requestConfigCase_ == 7) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_).toBuilder(); } - case 58: - { - com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder subBuilder = null; - if (requestConfigCase_ == 7) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_) - .toBuilder(); - } - requestConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.SegmentationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_); - requestConfig_ = subBuilder.buildPartial(); - } - requestConfigCase_ = 7; - break; + requestConfig_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.SegmentationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_); + requestConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + requestConfigCase_ = 7; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -199,43 +149,40 @@ private LabelImageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageRequest.class, - com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelImageRequest.class, com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Builder.class); } /** - * - * *
    * Image labeling task feature.
    * 
* * Protobuf enum {@code google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature} */ - public enum Feature implements com.google.protobuf.ProtocolMessageEnum { - /** FEATURE_UNSPECIFIED = 0; */ + public enum Feature + implements com.google.protobuf.ProtocolMessageEnum { + /** + * FEATURE_UNSPECIFIED = 0; + */ FEATURE_UNSPECIFIED(0), /** - * - * *
      * Label whole image with one or more of labels.
      * 
@@ -244,8 +191,6 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum { */ CLASSIFICATION(1), /** - * - * *
      * Label image with bounding boxes for labels.
      * 
@@ -254,8 +199,6 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum { */ BOUNDING_BOX(2), /** - * - * *
      * Label oriented bounding box. The box does not have to be parallel to
      * horizontal line.
@@ -265,8 +208,6 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum {
      */
     ORIENTED_BOUNDING_BOX(6),
     /**
-     *
-     *
      * 
      * Label images with bounding poly. A bounding poly is a plane figure that
      * is bounded by a finite chain of straight line segments closing in a loop.
@@ -276,8 +217,6 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum {
      */
     BOUNDING_POLY(3),
     /**
-     *
-     *
      * 
      * Label images with polyline. Polyline is formed by connected line segments
      * which are not in closed form.
@@ -287,8 +226,6 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum {
      */
     POLYLINE(4),
     /**
-     *
-     *
      * 
      * Label images with segmentation. Segmentation is different from bounding
      * poly since it is more fine-grained, pixel level annotation.
@@ -300,11 +237,11 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum {
     UNRECOGNIZED(-1),
     ;
 
-    /** FEATURE_UNSPECIFIED = 0; */
+    /**
+     * FEATURE_UNSPECIFIED = 0;
+     */
     public static final int FEATURE_UNSPECIFIED_VALUE = 0;
     /**
-     *
-     *
      * 
      * Label whole image with one or more of labels.
      * 
@@ -313,8 +250,6 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CLASSIFICATION_VALUE = 1; /** - * - * *
      * Label image with bounding boxes for labels.
      * 
@@ -323,8 +258,6 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum { */ public static final int BOUNDING_BOX_VALUE = 2; /** - * - * *
      * Label oriented bounding box. The box does not have to be parallel to
      * horizontal line.
@@ -334,8 +267,6 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int ORIENTED_BOUNDING_BOX_VALUE = 6;
     /**
-     *
-     *
      * 
      * Label images with bounding poly. A bounding poly is a plane figure that
      * is bounded by a finite chain of straight line segments closing in a loop.
@@ -345,8 +276,6 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int BOUNDING_POLY_VALUE = 3;
     /**
-     *
-     *
      * 
      * Label images with polyline. Polyline is formed by connected line segments
      * which are not in closed form.
@@ -356,8 +285,6 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int POLYLINE_VALUE = 4;
     /**
-     *
-     *
      * 
      * Label images with segmentation. Segmentation is different from bounding
      * poly since it is more fine-grained, pixel level annotation.
@@ -367,6 +294,7 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int SEGMENTATION_VALUE = 5;
 
+
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -391,59 +319,53 @@ public static Feature valueOf(int value) {
      */
     public static Feature forNumber(int value) {
       switch (value) {
-        case 0:
-          return FEATURE_UNSPECIFIED;
-        case 1:
-          return CLASSIFICATION;
-        case 2:
-          return BOUNDING_BOX;
-        case 6:
-          return ORIENTED_BOUNDING_BOX;
-        case 3:
-          return BOUNDING_POLY;
-        case 4:
-          return POLYLINE;
-        case 5:
-          return SEGMENTATION;
-        default:
-          return null;
+        case 0: return FEATURE_UNSPECIFIED;
+        case 1: return CLASSIFICATION;
+        case 2: return BOUNDING_BOX;
+        case 6: return ORIENTED_BOUNDING_BOX;
+        case 3: return BOUNDING_POLY;
+        case 4: return POLYLINE;
+        case 5: return SEGMENTATION;
+        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<
+        Feature> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Feature findValueByNumber(int number) {
+              return Feature.forNumber(number);
+            }
+          };
 
-    private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public Feature findValueByNumber(int number) {
-            return Feature.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.datalabeling.v1beta1.LabelImageRequest.getDescriptor()
-          .getEnumTypes()
-          .get(0);
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.LabelImageRequest.getDescriptor().getEnumTypes().get(0);
     }
 
     private static final Feature[] VALUES = values();
 
-    public static Feature valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Feature 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;
@@ -462,10 +384,8 @@ private Feature(int value) {
 
   private int requestConfigCase_ = 0;
   private java.lang.Object requestConfig_;
-
   public enum RequestConfigCase
-      implements
-          com.google.protobuf.Internal.EnumLite,
+      implements com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     IMAGE_CLASSIFICATION_CONFIG(4),
     BOUNDING_POLY_CONFIG(5),
@@ -473,7 +393,6 @@ public enum RequestConfigCase
     SEGMENTATION_CONFIG(7),
     REQUESTCONFIG_NOT_SET(0);
     private final int value;
-
     private RequestConfigCase(int value) {
       this.value = value;
     }
@@ -489,44 +408,34 @@ public static RequestConfigCase valueOf(int value) {
 
     public static RequestConfigCase forNumber(int value) {
       switch (value) {
-        case 4:
-          return IMAGE_CLASSIFICATION_CONFIG;
-        case 5:
-          return BOUNDING_POLY_CONFIG;
-        case 6:
-          return POLYLINE_CONFIG;
-        case 7:
-          return SEGMENTATION_CONFIG;
-        case 0:
-          return REQUESTCONFIG_NOT_SET;
-        default:
-          return null;
+        case 4: return IMAGE_CLASSIFICATION_CONFIG;
+        case 5: return BOUNDING_POLY_CONFIG;
+        case 6: return POLYLINE_CONFIG;
+        case 7: return SEGMENTATION_CONFIG;
+        case 0: return REQUESTCONFIG_NOT_SET;
+        default: return null;
       }
     }
-
     public int getNumber() {
       return this.value;
     }
   };
 
-  public RequestConfigCase getRequestConfigCase() {
-    return RequestConfigCase.forNumber(requestConfigCase_);
+  public RequestConfigCase
+  getRequestConfigCase() {
+    return RequestConfigCase.forNumber(
+        requestConfigCase_);
   }
 
   public static final int IMAGE_CLASSIFICATION_CONFIG_FIELD_NUMBER = 4;
   /**
-   *
-   *
    * 
    * Configuration for image classification task.
    * One of image_classification_config, bounding_poly_config,
    * polyline_config and segmentation_config are required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @return Whether the imageClassificationConfig field is set. */ @java.lang.Override @@ -534,54 +443,41 @@ public boolean hasImageClassificationConfig() { return requestConfigCase_ == 4; } /** - * - * *
    * Configuration for image classification task.
    * One of image_classification_config, bounding_poly_config,
    * polyline_config and segmentation_config are required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @return The imageClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig - getImageClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageClassificationConfig() { if (requestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } /** - * - * *
    * Configuration for image classification task.
    * One of image_classification_config, bounding_poly_config,
    * polyline_config and segmentation_config are required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder - getImageClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder getImageClassificationConfigOrBuilder() { if (requestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } public static final int BOUNDING_POLY_CONFIG_FIELD_NUMBER = 5; /** - * - * *
    * Configuration for bounding box and bounding poly task.
    * One of image_classification_config, bounding_poly_config,
@@ -589,7 +485,6 @@ public boolean hasImageClassificationConfig() {
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; - * * @return Whether the boundingPolyConfig field is set. */ @java.lang.Override @@ -597,8 +492,6 @@ public boolean hasBoundingPolyConfig() { return requestConfigCase_ == 5; } /** - * - * *
    * Configuration for bounding box and bounding poly task.
    * One of image_classification_config, bounding_poly_config,
@@ -606,19 +499,16 @@ public boolean hasBoundingPolyConfig() {
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; - * * @return The boundingPolyConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyConfig() { if (requestConfigCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance(); } /** - * - * *
    * Configuration for bounding box and bounding poly task.
    * One of image_classification_config, bounding_poly_config,
@@ -628,18 +518,15 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyC
    * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder
-      getBoundingPolyConfigOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoundingPolyConfigOrBuilder() {
     if (requestConfigCase_ == 5) {
-      return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_;
+       return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_;
     }
     return com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance();
   }
 
   public static final int POLYLINE_CONFIG_FIELD_NUMBER = 6;
   /**
-   *
-   *
    * 
    * Configuration for polyline task.
    * One of image_classification_config, bounding_poly_config,
@@ -647,7 +534,6 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyC
    * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6; - * * @return Whether the polylineConfig field is set. */ @java.lang.Override @@ -655,8 +541,6 @@ public boolean hasPolylineConfig() { return requestConfigCase_ == 6; } /** - * - * *
    * Configuration for polyline task.
    * One of image_classification_config, bounding_poly_config,
@@ -664,19 +548,16 @@ public boolean hasPolylineConfig() {
    * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6; - * * @return The polylineConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PolylineConfig getPolylineConfig() { if (requestConfigCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance(); } /** - * - * *
    * Configuration for polyline task.
    * One of image_classification_config, bounding_poly_config,
@@ -686,18 +567,15 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig getPolylineConfig()
    * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder
-      getPolylineConfigOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder getPolylineConfigOrBuilder() {
     if (requestConfigCase_ == 6) {
-      return (com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_;
+       return (com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_;
     }
     return com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance();
   }
 
   public static final int SEGMENTATION_CONFIG_FIELD_NUMBER = 7;
   /**
-   *
-   *
    * 
    * Configuration for segmentation task.
    * One of image_classification_config, bounding_poly_config,
@@ -705,7 +583,6 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig getPolylineConfig()
    * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7; - * * @return Whether the segmentationConfig field is set. */ @java.lang.Override @@ -713,8 +590,6 @@ public boolean hasSegmentationConfig() { return requestConfigCase_ == 7; } /** - * - * *
    * Configuration for segmentation task.
    * One of image_classification_config, bounding_poly_config,
@@ -722,19 +597,16 @@ public boolean hasSegmentationConfig() {
    * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7; - * * @return The segmentationConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SegmentationConfig getSegmentationConfig() { if (requestConfigCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance(); } /** - * - * *
    * Configuration for segmentation task.
    * One of image_classification_config, bounding_poly_config,
@@ -744,10 +616,9 @@ public com.google.cloud.datalabeling.v1beta1.SegmentationConfig getSegmentationC
    * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder
-      getSegmentationConfigOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder getSegmentationConfigOrBuilder() {
     if (requestConfigCase_ == 7) {
-      return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_;
+       return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_;
     }
     return com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance();
   }
@@ -755,17 +626,12 @@ public com.google.cloud.datalabeling.v1beta1.SegmentationConfig getSegmentationC
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
-   *
-   *
    * 
    * Required. Name of the dataset to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * 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 @@ -774,32 +640,30 @@ 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. Name of the dataset to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * 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 { @@ -810,16 +674,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int BASIC_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** - * - * *
    * Required. Basic human annotation config.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -827,85 +686,57 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** - * - * *
    * Required. Basic human annotation config.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } /** - * - * *
    * Required. Basic human annotation config.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { return getBasicConfig(); } public static final int FEATURE_FIELD_NUMBER = 3; private int feature_; /** - * - * *
    * Required. The type of image labeling task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for feature. */ - @java.lang.Override - public int getFeatureValue() { + @java.lang.Override public int getFeatureValue() { return feature_; } /** - * - * *
    * Required. The type of image labeling task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The feature. */ - @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature getFeature() { + @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature getFeature() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature result = - com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.valueOf(feature_); - return result == null - ? com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.UNRECOGNIZED - : result; + com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature result = com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.valueOf(feature_); + return result == null ? com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -917,32 +748,28 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } if (basicConfig_ != null) { output.writeMessage(2, getBasicConfig()); } - if (feature_ - != com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.FEATURE_UNSPECIFIED - .getNumber()) { + if (feature_ != com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.FEATURE_UNSPECIFIED.getNumber()) { output.writeEnum(3, feature_); } if (requestConfigCase_ == 4) { - output.writeMessage( - 4, (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_); + output.writeMessage(4, (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_); } if (requestConfigCase_ == 5) { - output.writeMessage( - 5, (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_); + output.writeMessage(5, (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_); } if (requestConfigCase_ == 6) { output.writeMessage(6, (com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_); } if (requestConfigCase_ == 7) { - output.writeMessage( - 7, (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_); + output.writeMessage(7, (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_); } unknownFields.writeTo(output); } @@ -957,32 +784,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBasicConfig()); } - if (feature_ - != com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.FEATURE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, feature_); + if (feature_ != com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.FEATURE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, feature_); } if (requestConfigCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_); } if (requestConfigCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_); } if (requestConfigCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_); } if (requestConfigCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -992,34 +815,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.datalabeling.v1beta1.LabelImageRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelImageRequest other = - (com.google.cloud.datalabeling.v1beta1.LabelImageRequest) obj; + com.google.cloud.datalabeling.v1beta1.LabelImageRequest other = (com.google.cloud.datalabeling.v1beta1.LabelImageRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig().equals(other.getBasicConfig())) return false; + if (!getBasicConfig() + .equals(other.getBasicConfig())) return false; } if (feature_ != other.feature_) return false; if (!getRequestConfigCase().equals(other.getRequestConfigCase())) return false; switch (requestConfigCase_) { case 4: - if (!getImageClassificationConfig().equals(other.getImageClassificationConfig())) - return false; + if (!getImageClassificationConfig() + .equals(other.getImageClassificationConfig())) return false; break; case 5: - if (!getBoundingPolyConfig().equals(other.getBoundingPolyConfig())) return false; + if (!getBoundingPolyConfig() + .equals(other.getBoundingPolyConfig())) return false; break; case 6: - if (!getPolylineConfig().equals(other.getPolylineConfig())) return false; + if (!getPolylineConfig() + .equals(other.getPolylineConfig())) return false; break; case 7: - if (!getSegmentationConfig().equals(other.getSegmentationConfig())) return false; + if (!getSegmentationConfig() + .equals(other.getSegmentationConfig())) return false; break; case 0: default: @@ -1069,127 +896,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest 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.datalabeling.v1beta1.LabelImageRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.LabelImageRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 starting an image labeling task.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelImageRequest) com.google.cloud.datalabeling.v1beta1.LabelImageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageRequest.class, - com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelImageRequest.class, com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.LabelImageRequest.newBuilder() @@ -1197,15 +1014,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(); @@ -1225,9 +1043,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor; } @java.lang.Override @@ -1246,8 +1064,7 @@ public com.google.cloud.datalabeling.v1beta1.LabelImageRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelImageRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelImageRequest result = - new com.google.cloud.datalabeling.v1beta1.LabelImageRequest(this); + com.google.cloud.datalabeling.v1beta1.LabelImageRequest result = new com.google.cloud.datalabeling.v1beta1.LabelImageRequest(this); if (requestConfigCase_ == 4) { if (imageClassificationConfigBuilder_ == null) { result.requestConfig_ = requestConfig_; @@ -1292,39 +1109,38 @@ public com.google.cloud.datalabeling.v1beta1.LabelImageRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelImageRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageRequest)other); } else { super.mergeFrom(other); return this; @@ -1332,8 +1148,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelImageRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.LabelImageRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.LabelImageRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1345,30 +1160,25 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelImageRequest setFeatureValue(other.getFeatureValue()); } switch (other.getRequestConfigCase()) { - case IMAGE_CLASSIFICATION_CONFIG: - { - mergeImageClassificationConfig(other.getImageClassificationConfig()); - break; - } - case BOUNDING_POLY_CONFIG: - { - mergeBoundingPolyConfig(other.getBoundingPolyConfig()); - break; - } - case POLYLINE_CONFIG: - { - mergePolylineConfig(other.getPolylineConfig()); - break; - } - case SEGMENTATION_CONFIG: - { - mergeSegmentationConfig(other.getSegmentationConfig()); - break; - } - case REQUESTCONFIG_NOT_SET: - { - break; - } + case IMAGE_CLASSIFICATION_CONFIG: { + mergeImageClassificationConfig(other.getImageClassificationConfig()); + break; + } + case BOUNDING_POLY_CONFIG: { + mergeBoundingPolyConfig(other.getBoundingPolyConfig()); + break; + } + case POLYLINE_CONFIG: { + mergePolylineConfig(other.getPolylineConfig()); + break; + } + case SEGMENTATION_CONFIG: { + mergeSegmentationConfig(other.getSegmentationConfig()); + break; + } + case REQUESTCONFIG_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1389,8 +1199,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.LabelImageRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelImageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1399,12 +1208,12 @@ public Builder mergeFrom( } return this; } - private int requestConfigCase_ = 0; private java.lang.Object requestConfig_; - - public RequestConfigCase getRequestConfigCase() { - return RequestConfigCase.forNumber(requestConfigCase_); + public RequestConfigCase + getRequestConfigCase() { + return RequestConfigCase.forNumber( + requestConfigCase_); } public Builder clearRequestConfig() { @@ -1414,24 +1223,17 @@ public Builder clearRequestConfig() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder> - imageClassificationConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder> imageClassificationConfigBuilder_; /** - * - * *
      * Configuration for image classification task.
      * One of image_classification_config, bounding_poly_config,
      * polyline_config and segmentation_config are required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @return Whether the imageClassificationConfig field is set. */ @java.lang.Override @@ -1439,23 +1241,17 @@ public boolean hasImageClassificationConfig() { return requestConfigCase_ == 4; } /** - * - * *
      * Configuration for image classification task.
      * One of image_classification_config, bounding_poly_config,
      * polyline_config and segmentation_config are required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @return The imageClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig - getImageClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageClassificationConfig() { if (imageClassificationConfigBuilder_ == null) { if (requestConfigCase_ == 4) { return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_; @@ -1469,20 +1265,15 @@ public boolean hasImageClassificationConfig() { } } /** - * - * *
      * Configuration for image classification task.
      * One of image_classification_config, bounding_poly_config,
      * polyline_config and segmentation_config are required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; */ - public Builder setImageClassificationConfig( - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { + public Builder setImageClassificationConfig(com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { if (imageClassificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1496,17 +1287,13 @@ public Builder setImageClassificationConfig( return this; } /** - * - * *
      * Configuration for image classification task.
      * One of image_classification_config, bounding_poly_config,
      * polyline_config and segmentation_config are required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; */ public Builder setImageClassificationConfig( com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder builderForValue) { @@ -1520,31 +1307,20 @@ public Builder setImageClassificationConfig( return this; } /** - * - * *
      * Configuration for image classification task.
      * One of image_classification_config, bounding_poly_config,
      * polyline_config and segmentation_config are required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; */ - public Builder mergeImageClassificationConfig( - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { + public Builder mergeImageClassificationConfig(com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { if (imageClassificationConfigBuilder_ == null) { - if (requestConfigCase_ == 4 - && requestConfig_ - != com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig - .getDefaultInstance()) { - requestConfig_ = - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.newBuilder( - (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - requestConfig_) - .mergeFrom(value) - .buildPartial(); + if (requestConfigCase_ == 4 && + requestConfig_ != com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance()) { + requestConfig_ = com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_) + .mergeFrom(value).buildPartial(); } else { requestConfig_ = value; } @@ -1560,17 +1336,13 @@ public Builder mergeImageClassificationConfig( return this; } /** - * - * *
      * Configuration for image classification task.
      * One of image_classification_config, bounding_poly_config,
      * polyline_config and segmentation_config are required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; */ public Builder clearImageClassificationConfig() { if (imageClassificationConfigBuilder_ == null) { @@ -1589,38 +1361,28 @@ public Builder clearImageClassificationConfig() { return this; } /** - * - * *
      * Configuration for image classification task.
      * One of image_classification_config, bounding_poly_config,
      * polyline_config and segmentation_config are required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; */ - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder - getImageClassificationConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder getImageClassificationConfigBuilder() { return getImageClassificationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for image classification task.
      * One of image_classification_config, bounding_poly_config,
      * polyline_config and segmentation_config are required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder - getImageClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder getImageClassificationConfigOrBuilder() { if ((requestConfigCase_ == 4) && (imageClassificationConfigBuilder_ != null)) { return imageClassificationConfigBuilder_.getMessageOrBuilder(); } else { @@ -1631,52 +1393,36 @@ public Builder clearImageClassificationConfig() { } } /** - * - * *
      * Configuration for image classification task.
      * One of image_classification_config, bounding_poly_config,
      * polyline_config and segmentation_config are required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder> getImageClassificationConfigFieldBuilder() { if (imageClassificationConfigBuilder_ == null) { if (!(requestConfigCase_ == 4)) { - requestConfig_ = - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); + requestConfig_ = com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } - imageClassificationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder>( + imageClassificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder>( (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_, getParentForChildren(), isClean()); requestConfig_ = null; } requestConfigCase_ = 4; - onChanged(); - ; + onChanged();; return imageClassificationConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder> - boundingPolyConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder> boundingPolyConfigBuilder_; /** - * - * *
      * Configuration for bounding box and bounding poly task.
      * One of image_classification_config, bounding_poly_config,
@@ -1684,7 +1430,6 @@ public Builder clearImageClassificationConfig() {
      * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; - * * @return Whether the boundingPolyConfig field is set. */ @java.lang.Override @@ -1692,8 +1437,6 @@ public boolean hasBoundingPolyConfig() { return requestConfigCase_ == 5; } /** - * - * *
      * Configuration for bounding box and bounding poly task.
      * One of image_classification_config, bounding_poly_config,
@@ -1701,7 +1444,6 @@ public boolean hasBoundingPolyConfig() {
      * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; - * * @return The boundingPolyConfig. */ @java.lang.Override @@ -1719,8 +1461,6 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyC } } /** - * - * *
      * Configuration for bounding box and bounding poly task.
      * One of image_classification_config, bounding_poly_config,
@@ -1729,8 +1469,7 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyC
      *
      * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
      */
-    public Builder setBoundingPolyConfig(
-        com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) {
+    public Builder setBoundingPolyConfig(com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) {
       if (boundingPolyConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1744,8 +1483,6 @@ public Builder setBoundingPolyConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration for bounding box and bounding poly task.
      * One of image_classification_config, bounding_poly_config,
@@ -1766,8 +1503,6 @@ public Builder setBoundingPolyConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration for bounding box and bounding poly task.
      * One of image_classification_config, bounding_poly_config,
@@ -1776,17 +1511,12 @@ public Builder setBoundingPolyConfig(
      *
      * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
      */
-    public Builder mergeBoundingPolyConfig(
-        com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) {
+    public Builder mergeBoundingPolyConfig(com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) {
       if (boundingPolyConfigBuilder_ == null) {
-        if (requestConfigCase_ == 5
-            && requestConfig_
-                != com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance()) {
-          requestConfig_ =
-              com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.newBuilder(
-                      (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (requestConfigCase_ == 5 &&
+            requestConfig_ != com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance()) {
+          requestConfig_ = com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_)
+              .mergeFrom(value).buildPartial();
         } else {
           requestConfig_ = value;
         }
@@ -1802,8 +1532,6 @@ public Builder mergeBoundingPolyConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration for bounding box and bounding poly task.
      * One of image_classification_config, bounding_poly_config,
@@ -1829,8 +1557,6 @@ public Builder clearBoundingPolyConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration for bounding box and bounding poly task.
      * One of image_classification_config, bounding_poly_config,
@@ -1839,13 +1565,10 @@ public Builder clearBoundingPolyConfig() {
      *
      * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
      */
-    public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder
-        getBoundingPolyConfigBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder getBoundingPolyConfigBuilder() {
       return getBoundingPolyConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Configuration for bounding box and bounding poly task.
      * One of image_classification_config, bounding_poly_config,
@@ -1855,8 +1578,7 @@ public Builder clearBoundingPolyConfig() {
      * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
      */
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder
-        getBoundingPolyConfigOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoundingPolyConfigOrBuilder() {
       if ((requestConfigCase_ == 5) && (boundingPolyConfigBuilder_ != null)) {
         return boundingPolyConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -1867,8 +1589,6 @@ public Builder clearBoundingPolyConfig() {
       }
     }
     /**
-     *
-     *
      * 
      * Configuration for bounding box and bounding poly task.
      * One of image_classification_config, bounding_poly_config,
@@ -1878,39 +1598,27 @@ public Builder clearBoundingPolyConfig() {
      * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig,
-            com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder,
-            com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder>
+        com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder> 
         getBoundingPolyConfigFieldBuilder() {
       if (boundingPolyConfigBuilder_ == null) {
         if (!(requestConfigCase_ == 5)) {
-          requestConfig_ =
-              com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance();
+          requestConfig_ = com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance();
         }
-        boundingPolyConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig,
-                com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder,
-                com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder>(
+        boundingPolyConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder>(
                 (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_,
                 getParentForChildren(),
                 isClean());
         requestConfig_ = null;
       }
       requestConfigCase_ = 5;
-      onChanged();
-      ;
+      onChanged();;
       return boundingPolyConfigBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.PolylineConfig,
-            com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder,
-            com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder>
-        polylineConfigBuilder_;
+        com.google.cloud.datalabeling.v1beta1.PolylineConfig, com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder, com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder> polylineConfigBuilder_;
     /**
-     *
-     *
      * 
      * Configuration for polyline task.
      * One of image_classification_config, bounding_poly_config,
@@ -1918,7 +1626,6 @@ public Builder clearBoundingPolyConfig() {
      * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6; - * * @return Whether the polylineConfig field is set. */ @java.lang.Override @@ -1926,8 +1633,6 @@ public boolean hasPolylineConfig() { return requestConfigCase_ == 6; } /** - * - * *
      * Configuration for polyline task.
      * One of image_classification_config, bounding_poly_config,
@@ -1935,7 +1640,6 @@ public boolean hasPolylineConfig() {
      * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6; - * * @return The polylineConfig. */ @java.lang.Override @@ -1953,8 +1657,6 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig getPolylineConfig() } } /** - * - * *
      * Configuration for polyline task.
      * One of image_classification_config, bounding_poly_config,
@@ -1977,8 +1679,6 @@ public Builder setPolylineConfig(com.google.cloud.datalabeling.v1beta1.PolylineC
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration for polyline task.
      * One of image_classification_config, bounding_poly_config,
@@ -1999,8 +1699,6 @@ public Builder setPolylineConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration for polyline task.
      * One of image_classification_config, bounding_poly_config,
@@ -2011,14 +1709,10 @@ public Builder setPolylineConfig(
      */
     public Builder mergePolylineConfig(com.google.cloud.datalabeling.v1beta1.PolylineConfig value) {
       if (polylineConfigBuilder_ == null) {
-        if (requestConfigCase_ == 6
-            && requestConfig_
-                != com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance()) {
-          requestConfig_ =
-              com.google.cloud.datalabeling.v1beta1.PolylineConfig.newBuilder(
-                      (com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (requestConfigCase_ == 6 &&
+            requestConfig_ != com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance()) {
+          requestConfig_ = com.google.cloud.datalabeling.v1beta1.PolylineConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_)
+              .mergeFrom(value).buildPartial();
         } else {
           requestConfig_ = value;
         }
@@ -2034,8 +1728,6 @@ public Builder mergePolylineConfig(com.google.cloud.datalabeling.v1beta1.Polylin
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration for polyline task.
      * One of image_classification_config, bounding_poly_config,
@@ -2061,8 +1753,6 @@ public Builder clearPolylineConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration for polyline task.
      * One of image_classification_config, bounding_poly_config,
@@ -2075,8 +1765,6 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder getPolylineC
       return getPolylineConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Configuration for polyline task.
      * One of image_classification_config, bounding_poly_config,
@@ -2086,8 +1774,7 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder getPolylineC
      * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6;
      */
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder
-        getPolylineConfigOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder getPolylineConfigOrBuilder() {
       if ((requestConfigCase_ == 6) && (polylineConfigBuilder_ != null)) {
         return polylineConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -2098,8 +1785,6 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder getPolylineC
       }
     }
     /**
-     *
-     *
      * 
      * Configuration for polyline task.
      * One of image_classification_config, bounding_poly_config,
@@ -2109,39 +1794,27 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder getPolylineC
      * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.PolylineConfig,
-            com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder,
-            com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder>
+        com.google.cloud.datalabeling.v1beta1.PolylineConfig, com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder, com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder> 
         getPolylineConfigFieldBuilder() {
       if (polylineConfigBuilder_ == null) {
         if (!(requestConfigCase_ == 6)) {
-          requestConfig_ =
-              com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance();
+          requestConfig_ = com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance();
         }
-        polylineConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.datalabeling.v1beta1.PolylineConfig,
-                com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder,
-                com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder>(
+        polylineConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.datalabeling.v1beta1.PolylineConfig, com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder, com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder>(
                 (com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_,
                 getParentForChildren(),
                 isClean());
         requestConfig_ = null;
       }
       requestConfigCase_ = 6;
-      onChanged();
-      ;
+      onChanged();;
       return polylineConfigBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.SegmentationConfig,
-            com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder,
-            com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder>
-        segmentationConfigBuilder_;
+        com.google.cloud.datalabeling.v1beta1.SegmentationConfig, com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder, com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder> segmentationConfigBuilder_;
     /**
-     *
-     *
      * 
      * Configuration for segmentation task.
      * One of image_classification_config, bounding_poly_config,
@@ -2149,7 +1822,6 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder getPolylineC
      * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7; - * * @return Whether the segmentationConfig field is set. */ @java.lang.Override @@ -2157,8 +1829,6 @@ public boolean hasSegmentationConfig() { return requestConfigCase_ == 7; } /** - * - * *
      * Configuration for segmentation task.
      * One of image_classification_config, bounding_poly_config,
@@ -2166,7 +1836,6 @@ public boolean hasSegmentationConfig() {
      * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7; - * * @return The segmentationConfig. */ @java.lang.Override @@ -2184,8 +1853,6 @@ public com.google.cloud.datalabeling.v1beta1.SegmentationConfig getSegmentationC } } /** - * - * *
      * Configuration for segmentation task.
      * One of image_classification_config, bounding_poly_config,
@@ -2194,8 +1861,7 @@ public com.google.cloud.datalabeling.v1beta1.SegmentationConfig getSegmentationC
      *
      * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7;
      */
-    public Builder setSegmentationConfig(
-        com.google.cloud.datalabeling.v1beta1.SegmentationConfig value) {
+    public Builder setSegmentationConfig(com.google.cloud.datalabeling.v1beta1.SegmentationConfig value) {
       if (segmentationConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2209,8 +1875,6 @@ public Builder setSegmentationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration for segmentation task.
      * One of image_classification_config, bounding_poly_config,
@@ -2231,8 +1895,6 @@ public Builder setSegmentationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration for segmentation task.
      * One of image_classification_config, bounding_poly_config,
@@ -2241,17 +1903,12 @@ public Builder setSegmentationConfig(
      *
      * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7;
      */
-    public Builder mergeSegmentationConfig(
-        com.google.cloud.datalabeling.v1beta1.SegmentationConfig value) {
+    public Builder mergeSegmentationConfig(com.google.cloud.datalabeling.v1beta1.SegmentationConfig value) {
       if (segmentationConfigBuilder_ == null) {
-        if (requestConfigCase_ == 7
-            && requestConfig_
-                != com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance()) {
-          requestConfig_ =
-              com.google.cloud.datalabeling.v1beta1.SegmentationConfig.newBuilder(
-                      (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (requestConfigCase_ == 7 &&
+            requestConfig_ != com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance()) {
+          requestConfig_ = com.google.cloud.datalabeling.v1beta1.SegmentationConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_)
+              .mergeFrom(value).buildPartial();
         } else {
           requestConfig_ = value;
         }
@@ -2267,8 +1924,6 @@ public Builder mergeSegmentationConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration for segmentation task.
      * One of image_classification_config, bounding_poly_config,
@@ -2294,8 +1949,6 @@ public Builder clearSegmentationConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration for segmentation task.
      * One of image_classification_config, bounding_poly_config,
@@ -2304,13 +1957,10 @@ public Builder clearSegmentationConfig() {
      *
      * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7;
      */
-    public com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder
-        getSegmentationConfigBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder getSegmentationConfigBuilder() {
       return getSegmentationConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Configuration for segmentation task.
      * One of image_classification_config, bounding_poly_config,
@@ -2320,8 +1970,7 @@ public Builder clearSegmentationConfig() {
      * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7;
      */
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder
-        getSegmentationConfigOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder getSegmentationConfigOrBuilder() {
       if ((requestConfigCase_ == 7) && (segmentationConfigBuilder_ != null)) {
         return segmentationConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -2332,8 +1981,6 @@ public Builder clearSegmentationConfig() {
       }
     }
     /**
-     *
-     *
      * 
      * Configuration for segmentation task.
      * One of image_classification_config, bounding_poly_config,
@@ -2343,50 +1990,39 @@ public Builder clearSegmentationConfig() {
      * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.SegmentationConfig,
-            com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder,
-            com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder>
+        com.google.cloud.datalabeling.v1beta1.SegmentationConfig, com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder, com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder> 
         getSegmentationConfigFieldBuilder() {
       if (segmentationConfigBuilder_ == null) {
         if (!(requestConfigCase_ == 7)) {
-          requestConfig_ =
-              com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance();
+          requestConfig_ = com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance();
         }
-        segmentationConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.datalabeling.v1beta1.SegmentationConfig,
-                com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder,
-                com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder>(
+        segmentationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.datalabeling.v1beta1.SegmentationConfig, com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder, com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder>(
                 (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_,
                 getParentForChildren(),
                 isClean());
         requestConfig_ = null;
       }
       requestConfigCase_ = 7;
-      onChanged();
-      ;
+      onChanged();;
       return segmentationConfigBuilder_;
     }
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the dataset to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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; @@ -2395,24 +2031,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the dataset to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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 { @@ -2420,70 +2053,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the dataset to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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. Name of the dataset to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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. Name of the dataset to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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; @@ -2491,61 +2111,41 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> - basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2559,15 +2159,11 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBasicConfig( com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder builderForValue) { @@ -2581,24 +2177,17 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); } else { basicConfig_ = value; } @@ -2610,15 +2199,11 @@ public Builder mergeBasicConfig( return this; } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBasicConfig() { if (basicConfigBuilder_ == null) { @@ -2632,66 +2217,48 @@ public Builder clearBasicConfig() { return this; } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder - getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), getParentForChildren(), isClean()); + basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), + getParentForChildren(), + isClean()); basicConfig_ = null; } return basicConfigBuilder_; @@ -2699,110 +2266,80 @@ public Builder clearBasicConfig() { private int feature_ = 0; /** - * - * *
      * Required. The type of image labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for feature. */ - @java.lang.Override - public int getFeatureValue() { + @java.lang.Override public int getFeatureValue() { return feature_; } /** - * - * *
      * Required. The type of image labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for feature to set. * @return This builder for chaining. */ public Builder setFeatureValue(int value) { - + feature_ = value; onChanged(); return this; } /** - * - * *
      * Required. The type of image labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The feature. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature getFeature() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature result = - com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.valueOf(feature_); - return result == null - ? com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.UNRECOGNIZED - : result; + com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature result = com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.valueOf(feature_); + return result == null ? com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.UNRECOGNIZED : result; } /** - * - * *
      * Required. The type of image labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The feature to set. * @return This builder for chaining. */ - public Builder setFeature( - com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature value) { + public Builder setFeature(com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature value) { if (value == null) { throw new NullPointerException(); } - + feature_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The type of image labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearFeature() { - + feature_ = 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); } @@ -2812,12 +2349,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelImageRequest) private static final com.google.cloud.datalabeling.v1beta1.LabelImageRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelImageRequest(); } @@ -2826,16 +2363,16 @@ public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2850,4 +2387,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.LabelImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequestOrBuilder.java similarity index 71% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequestOrBuilder.java index c72840d5..9ff15c47 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequestOrBuilder.java @@ -1,79 +1,46 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelImageRequestOrBuilder - extends +public interface LabelImageRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelImageRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Configuration for image classification task.
    * One of image_classification_config, bounding_poly_config,
    * polyline_config and segmentation_config are required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @return Whether the imageClassificationConfig field is set. */ boolean hasImageClassificationConfig(); /** - * - * *
    * Configuration for image classification task.
    * One of image_classification_config, bounding_poly_config,
    * polyline_config and segmentation_config are required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; * @return The imageClassificationConfig. */ com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageClassificationConfig(); /** - * - * *
    * Configuration for image classification task.
    * One of image_classification_config, bounding_poly_config,
    * polyline_config and segmentation_config are required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; */ - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder - getImageClassificationConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder getImageClassificationConfigOrBuilder(); /** - * - * *
    * Configuration for bounding box and bounding poly task.
    * One of image_classification_config, bounding_poly_config,
@@ -81,13 +48,10 @@ public interface LabelImageRequestOrBuilder
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; - * * @return Whether the boundingPolyConfig field is set. */ boolean hasBoundingPolyConfig(); /** - * - * *
    * Configuration for bounding box and bounding poly task.
    * One of image_classification_config, bounding_poly_config,
@@ -95,13 +59,10 @@ public interface LabelImageRequestOrBuilder
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; - * * @return The boundingPolyConfig. */ com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyConfig(); /** - * - * *
    * Configuration for bounding box and bounding poly task.
    * One of image_classification_config, bounding_poly_config,
@@ -110,12 +71,9 @@ public interface LabelImageRequestOrBuilder
    *
    * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
    */
-  com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder
-      getBoundingPolyConfigOrBuilder();
+  com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoundingPolyConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Configuration for polyline task.
    * One of image_classification_config, bounding_poly_config,
@@ -123,13 +81,10 @@ public interface LabelImageRequestOrBuilder
    * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6; - * * @return Whether the polylineConfig field is set. */ boolean hasPolylineConfig(); /** - * - * *
    * Configuration for polyline task.
    * One of image_classification_config, bounding_poly_config,
@@ -137,13 +92,10 @@ public interface LabelImageRequestOrBuilder
    * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6; - * * @return The polylineConfig. */ com.google.cloud.datalabeling.v1beta1.PolylineConfig getPolylineConfig(); /** - * - * *
    * Configuration for polyline task.
    * One of image_classification_config, bounding_poly_config,
@@ -155,8 +107,6 @@ public interface LabelImageRequestOrBuilder
   com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder getPolylineConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Configuration for segmentation task.
    * One of image_classification_config, bounding_poly_config,
@@ -164,13 +114,10 @@ public interface LabelImageRequestOrBuilder
    * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7; - * * @return Whether the segmentationConfig field is set. */ boolean hasSegmentationConfig(); /** - * - * *
    * Configuration for segmentation task.
    * One of image_classification_config, bounding_poly_config,
@@ -178,13 +125,10 @@ public interface LabelImageRequestOrBuilder
    * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7; - * * @return The segmentationConfig. */ com.google.cloud.datalabeling.v1beta1.SegmentationConfig getSegmentationConfig(); /** - * - * *
    * Configuration for segmentation task.
    * One of image_classification_config, bounding_poly_config,
@@ -193,110 +137,75 @@ public interface LabelImageRequestOrBuilder
    *
    * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7;
    */
-  com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder
-      getSegmentationConfigOrBuilder();
+  com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder getSegmentationConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Required. Name of the dataset to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * 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. Name of the dataset to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * 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. Basic human annotation config.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** - * - * *
    * Required. Basic human annotation config.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** - * - * *
    * Required. Basic human annotation config.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder(); /** - * - * *
    * Required. The type of image labeling task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for feature. */ int getFeatureValue(); /** - * - * *
    * Required. The type of image labeling task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The feature. */ com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature getFeature(); - public com.google.cloud.datalabeling.v1beta1.LabelImageRequest.RequestConfigCase - getRequestConfigCase(); + public com.google.cloud.datalabeling.v1beta1.LabelImageRequest.RequestConfigCase getRequestConfigCase(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadata.java similarity index 57% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadata.java index 17aad006..6f63cb34 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadata.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Details of a LabelImageSegmentation operation metadata.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata} */ -public final class LabelImageSegmentationOperationMetadata - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LabelImageSegmentationOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) LabelImageSegmentationOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LabelImageSegmentationOperationMetadata.newBuilder() to construct. - private LabelImageSegmentationOperationMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelImageSegmentationOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LabelImageSegmentationOperationMetadata() {} + private LabelImageSegmentationOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LabelImageSegmentationOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LabelImageSegmentationOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,30 +52,26 @@ private LabelImageSegmentationOperationMetadata( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); - } - basicConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,40 +79,34 @@ private LabelImageSegmentationOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder - .class); + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder.class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** - * - * *
    * Basic human annotation config.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -142,25 +114,18 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** - * - * *
    * Basic human annotation config.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } /** - * - * *
    * Basic human annotation config.
    * 
@@ -168,13 +133,11 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -200,7 +164,8 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -210,18 +175,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.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata)) { + if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata other = - (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig().equals(other.getBasicConfig())) return false; + if (!getBasicConfig() + .equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -243,152 +207,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata 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.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - 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.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata 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.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - 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.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata 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.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - 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.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata 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.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 a LabelImageSegmentation operation metadata.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder - .class); + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.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(); @@ -402,22 +349,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata build() { - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata result = - buildPartial(); + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -425,10 +369,8 @@ public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMeta } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata result = - new com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata(this); + public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata buildPartial() { + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata(this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -442,53 +384,46 @@ public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMeta public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) other); + if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) { + return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata other) { - if (other - == com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata other) { + if (other == com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -507,14 +442,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata parsedMessage = - null; + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -526,55 +458,41 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> - basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; /** - * - * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** - * - * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** - * - * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -588,8 +506,6 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config.
      * 
@@ -608,22 +524,17 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); } else { basicConfig_ = value; } @@ -635,8 +546,6 @@ public Builder mergeBasicConfig( return this; } /** - * - * *
      * Basic human annotation config.
      * 
@@ -655,42 +564,33 @@ public Builder clearBasicConfig() { return this; } /** - * - * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder - getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } } /** - * - * *
      * Basic human annotation config.
      * 
@@ -698,24 +598,21 @@ public Builder clearBasicConfig() { * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), getParentForChildren(), isClean()); + basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), + getParentForChildren(), + isClean()); basicConfig_ = null; } return basicConfigBuilder_; } - @java.lang.Override - 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,33 +622,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata(); + DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelImageSegmentationOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelImageSegmentationOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelImageSegmentationOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelImageSegmentationOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -763,8 +657,9 @@ public com.google.protobuf.Parser getPa } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadataOrBuilder.java similarity index 64% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadataOrBuilder.java index 36f6569e..cb3d7e00 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelImageSegmentationOperationMetadataOrBuilder - extends +public interface LabelImageSegmentationOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Basic human annotation config.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** - * - * *
    * Basic human annotation config.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** - * - * *
    * Basic human annotation config.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadata.java similarity index 54% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadata.java index ecf87edb..9af74730 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadata.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Metadata of a labeling operation, such as LabelImage or LabelVideo.
  * Next tag: 20
@@ -28,31 +11,31 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelOperationMetadata}
  */
-public final class LabelOperationMetadata extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class LabelOperationMetadata extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelOperationMetadata)
     LabelOperationMetadataOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use LabelOperationMetadata.newBuilder() to construct.
   private LabelOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private LabelOperationMetadata() {
     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 LabelOperationMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private LabelOperationMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -72,350 +55,208 @@ private LabelOperationMetadata(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              progressPercent_ = input.readInt32();
-              break;
+          case 8: {
+
+            progressPercent_ = input.readInt32();
+            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.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder subBuilder = null;
+            if (detailsCase_ == 3) {
+              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) details_).toBuilder();
+            }
+            details_ =
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) details_);
+              details_ = subBuilder.buildPartial();
+            }
+            detailsCase_ = 3;
+            break;
+          }
+          case 34: {
+            com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder subBuilder = null;
+            if (detailsCase_ == 4) {
+              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) details_).toBuilder();
+            }
+            details_ =
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) details_);
+              details_ = subBuilder.buildPartial();
+            }
+            detailsCase_ = 4;
+            break;
+          }
+          case 42: {
+            com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder subBuilder = null;
+            if (detailsCase_ == 5) {
+              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) details_).toBuilder();
+            }
+            details_ =
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) details_);
+              details_ = subBuilder.buildPartial();
+            }
+            detailsCase_ = 5;
+            break;
+          }
+          case 50: {
+            com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.Builder subBuilder = null;
+            if (detailsCase_ == 6) {
+              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) details_).toBuilder();
             }
-          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;
+            details_ =
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) details_);
+              details_ = subBuilder.buildPartial();
             }
-          case 26:
-            {
-              com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata
-                      .Builder
-                  subBuilder = null;
-              if (detailsCase_ == 3) {
-                subBuilder =
-                    ((com.google.cloud.datalabeling.v1beta1
-                                .LabelImageClassificationOperationMetadata)
-                            details_)
-                        .toBuilder();
-              }
-              details_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1
-                          .LabelImageClassificationOperationMetadata.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.datalabeling.v1beta1
-                            .LabelImageClassificationOperationMetadata)
-                        details_);
-                details_ = subBuilder.buildPartial();
-              }
-              detailsCase_ = 3;
-              break;
+            detailsCase_ = 6;
+            break;
+          }
+          case 58: {
+            com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder subBuilder = null;
+            if (detailsCase_ == 7) {
+              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) details_).toBuilder();
             }
-          case 34:
-            {
-              com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder
-                  subBuilder = null;
-              if (detailsCase_ == 4) {
-                subBuilder =
-                    ((com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata)
-                            details_)
-                        .toBuilder();
-              }
-              details_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata)
-                        details_);
-                details_ = subBuilder.buildPartial();
-              }
-              detailsCase_ = 4;
-              break;
+            details_ =
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) details_);
+              details_ = subBuilder.buildPartial();
             }
-          case 42:
-            {
-              com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata
-                      .Builder
-                  subBuilder = null;
-              if (detailsCase_ == 5) {
-                subBuilder =
-                    ((com.google.cloud.datalabeling.v1beta1
-                                .LabelVideoClassificationOperationMetadata)
-                            details_)
-                        .toBuilder();
-              }
-              details_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1
-                          .LabelVideoClassificationOperationMetadata.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.datalabeling.v1beta1
-                            .LabelVideoClassificationOperationMetadata)
-                        details_);
-                details_ = subBuilder.buildPartial();
-              }
-              detailsCase_ = 5;
-              break;
+            detailsCase_ = 7;
+            break;
+          }
+          case 66: {
+            com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder subBuilder = null;
+            if (detailsCase_ == 8) {
+              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_).toBuilder();
             }
-          case 50:
-            {
-              com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata
-                      .Builder
-                  subBuilder = null;
-              if (detailsCase_ == 6) {
-                subBuilder =
-                    ((com.google.cloud.datalabeling.v1beta1
-                                .LabelVideoObjectDetectionOperationMetadata)
-                            details_)
-                        .toBuilder();
-              }
-              details_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1
-                          .LabelVideoObjectDetectionOperationMetadata.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.datalabeling.v1beta1
-                            .LabelVideoObjectDetectionOperationMetadata)
-                        details_);
-                details_ = subBuilder.buildPartial();
-              }
-              detailsCase_ = 6;
-              break;
+            details_ =
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_);
+              details_ = subBuilder.buildPartial();
             }
-          case 58:
-            {
-              com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata
-                      .Builder
-                  subBuilder = null;
-              if (detailsCase_ == 7) {
-                subBuilder =
-                    ((com.google.cloud.datalabeling.v1beta1
-                                .LabelVideoObjectTrackingOperationMetadata)
-                            details_)
-                        .toBuilder();
-              }
-              details_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1
-                          .LabelVideoObjectTrackingOperationMetadata.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.datalabeling.v1beta1
-                            .LabelVideoObjectTrackingOperationMetadata)
-                        details_);
-                details_ = subBuilder.buildPartial();
-              }
-              detailsCase_ = 7;
-              break;
+            detailsCase_ = 8;
+            break;
+          }
+          case 74: {
+            com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder subBuilder = null;
+            if (detailsCase_ == 9) {
+              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) details_).toBuilder();
             }
-          case 66:
-            {
-              com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder
-                  subBuilder = null;
-              if (detailsCase_ == 8) {
-                subBuilder =
-                    ((com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata)
-                            details_)
-                        .toBuilder();
-              }
-              details_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata)
-                        details_);
-                details_ = subBuilder.buildPartial();
-              }
-              detailsCase_ = 8;
-              break;
+            details_ =
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) details_);
+              details_ = subBuilder.buildPartial();
             }
-          case 74:
-            {
-              com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder
-                  subBuilder = null;
-              if (detailsCase_ == 9) {
-                subBuilder =
-                    ((com.google.cloud.datalabeling.v1beta1
-                                .LabelTextClassificationOperationMetadata)
-                            details_)
-                        .toBuilder();
-              }
-              details_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata)
-                        details_);
-                details_ = subBuilder.buildPartial();
-              }
-              detailsCase_ = 9;
-              break;
+            detailsCase_ = 9;
+            break;
+          }
+          case 90: {
+            com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder subBuilder = null;
+            if (detailsCase_ == 11) {
+              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) details_).toBuilder();
             }
-          case 90:
-            {
-              com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder
-                  subBuilder = null;
-              if (detailsCase_ == 11) {
-                subBuilder =
-                    ((com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata)
-                            details_)
-                        .toBuilder();
-              }
-              details_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata)
-                        details_);
-                details_ = subBuilder.buildPartial();
-              }
-              detailsCase_ = 11;
-              break;
+            details_ =
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) details_);
+              details_ = subBuilder.buildPartial();
             }
-          case 98:
-            {
-              com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder
-                  subBuilder = null;
-              if (detailsCase_ == 12) {
-                subBuilder =
-                    ((com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata)
-                            details_)
-                        .toBuilder();
-              }
-              details_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata)
-                        details_);
-                details_ = subBuilder.buildPartial();
-              }
-              detailsCase_ = 12;
-              break;
+            detailsCase_ = 11;
+            break;
+          }
+          case 98: {
+            com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder subBuilder = null;
+            if (detailsCase_ == 12) {
+              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_).toBuilder();
             }
-          case 106:
-            {
-              com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata
-                      .Builder
-                  subBuilder = null;
-              if (detailsCase_ == 13) {
-                subBuilder =
-                    ((com.google.cloud.datalabeling.v1beta1
-                                .LabelTextEntityExtractionOperationMetadata)
-                            details_)
-                        .toBuilder();
-              }
-              details_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1
-                          .LabelTextEntityExtractionOperationMetadata.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.datalabeling.v1beta1
-                            .LabelTextEntityExtractionOperationMetadata)
-                        details_);
-                details_ = subBuilder.buildPartial();
-              }
-              detailsCase_ = 13;
-              break;
+            details_ =
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_);
+              details_ = subBuilder.buildPartial();
             }
-          case 114:
-            {
-              com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata
-                      .Builder
-                  subBuilder = null;
-              if (detailsCase_ == 14) {
-                subBuilder =
-                    ((com.google.cloud.datalabeling.v1beta1
-                                .LabelImageOrientedBoundingBoxOperationMetadata)
-                            details_)
-                        .toBuilder();
-              }
-              details_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1
-                          .LabelImageOrientedBoundingBoxOperationMetadata.parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.datalabeling.v1beta1
-                            .LabelImageOrientedBoundingBoxOperationMetadata)
-                        details_);
-                details_ = subBuilder.buildPartial();
-              }
-              detailsCase_ = 14;
-              break;
+            detailsCase_ = 12;
+            break;
+          }
+          case 106: {
+            com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.Builder subBuilder = null;
+            if (detailsCase_ == 13) {
+              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) details_).toBuilder();
             }
-          case 122:
-            {
-              com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder
-                  subBuilder = null;
-              if (detailsCase_ == 15) {
-                subBuilder =
-                    ((com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata)
-                            details_)
-                        .toBuilder();
-              }
-              details_ =
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata
-                          .parser(),
-                      extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(
-                    (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata)
-                        details_);
-                details_ = subBuilder.buildPartial();
-              }
-              detailsCase_ = 15;
-              break;
+            details_ =
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) details_);
+              details_ = subBuilder.buildPartial();
             }
-          case 130:
-            {
-              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;
+            detailsCase_ = 13;
+            break;
+          }
+          case 114: {
+            com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.Builder subBuilder = null;
+            if (detailsCase_ == 14) {
+              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) details_).toBuilder();
             }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            details_ =
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) details_);
+              details_ = subBuilder.buildPartial();
             }
+            detailsCase_ = 14;
+            break;
+          }
+          case 122: {
+            com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder subBuilder = null;
+            if (detailsCase_ == 15) {
+              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) details_).toBuilder();
+            }
+            details_ =
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.parser(), extensionRegistry);
+            if (subBuilder != null) {
+              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) details_);
+              details_ = subBuilder.buildPartial();
+            }
+            detailsCase_ = 15;
+            break;
+          }
+          case 130: {
+            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;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
+            }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -423,7 +264,8 @@ private LabelOperationMetadata(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } 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_);
@@ -432,28 +274,23 @@ private LabelOperationMetadata(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.Operations
-        .internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.Operations
-        .internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.class,
-            com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.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 {
     IMAGE_CLASSIFICATION_DETAILS(3),
     IMAGE_BOUNDING_BOX_DETAILS(4),
@@ -469,7 +306,6 @@ public enum DetailsCase
     TEXT_ENTITY_EXTRACTION_DETAILS(13),
     DETAILS_NOT_SET(0);
     private final int value;
-
     private DetailsCase(int value) {
       this.value = value;
     }
@@ -485,58 +321,40 @@ public static DetailsCase valueOf(int value) {
 
     public static DetailsCase forNumber(int value) {
       switch (value) {
-        case 3:
-          return IMAGE_CLASSIFICATION_DETAILS;
-        case 4:
-          return IMAGE_BOUNDING_BOX_DETAILS;
-        case 11:
-          return IMAGE_BOUNDING_POLY_DETAILS;
-        case 14:
-          return IMAGE_ORIENTED_BOUNDING_BOX_DETAILS;
-        case 12:
-          return IMAGE_POLYLINE_DETAILS;
-        case 15:
-          return IMAGE_SEGMENTATION_DETAILS;
-        case 5:
-          return VIDEO_CLASSIFICATION_DETAILS;
-        case 6:
-          return VIDEO_OBJECT_DETECTION_DETAILS;
-        case 7:
-          return VIDEO_OBJECT_TRACKING_DETAILS;
-        case 8:
-          return VIDEO_EVENT_DETAILS;
-        case 9:
-          return TEXT_CLASSIFICATION_DETAILS;
-        case 13:
-          return TEXT_ENTITY_EXTRACTION_DETAILS;
-        case 0:
-          return DETAILS_NOT_SET;
-        default:
-          return null;
+        case 3: return IMAGE_CLASSIFICATION_DETAILS;
+        case 4: return IMAGE_BOUNDING_BOX_DETAILS;
+        case 11: return IMAGE_BOUNDING_POLY_DETAILS;
+        case 14: return IMAGE_ORIENTED_BOUNDING_BOX_DETAILS;
+        case 12: return IMAGE_POLYLINE_DETAILS;
+        case 15: return IMAGE_SEGMENTATION_DETAILS;
+        case 5: return VIDEO_CLASSIFICATION_DETAILS;
+        case 6: return VIDEO_OBJECT_DETECTION_DETAILS;
+        case 7: return VIDEO_OBJECT_TRACKING_DETAILS;
+        case 8: return VIDEO_EVENT_DETAILS;
+        case 9: return TEXT_CLASSIFICATION_DETAILS;
+        case 13: return TEXT_ENTITY_EXTRACTION_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 IMAGE_CLASSIFICATION_DETAILS_FIELD_NUMBER = 3;
   /**
-   *
-   *
    * 
    * Details of label image classification operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; * @return Whether the imageClassificationDetails field is set. */ @java.lang.Override @@ -544,62 +362,42 @@ public boolean hasImageClassificationDetails() { return detailsCase_ == 3; } /** - * - * *
    * Details of label image classification operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; * @return The imageClassificationDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - getImageClassificationDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata getImageClassificationDetails() { if (detailsCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of label image classification operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; - * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadataOrBuilder - getImageClassificationDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadataOrBuilder getImageClassificationDetailsOrBuilder() { if (detailsCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.getDefaultInstance(); } public static final int IMAGE_BOUNDING_BOX_DETAILS_FIELD_NUMBER = 4; /** - * - * *
    * Details of label image bounding box operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; * @return Whether the imageBoundingBoxDetails field is set. */ @java.lang.Override @@ -607,62 +405,42 @@ public boolean hasImageBoundingBoxDetails() { return detailsCase_ == 4; } /** - * - * *
    * Details of label image bounding box operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; * @return The imageBoundingBoxDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - getImageBoundingBoxDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata getImageBoundingBoxDetails() { if (detailsCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of label image bounding box operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder - getImageBoundingBoxDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder getImageBoundingBoxDetailsOrBuilder() { if (detailsCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.getDefaultInstance(); } public static final int IMAGE_BOUNDING_POLY_DETAILS_FIELD_NUMBER = 11; /** - * - * *
    * Details of label image bounding poly operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; * @return Whether the imageBoundingPolyDetails field is set. */ @java.lang.Override @@ -670,62 +448,42 @@ public boolean hasImageBoundingPolyDetails() { return detailsCase_ == 11; } /** - * - * *
    * Details of label image bounding poly operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; * @return The imageBoundingPolyDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - getImageBoundingPolyDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata getImageBoundingPolyDetails() { if (detailsCase_ == 11) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of label image bounding poly operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder - getImageBoundingPolyDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder getImageBoundingPolyDetailsOrBuilder() { if (detailsCase_ == 11) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.getDefaultInstance(); } public static final int IMAGE_ORIENTED_BOUNDING_BOX_DETAILS_FIELD_NUMBER = 14; /** - * - * *
    * Details of label image oriented bounding box operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; * @return Whether the imageOrientedBoundingBoxDetails field is set. */ @java.lang.Override @@ -733,63 +491,42 @@ public boolean hasImageOrientedBoundingBoxDetails() { return detailsCase_ == 14; } /** - * - * *
    * Details of label image oriented bounding box operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; * @return The imageOrientedBoundingBoxDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - getImageOrientedBoundingBoxDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata getImageOrientedBoundingBoxDetails() { if (detailsCase_ == 14) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of label image oriented bounding box operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; - * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1 - .LabelImageOrientedBoundingBoxOperationMetadataOrBuilder - getImageOrientedBoundingBoxDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadataOrBuilder getImageOrientedBoundingBoxDetailsOrBuilder() { if (detailsCase_ == 14) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.getDefaultInstance(); } public static final int IMAGE_POLYLINE_DETAILS_FIELD_NUMBER = 12; /** - * - * *
    * Details of label image polyline operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; * @return Whether the imagePolylineDetails field is set. */ @java.lang.Override @@ -797,60 +534,42 @@ public boolean hasImagePolylineDetails() { return detailsCase_ == 12; } /** - * - * *
    * Details of label image polyline operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; * @return The imagePolylineDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata - getImagePolylineDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata getImagePolylineDetails() { if (detailsCase_ == 12) { - return (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of label image polyline operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; - * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder - getImagePolylineDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder getImagePolylineDetailsOrBuilder() { if (detailsCase_ == 12) { - return (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.getDefaultInstance(); } public static final int IMAGE_SEGMENTATION_DETAILS_FIELD_NUMBER = 15; /** - * - * *
    * Details of label image segmentation operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; * @return Whether the imageSegmentationDetails field is set. */ @java.lang.Override @@ -858,62 +577,42 @@ public boolean hasImageSegmentationDetails() { return detailsCase_ == 15; } /** - * - * *
    * Details of label image segmentation operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; * @return The imageSegmentationDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - getImageSegmentationDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata getImageSegmentationDetails() { if (detailsCase_ == 15) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of label image segmentation operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; - * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder - getImageSegmentationDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder getImageSegmentationDetailsOrBuilder() { if (detailsCase_ == 15) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.getDefaultInstance(); } public static final int VIDEO_CLASSIFICATION_DETAILS_FIELD_NUMBER = 5; /** - * - * *
    * Details of label video classification operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; * @return Whether the videoClassificationDetails field is set. */ @java.lang.Override @@ -921,62 +620,42 @@ public boolean hasVideoClassificationDetails() { return detailsCase_ == 5; } /** - * - * *
    * Details of label video classification operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; * @return The videoClassificationDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - getVideoClassificationDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata getVideoClassificationDetails() { if (detailsCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of label video classification operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadataOrBuilder - getVideoClassificationDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadataOrBuilder getVideoClassificationDetailsOrBuilder() { if (detailsCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.getDefaultInstance(); } public static final int VIDEO_OBJECT_DETECTION_DETAILS_FIELD_NUMBER = 6; /** - * - * *
    * Details of label video object detection operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; * @return Whether the videoObjectDetectionDetails field is set. */ @java.lang.Override @@ -984,62 +663,42 @@ public boolean hasVideoObjectDetectionDetails() { return detailsCase_ == 6; } /** - * - * *
    * Details of label video object detection operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; * @return The videoObjectDetectionDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - getVideoObjectDetectionDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata getVideoObjectDetectionDetails() { if (detailsCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of label video object detection operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadataOrBuilder - getVideoObjectDetectionDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadataOrBuilder getVideoObjectDetectionDetailsOrBuilder() { if (detailsCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.getDefaultInstance(); } public static final int VIDEO_OBJECT_TRACKING_DETAILS_FIELD_NUMBER = 7; /** - * - * *
    * Details of label video object tracking operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; * @return Whether the videoObjectTrackingDetails field is set. */ @java.lang.Override @@ -1047,62 +706,42 @@ public boolean hasVideoObjectTrackingDetails() { return detailsCase_ == 7; } /** - * - * *
    * Details of label video object tracking operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; * @return The videoObjectTrackingDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - getVideoObjectTrackingDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata getVideoObjectTrackingDetails() { if (detailsCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of label video object tracking operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadataOrBuilder - getVideoObjectTrackingDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadataOrBuilder getVideoObjectTrackingDetailsOrBuilder() { if (detailsCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.getDefaultInstance(); } public static final int VIDEO_EVENT_DETAILS_FIELD_NUMBER = 8; /** - * - * *
    * Details of label video event operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; * @return Whether the videoEventDetails field is set. */ @java.lang.Override @@ -1110,60 +749,42 @@ public boolean hasVideoEventDetails() { return detailsCase_ == 8; } /** - * - * *
    * Details of label video event operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; * @return The videoEventDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata - getVideoEventDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata getVideoEventDetails() { if (detailsCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of label video event operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder - getVideoEventDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder getVideoEventDetailsOrBuilder() { if (detailsCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.getDefaultInstance(); } public static final int TEXT_CLASSIFICATION_DETAILS_FIELD_NUMBER = 9; /** - * - * *
    * Details of label text classification operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; - * - * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; * @return Whether the textClassificationDetails field is set. */ @java.lang.Override @@ -1171,62 +792,42 @@ public boolean hasTextClassificationDetails() { return detailsCase_ == 9; } /** - * - * *
    * Details of label text classification operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; - * - * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; * @return The textClassificationDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - getTextClassificationDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata getTextClassificationDetails() { if (detailsCase_ == 9) { - return (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of label text classification operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; - * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder - getTextClassificationDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder getTextClassificationDetailsOrBuilder() { if (detailsCase_ == 9) { - return (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.getDefaultInstance(); } public static final int TEXT_ENTITY_EXTRACTION_DETAILS_FIELD_NUMBER = 13; /** - * - * *
    * Details of label text entity extraction operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; - * - * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; * @return Whether the textEntityExtractionDetails field is set. */ @java.lang.Override @@ -1234,61 +835,43 @@ public boolean hasTextEntityExtractionDetails() { return detailsCase_ == 13; } /** - * - * *
    * Details of label text entity extraction operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; - * - * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; * @return The textEntityExtractionDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - getTextEntityExtractionDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata getTextEntityExtractionDetails() { if (detailsCase_ == 13) { - return (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.getDefaultInstance(); } /** - * - * *
    * Details of label text entity extraction operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; - * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataOrBuilder - getTextEntityExtractionDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataOrBuilder getTextEntityExtractionDetailsOrBuilder() { if (detailsCase_ == 13) { - return (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.getDefaultInstance(); } public static final int PROGRESS_PERCENT_FIELD_NUMBER = 1; private int progressPercent_; /** - * - * *
    * Output only. Progress of label operation. Range: [0, 100].
    * 
* * int32 progress_percent = 1; - * * @return The progressPercent. */ @java.lang.Override @@ -1299,8 +882,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.
@@ -1314,8 +895,6 @@ public java.util.List getPartialFailuresList() {
     return partialFailures_;
   }
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -1325,13 +904,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.
@@ -1345,8 +922,6 @@ public int getPartialFailuresCount() {
     return partialFailures_.size();
   }
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -1360,8 +935,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.
@@ -1371,21 +944,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 = 16;
   private com.google.protobuf.Timestamp createTime_;
   /**
-   *
-   *
    * 
    * Output only. Timestamp when labeling request was created.
    * 
* * .google.protobuf.Timestamp create_time = 16; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -1393,14 +964,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Timestamp when labeling request was created.
    * 
* * .google.protobuf.Timestamp create_time = 16; - * * @return The createTime. */ @java.lang.Override @@ -1408,8 +976,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Timestamp when labeling request was created.
    * 
@@ -1422,7 +988,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1434,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 (progressPercent_ != 0) { output.writeInt32(1, progressPercent_); } @@ -1442,69 +1008,40 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(2, partialFailures_.get(i)); } if (detailsCase_ == 3) { - output.writeMessage( - 3, - (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) - details_); + output.writeMessage(3, (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) details_); } if (detailsCase_ == 4) { - output.writeMessage( - 4, - (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) details_); + output.writeMessage(4, (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) details_); } if (detailsCase_ == 5) { - output.writeMessage( - 5, - (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) - details_); + output.writeMessage(5, (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) details_); } if (detailsCase_ == 6) { - output.writeMessage( - 6, - (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) - details_); + output.writeMessage(6, (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) details_); } if (detailsCase_ == 7) { - output.writeMessage( - 7, - (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) - details_); + output.writeMessage(7, (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) details_); } if (detailsCase_ == 8) { - output.writeMessage( - 8, (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_); + output.writeMessage(8, (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_); } if (detailsCase_ == 9) { - output.writeMessage( - 9, - (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) - details_); + output.writeMessage(9, (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) details_); } if (detailsCase_ == 11) { - output.writeMessage( - 11, - (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) details_); + output.writeMessage(11, (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) details_); } if (detailsCase_ == 12) { - output.writeMessage( - 12, (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_); + output.writeMessage(12, (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_); } if (detailsCase_ == 13) { - output.writeMessage( - 13, - (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) - details_); + output.writeMessage(13, (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) details_); } if (detailsCase_ == 14) { - output.writeMessage( - 14, - (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) - details_); + output.writeMessage(14, (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) details_); } if (detailsCase_ == 15) { - output.writeMessage( - 15, - (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) details_); + output.writeMessage(15, (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) details_); } if (createTime_ != null) { output.writeMessage(16, getCreateTime()); @@ -1519,94 +1056,64 @@ public int getSerializedSize() { size = 0; if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, progressPercent_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, progressPercent_); } 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 (detailsCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, - (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) - details_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) details_); } if (detailsCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, - (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) - details_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) details_); } if (detailsCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, - (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) - details_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) details_); } if (detailsCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, - (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) - details_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) details_); } if (detailsCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, - (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) - details_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) details_); } if (detailsCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 8, (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_); } if (detailsCase_ == 9) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 9, - (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) - details_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) details_); } if (detailsCase_ == 11) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 11, - (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) - details_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) details_); } if (detailsCase_ == 12) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 12, - (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_); } if (detailsCase_ == 13) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 13, - (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) - details_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) details_); } if (detailsCase_ == 14) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 14, - (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) - details_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) details_); } if (detailsCase_ == 15) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 15, - (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) - details_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(15, (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) details_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(16, getCreateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1616,66 +1123,71 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata other = - (com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata) 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 (!getDetailsCase().equals(other.getDetailsCase())) return false; switch (detailsCase_) { case 3: - if (!getImageClassificationDetails().equals(other.getImageClassificationDetails())) - return false; + if (!getImageClassificationDetails() + .equals(other.getImageClassificationDetails())) return false; break; case 4: - if (!getImageBoundingBoxDetails().equals(other.getImageBoundingBoxDetails())) return false; + if (!getImageBoundingBoxDetails() + .equals(other.getImageBoundingBoxDetails())) return false; break; case 11: - if (!getImageBoundingPolyDetails().equals(other.getImageBoundingPolyDetails())) - return false; + if (!getImageBoundingPolyDetails() + .equals(other.getImageBoundingPolyDetails())) return false; break; case 14: if (!getImageOrientedBoundingBoxDetails() .equals(other.getImageOrientedBoundingBoxDetails())) return false; break; case 12: - if (!getImagePolylineDetails().equals(other.getImagePolylineDetails())) return false; + if (!getImagePolylineDetails() + .equals(other.getImagePolylineDetails())) return false; break; case 15: - if (!getImageSegmentationDetails().equals(other.getImageSegmentationDetails())) - return false; + if (!getImageSegmentationDetails() + .equals(other.getImageSegmentationDetails())) return false; break; case 5: - if (!getVideoClassificationDetails().equals(other.getVideoClassificationDetails())) - return false; + if (!getVideoClassificationDetails() + .equals(other.getVideoClassificationDetails())) return false; break; case 6: - if (!getVideoObjectDetectionDetails().equals(other.getVideoObjectDetectionDetails())) - return false; + if (!getVideoObjectDetectionDetails() + .equals(other.getVideoObjectDetectionDetails())) return false; break; case 7: - if (!getVideoObjectTrackingDetails().equals(other.getVideoObjectTrackingDetails())) - return false; + if (!getVideoObjectTrackingDetails() + .equals(other.getVideoObjectTrackingDetails())) return false; break; case 8: - if (!getVideoEventDetails().equals(other.getVideoEventDetails())) return false; + if (!getVideoEventDetails() + .equals(other.getVideoEventDetails())) return false; break; case 9: - if (!getTextClassificationDetails().equals(other.getTextClassificationDetails())) - return false; + if (!getTextClassificationDetails() + .equals(other.getTextClassificationDetails())) return false; break; case 13: - if (!getTextEntityExtractionDetails().equals(other.getTextEntityExtractionDetails())) - return false; + if (!getTextEntityExtractionDetails() + .equals(other.getTextEntityExtractionDetails())) return false; break; case 0: default: @@ -1759,104 +1271,96 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata 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.datalabeling.v1beta1.LabelOperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 of a labeling operation, such as LabelImage or LabelVideo.
    * Next tag: 20
@@ -1864,23 +1368,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelOperationMetadata}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelOperationMetadata)
       com.google.cloud.datalabeling.v1beta1.LabelOperationMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.Operations
-          .internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.Operations
-          .internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.class,
-              com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.newBuilder()
@@ -1888,17 +1390,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();
@@ -1922,14 +1424,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.Operations
-          .internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata
-        getDefaultInstanceForType() {
+    public com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata getDefaultInstanceForType() {
       return com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.getDefaultInstance();
     }
 
@@ -1944,8 +1445,7 @@ public com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata result =
-          new com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata(this);
+      com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata(this);
       int from_bitField0_ = bitField0_;
       if (detailsCase_ == 3) {
         if (imageClassificationDetailsBuilder_ == null) {
@@ -2055,39 +1555,38 @@ public com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata buildPartial
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata) other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2095,9 +1594,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata other) {
-      if (other
-          == com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.getDefaultInstance()) return this;
       if (other.getProgressPercent() != 0) {
         setProgressPercent(other.getProgressPercent());
       }
@@ -2119,10 +1616,9 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelOperationMet
             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_);
           }
@@ -2132,70 +1628,57 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelOperationMet
         mergeCreateTime(other.getCreateTime());
       }
       switch (other.getDetailsCase()) {
-        case IMAGE_CLASSIFICATION_DETAILS:
-          {
-            mergeImageClassificationDetails(other.getImageClassificationDetails());
-            break;
-          }
-        case IMAGE_BOUNDING_BOX_DETAILS:
-          {
-            mergeImageBoundingBoxDetails(other.getImageBoundingBoxDetails());
-            break;
-          }
-        case IMAGE_BOUNDING_POLY_DETAILS:
-          {
-            mergeImageBoundingPolyDetails(other.getImageBoundingPolyDetails());
-            break;
-          }
-        case IMAGE_ORIENTED_BOUNDING_BOX_DETAILS:
-          {
-            mergeImageOrientedBoundingBoxDetails(other.getImageOrientedBoundingBoxDetails());
-            break;
-          }
-        case IMAGE_POLYLINE_DETAILS:
-          {
-            mergeImagePolylineDetails(other.getImagePolylineDetails());
-            break;
-          }
-        case IMAGE_SEGMENTATION_DETAILS:
-          {
-            mergeImageSegmentationDetails(other.getImageSegmentationDetails());
-            break;
-          }
-        case VIDEO_CLASSIFICATION_DETAILS:
-          {
-            mergeVideoClassificationDetails(other.getVideoClassificationDetails());
-            break;
-          }
-        case VIDEO_OBJECT_DETECTION_DETAILS:
-          {
-            mergeVideoObjectDetectionDetails(other.getVideoObjectDetectionDetails());
-            break;
-          }
-        case VIDEO_OBJECT_TRACKING_DETAILS:
-          {
-            mergeVideoObjectTrackingDetails(other.getVideoObjectTrackingDetails());
-            break;
-          }
-        case VIDEO_EVENT_DETAILS:
-          {
-            mergeVideoEventDetails(other.getVideoEventDetails());
-            break;
-          }
-        case TEXT_CLASSIFICATION_DETAILS:
-          {
-            mergeTextClassificationDetails(other.getTextClassificationDetails());
-            break;
-          }
-        case TEXT_ENTITY_EXTRACTION_DETAILS:
-          {
-            mergeTextEntityExtractionDetails(other.getTextEntityExtractionDetails());
-            break;
-          }
-        case DETAILS_NOT_SET:
-          {
-            break;
-          }
+        case IMAGE_CLASSIFICATION_DETAILS: {
+          mergeImageClassificationDetails(other.getImageClassificationDetails());
+          break;
+        }
+        case IMAGE_BOUNDING_BOX_DETAILS: {
+          mergeImageBoundingBoxDetails(other.getImageBoundingBoxDetails());
+          break;
+        }
+        case IMAGE_BOUNDING_POLY_DETAILS: {
+          mergeImageBoundingPolyDetails(other.getImageBoundingPolyDetails());
+          break;
+        }
+        case IMAGE_ORIENTED_BOUNDING_BOX_DETAILS: {
+          mergeImageOrientedBoundingBoxDetails(other.getImageOrientedBoundingBoxDetails());
+          break;
+        }
+        case IMAGE_POLYLINE_DETAILS: {
+          mergeImagePolylineDetails(other.getImagePolylineDetails());
+          break;
+        }
+        case IMAGE_SEGMENTATION_DETAILS: {
+          mergeImageSegmentationDetails(other.getImageSegmentationDetails());
+          break;
+        }
+        case VIDEO_CLASSIFICATION_DETAILS: {
+          mergeVideoClassificationDetails(other.getVideoClassificationDetails());
+          break;
+        }
+        case VIDEO_OBJECT_DETECTION_DETAILS: {
+          mergeVideoObjectDetectionDetails(other.getVideoObjectDetectionDetails());
+          break;
+        }
+        case VIDEO_OBJECT_TRACKING_DETAILS: {
+          mergeVideoObjectTrackingDetails(other.getVideoObjectTrackingDetails());
+          break;
+        }
+        case VIDEO_EVENT_DETAILS: {
+          mergeVideoEventDetails(other.getVideoEventDetails());
+          break;
+        }
+        case TEXT_CLASSIFICATION_DETAILS: {
+          mergeTextClassificationDetails(other.getTextClassificationDetails());
+          break;
+        }
+        case TEXT_ENTITY_EXTRACTION_DETAILS: {
+          mergeTextEntityExtractionDetails(other.getTextEntityExtractionDetails());
+          break;
+        }
+        case DETAILS_NOT_SET: {
+          break;
+        }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -2216,8 +1699,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2226,12 +1708,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() {
@@ -2244,22 +1726,13 @@ public Builder clearDetails() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata,
-            com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder,
-            com.google.cloud.datalabeling.v1beta1
-                .LabelImageClassificationOperationMetadataOrBuilder>
-        imageClassificationDetailsBuilder_;
+        com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadataOrBuilder> imageClassificationDetailsBuilder_;
     /**
-     *
-     *
      * 
      * Details of label image classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; * @return Whether the imageClassificationDetails field is set. */ @java.lang.Override @@ -2267,49 +1740,35 @@ public boolean hasImageClassificationDetails() { return detailsCase_ == 3; } /** - * - * *
      * Details of label image classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; * @return The imageClassificationDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - getImageClassificationDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata getImageClassificationDetails() { if (imageClassificationDetailsBuilder_ == null) { if (detailsCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.getDefaultInstance(); } else { if (detailsCase_ == 3) { return imageClassificationDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label image classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; - * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; */ - public Builder setImageClassificationDetails( - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata value) { + public Builder setImageClassificationDetails(com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata value) { if (imageClassificationDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2323,19 +1782,14 @@ public Builder setImageClassificationDetails( return this; } /** - * - * *
      * Details of label image classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; - * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; */ public Builder setImageClassificationDetails( - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder - builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder builderForValue) { if (imageClassificationDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -2346,31 +1800,18 @@ public Builder setImageClassificationDetails( return this; } /** - * - * *
      * Details of label image classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; - * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; */ - public Builder mergeImageClassificationDetails( - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata value) { + public Builder mergeImageClassificationDetails(com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata value) { if (imageClassificationDetailsBuilder_ == null) { - if (detailsCase_ == 3 - && details_ - != com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - .getDefaultInstance()) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - .newBuilder( - (com.google.cloud.datalabeling.v1beta1 - .LabelImageClassificationOperationMetadata) - details_) - .mergeFrom(value) - .buildPartial(); + if (detailsCase_ == 3 && + details_ != com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.getDefaultInstance()) { + details_ = com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) details_) + .mergeFrom(value).buildPartial(); } else { details_ = value; } @@ -2386,15 +1827,11 @@ public Builder mergeImageClassificationDetails( return this; } /** - * - * *
      * Details of label image classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; - * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; */ public Builder clearImageClassificationDetails() { if (imageClassificationDetailsBuilder_ == null) { @@ -2413,103 +1850,67 @@ public Builder clearImageClassificationDetails() { return this; } /** - * - * *
      * Details of label image classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; - * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; */ - public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder - getImageClassificationDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder getImageClassificationDetailsBuilder() { return getImageClassificationDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of label image classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; - * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadataOrBuilder - getImageClassificationDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadataOrBuilder getImageClassificationDetailsOrBuilder() { if ((detailsCase_ == 3) && (imageClassificationDetailsBuilder_ != null)) { return imageClassificationDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label image classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; - * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder, - com.google.cloud.datalabeling.v1beta1 - .LabelImageClassificationOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadataOrBuilder> getImageClassificationDetailsFieldBuilder() { if (imageClassificationDetailsBuilder_ == null) { if (!(detailsCase_ == 3)) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - .getDefaultInstance(); - } - imageClassificationDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - .Builder, - com.google.cloud.datalabeling.v1beta1 - .LabelImageClassificationOperationMetadataOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) - details_, + details_ = com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.getDefaultInstance(); + } + imageClassificationDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadataOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 3; - onChanged(); - ; + onChanged();; return imageClassificationDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder> - imageBoundingBoxDetailsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder> imageBoundingBoxDetailsBuilder_; /** - * - * *
      * Details of label image bounding box operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; * @return Whether the imageBoundingBoxDetails field is set. */ @java.lang.Override @@ -2517,49 +1918,35 @@ public boolean hasImageBoundingBoxDetails() { return detailsCase_ == 4; } /** - * - * *
      * Details of label image bounding box operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; * @return The imageBoundingBoxDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - getImageBoundingBoxDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata getImageBoundingBoxDetails() { if (imageBoundingBoxDetailsBuilder_ == null) { if (detailsCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.getDefaultInstance(); } else { if (detailsCase_ == 4) { return imageBoundingBoxDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label image bounding box operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; */ - public Builder setImageBoundingBoxDetails( - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata value) { + public Builder setImageBoundingBoxDetails(com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata value) { if (imageBoundingBoxDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2573,19 +1960,14 @@ public Builder setImageBoundingBoxDetails( return this; } /** - * - * *
      * Details of label image bounding box operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; */ public Builder setImageBoundingBoxDetails( - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder - builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder builderForValue) { if (imageBoundingBoxDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -2596,30 +1978,18 @@ public Builder setImageBoundingBoxDetails( return this; } /** - * - * *
      * Details of label image bounding box operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; */ - public Builder mergeImageBoundingBoxDetails( - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata value) { + public Builder mergeImageBoundingBoxDetails(com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata value) { if (imageBoundingBoxDetailsBuilder_ == null) { - if (detailsCase_ == 4 - && details_ - != com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - .getDefaultInstance()) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - .newBuilder( - (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) - details_) - .mergeFrom(value) - .buildPartial(); + if (detailsCase_ == 4 && + details_ != com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.getDefaultInstance()) { + details_ = com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) details_) + .mergeFrom(value).buildPartial(); } else { details_ = value; } @@ -2635,15 +2005,11 @@ public Builder mergeImageBoundingBoxDetails( return this; } /** - * - * *
      * Details of label image bounding box operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; */ public Builder clearImageBoundingBoxDetails() { if (imageBoundingBoxDetailsBuilder_ == null) { @@ -2662,102 +2028,67 @@ public Builder clearImageBoundingBoxDetails() { return this; } /** - * - * *
      * Details of label image bounding box operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; */ - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder - getImageBoundingBoxDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder getImageBoundingBoxDetailsBuilder() { return getImageBoundingBoxDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of label image bounding box operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder - getImageBoundingBoxDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder getImageBoundingBoxDetailsOrBuilder() { if ((detailsCase_ == 4) && (imageBoundingBoxDetailsBuilder_ != null)) { return imageBoundingBoxDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label image bounding box operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder> getImageBoundingBoxDetailsFieldBuilder() { if (imageBoundingBoxDetailsBuilder_ == null) { if (!(detailsCase_ == 4)) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - .getDefaultInstance(); - } - imageBoundingBoxDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - .Builder, - com.google.cloud.datalabeling.v1beta1 - .LabelImageBoundingBoxOperationMetadataOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) - details_, + details_ = com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.getDefaultInstance(); + } + imageBoundingBoxDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 4; - onChanged(); - ; + onChanged();; return imageBoundingBoxDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder> - imageBoundingPolyDetailsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder> imageBoundingPolyDetailsBuilder_; /** - * - * *
      * Details of label image bounding poly operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; * @return Whether the imageBoundingPolyDetails field is set. */ @java.lang.Override @@ -2765,49 +2096,35 @@ public boolean hasImageBoundingPolyDetails() { return detailsCase_ == 11; } /** - * - * *
      * Details of label image bounding poly operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; * @return The imageBoundingPolyDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - getImageBoundingPolyDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata getImageBoundingPolyDetails() { if (imageBoundingPolyDetailsBuilder_ == null) { if (detailsCase_ == 11) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.getDefaultInstance(); } else { if (detailsCase_ == 11) { return imageBoundingPolyDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label image bounding poly operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; */ - public Builder setImageBoundingPolyDetails( - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata value) { + public Builder setImageBoundingPolyDetails(com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata value) { if (imageBoundingPolyDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2821,19 +2138,14 @@ public Builder setImageBoundingPolyDetails( return this; } /** - * - * *
      * Details of label image bounding poly operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; */ public Builder setImageBoundingPolyDetails( - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder - builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder builderForValue) { if (imageBoundingPolyDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -2844,31 +2156,18 @@ public Builder setImageBoundingPolyDetails( return this; } /** - * - * *
      * Details of label image bounding poly operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; */ - public Builder mergeImageBoundingPolyDetails( - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata value) { + public Builder mergeImageBoundingPolyDetails(com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata value) { if (imageBoundingPolyDetailsBuilder_ == null) { - if (detailsCase_ == 11 - && details_ - != com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - .getDefaultInstance()) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - .newBuilder( - (com.google.cloud.datalabeling.v1beta1 - .LabelImageBoundingPolyOperationMetadata) - details_) - .mergeFrom(value) - .buildPartial(); + if (detailsCase_ == 11 && + details_ != com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.getDefaultInstance()) { + details_ = com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) details_) + .mergeFrom(value).buildPartial(); } else { details_ = value; } @@ -2884,15 +2183,11 @@ public Builder mergeImageBoundingPolyDetails( return this; } /** - * - * *
      * Details of label image bounding poly operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; */ public Builder clearImageBoundingPolyDetails() { if (imageBoundingPolyDetailsBuilder_ == null) { @@ -2911,104 +2206,67 @@ public Builder clearImageBoundingPolyDetails() { return this; } /** - * - * *
      * Details of label image bounding poly operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; */ - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder - getImageBoundingPolyDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder getImageBoundingPolyDetailsBuilder() { return getImageBoundingPolyDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of label image bounding poly operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder - getImageBoundingPolyDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder getImageBoundingPolyDetailsOrBuilder() { if ((detailsCase_ == 11) && (imageBoundingPolyDetailsBuilder_ != null)) { return imageBoundingPolyDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 11) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label image bounding poly operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder> getImageBoundingPolyDetailsFieldBuilder() { if (imageBoundingPolyDetailsBuilder_ == null) { if (!(detailsCase_ == 11)) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - .getDefaultInstance(); - } - imageBoundingPolyDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - .Builder, - com.google.cloud.datalabeling.v1beta1 - .LabelImageBoundingPolyOperationMetadataOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) - details_, + details_ = com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.getDefaultInstance(); + } + imageBoundingPolyDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 11; - onChanged(); - ; + onChanged();; return imageBoundingPolyDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - .Builder, - com.google.cloud.datalabeling.v1beta1 - .LabelImageOrientedBoundingBoxOperationMetadataOrBuilder> - imageOrientedBoundingBoxDetailsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadataOrBuilder> imageOrientedBoundingBoxDetailsBuilder_; /** - * - * *
      * Details of label image oriented bounding box operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; * @return Whether the imageOrientedBoundingBoxDetails field is set. */ @java.lang.Override @@ -3016,51 +2274,35 @@ public boolean hasImageOrientedBoundingBoxDetails() { return detailsCase_ == 14; } /** - * - * *
      * Details of label image oriented bounding box operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; * @return The imageOrientedBoundingBoxDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - getImageOrientedBoundingBoxDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata getImageOrientedBoundingBoxDetails() { if (imageOrientedBoundingBoxDetailsBuilder_ == null) { if (detailsCase_ == 14) { - return (com.google.cloud.datalabeling.v1beta1 - .LabelImageOrientedBoundingBoxOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.getDefaultInstance(); } else { if (detailsCase_ == 14) { return imageOrientedBoundingBoxDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label image oriented bounding box operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; - * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; */ - public Builder setImageOrientedBoundingBoxDetails( - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - value) { + public Builder setImageOrientedBoundingBoxDetails(com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata value) { if (imageOrientedBoundingBoxDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3074,19 +2316,14 @@ public Builder setImageOrientedBoundingBoxDetails( return this; } /** - * - * *
      * Details of label image oriented bounding box operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; - * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; */ public Builder setImageOrientedBoundingBoxDetails( - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.Builder - builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.Builder builderForValue) { if (imageOrientedBoundingBoxDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -3097,32 +2334,18 @@ public Builder setImageOrientedBoundingBoxDetails( return this; } /** - * - * *
      * Details of label image oriented bounding box operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; - * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; */ - public Builder mergeImageOrientedBoundingBoxDetails( - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - value) { + public Builder mergeImageOrientedBoundingBoxDetails(com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata value) { if (imageOrientedBoundingBoxDetailsBuilder_ == null) { - if (detailsCase_ == 14 - && details_ - != com.google.cloud.datalabeling.v1beta1 - .LabelImageOrientedBoundingBoxOperationMetadata.getDefaultInstance()) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - .newBuilder( - (com.google.cloud.datalabeling.v1beta1 - .LabelImageOrientedBoundingBoxOperationMetadata) - details_) - .mergeFrom(value) - .buildPartial(); + if (detailsCase_ == 14 && + details_ != com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.getDefaultInstance()) { + details_ = com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) details_) + .mergeFrom(value).buildPartial(); } else { details_ = value; } @@ -3138,15 +2361,11 @@ public Builder mergeImageOrientedBoundingBoxDetails( return this; } /** - * - * *
      * Details of label image oriented bounding box operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; - * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; */ public Builder clearImageOrientedBoundingBoxDetails() { if (imageOrientedBoundingBoxDetailsBuilder_ == null) { @@ -3165,109 +2384,67 @@ public Builder clearImageOrientedBoundingBoxDetails() { return this; } /** - * - * *
      * Details of label image oriented bounding box operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; - * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; */ - public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - .Builder - getImageOrientedBoundingBoxDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.Builder getImageOrientedBoundingBoxDetailsBuilder() { return getImageOrientedBoundingBoxDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of label image oriented bounding box operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; - * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1 - .LabelImageOrientedBoundingBoxOperationMetadataOrBuilder - getImageOrientedBoundingBoxDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadataOrBuilder getImageOrientedBoundingBoxDetailsOrBuilder() { if ((detailsCase_ == 14) && (imageOrientedBoundingBoxDetailsBuilder_ != null)) { return imageOrientedBoundingBoxDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 14) { - return (com.google.cloud.datalabeling.v1beta1 - .LabelImageOrientedBoundingBoxOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label image oriented bounding box operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; - * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - .Builder, - com.google.cloud.datalabeling.v1beta1 - .LabelImageOrientedBoundingBoxOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadataOrBuilder> getImageOrientedBoundingBoxDetailsFieldBuilder() { if (imageOrientedBoundingBoxDetailsBuilder_ == null) { if (!(detailsCase_ == 14)) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - .getDefaultInstance(); - } - imageOrientedBoundingBoxDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1 - .LabelImageOrientedBoundingBoxOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - .Builder, - com.google.cloud.datalabeling.v1beta1 - .LabelImageOrientedBoundingBoxOperationMetadataOrBuilder>( - (com.google.cloud.datalabeling.v1beta1 - .LabelImageOrientedBoundingBoxOperationMetadata) - details_, + details_ = com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.getDefaultInstance(); + } + imageOrientedBoundingBoxDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadataOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 14; - onChanged(); - ; + onChanged();; return imageOrientedBoundingBoxDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder> - imagePolylineDetailsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder> imagePolylineDetailsBuilder_; /** - * - * *
      * Details of label image polyline operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; * @return Whether the imagePolylineDetails field is set. */ @java.lang.Override @@ -3275,49 +2452,35 @@ public boolean hasImagePolylineDetails() { return detailsCase_ == 12; } /** - * - * *
      * Details of label image polyline operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; * @return The imagePolylineDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata - getImagePolylineDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata getImagePolylineDetails() { if (imagePolylineDetailsBuilder_ == null) { if (detailsCase_ == 12) { - return (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.getDefaultInstance(); } else { if (detailsCase_ == 12) { return imagePolylineDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label image polyline operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; - * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; */ - public Builder setImagePolylineDetails( - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata value) { + public Builder setImagePolylineDetails(com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata value) { if (imagePolylineDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3331,19 +2494,14 @@ public Builder setImagePolylineDetails( return this; } /** - * - * *
      * Details of label image polyline operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; - * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; */ public Builder setImagePolylineDetails( - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder - builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder builderForValue) { if (imagePolylineDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -3354,29 +2512,18 @@ public Builder setImagePolylineDetails( return this; } /** - * - * *
      * Details of label image polyline operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; - * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; */ - public Builder mergeImagePolylineDetails( - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata value) { + public Builder mergeImagePolylineDetails(com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata value) { if (imagePolylineDetailsBuilder_ == null) { - if (detailsCase_ == 12 - && details_ - != com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata - .getDefaultInstance()) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.newBuilder( - (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) - details_) - .mergeFrom(value) - .buildPartial(); + if (detailsCase_ == 12 && + details_ != com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.getDefaultInstance()) { + details_ = com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_) + .mergeFrom(value).buildPartial(); } else { details_ = value; } @@ -3391,16 +2538,12 @@ public Builder mergeImagePolylineDetails( detailsCase_ = 12; return this; } - /** - * - * + /** *
      * Details of label image polyline operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; - * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; */ public Builder clearImagePolylineDetails() { if (imagePolylineDetailsBuilder_ == null) { @@ -3419,100 +2562,67 @@ public Builder clearImagePolylineDetails() { return this; } /** - * - * *
      * Details of label image polyline operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; - * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; */ - public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder - getImagePolylineDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder getImagePolylineDetailsBuilder() { return getImagePolylineDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of label image polyline operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; - * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder - getImagePolylineDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder getImagePolylineDetailsOrBuilder() { if ((detailsCase_ == 12) && (imagePolylineDetailsBuilder_ != null)) { return imagePolylineDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 12) { - return (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label image polyline operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; - * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder> getImagePolylineDetailsFieldBuilder() { if (imagePolylineDetailsBuilder_ == null) { if (!(detailsCase_ == 12)) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata - .getDefaultInstance(); - } - imagePolylineDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) - details_, + details_ = com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.getDefaultInstance(); + } + imagePolylineDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 12; - onChanged(); - ; + onChanged();; return imagePolylineDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder> - imageSegmentationDetailsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder> imageSegmentationDetailsBuilder_; /** - * - * *
      * Details of label image segmentation operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; * @return Whether the imageSegmentationDetails field is set. */ @java.lang.Override @@ -3520,49 +2630,35 @@ public boolean hasImageSegmentationDetails() { return detailsCase_ == 15; } /** - * - * *
      * Details of label image segmentation operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; * @return The imageSegmentationDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - getImageSegmentationDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata getImageSegmentationDetails() { if (imageSegmentationDetailsBuilder_ == null) { if (detailsCase_ == 15) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.getDefaultInstance(); } else { if (detailsCase_ == 15) { return imageSegmentationDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label image segmentation operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; - * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; */ - public Builder setImageSegmentationDetails( - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata value) { + public Builder setImageSegmentationDetails(com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata value) { if (imageSegmentationDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3576,19 +2672,14 @@ public Builder setImageSegmentationDetails( return this; } /** - * - * *
      * Details of label image segmentation operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; - * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; */ public Builder setImageSegmentationDetails( - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder - builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder builderForValue) { if (imageSegmentationDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -3599,31 +2690,18 @@ public Builder setImageSegmentationDetails( return this; } /** - * - * *
      * Details of label image segmentation operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; - * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; */ - public Builder mergeImageSegmentationDetails( - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata value) { + public Builder mergeImageSegmentationDetails(com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata value) { if (imageSegmentationDetailsBuilder_ == null) { - if (detailsCase_ == 15 - && details_ - != com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - .getDefaultInstance()) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - .newBuilder( - (com.google.cloud.datalabeling.v1beta1 - .LabelImageSegmentationOperationMetadata) - details_) - .mergeFrom(value) - .buildPartial(); + if (detailsCase_ == 15 && + details_ != com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.getDefaultInstance()) { + details_ = com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) details_) + .mergeFrom(value).buildPartial(); } else { details_ = value; } @@ -3639,15 +2717,11 @@ public Builder mergeImageSegmentationDetails( return this; } /** - * - * *
      * Details of label image segmentation operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; - * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; */ public Builder clearImageSegmentationDetails() { if (imageSegmentationDetailsBuilder_ == null) { @@ -3666,103 +2740,67 @@ public Builder clearImageSegmentationDetails() { return this; } /** - * - * *
      * Details of label image segmentation operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; - * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; */ - public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder - getImageSegmentationDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder getImageSegmentationDetailsBuilder() { return getImageSegmentationDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of label image segmentation operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; - * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder - getImageSegmentationDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder getImageSegmentationDetailsOrBuilder() { if ((detailsCase_ == 15) && (imageSegmentationDetailsBuilder_ != null)) { return imageSegmentationDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 15) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label image segmentation operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; - * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder> getImageSegmentationDetailsFieldBuilder() { if (imageSegmentationDetailsBuilder_ == null) { if (!(detailsCase_ == 15)) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - .getDefaultInstance(); - } - imageSegmentationDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - .Builder, - com.google.cloud.datalabeling.v1beta1 - .LabelImageSegmentationOperationMetadataOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) - details_, + details_ = com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.getDefaultInstance(); + } + imageSegmentationDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 15; - onChanged(); - ; + onChanged();; return imageSegmentationDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder, - com.google.cloud.datalabeling.v1beta1 - .LabelVideoClassificationOperationMetadataOrBuilder> - videoClassificationDetailsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadataOrBuilder> videoClassificationDetailsBuilder_; /** - * - * *
      * Details of label video classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; * @return Whether the videoClassificationDetails field is set. */ @java.lang.Override @@ -3770,49 +2808,35 @@ public boolean hasVideoClassificationDetails() { return detailsCase_ == 5; } /** - * - * *
      * Details of label video classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; * @return The videoClassificationDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - getVideoClassificationDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata getVideoClassificationDetails() { if (videoClassificationDetailsBuilder_ == null) { if (detailsCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.getDefaultInstance(); } else { if (detailsCase_ == 5) { return videoClassificationDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label video classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; */ - public Builder setVideoClassificationDetails( - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata value) { + public Builder setVideoClassificationDetails(com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata value) { if (videoClassificationDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3826,19 +2850,14 @@ public Builder setVideoClassificationDetails( return this; } /** - * - * *
      * Details of label video classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; */ public Builder setVideoClassificationDetails( - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder - builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder builderForValue) { if (videoClassificationDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -3849,31 +2868,18 @@ public Builder setVideoClassificationDetails( return this; } /** - * - * *
      * Details of label video classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; */ - public Builder mergeVideoClassificationDetails( - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata value) { + public Builder mergeVideoClassificationDetails(com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata value) { if (videoClassificationDetailsBuilder_ == null) { - if (detailsCase_ == 5 - && details_ - != com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - .getDefaultInstance()) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - .newBuilder( - (com.google.cloud.datalabeling.v1beta1 - .LabelVideoClassificationOperationMetadata) - details_) - .mergeFrom(value) - .buildPartial(); + if (detailsCase_ == 5 && + details_ != com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.getDefaultInstance()) { + details_ = com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) details_) + .mergeFrom(value).buildPartial(); } else { details_ = value; } @@ -3889,15 +2895,11 @@ public Builder mergeVideoClassificationDetails( return this; } /** - * - * *
      * Details of label video classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; */ public Builder clearVideoClassificationDetails() { if (videoClassificationDetailsBuilder_ == null) { @@ -3916,105 +2918,67 @@ public Builder clearVideoClassificationDetails() { return this; } /** - * - * *
      * Details of label video classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; */ - public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder - getVideoClassificationDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder getVideoClassificationDetailsBuilder() { return getVideoClassificationDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of label video classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadataOrBuilder - getVideoClassificationDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadataOrBuilder getVideoClassificationDetailsOrBuilder() { if ((detailsCase_ == 5) && (videoClassificationDetailsBuilder_ != null)) { return videoClassificationDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label video classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder, - com.google.cloud.datalabeling.v1beta1 - .LabelVideoClassificationOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadataOrBuilder> getVideoClassificationDetailsFieldBuilder() { if (videoClassificationDetailsBuilder_ == null) { if (!(detailsCase_ == 5)) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - .getDefaultInstance(); - } - videoClassificationDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - .Builder, - com.google.cloud.datalabeling.v1beta1 - .LabelVideoClassificationOperationMetadataOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) - details_, + details_ = com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.getDefaultInstance(); + } + videoClassificationDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadataOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 5; - onChanged(); - ; + onChanged();; return videoClassificationDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - .Builder, - com.google.cloud.datalabeling.v1beta1 - .LabelVideoObjectDetectionOperationMetadataOrBuilder> - videoObjectDetectionDetailsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadataOrBuilder> videoObjectDetectionDetailsBuilder_; /** - * - * *
      * Details of label video object detection operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; * @return Whether the videoObjectDetectionDetails field is set. */ @java.lang.Override @@ -4022,49 +2986,35 @@ public boolean hasVideoObjectDetectionDetails() { return detailsCase_ == 6; } /** - * - * *
      * Details of label video object detection operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; * @return The videoObjectDetectionDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - getVideoObjectDetectionDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata getVideoObjectDetectionDetails() { if (videoObjectDetectionDetailsBuilder_ == null) { if (detailsCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.getDefaultInstance(); } else { if (detailsCase_ == 6) { return videoObjectDetectionDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label video object detection operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; */ - public Builder setVideoObjectDetectionDetails( - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata value) { + public Builder setVideoObjectDetectionDetails(com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata value) { if (videoObjectDetectionDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4078,19 +3028,14 @@ public Builder setVideoObjectDetectionDetails( return this; } /** - * - * *
      * Details of label video object detection operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; */ public Builder setVideoObjectDetectionDetails( - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.Builder - builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.Builder builderForValue) { if (videoObjectDetectionDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -4101,31 +3046,18 @@ public Builder setVideoObjectDetectionDetails( return this; } /** - * - * *
      * Details of label video object detection operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; */ - public Builder mergeVideoObjectDetectionDetails( - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata value) { + public Builder mergeVideoObjectDetectionDetails(com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata value) { if (videoObjectDetectionDetailsBuilder_ == null) { - if (detailsCase_ == 6 - && details_ - != com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - .getDefaultInstance()) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - .newBuilder( - (com.google.cloud.datalabeling.v1beta1 - .LabelVideoObjectDetectionOperationMetadata) - details_) - .mergeFrom(value) - .buildPartial(); + if (detailsCase_ == 6 && + details_ != com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.getDefaultInstance()) { + details_ = com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) details_) + .mergeFrom(value).buildPartial(); } else { details_ = value; } @@ -4141,15 +3073,11 @@ public Builder mergeVideoObjectDetectionDetails( return this; } /** - * - * *
      * Details of label video object detection operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; */ public Builder clearVideoObjectDetectionDetails() { if (videoObjectDetectionDetailsBuilder_ == null) { @@ -4168,105 +3096,67 @@ public Builder clearVideoObjectDetectionDetails() { return this; } /** - * - * *
      * Details of label video object detection operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; */ - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.Builder - getVideoObjectDetectionDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.Builder getVideoObjectDetectionDetailsBuilder() { return getVideoObjectDetectionDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of label video object detection operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadataOrBuilder - getVideoObjectDetectionDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadataOrBuilder getVideoObjectDetectionDetailsOrBuilder() { if ((detailsCase_ == 6) && (videoObjectDetectionDetailsBuilder_ != null)) { return videoObjectDetectionDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label video object detection operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - .Builder, - com.google.cloud.datalabeling.v1beta1 - .LabelVideoObjectDetectionOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadataOrBuilder> getVideoObjectDetectionDetailsFieldBuilder() { if (videoObjectDetectionDetailsBuilder_ == null) { if (!(detailsCase_ == 6)) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - .getDefaultInstance(); - } - videoObjectDetectionDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - .Builder, - com.google.cloud.datalabeling.v1beta1 - .LabelVideoObjectDetectionOperationMetadataOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) - details_, + details_ = com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.getDefaultInstance(); + } + videoObjectDetectionDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadataOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 6; - onChanged(); - ; + onChanged();; return videoObjectDetectionDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder, - com.google.cloud.datalabeling.v1beta1 - .LabelVideoObjectTrackingOperationMetadataOrBuilder> - videoObjectTrackingDetailsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadataOrBuilder> videoObjectTrackingDetailsBuilder_; /** - * - * *
      * Details of label video object tracking operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; * @return Whether the videoObjectTrackingDetails field is set. */ @java.lang.Override @@ -4274,49 +3164,35 @@ public boolean hasVideoObjectTrackingDetails() { return detailsCase_ == 7; } /** - * - * *
      * Details of label video object tracking operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; * @return The videoObjectTrackingDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - getVideoObjectTrackingDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata getVideoObjectTrackingDetails() { if (videoObjectTrackingDetailsBuilder_ == null) { if (detailsCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.getDefaultInstance(); } else { if (detailsCase_ == 7) { return videoObjectTrackingDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label video object tracking operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; */ - public Builder setVideoObjectTrackingDetails( - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata value) { + public Builder setVideoObjectTrackingDetails(com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata value) { if (videoObjectTrackingDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4330,19 +3206,14 @@ public Builder setVideoObjectTrackingDetails( return this; } /** - * - * *
      * Details of label video object tracking operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; */ public Builder setVideoObjectTrackingDetails( - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder - builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder builderForValue) { if (videoObjectTrackingDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -4353,31 +3224,18 @@ public Builder setVideoObjectTrackingDetails( return this; } /** - * - * *
      * Details of label video object tracking operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; */ - public Builder mergeVideoObjectTrackingDetails( - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata value) { + public Builder mergeVideoObjectTrackingDetails(com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata value) { if (videoObjectTrackingDetailsBuilder_ == null) { - if (detailsCase_ == 7 - && details_ - != com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - .getDefaultInstance()) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - .newBuilder( - (com.google.cloud.datalabeling.v1beta1 - .LabelVideoObjectTrackingOperationMetadata) - details_) - .mergeFrom(value) - .buildPartial(); + if (detailsCase_ == 7 && + details_ != com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.getDefaultInstance()) { + details_ = com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) details_) + .mergeFrom(value).buildPartial(); } else { details_ = value; } @@ -4393,15 +3251,11 @@ public Builder mergeVideoObjectTrackingDetails( return this; } /** - * - * *
      * Details of label video object tracking operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; */ public Builder clearVideoObjectTrackingDetails() { if (videoObjectTrackingDetailsBuilder_ == null) { @@ -4420,103 +3274,67 @@ public Builder clearVideoObjectTrackingDetails() { return this; } /** - * - * *
      * Details of label video object tracking operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; */ - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder - getVideoObjectTrackingDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder getVideoObjectTrackingDetailsBuilder() { return getVideoObjectTrackingDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of label video object tracking operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadataOrBuilder - getVideoObjectTrackingDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadataOrBuilder getVideoObjectTrackingDetailsOrBuilder() { if ((detailsCase_ == 7) && (videoObjectTrackingDetailsBuilder_ != null)) { return videoObjectTrackingDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label video object tracking operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder, - com.google.cloud.datalabeling.v1beta1 - .LabelVideoObjectTrackingOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadataOrBuilder> getVideoObjectTrackingDetailsFieldBuilder() { if (videoObjectTrackingDetailsBuilder_ == null) { if (!(detailsCase_ == 7)) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - .getDefaultInstance(); - } - videoObjectTrackingDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - .Builder, - com.google.cloud.datalabeling.v1beta1 - .LabelVideoObjectTrackingOperationMetadataOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) - details_, + details_ = com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.getDefaultInstance(); + } + videoObjectTrackingDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadataOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 7; - onChanged(); - ; + onChanged();; return videoObjectTrackingDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder> - videoEventDetailsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder> videoEventDetailsBuilder_; /** - * - * *
      * Details of label video event operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; * @return Whether the videoEventDetails field is set. */ @java.lang.Override @@ -4524,48 +3342,35 @@ public boolean hasVideoEventDetails() { return detailsCase_ == 8; } /** - * - * *
      * Details of label video event operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; * @return The videoEventDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata - getVideoEventDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata getVideoEventDetails() { if (videoEventDetailsBuilder_ == null) { if (detailsCase_ == 8) { return (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.getDefaultInstance(); } else { if (detailsCase_ == 8) { return videoEventDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label video event operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; */ - public Builder setVideoEventDetails( - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata value) { + public Builder setVideoEventDetails(com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata value) { if (videoEventDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4579,19 +3384,14 @@ public Builder setVideoEventDetails( return this; } /** - * - * *
      * Details of label video event operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; */ public Builder setVideoEventDetails( - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder - builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder builderForValue) { if (videoEventDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -4602,29 +3402,18 @@ public Builder setVideoEventDetails( return this; } /** - * - * *
      * Details of label video event operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; */ - public Builder mergeVideoEventDetails( - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata value) { + public Builder mergeVideoEventDetails(com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata value) { if (videoEventDetailsBuilder_ == null) { - if (detailsCase_ == 8 - && details_ - != com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata - .getDefaultInstance()) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.newBuilder( - (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) - details_) - .mergeFrom(value) - .buildPartial(); + if (detailsCase_ == 8 && + details_ != com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.getDefaultInstance()) { + details_ = com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_) + .mergeFrom(value).buildPartial(); } else { details_ = value; } @@ -4640,15 +3429,11 @@ public Builder mergeVideoEventDetails( return this; } /** - * - * *
      * Details of label video event operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; */ public Builder clearVideoEventDetails() { if (videoEventDetailsBuilder_ == null) { @@ -4667,98 +3452,67 @@ public Builder clearVideoEventDetails() { return this; } /** - * - * *
      * Details of label video event operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; */ - public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder - getVideoEventDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder getVideoEventDetailsBuilder() { return getVideoEventDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of label video event operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder - getVideoEventDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder getVideoEventDetailsOrBuilder() { if ((detailsCase_ == 8) && (videoEventDetailsBuilder_ != null)) { return videoEventDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 8) { return (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label video event operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder> getVideoEventDetailsFieldBuilder() { if (videoEventDetailsBuilder_ == null) { if (!(detailsCase_ == 8)) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata - .getDefaultInstance(); - } - videoEventDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder>( + details_ = com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.getDefaultInstance(); + } + videoEventDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder>( (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 8; - onChanged(); - ; + onChanged();; return videoEventDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder> - textClassificationDetailsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder> textClassificationDetailsBuilder_; /** - * - * *
      * Details of label text classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; - * - * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; * @return Whether the textClassificationDetails field is set. */ @java.lang.Override @@ -4766,49 +3520,35 @@ public boolean hasTextClassificationDetails() { return detailsCase_ == 9; } /** - * - * *
      * Details of label text classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; - * - * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; * @return The textClassificationDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - getTextClassificationDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata getTextClassificationDetails() { if (textClassificationDetailsBuilder_ == null) { if (detailsCase_ == 9) { - return (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.getDefaultInstance(); } else { if (detailsCase_ == 9) { return textClassificationDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label text classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; - * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; */ - public Builder setTextClassificationDetails( - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata value) { + public Builder setTextClassificationDetails(com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata value) { if (textClassificationDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -4822,19 +3562,14 @@ public Builder setTextClassificationDetails( return this; } /** - * - * *
      * Details of label text classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; - * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; */ public Builder setTextClassificationDetails( - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder - builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder builderForValue) { if (textClassificationDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -4845,31 +3580,18 @@ public Builder setTextClassificationDetails( return this; } /** - * - * *
      * Details of label text classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; - * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; */ - public Builder mergeTextClassificationDetails( - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata value) { + public Builder mergeTextClassificationDetails(com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata value) { if (textClassificationDetailsBuilder_ == null) { - if (detailsCase_ == 9 - && details_ - != com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - .getDefaultInstance()) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - .newBuilder( - (com.google.cloud.datalabeling.v1beta1 - .LabelTextClassificationOperationMetadata) - details_) - .mergeFrom(value) - .buildPartial(); + if (detailsCase_ == 9 && + details_ != com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.getDefaultInstance()) { + details_ = com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) details_) + .mergeFrom(value).buildPartial(); } else { details_ = value; } @@ -4885,15 +3607,11 @@ public Builder mergeTextClassificationDetails( return this; } /** - * - * *
      * Details of label text classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; - * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; */ public Builder clearTextClassificationDetails() { if (textClassificationDetailsBuilder_ == null) { @@ -4912,104 +3630,67 @@ public Builder clearTextClassificationDetails() { return this; } /** - * - * *
      * Details of label text classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; - * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; */ - public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder - getTextClassificationDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder getTextClassificationDetailsBuilder() { return getTextClassificationDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of label text classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; - * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder - getTextClassificationDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder getTextClassificationDetailsOrBuilder() { if ((detailsCase_ == 9) && (textClassificationDetailsBuilder_ != null)) { return textClassificationDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 9) { - return (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label text classification operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; - * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder, - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder> getTextClassificationDetailsFieldBuilder() { if (textClassificationDetailsBuilder_ == null) { if (!(detailsCase_ == 9)) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - .getDefaultInstance(); - } - textClassificationDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - .Builder, - com.google.cloud.datalabeling.v1beta1 - .LabelTextClassificationOperationMetadataOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) - details_, + details_ = com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.getDefaultInstance(); + } + textClassificationDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 9; - onChanged(); - ; + onChanged();; return textClassificationDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - .Builder, - com.google.cloud.datalabeling.v1beta1 - .LabelTextEntityExtractionOperationMetadataOrBuilder> - textEntityExtractionDetailsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataOrBuilder> textEntityExtractionDetailsBuilder_; /** - * - * *
      * Details of label text entity extraction operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; - * - * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; * @return Whether the textEntityExtractionDetails field is set. */ @java.lang.Override @@ -5017,49 +3698,35 @@ public boolean hasTextEntityExtractionDetails() { return detailsCase_ == 13; } /** - * - * *
      * Details of label text entity extraction operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; - * - * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; * @return The textEntityExtractionDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - getTextEntityExtractionDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata getTextEntityExtractionDetails() { if (textEntityExtractionDetailsBuilder_ == null) { if (detailsCase_ == 13) { - return (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.getDefaultInstance(); } else { if (detailsCase_ == 13) { return textEntityExtractionDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label text entity extraction operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; - * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; */ - public Builder setTextEntityExtractionDetails( - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata value) { + public Builder setTextEntityExtractionDetails(com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata value) { if (textEntityExtractionDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -5073,19 +3740,14 @@ public Builder setTextEntityExtractionDetails( return this; } /** - * - * *
      * Details of label text entity extraction operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; - * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; */ public Builder setTextEntityExtractionDetails( - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.Builder - builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.Builder builderForValue) { if (textEntityExtractionDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -5096,31 +3758,18 @@ public Builder setTextEntityExtractionDetails( return this; } /** - * - * *
      * Details of label text entity extraction operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; - * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; */ - public Builder mergeTextEntityExtractionDetails( - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata value) { + public Builder mergeTextEntityExtractionDetails(com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata value) { if (textEntityExtractionDetailsBuilder_ == null) { - if (detailsCase_ == 13 - && details_ - != com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - .getDefaultInstance()) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - .newBuilder( - (com.google.cloud.datalabeling.v1beta1 - .LabelTextEntityExtractionOperationMetadata) - details_) - .mergeFrom(value) - .buildPartial(); + if (detailsCase_ == 13 && + details_ != com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.getDefaultInstance()) { + details_ = com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) details_) + .mergeFrom(value).buildPartial(); } else { details_ = value; } @@ -5136,15 +3785,11 @@ public Builder mergeTextEntityExtractionDetails( return this; } /** - * - * *
      * Details of label text entity extraction operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; - * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; */ public Builder clearTextEntityExtractionDetails() { if (textEntityExtractionDetailsBuilder_ == null) { @@ -5163,98 +3808,66 @@ public Builder clearTextEntityExtractionDetails() { return this; } /** - * - * *
      * Details of label text entity extraction operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; - * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; */ - public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.Builder - getTextEntityExtractionDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.Builder getTextEntityExtractionDetailsBuilder() { return getTextEntityExtractionDetailsFieldBuilder().getBuilder(); } /** - * - * *
      * Details of label text entity extraction operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; - * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataOrBuilder - getTextEntityExtractionDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataOrBuilder getTextEntityExtractionDetailsOrBuilder() { if ((detailsCase_ == 13) && (textEntityExtractionDetailsBuilder_ != null)) { return textEntityExtractionDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 13) { - return (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) - details_; + return (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.getDefaultInstance(); } } /** - * - * *
      * Details of label text entity extraction operation.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; - * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - .Builder, - com.google.cloud.datalabeling.v1beta1 - .LabelTextEntityExtractionOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataOrBuilder> getTextEntityExtractionDetailsFieldBuilder() { if (textEntityExtractionDetailsBuilder_ == null) { if (!(detailsCase_ == 13)) { - details_ = - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - .getDefaultInstance(); - } - textEntityExtractionDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata, - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - .Builder, - com.google.cloud.datalabeling.v1beta1 - .LabelTextEntityExtractionOperationMetadataOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) - details_, + details_ = com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.getDefaultInstance(); + } + textEntityExtractionDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 13; - onChanged(); - ; + onChanged();; return textEntityExtractionDetailsBuilder_; } - private int progressPercent_; + private int progressPercent_ ; /** - * - * *
      * Output only. Progress of label operation. Range: [0, 100].
      * 
* * int32 progress_percent = 1; - * * @return The progressPercent. */ @java.lang.Override @@ -5262,58 +3875,48 @@ public int getProgressPercent() { return progressPercent_; } /** - * - * *
      * Output only. Progress of label operation. Range: [0, 100].
      * 
* * int32 progress_percent = 1; - * * @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 label operation. Range: [0, 100].
      * 
* * int32 progress_percent = 1; - * * @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.
@@ -5330,8 +3933,6 @@ public java.util.List getPartialFailuresList() {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -5348,8 +3949,6 @@ public int getPartialFailuresCount() {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -5366,8 +3965,6 @@ public com.google.rpc.Status getPartialFailures(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -5376,7 +3973,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();
@@ -5390,8 +3988,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.
@@ -5400,7 +3996,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());
@@ -5411,8 +4008,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.
@@ -5435,8 +4030,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.
@@ -5445,7 +4038,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();
@@ -5459,8 +4053,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.
@@ -5469,7 +4061,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());
@@ -5480,8 +4073,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.
@@ -5490,7 +4081,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());
@@ -5501,8 +4093,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.
@@ -5515,7 +4105,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);
@@ -5523,8 +4114,6 @@ public Builder addAllPartialFailures(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -5544,8 +4133,6 @@ public Builder clearPartialFailures() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -5565,8 +4152,6 @@ public Builder removePartialFailures(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -5575,12 +4160,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.
@@ -5589,16 +4173,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.
@@ -5607,8 +4189,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 {
@@ -5616,8 +4198,6 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -5627,12 +4207,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.
@@ -5641,13 +4219,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.
@@ -5656,19 +4233,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(),
@@ -5680,47 +4254,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. Timestamp when labeling request was created.
      * 
* * .google.protobuf.Timestamp create_time = 16; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** - * - * *
      * Output only. Timestamp when labeling request was created.
      * 
* * .google.protobuf.Timestamp create_time = 16; - * * @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 labeling request was created.
      * 
@@ -5741,15 +4302,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp when labeling request was created.
      * 
* * .google.protobuf.Timestamp create_time = 16; */ - 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(); @@ -5760,8 +4320,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Timestamp when labeling request was created.
      * 
@@ -5772,7 +4330,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; } @@ -5784,8 +4342,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Timestamp when labeling request was created.
      * 
@@ -5804,8 +4360,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Timestamp when labeling request was created.
      * 
@@ -5813,13 +4367,11 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 16; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Timestamp when labeling request was created.
      * 
@@ -5830,14 +4382,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 labeling request was created.
      * 
@@ -5845,24 +4394,21 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 16; */ 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_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -5872,13 +4418,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata(); } @@ -5887,16 +4432,16 @@ public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -5911,4 +4456,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadataOrBuilder.java similarity index 54% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadataOrBuilder.java index f4a46dad..c0d373f4 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadataOrBuilder.java @@ -1,559 +1,347 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelOperationMetadataOrBuilder - extends +public interface LabelOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Details of label image classification operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; * @return Whether the imageClassificationDetails field is set. */ boolean hasImageClassificationDetails(); /** - * - * *
    * Details of label image classification operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; * @return The imageClassificationDetails. */ - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata - getImageClassificationDetails(); + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata getImageClassificationDetails(); /** - * - * *
    * Details of label image classification operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; - * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; */ - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadataOrBuilder - getImageClassificationDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadataOrBuilder getImageClassificationDetailsOrBuilder(); /** - * - * *
    * Details of label image bounding box operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; * @return Whether the imageBoundingBoxDetails field is set. */ boolean hasImageBoundingBoxDetails(); /** - * - * *
    * Details of label image bounding box operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; * @return The imageBoundingBoxDetails. */ - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata - getImageBoundingBoxDetails(); + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata getImageBoundingBoxDetails(); /** - * - * *
    * Details of label image bounding box operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; */ - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder - getImageBoundingBoxDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder getImageBoundingBoxDetailsOrBuilder(); /** - * - * *
    * Details of label image bounding poly operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; * @return Whether the imageBoundingPolyDetails field is set. */ boolean hasImageBoundingPolyDetails(); /** - * - * *
    * Details of label image bounding poly operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; * @return The imageBoundingPolyDetails. */ - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata - getImageBoundingPolyDetails(); + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata getImageBoundingPolyDetails(); /** - * - * *
    * Details of label image bounding poly operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; - * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; */ - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder - getImageBoundingPolyDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder getImageBoundingPolyDetailsOrBuilder(); /** - * - * *
    * Details of label image oriented bounding box operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; * @return Whether the imageOrientedBoundingBoxDetails field is set. */ boolean hasImageOrientedBoundingBoxDetails(); /** - * - * *
    * Details of label image oriented bounding box operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; * @return The imageOrientedBoundingBoxDetails. */ - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata - getImageOrientedBoundingBoxDetails(); + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata getImageOrientedBoundingBoxDetails(); /** - * - * *
    * Details of label image oriented bounding box operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; - * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; */ - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadataOrBuilder - getImageOrientedBoundingBoxDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadataOrBuilder getImageOrientedBoundingBoxDetailsOrBuilder(); /** - * - * *
    * Details of label image polyline operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; * @return Whether the imagePolylineDetails field is set. */ boolean hasImagePolylineDetails(); /** - * - * *
    * Details of label image polyline operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; * @return The imagePolylineDetails. */ - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata - getImagePolylineDetails(); + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata getImagePolylineDetails(); /** - * - * *
    * Details of label image polyline operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; - * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; */ - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder - getImagePolylineDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder getImagePolylineDetailsOrBuilder(); /** - * - * *
    * Details of label image segmentation operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; * @return Whether the imageSegmentationDetails field is set. */ boolean hasImageSegmentationDetails(); /** - * - * *
    * Details of label image segmentation operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; - * - * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; * @return The imageSegmentationDetails. */ - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata - getImageSegmentationDetails(); + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata getImageSegmentationDetails(); /** - * - * *
    * Details of label image segmentation operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; - * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; */ - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder - getImageSegmentationDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder getImageSegmentationDetailsOrBuilder(); /** - * - * *
    * Details of label video classification operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; * @return Whether the videoClassificationDetails field is set. */ boolean hasVideoClassificationDetails(); /** - * - * *
    * Details of label video classification operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; * @return The videoClassificationDetails. */ - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - getVideoClassificationDetails(); + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata getVideoClassificationDetails(); /** - * - * *
    * Details of label video classification operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; */ - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadataOrBuilder - getVideoClassificationDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadataOrBuilder getVideoClassificationDetailsOrBuilder(); /** - * - * *
    * Details of label video object detection operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; * @return Whether the videoObjectDetectionDetails field is set. */ boolean hasVideoObjectDetectionDetails(); /** - * - * *
    * Details of label video object detection operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; * @return The videoObjectDetectionDetails. */ - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - getVideoObjectDetectionDetails(); + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata getVideoObjectDetectionDetails(); /** - * - * *
    * Details of label video object detection operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; */ - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadataOrBuilder - getVideoObjectDetectionDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadataOrBuilder getVideoObjectDetectionDetailsOrBuilder(); /** - * - * *
    * Details of label video object tracking operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; * @return Whether the videoObjectTrackingDetails field is set. */ boolean hasVideoObjectTrackingDetails(); /** - * - * *
    * Details of label video object tracking operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; * @return The videoObjectTrackingDetails. */ - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - getVideoObjectTrackingDetails(); + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata getVideoObjectTrackingDetails(); /** - * - * *
    * Details of label video object tracking operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; */ - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadataOrBuilder - getVideoObjectTrackingDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadataOrBuilder getVideoObjectTrackingDetailsOrBuilder(); /** - * - * *
    * Details of label video event operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; * @return Whether the videoEventDetails field is set. */ boolean hasVideoEventDetails(); /** - * - * *
    * Details of label video event operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; * @return The videoEventDetails. */ com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata getVideoEventDetails(); /** - * - * *
    * Details of label video event operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; - * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; */ - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder - getVideoEventDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder getVideoEventDetailsOrBuilder(); /** - * - * *
    * Details of label text classification operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; - * - * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; * @return Whether the textClassificationDetails field is set. */ boolean hasTextClassificationDetails(); /** - * - * *
    * Details of label text classification operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; - * - * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; * @return The textClassificationDetails. */ - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - getTextClassificationDetails(); + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata getTextClassificationDetails(); /** - * - * *
    * Details of label text classification operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; - * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; */ - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder - getTextClassificationDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder getTextClassificationDetailsOrBuilder(); /** - * - * *
    * Details of label text entity extraction operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; - * - * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; * @return Whether the textEntityExtractionDetails field is set. */ boolean hasTextEntityExtractionDetails(); /** - * - * *
    * Details of label text entity extraction operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; - * - * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; * @return The textEntityExtractionDetails. */ - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - getTextEntityExtractionDetails(); + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata getTextEntityExtractionDetails(); /** - * - * *
    * Details of label text entity extraction operation.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; - * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; */ - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataOrBuilder - getTextEntityExtractionDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataOrBuilder getTextEntityExtractionDetailsOrBuilder(); /** - * - * *
    * Output only. Progress of label operation. Range: [0, 100].
    * 
* * int32 progress_percent = 1; - * * @return The progressPercent. */ int getProgressPercent(); /** - * - * *
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -562,10 +350,9 @@ public interface LabelOperationMetadataOrBuilder
    *
    * 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.
@@ -576,8 +363,6 @@ public interface LabelOperationMetadataOrBuilder
    */
   com.google.rpc.Status getPartialFailures(int index);
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -588,8 +373,6 @@ public interface LabelOperationMetadataOrBuilder
    */
   int getPartialFailuresCount();
   /**
-   *
-   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -598,10 +381,9 @@ public interface LabelOperationMetadataOrBuilder
    *
    * 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.
@@ -610,35 +392,28 @@ public interface LabelOperationMetadataOrBuilder
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index);
+  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * Output only. Timestamp when labeling request was created.
    * 
* * .google.protobuf.Timestamp create_time = 16; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Timestamp when labeling request was created.
    * 
* * .google.protobuf.Timestamp create_time = 16; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Timestamp when labeling request was created.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStats.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStats.java similarity index 65% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStats.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStats.java index 8b94e867..58366d7c 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStats.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStats.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Statistics about annotation specs.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelStats} */ -public final class LabelStats extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LabelStats extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelStats) LabelStatsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LabelStats.newBuilder() to construct. private LabelStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LabelStats() {} + private LabelStats() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LabelStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LabelStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,28 +53,26 @@ private LabelStats( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - exampleCount_ = - com.google.protobuf.MapField.newMapField( - ExampleCountDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; - } - com.google.protobuf.MapEntry exampleCount__ = - input.readMessage( - ExampleCountDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - exampleCount_.getMutableMap().put(exampleCount__.getKey(), exampleCount__.getValue()); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + exampleCount_ = com.google.protobuf.MapField.newMapField( + ExampleCountDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + com.google.protobuf.MapEntry + exampleCount__ = input.readMessage( + ExampleCountDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + exampleCount_.getMutableMap().put( + exampleCount__.getKey(), exampleCount__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -98,55 +80,54 @@ private LabelStats( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelStats_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 internalGetExampleCount(); 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.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_LabelStats_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelStats_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelStats.class, - com.google.cloud.datalabeling.v1beta1.LabelStats.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelStats.class, com.google.cloud.datalabeling.v1beta1.LabelStats.Builder.class); } public static final int EXAMPLE_COUNT_FIELD_NUMBER = 1; - private static final class ExampleCountDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); - } - - private com.google.protobuf.MapField exampleCount_; - - private com.google.protobuf.MapField internalGetExampleCount() { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.Long> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.Long> exampleCount_; + private com.google.protobuf.MapField + internalGetExampleCount() { if (exampleCount_ == null) { return com.google.protobuf.MapField.emptyMapField( ExampleCountDefaultEntryHolder.defaultEntry); @@ -158,8 +139,6 @@ public int getExampleCountCount() { return internalGetExampleCount().getMap().size(); } /** - * - * *
    * Map of each annotation spec's example count. Key is the annotation spec
    * name and value is the number of examples for that annotation spec.
@@ -170,22 +149,22 @@ public int getExampleCountCount() {
    *
    * map<string, int64> example_count = 1;
    */
+
   @java.lang.Override
-  public boolean containsExampleCount(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
+  public boolean containsExampleCount(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
     return internalGetExampleCount().getMap().containsKey(key);
   }
-  /** Use {@link #getExampleCountMap()} instead. */
+  /**
+   * Use {@link #getExampleCountMap()} instead.
+   */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getExampleCount() {
     return getExampleCountMap();
   }
   /**
-   *
-   *
    * 
    * Map of each annotation spec's example count. Key is the annotation spec
    * name and value is the number of examples for that annotation spec.
@@ -197,12 +176,11 @@ public java.util.Map getExampleCount() {
    * map<string, int64> example_count = 1;
    */
   @java.lang.Override
+
   public java.util.Map getExampleCountMap() {
     return internalGetExampleCount().getMap();
   }
   /**
-   *
-   *
    * 
    * Map of each annotation spec's example count. Key is the annotation spec
    * name and value is the number of examples for that annotation spec.
@@ -214,16 +192,16 @@ public java.util.Map getExampleCountMap() {
    * map<string, int64> example_count = 1;
    */
   @java.lang.Override
-  public long getExampleCountOrDefault(java.lang.String key, long defaultValue) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetExampleCount().getMap();
+
+  public long getExampleCountOrDefault(
+      java.lang.String key,
+      long defaultValue) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetExampleCount().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
-   *
-   *
    * 
    * Map of each annotation spec's example count. Key is the annotation spec
    * name and value is the number of examples for that annotation spec.
@@ -235,11 +213,12 @@ public long getExampleCountOrDefault(java.lang.String key, long defaultValue) {
    * map<string, int64> example_count = 1;
    */
   @java.lang.Override
-  public long getExampleCountOrThrow(java.lang.String key) {
-    if (key == null) {
-      throw new NullPointerException("map key");
-    }
-    java.util.Map map = internalGetExampleCount().getMap();
+
+  public long getExampleCountOrThrow(
+      java.lang.String key) {
+    if (key == null) { throw new NullPointerException("map key"); }
+    java.util.Map map =
+        internalGetExampleCount().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -247,7 +226,6 @@ public long getExampleCountOrThrow(java.lang.String key) {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -259,9 +237,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, internalGetExampleCount(), ExampleCountDefaultEntryHolder.defaultEntry, 1);
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
+    com.google.protobuf.GeneratedMessageV3
+      .serializeStringMapTo(
+        output,
+        internalGetExampleCount(),
+        ExampleCountDefaultEntryHolder.defaultEntry,
+        1);
     unknownFields.writeTo(output);
   }
 
@@ -271,15 +254,15 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    for (java.util.Map.Entry entry :
-        internalGetExampleCount().getMap().entrySet()) {
-      com.google.protobuf.MapEntry exampleCount__ =
-          ExampleCountDefaultEntryHolder.defaultEntry
-              .newBuilderForType()
-              .setKey(entry.getKey())
-              .setValue(entry.getValue())
-              .build();
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, exampleCount__);
+    for (java.util.Map.Entry entry
+         : internalGetExampleCount().getMap().entrySet()) {
+      com.google.protobuf.MapEntry
+      exampleCount__ = ExampleCountDefaultEntryHolder.defaultEntry.newBuilderForType()
+          .setKey(entry.getKey())
+          .setValue(entry.getValue())
+          .build();
+      size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(1, exampleCount__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -289,15 +272,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.datalabeling.v1beta1.LabelStats)) {
       return super.equals(obj);
     }
-    com.google.cloud.datalabeling.v1beta1.LabelStats other =
-        (com.google.cloud.datalabeling.v1beta1.LabelStats) obj;
+    com.google.cloud.datalabeling.v1beta1.LabelStats other = (com.google.cloud.datalabeling.v1beta1.LabelStats) obj;
 
-    if (!internalGetExampleCount().equals(other.internalGetExampleCount())) return false;
+    if (!internalGetExampleCount().equals(
+        other.internalGetExampleCount())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -318,147 +301,140 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.datalabeling.v1beta1.LabelStats parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.datalabeling.v1beta1.LabelStats parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.LabelStats parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelStats prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Statistics about annotation specs.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelStats} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelStats) com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField(int number) { + protected com.google.protobuf.MapField internalGetMapField( + int number) { switch (number) { case 1: return internalGetExampleCount(); 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 internalGetMutableExampleCount(); 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.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_LabelStats_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelStats_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelStats.class, - com.google.cloud.datalabeling.v1beta1.LabelStats.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelStats.class, com.google.cloud.datalabeling.v1beta1.LabelStats.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.LabelStats.newBuilder() @@ -466,15 +442,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(); @@ -483,9 +460,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor; } @java.lang.Override @@ -504,8 +481,7 @@ public com.google.cloud.datalabeling.v1beta1.LabelStats build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelStats buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelStats result = - new com.google.cloud.datalabeling.v1beta1.LabelStats(this); + com.google.cloud.datalabeling.v1beta1.LabelStats result = new com.google.cloud.datalabeling.v1beta1.LabelStats(this); int from_bitField0_ = bitField0_; result.exampleCount_ = internalGetExampleCount(); result.exampleCount_.makeImmutable(); @@ -517,39 +493,38 @@ public com.google.cloud.datalabeling.v1beta1.LabelStats buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelStats) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelStats) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelStats)other); } else { super.mergeFrom(other); return this; @@ -557,9 +532,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelStats other) { - if (other == com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance()) - return this; - internalGetMutableExampleCount().mergeFrom(other.internalGetExampleCount()); + if (other == com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance()) return this; + internalGetMutableExampleCount().mergeFrom( + other.internalGetExampleCount()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -588,27 +563,24 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.MapField exampleCount_; - + private com.google.protobuf.MapField< + java.lang.String, java.lang.Long> exampleCount_; private com.google.protobuf.MapField - internalGetExampleCount() { + internalGetExampleCount() { if (exampleCount_ == null) { return com.google.protobuf.MapField.emptyMapField( ExampleCountDefaultEntryHolder.defaultEntry); } return exampleCount_; } - private com.google.protobuf.MapField - internalGetMutableExampleCount() { - onChanged(); - ; + internalGetMutableExampleCount() { + onChanged();; if (exampleCount_ == null) { - exampleCount_ = - com.google.protobuf.MapField.newMapField(ExampleCountDefaultEntryHolder.defaultEntry); + exampleCount_ = com.google.protobuf.MapField.newMapField( + ExampleCountDefaultEntryHolder.defaultEntry); } if (!exampleCount_.isMutable()) { exampleCount_ = exampleCount_.copy(); @@ -620,8 +592,6 @@ public int getExampleCountCount() { return internalGetExampleCount().getMap().size(); } /** - * - * *
      * Map of each annotation spec's example count. Key is the annotation spec
      * name and value is the number of examples for that annotation spec.
@@ -632,22 +602,22 @@ public int getExampleCountCount() {
      *
      * map<string, int64> example_count = 1;
      */
+
     @java.lang.Override
-    public boolean containsExampleCount(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
+    public boolean containsExampleCount(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
       return internalGetExampleCount().getMap().containsKey(key);
     }
-    /** Use {@link #getExampleCountMap()} instead. */
+    /**
+     * Use {@link #getExampleCountMap()} instead.
+     */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getExampleCount() {
       return getExampleCountMap();
     }
     /**
-     *
-     *
      * 
      * Map of each annotation spec's example count. Key is the annotation spec
      * name and value is the number of examples for that annotation spec.
@@ -659,12 +629,11 @@ public java.util.Map getExampleCount() {
      * map<string, int64> example_count = 1;
      */
     @java.lang.Override
+
     public java.util.Map getExampleCountMap() {
       return internalGetExampleCount().getMap();
     }
     /**
-     *
-     *
      * 
      * Map of each annotation spec's example count. Key is the annotation spec
      * name and value is the number of examples for that annotation spec.
@@ -676,16 +645,16 @@ public java.util.Map getExampleCountMap() {
      * map<string, int64> example_count = 1;
      */
     @java.lang.Override
-    public long getExampleCountOrDefault(java.lang.String key, long defaultValue) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetExampleCount().getMap();
+
+    public long getExampleCountOrDefault(
+        java.lang.String key,
+        long defaultValue) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetExampleCount().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
-     *
-     *
      * 
      * Map of each annotation spec's example count. Key is the annotation spec
      * name and value is the number of examples for that annotation spec.
@@ -697,11 +666,12 @@ public long getExampleCountOrDefault(java.lang.String key, long defaultValue) {
      * map<string, int64> example_count = 1;
      */
     @java.lang.Override
-    public long getExampleCountOrThrow(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      java.util.Map map = internalGetExampleCount().getMap();
+
+    public long getExampleCountOrThrow(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      java.util.Map map =
+          internalGetExampleCount().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -709,12 +679,11 @@ public long getExampleCountOrThrow(java.lang.String key) {
     }
 
     public Builder clearExampleCount() {
-      internalGetMutableExampleCount().getMutableMap().clear();
+      internalGetMutableExampleCount().getMutableMap()
+          .clear();
       return this;
     }
     /**
-     *
-     *
      * 
      * Map of each annotation spec's example count. Key is the annotation spec
      * name and value is the number of examples for that annotation spec.
@@ -725,21 +694,23 @@ public Builder clearExampleCount() {
      *
      * map<string, int64> example_count = 1;
      */
-    public Builder removeExampleCount(java.lang.String key) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-      internalGetMutableExampleCount().getMutableMap().remove(key);
+
+    public Builder removeExampleCount(
+        java.lang.String key) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      internalGetMutableExampleCount().getMutableMap()
+          .remove(key);
       return this;
     }
-    /** Use alternate mutation accessors instead. */
+    /**
+     * Use alternate mutation accessors instead.
+     */
     @java.lang.Deprecated
-    public java.util.Map getMutableExampleCount() {
+    public java.util.Map
+    getMutableExampleCount() {
       return internalGetMutableExampleCount().getMutableMap();
     }
     /**
-     *
-     *
      * 
      * Map of each annotation spec's example count. Key is the annotation spec
      * name and value is the number of examples for that annotation spec.
@@ -750,17 +721,16 @@ public java.util.Map getMutableExampleCount()
      *
      * map<string, int64> example_count = 1;
      */
-    public Builder putExampleCount(java.lang.String key, long value) {
-      if (key == null) {
-        throw new NullPointerException("map key");
-      }
-
-      internalGetMutableExampleCount().getMutableMap().put(key, value);
+    public Builder putExampleCount(
+        java.lang.String key,
+        long value) {
+      if (key == null) { throw new NullPointerException("map key"); }
+      
+      internalGetMutableExampleCount().getMutableMap()
+          .put(key, value);
       return this;
     }
     /**
-     *
-     *
      * 
      * Map of each annotation spec's example count. Key is the annotation spec
      * name and value is the number of examples for that annotation spec.
@@ -771,13 +741,16 @@ public Builder putExampleCount(java.lang.String key, long value) {
      *
      * map<string, int64> example_count = 1;
      */
-    public Builder putAllExampleCount(java.util.Map values) {
-      internalGetMutableExampleCount().getMutableMap().putAll(values);
+
+    public Builder putAllExampleCount(
+        java.util.Map values) {
+      internalGetMutableExampleCount().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);
     }
 
@@ -787,12 +760,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelStats)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelStats)
   private static final com.google.cloud.datalabeling.v1beta1.LabelStats DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelStats();
   }
@@ -801,16 +774,16 @@ public static com.google.cloud.datalabeling.v1beta1.LabelStats getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public LabelStats parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new LabelStats(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public LabelStats parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new LabelStats(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -825,4 +798,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datalabeling.v1beta1.LabelStats getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStatsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStatsOrBuilder.java
similarity index 69%
rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStatsOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStatsOrBuilder.java
index f38d8102..c467ad56 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStatsOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStatsOrBuilder.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/datalabeling/v1beta1/dataset.proto
 
 package com.google.cloud.datalabeling.v1beta1;
 
-public interface LabelStatsOrBuilder
-    extends
+public interface LabelStatsOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelStats)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * Map of each annotation spec's example count. Key is the annotation spec
    * name and value is the number of examples for that annotation spec.
@@ -38,8 +20,6 @@ public interface LabelStatsOrBuilder
    */
   int getExampleCountCount();
   /**
-   *
-   *
    * 
    * Map of each annotation spec's example count. Key is the annotation spec
    * name and value is the number of examples for that annotation spec.
@@ -50,13 +30,15 @@ public interface LabelStatsOrBuilder
    *
    * map<string, int64> example_count = 1;
    */
-  boolean containsExampleCount(java.lang.String key);
-  /** Use {@link #getExampleCountMap()} instead. */
+  boolean containsExampleCount(
+      java.lang.String key);
+  /**
+   * Use {@link #getExampleCountMap()} instead.
+   */
   @java.lang.Deprecated
-  java.util.Map getExampleCount();
+  java.util.Map
+  getExampleCount();
   /**
-   *
-   *
    * 
    * Map of each annotation spec's example count. Key is the annotation spec
    * name and value is the number of examples for that annotation spec.
@@ -67,10 +49,9 @@ public interface LabelStatsOrBuilder
    *
    * map<string, int64> example_count = 1;
    */
-  java.util.Map getExampleCountMap();
+  java.util.Map
+  getExampleCountMap();
   /**
-   *
-   *
    * 
    * Map of each annotation spec's example count. Key is the annotation spec
    * name and value is the number of examples for that annotation spec.
@@ -81,10 +62,11 @@ public interface LabelStatsOrBuilder
    *
    * map<string, int64> example_count = 1;
    */
-  long getExampleCountOrDefault(java.lang.String key, long defaultValue);
+
+  long getExampleCountOrDefault(
+      java.lang.String key,
+      long defaultValue);
   /**
-   *
-   *
    * 
    * Map of each annotation spec's example count. Key is the annotation spec
    * name and value is the number of examples for that annotation spec.
@@ -95,5 +77,7 @@ public interface LabelStatsOrBuilder
    *
    * map<string, int64> example_count = 1;
    */
-  long getExampleCountOrThrow(java.lang.String key);
+
+  long getExampleCountOrThrow(
+      java.lang.String key);
 }
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadata.java
similarity index 57%
rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadata.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadata.java
index 81c8741e..97558f44 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadata.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadata.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/datalabeling/v1beta1/operations.proto
 
 package com.google.cloud.datalabeling.v1beta1;
 
 /**
- *
- *
  * 
  * Details of a LabelTextClassification operation metadata.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata} */ -public final class LabelTextClassificationOperationMetadata - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LabelTextClassificationOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) LabelTextClassificationOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LabelTextClassificationOperationMetadata.newBuilder() to construct. - private LabelTextClassificationOperationMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelTextClassificationOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LabelTextClassificationOperationMetadata() {} + private LabelTextClassificationOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LabelTextClassificationOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LabelTextClassificationOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,30 +52,26 @@ private LabelTextClassificationOperationMetadata( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); - } - basicConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,40 +79,34 @@ private LabelTextClassificationOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder - .class); + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder.class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -142,25 +114,18 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
@@ -168,13 +133,11 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -200,7 +164,8 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -210,19 +175,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.datalabeling.v1beta1.LabelTextClassificationOperationMetadata)) { + if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata other = - (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig().equals(other.getBasicConfig())) return false; + if (!getBasicConfig() + .equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -244,153 +207,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata 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.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - 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.datalabeling.v1beta1.LabelTextClassificationOperationMetadata 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.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - 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.datalabeling.v1beta1.LabelTextClassificationOperationMetadata 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.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - 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.datalabeling.v1beta1.LabelTextClassificationOperationMetadata 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.datalabeling.v1beta1.LabelTextClassificationOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 a LabelTextClassification operation metadata.
    * 
* - * Protobuf type {@code - * google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata} + * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder - .class); + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.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(); @@ -404,22 +349,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata build() { - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata result = - buildPartial(); + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -427,10 +369,8 @@ public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMet } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata result = - new com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata(this); + public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata buildPartial() { + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata(this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -444,53 +384,46 @@ public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMet public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) other); + if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) { + return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata other) { - if (other - == com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata other) { + if (other == com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -509,14 +442,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata parsedMessage = - null; + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -528,55 +458,41 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> - basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -590,8 +506,6 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -610,22 +524,17 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); } else { basicConfig_ = value; } @@ -637,8 +546,6 @@ public Builder mergeBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -657,42 +564,33 @@ public Builder clearBasicConfig() { return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder - getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -700,24 +598,21 @@ public Builder clearBasicConfig() { * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), getParentForChildren(), isClean()); + basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), + getParentForChildren(), + isClean()); basicConfig_ = null; } return basicConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -727,34 +622,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1 - .LabelTextClassificationOperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata(); + DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelTextClassificationOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelTextClassificationOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelTextClassificationOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelTextClassificationOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -766,8 +657,9 @@ public com.google.protobuf.Parser getP } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadataOrBuilder.java similarity index 66% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadataOrBuilder.java index 60c58f28..93483028 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelTextClassificationOperationMetadataOrBuilder - extends +public interface LabelTextClassificationOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadata.java similarity index 56% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadata.java index 4d867f27..18f42062 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadata.java @@ -1,58 +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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Details of a LabelTextEntityExtraction operation metadata.
  * 
* - * Protobuf type {@code - * google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata} + * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata} */ -public final class LabelTextEntityExtractionOperationMetadata - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LabelTextEntityExtractionOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) LabelTextEntityExtractionOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LabelTextEntityExtractionOperationMetadata.newBuilder() to construct. - private LabelTextEntityExtractionOperationMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelTextEntityExtractionOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LabelTextEntityExtractionOperationMetadata() {} + private LabelTextEntityExtractionOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LabelTextEntityExtractionOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LabelTextEntityExtractionOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,30 +52,26 @@ private LabelTextEntityExtractionOperationMetadata( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); - } - basicConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,40 +79,34 @@ private LabelTextEntityExtractionOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.Builder - .class); + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.Builder.class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -143,25 +114,18 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
@@ -169,13 +133,11 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -201,7 +164,8 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -211,19 +175,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.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata)) { + if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata other = - (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig().equals(other.getBasicConfig())) return false; + if (!getBasicConfig() + .equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -245,154 +207,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata 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.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - 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.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata 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.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - 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.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata 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.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - 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.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata 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.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 a LabelTextEntityExtraction operation metadata.
    * 
* - * Protobuf type {@code - * google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata} + * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - .class, - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - .Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.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(); @@ -406,23 +349,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - build() { - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata result = - buildPartial(); + public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata build() { + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -430,11 +369,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata result = - new com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata( - this); + public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata buildPartial() { + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata(this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -448,54 +384,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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) - other); + if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) { + return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata other) { - if (other - == com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata other) { + if (other == com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -514,14 +442,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - parsedMessage = null; + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -533,55 +458,41 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> - basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -595,8 +506,6 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -615,22 +524,17 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); } else { basicConfig_ = value; } @@ -642,8 +546,6 @@ public Builder mergeBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -662,42 +564,33 @@ public Builder clearBasicConfig() { return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder - getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -705,24 +598,21 @@ public Builder clearBasicConfig() { * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), getParentForChildren(), isClean()); + basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), + getParentForChildren(), + isClean()); basicConfig_ = null; } return basicConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -732,35 +622,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1 - .LabelTextEntityExtractionOperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata(); + DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelTextEntityExtractionOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelTextEntityExtractionOperationMetadata(input, extensionRegistry); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelTextEntityExtractionOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelTextEntityExtractionOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -772,8 +657,9 @@ public com.google.protobuf.Parser ge } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadataOrBuilder.java similarity index 66% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadataOrBuilder.java index b0693be0..d57679ee 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelTextEntityExtractionOperationMetadataOrBuilder - extends +public interface LabelTextEntityExtractionOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequest.java similarity index 61% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequest.java index ddbae9d5..d21e4949 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for LabelText.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelTextRequest} */ -public final class LabelTextRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LabelTextRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelTextRequest) LabelTextRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LabelTextRequest.newBuilder() to construct. private LabelTextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LabelTextRequest() { parent_ = ""; feature_ = 0; @@ -44,15 +26,16 @@ private LabelTextRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LabelTextRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LabelTextRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,90 +54,66 @@ private LabelTextRequest( 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.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); } - case 18: - { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); - } - basicConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = subBuilder.buildPartial(); - } - - break; + basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); } - case 34: - { - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder subBuilder = - null; - if (requestConfigCase_ == 4) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) - requestConfig_) - .toBuilder(); - } - requestConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) - requestConfig_); - requestConfig_ = subBuilder.buildPartial(); - } - requestConfigCase_ = 4; - break; + + break; + } + case 34: { + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder subBuilder = null; + if (requestConfigCase_ == 4) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_).toBuilder(); } - case 42: - { - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder subBuilder = - null; - if (requestConfigCase_ == 5) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) - requestConfig_) - .toBuilder(); - } - requestConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) - requestConfig_); - requestConfig_ = subBuilder.buildPartial(); - } - requestConfigCase_ = 5; - break; + requestConfig_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_); + requestConfig_ = subBuilder.buildPartial(); } - case 48: - { - int rawValue = input.readEnum(); - - feature_ = rawValue; - break; + requestConfigCase_ = 4; + break; + } + case 42: { + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder subBuilder = null; + if (requestConfigCase_ == 5) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_).toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + requestConfig_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_); + requestConfig_ = subBuilder.buildPartial(); } + requestConfigCase_ = 5; + break; + } + case 48: { + int rawValue = input.readEnum(); + + feature_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -162,43 +121,40 @@ private LabelTextRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelTextRequest.class, - com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelTextRequest.class, com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Builder.class); } /** - * - * *
    * Text labeling task feature.
    * 
* * Protobuf enum {@code google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature} */ - public enum Feature implements com.google.protobuf.ProtocolMessageEnum { - /** FEATURE_UNSPECIFIED = 0; */ + public enum Feature + implements com.google.protobuf.ProtocolMessageEnum { + /** + * FEATURE_UNSPECIFIED = 0; + */ FEATURE_UNSPECIFIED(0), /** - * - * *
      * Label text content to one of more labels.
      * 
@@ -207,8 +163,6 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum { */ TEXT_CLASSIFICATION(1), /** - * - * *
      * Label entities and their span in text.
      * 
@@ -219,11 +173,11 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; - /** FEATURE_UNSPECIFIED = 0; */ + /** + * FEATURE_UNSPECIFIED = 0; + */ public static final int FEATURE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Label text content to one of more labels.
      * 
@@ -232,8 +186,6 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TEXT_CLASSIFICATION_VALUE = 1; /** - * - * *
      * Label entities and their span in text.
      * 
@@ -242,6 +194,7 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TEXT_ENTITY_EXTRACTION_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -266,51 +219,49 @@ public static Feature valueOf(int value) { */ public static Feature forNumber(int value) { switch (value) { - case 0: - return FEATURE_UNSPECIFIED; - case 1: - return TEXT_CLASSIFICATION; - case 2: - return TEXT_ENTITY_EXTRACTION; - default: - return null; + case 0: return FEATURE_UNSPECIFIED; + case 1: return TEXT_CLASSIFICATION; + case 2: return TEXT_ENTITY_EXTRACTION; + 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< + Feature> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Feature findValueByNumber(int number) { + return Feature.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Feature findValueByNumber(int number) { - return Feature.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.datalabeling.v1beta1.LabelTextRequest.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.LabelTextRequest.getDescriptor().getEnumTypes().get(0); } private static final Feature[] VALUES = values(); - public static Feature valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Feature 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; @@ -329,16 +280,13 @@ private Feature(int value) { private int requestConfigCase_ = 0; private java.lang.Object requestConfig_; - public enum RequestConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TEXT_CLASSIFICATION_CONFIG(4), TEXT_ENTITY_EXTRACTION_CONFIG(5), REQUESTCONFIG_NOT_SET(0); private final int value; - private RequestConfigCase(int value) { this.value = value; } @@ -354,40 +302,32 @@ public static RequestConfigCase valueOf(int value) { public static RequestConfigCase forNumber(int value) { switch (value) { - case 4: - return TEXT_CLASSIFICATION_CONFIG; - case 5: - return TEXT_ENTITY_EXTRACTION_CONFIG; - case 0: - return REQUESTCONFIG_NOT_SET; - default: - return null; + case 4: return TEXT_CLASSIFICATION_CONFIG; + case 5: return TEXT_ENTITY_EXTRACTION_CONFIG; + case 0: return REQUESTCONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public RequestConfigCase getRequestConfigCase() { - return RequestConfigCase.forNumber(requestConfigCase_); + public RequestConfigCase + getRequestConfigCase() { + return RequestConfigCase.forNumber( + requestConfigCase_); } public static final int TEXT_CLASSIFICATION_CONFIG_FIELD_NUMBER = 4; /** - * - * *
    * Configuration for text classification task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; * @return Whether the textClassificationConfig field is set. */ @java.lang.Override @@ -395,64 +335,48 @@ public boolean hasTextClassificationConfig() { return requestConfigCase_ == 4; } /** - * - * *
    * Configuration for text classification task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; * @return The textClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig - getTextClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextClassificationConfig() { if (requestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } /** - * - * *
    * Configuration for text classification task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder - getTextClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder getTextClassificationConfigOrBuilder() { if (requestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } public static final int TEXT_ENTITY_EXTRACTION_CONFIG_FIELD_NUMBER = 5; /** - * - * *
    * Configuration for entity extraction task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; - * - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; * @return Whether the textEntityExtractionConfig field is set. */ @java.lang.Override @@ -460,46 +384,35 @@ public boolean hasTextEntityExtractionConfig() { return requestConfigCase_ == 5; } /** - * - * *
    * Configuration for entity extraction task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; - * - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; * @return The textEntityExtractionConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig - getTextEntityExtractionConfig() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig getTextEntityExtractionConfig() { if (requestConfigCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); } /** - * - * *
    * Configuration for entity extraction task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder - getTextEntityExtractionConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder getTextEntityExtractionConfigOrBuilder() { if (requestConfigCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); } @@ -507,17 +420,12 @@ public boolean hasTextEntityExtractionConfig() { public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Name of the data set to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * 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 @@ -526,32 +434,30 @@ 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. Name of the data set to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * 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 { @@ -562,16 +468,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int BASIC_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** - * - * *
    * Required. Basic human annotation config.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -579,85 +480,57 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** - * - * *
    * Required. Basic human annotation config.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } /** - * - * *
    * Required. Basic human annotation config.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { return getBasicConfig(); } public static final int FEATURE_FIELD_NUMBER = 6; private int feature_; /** - * - * *
    * Required. The type of text labeling task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for feature. */ - @java.lang.Override - public int getFeatureValue() { + @java.lang.Override public int getFeatureValue() { return feature_; } /** - * - * *
    * Required. The type of text labeling task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The feature. */ - @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature getFeature() { + @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature getFeature() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature result = - com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.valueOf(feature_); - return result == null - ? com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.UNRECOGNIZED - : result; + com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature result = com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.valueOf(feature_); + return result == null ? com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -669,7 +542,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_); } @@ -677,16 +551,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(2, getBasicConfig()); } if (requestConfigCase_ == 4) { - output.writeMessage( - 4, (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_); + output.writeMessage(4, (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_); } if (requestConfigCase_ == 5) { - output.writeMessage( - 5, (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_); + output.writeMessage(5, (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_); } - if (feature_ - != com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.FEATURE_UNSPECIFIED - .getNumber()) { + if (feature_ != com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.FEATURE_UNSPECIFIED.getNumber()) { output.writeEnum(6, feature_); } unknownFields.writeTo(output); @@ -702,22 +572,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBasicConfig()); } if (requestConfigCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_); } if (requestConfigCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_); } - if (feature_ - != com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.FEATURE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, feature_); + if (feature_ != com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.FEATURE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, feature_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -727,29 +595,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.datalabeling.v1beta1.LabelTextRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelTextRequest other = - (com.google.cloud.datalabeling.v1beta1.LabelTextRequest) obj; + com.google.cloud.datalabeling.v1beta1.LabelTextRequest other = (com.google.cloud.datalabeling.v1beta1.LabelTextRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig().equals(other.getBasicConfig())) return false; + if (!getBasicConfig() + .equals(other.getBasicConfig())) return false; } if (feature_ != other.feature_) return false; if (!getRequestConfigCase().equals(other.getRequestConfigCase())) return false; switch (requestConfigCase_) { case 4: - if (!getTextClassificationConfig().equals(other.getTextClassificationConfig())) - return false; + if (!getTextClassificationConfig() + .equals(other.getTextClassificationConfig())) return false; break; case 5: - if (!getTextEntityExtractionConfig().equals(other.getTextEntityExtractionConfig())) - return false; + if (!getTextEntityExtractionConfig() + .equals(other.getTextEntityExtractionConfig())) return false; break; case 0: default: @@ -791,127 +660,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest 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.datalabeling.v1beta1.LabelTextRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.LabelTextRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelTextRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 LabelText.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelTextRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelTextRequest) com.google.cloud.datalabeling.v1beta1.LabelTextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelTextRequest.class, - com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelTextRequest.class, com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.LabelTextRequest.newBuilder() @@ -919,15 +778,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(); @@ -947,9 +807,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor; } @java.lang.Override @@ -968,8 +828,7 @@ public com.google.cloud.datalabeling.v1beta1.LabelTextRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelTextRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelTextRequest result = - new com.google.cloud.datalabeling.v1beta1.LabelTextRequest(this); + com.google.cloud.datalabeling.v1beta1.LabelTextRequest result = new com.google.cloud.datalabeling.v1beta1.LabelTextRequest(this); if (requestConfigCase_ == 4) { if (textClassificationConfigBuilder_ == null) { result.requestConfig_ = requestConfig_; @@ -1000,39 +859,38 @@ public com.google.cloud.datalabeling.v1beta1.LabelTextRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelTextRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelTextRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelTextRequest)other); } else { super.mergeFrom(other); return this; @@ -1040,8 +898,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelTextRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.LabelTextRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.LabelTextRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1053,20 +910,17 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelTextRequest setFeatureValue(other.getFeatureValue()); } switch (other.getRequestConfigCase()) { - case TEXT_CLASSIFICATION_CONFIG: - { - mergeTextClassificationConfig(other.getTextClassificationConfig()); - break; - } - case TEXT_ENTITY_EXTRACTION_CONFIG: - { - mergeTextEntityExtractionConfig(other.getTextEntityExtractionConfig()); - break; - } - case REQUESTCONFIG_NOT_SET: - { - break; - } + case TEXT_CLASSIFICATION_CONFIG: { + mergeTextClassificationConfig(other.getTextClassificationConfig()); + break; + } + case TEXT_ENTITY_EXTRACTION_CONFIG: { + mergeTextEntityExtractionConfig(other.getTextEntityExtractionConfig()); + break; + } + case REQUESTCONFIG_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1087,8 +941,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.LabelTextRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelTextRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1097,12 +950,12 @@ public Builder mergeFrom( } return this; } - private int requestConfigCase_ = 0; private java.lang.Object requestConfig_; - - public RequestConfigCase getRequestConfigCase() { - return RequestConfigCase.forNumber(requestConfigCase_); + public RequestConfigCase + getRequestConfigCase() { + return RequestConfigCase.forNumber( + requestConfigCase_); } public Builder clearRequestConfig() { @@ -1112,24 +965,17 @@ public Builder clearRequestConfig() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder> - textClassificationConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder> textClassificationConfigBuilder_; /** - * - * *
      * Configuration for text classification task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; * @return Whether the textClassificationConfig field is set. */ @java.lang.Override @@ -1137,23 +983,17 @@ public boolean hasTextClassificationConfig() { return requestConfigCase_ == 4; } /** - * - * *
      * Configuration for text classification task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; * @return The textClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig - getTextClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextClassificationConfig() { if (textClassificationConfigBuilder_ == null) { if (requestConfigCase_ == 4) { return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_; @@ -1167,20 +1007,15 @@ public boolean hasTextClassificationConfig() { } } /** - * - * *
      * Configuration for text classification task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; */ - public Builder setTextClassificationConfig( - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { + public Builder setTextClassificationConfig(com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { if (textClassificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1194,17 +1029,13 @@ public Builder setTextClassificationConfig( return this; } /** - * - * *
      * Configuration for text classification task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; */ public Builder setTextClassificationConfig( com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder builderForValue) { @@ -1218,31 +1049,20 @@ public Builder setTextClassificationConfig( return this; } /** - * - * *
      * Configuration for text classification task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; */ - public Builder mergeTextClassificationConfig( - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { + public Builder mergeTextClassificationConfig(com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { if (textClassificationConfigBuilder_ == null) { - if (requestConfigCase_ == 4 - && requestConfig_ - != com.google.cloud.datalabeling.v1beta1.TextClassificationConfig - .getDefaultInstance()) { - requestConfig_ = - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.newBuilder( - (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) - requestConfig_) - .mergeFrom(value) - .buildPartial(); + if (requestConfigCase_ == 4 && + requestConfig_ != com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance()) { + requestConfig_ = com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_) + .mergeFrom(value).buildPartial(); } else { requestConfig_ = value; } @@ -1258,17 +1078,13 @@ public Builder mergeTextClassificationConfig( return this; } /** - * - * *
      * Configuration for text classification task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; */ public Builder clearTextClassificationConfig() { if (textClassificationConfigBuilder_ == null) { @@ -1287,38 +1103,28 @@ public Builder clearTextClassificationConfig() { return this; } /** - * - * *
      * Configuration for text classification task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; */ - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder - getTextClassificationConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder getTextClassificationConfigBuilder() { return getTextClassificationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for text classification task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder - getTextClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder getTextClassificationConfigOrBuilder() { if ((requestConfigCase_ == 4) && (textClassificationConfigBuilder_ != null)) { return textClassificationConfigBuilder_.getMessageOrBuilder(); } else { @@ -1329,62 +1135,43 @@ public Builder clearTextClassificationConfig() { } } /** - * - * *
      * Configuration for text classification task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder> getTextClassificationConfigFieldBuilder() { if (textClassificationConfigBuilder_ == null) { if (!(requestConfigCase_ == 4)) { - requestConfig_ = - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); + requestConfig_ = com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } - textClassificationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder>( + textClassificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder>( (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_, getParentForChildren(), isClean()); requestConfig_ = null; } requestConfigCase_ = 4; - onChanged(); - ; + onChanged();; return textClassificationConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder> - textEntityExtractionConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder> textEntityExtractionConfigBuilder_; /** - * - * *
      * Configuration for entity extraction task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; - * - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; * @return Whether the textEntityExtractionConfig field is set. */ @java.lang.Override @@ -1392,52 +1179,39 @@ public boolean hasTextEntityExtractionConfig() { return requestConfigCase_ == 5; } /** - * - * *
      * Configuration for entity extraction task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; - * - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; * @return The textEntityExtractionConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig - getTextEntityExtractionConfig() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig getTextEntityExtractionConfig() { if (textEntityExtractionConfigBuilder_ == null) { if (requestConfigCase_ == 5) { return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_; } - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); } else { if (requestConfigCase_ == 5) { return textEntityExtractionConfigBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); } } /** - * - * *
      * Configuration for entity extraction task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; */ - public Builder setTextEntityExtractionConfig( - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig value) { + public Builder setTextEntityExtractionConfig(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig value) { if (textEntityExtractionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1451,17 +1225,13 @@ public Builder setTextEntityExtractionConfig( return this; } /** - * - * *
      * Configuration for entity extraction task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; */ public Builder setTextEntityExtractionConfig( com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder builderForValue) { @@ -1475,31 +1245,20 @@ public Builder setTextEntityExtractionConfig( return this; } /** - * - * *
      * Configuration for entity extraction task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; */ - public Builder mergeTextEntityExtractionConfig( - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig value) { + public Builder mergeTextEntityExtractionConfig(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig value) { if (textEntityExtractionConfigBuilder_ == null) { - if (requestConfigCase_ == 5 - && requestConfig_ - != com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig - .getDefaultInstance()) { - requestConfig_ = - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.newBuilder( - (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) - requestConfig_) - .mergeFrom(value) - .buildPartial(); + if (requestConfigCase_ == 5 && + requestConfig_ != com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance()) { + requestConfig_ = com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_) + .mergeFrom(value).buildPartial(); } else { requestConfig_ = value; } @@ -1515,17 +1274,13 @@ public Builder mergeTextEntityExtractionConfig( return this; } /** - * - * *
      * Configuration for entity extraction task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; */ public Builder clearTextEntityExtractionConfig() { if (textEntityExtractionConfigBuilder_ == null) { @@ -1544,106 +1299,80 @@ public Builder clearTextEntityExtractionConfig() { return this; } /** - * - * *
      * Configuration for entity extraction task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; */ - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder - getTextEntityExtractionConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder getTextEntityExtractionConfigBuilder() { return getTextEntityExtractionConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for entity extraction task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder - getTextEntityExtractionConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder getTextEntityExtractionConfigOrBuilder() { if ((requestConfigCase_ == 5) && (textEntityExtractionConfigBuilder_ != null)) { return textEntityExtractionConfigBuilder_.getMessageOrBuilder(); } else { if (requestConfigCase_ == 5) { return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_; } - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig - .getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); } } /** - * - * *
      * Configuration for entity extraction task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder> getTextEntityExtractionConfigFieldBuilder() { if (textEntityExtractionConfigBuilder_ == null) { if (!(requestConfigCase_ == 5)) { - requestConfig_ = - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); + requestConfig_ = com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); } - textEntityExtractionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder>( + textEntityExtractionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder>( (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_, getParentForChildren(), isClean()); requestConfig_ = null; } requestConfigCase_ = 5; - onChanged(); - ; + onChanged();; return textEntityExtractionConfigBuilder_; } private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the data set to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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; @@ -1652,24 +1381,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the data set to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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 { @@ -1677,70 +1403,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the data set to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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. Name of the data set to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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. Name of the data set to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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; @@ -1748,61 +1461,41 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> - basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1816,15 +1509,11 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBasicConfig( com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder builderForValue) { @@ -1838,24 +1527,17 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); } else { basicConfig_ = value; } @@ -1867,15 +1549,11 @@ public Builder mergeBasicConfig( return this; } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBasicConfig() { if (basicConfigBuilder_ == null) { @@ -1889,66 +1567,48 @@ public Builder clearBasicConfig() { return this; } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder - getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), getParentForChildren(), isClean()); + basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), + getParentForChildren(), + isClean()); basicConfig_ = null; } return basicConfigBuilder_; @@ -1956,110 +1616,80 @@ public Builder clearBasicConfig() { private int feature_ = 0; /** - * - * *
      * Required. The type of text labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for feature. */ - @java.lang.Override - public int getFeatureValue() { + @java.lang.Override public int getFeatureValue() { return feature_; } /** - * - * *
      * Required. The type of text labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for feature to set. * @return This builder for chaining. */ public Builder setFeatureValue(int value) { - + feature_ = value; onChanged(); return this; } /** - * - * *
      * Required. The type of text labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The feature. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature getFeature() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature result = - com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.valueOf(feature_); - return result == null - ? com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.UNRECOGNIZED - : result; + com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature result = com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.valueOf(feature_); + return result == null ? com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.UNRECOGNIZED : result; } /** - * - * *
      * Required. The type of text labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; * @param value The feature to set. * @return This builder for chaining. */ - public Builder setFeature( - com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature value) { + public Builder setFeature(com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature value) { if (value == null) { throw new NullPointerException(); } - + feature_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The type of text labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearFeature() { - + feature_ = 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); } @@ -2069,12 +1699,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelTextRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelTextRequest) private static final com.google.cloud.datalabeling.v1beta1.LabelTextRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelTextRequest(); } @@ -2083,16 +1713,16 @@ public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelTextRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelTextRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelTextRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelTextRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2107,4 +1737,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.LabelTextRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequestOrBuilder.java similarity index 55% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequestOrBuilder.java index 846b0685..ae5fda79 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequestOrBuilder.java @@ -1,225 +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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelTextRequestOrBuilder - extends +public interface LabelTextRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelTextRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Configuration for text classification task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; * @return Whether the textClassificationConfig field is set. */ boolean hasTextClassificationConfig(); /** - * - * *
    * Configuration for text classification task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; * @return The textClassificationConfig. */ com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextClassificationConfig(); /** - * - * *
    * Configuration for text classification task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; */ - com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder - getTextClassificationConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder getTextClassificationConfigOrBuilder(); /** - * - * *
    * Configuration for entity extraction task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; - * - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; * @return Whether the textEntityExtractionConfig field is set. */ boolean hasTextEntityExtractionConfig(); /** - * - * *
    * Configuration for entity extraction task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; - * - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; * @return The textEntityExtractionConfig. */ com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig getTextEntityExtractionConfig(); /** - * - * *
    * Configuration for entity extraction task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; - * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; */ - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder - getTextEntityExtractionConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder getTextEntityExtractionConfigOrBuilder(); /** - * - * *
    * Required. Name of the data set to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * 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. Name of the data set to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * 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. Basic human annotation config.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** - * - * *
    * Required. Basic human annotation config.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** - * - * *
    * Required. Basic human annotation config.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder(); /** - * - * *
    * Required. The type of text labeling task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for feature. */ int getFeatureValue(); /** - * - * *
    * Required. The type of text labeling task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; * @return The feature. */ com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature getFeature(); - public com.google.cloud.datalabeling.v1beta1.LabelTextRequest.RequestConfigCase - getRequestConfigCase(); + public com.google.cloud.datalabeling.v1beta1.LabelTextRequest.RequestConfigCase getRequestConfigCase(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadata.java similarity index 57% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadata.java index 891817ec..4cd94a5b 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadata.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Details of a LabelVideoClassification operation metadata.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata} */ -public final class LabelVideoClassificationOperationMetadata - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LabelVideoClassificationOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) LabelVideoClassificationOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LabelVideoClassificationOperationMetadata.newBuilder() to construct. - private LabelVideoClassificationOperationMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelVideoClassificationOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LabelVideoClassificationOperationMetadata() {} + private LabelVideoClassificationOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LabelVideoClassificationOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LabelVideoClassificationOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,30 +52,26 @@ private LabelVideoClassificationOperationMetadata( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); - } - basicConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,40 +79,34 @@ private LabelVideoClassificationOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder - .class); + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder.class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -142,25 +114,18 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
@@ -168,13 +133,11 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -200,7 +164,8 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -210,19 +175,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.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata)) { + if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata other = - (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig().equals(other.getBasicConfig())) return false; + if (!getBasicConfig() + .equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -244,153 +207,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata 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.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - 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.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata 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.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - 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.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata 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.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - 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.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata 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.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 a LabelVideoClassification operation metadata.
    * 
* - * Protobuf type {@code - * google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata} + * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - .Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.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(); @@ -404,22 +349,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata build() { - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata result = - buildPartial(); + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -427,10 +369,8 @@ public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMe } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata result = - new com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata(this); + public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata buildPartial() { + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata(this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -444,54 +384,46 @@ public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) - other); + if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) { + return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata other) { - if (other - == com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata other) { + if (other == com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -510,14 +442,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - parsedMessage = null; + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -529,55 +458,41 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> - basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -591,8 +506,6 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -611,22 +524,17 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); } else { basicConfig_ = value; } @@ -638,8 +546,6 @@ public Builder mergeBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -658,42 +564,33 @@ public Builder clearBasicConfig() { return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder - getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -701,24 +598,21 @@ public Builder clearBasicConfig() { * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), getParentForChildren(), isClean()); + basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), + getParentForChildren(), + isClean()); basicConfig_ = null; } return basicConfigBuilder_; } - @java.lang.Override - 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,35 +622,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1 - .LabelVideoClassificationOperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata(); + DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelVideoClassificationOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelVideoClassificationOperationMetadata(input, extensionRegistry); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelVideoClassificationOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelVideoClassificationOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -768,8 +657,9 @@ public com.google.protobuf.Parser get } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadataOrBuilder.java similarity index 66% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadataOrBuilder.java index 8f5e3636..8b733d1e 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelVideoClassificationOperationMetadataOrBuilder - extends +public interface LabelVideoClassificationOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadata.java similarity index 63% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadata.java index 38b17aba..60b2f90e 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadata.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Details of a LabelVideoEvent operation metadata.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata} */ -public final class LabelVideoEventOperationMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LabelVideoEventOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) LabelVideoEventOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LabelVideoEventOperationMetadata.newBuilder() to construct. - private LabelVideoEventOperationMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelVideoEventOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LabelVideoEventOperationMetadata() {} + private LabelVideoEventOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LabelVideoEventOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LabelVideoEventOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,30 +52,26 @@ private LabelVideoEventOperationMetadata( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); - } - basicConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -100,39 +79,34 @@ private LabelVideoEventOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder.class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -140,25 +114,18 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
@@ -166,13 +133,11 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -184,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -198,7 +164,8 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -208,17 +175,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.datalabeling.v1beta1.LabelVideoEventOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata other = - (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig().equals(other.getBasicConfig())) return false; + if (!getBasicConfig() + .equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -241,145 +208,134 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata 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.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata - 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.datalabeling.v1beta1.LabelVideoEventOperationMetadata 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.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 a LabelVideoEvent operation metadata.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.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(); @@ -393,22 +349,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata build() { - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata result = - buildPartial(); + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -417,8 +370,7 @@ public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata bu @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata result = - new com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata(this); + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata(this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -432,51 +384,46 @@ public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata 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.datalabeling.v1beta1.LabelVideoEventOperationMetadata) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata other) { - if (other - == com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata other) { + if (other == com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -499,9 +446,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -513,55 +458,41 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> - basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -575,8 +506,6 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -595,22 +524,17 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); } else { basicConfig_ = value; } @@ -622,8 +546,6 @@ public Builder mergeBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -642,42 +564,33 @@ public Builder clearBasicConfig() { return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder - getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -685,24 +598,21 @@ public Builder clearBasicConfig() { * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), getParentForChildren(), isClean()); + basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), + getParentForChildren(), + isClean()); basicConfig_ = null; } return basicConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -712,32 +622,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelVideoEventOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelVideoEventOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelVideoEventOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelVideoEventOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -749,8 +657,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadataOrBuilder.java similarity index 63% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadataOrBuilder.java index 82b4e79c..d77de170 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelVideoEventOperationMetadataOrBuilder - extends +public interface LabelVideoEventOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadata.java similarity index 56% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadata.java index ac3b19aa..1b6fe4ab 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadata.java @@ -1,58 +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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Details of a LabelVideoObjectDetection operation metadata.
  * 
* - * Protobuf type {@code - * google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata} + * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata} */ -public final class LabelVideoObjectDetectionOperationMetadata - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LabelVideoObjectDetectionOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) LabelVideoObjectDetectionOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LabelVideoObjectDetectionOperationMetadata.newBuilder() to construct. - private LabelVideoObjectDetectionOperationMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelVideoObjectDetectionOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LabelVideoObjectDetectionOperationMetadata() {} + private LabelVideoObjectDetectionOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LabelVideoObjectDetectionOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LabelVideoObjectDetectionOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,30 +52,26 @@ private LabelVideoObjectDetectionOperationMetadata( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); - } - basicConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,40 +79,34 @@ private LabelVideoObjectDetectionOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.Builder - .class); + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.Builder.class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -143,25 +114,18 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
@@ -169,13 +133,11 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -187,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -201,7 +164,8 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -211,19 +175,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.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata)) { + if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata other = - (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig().equals(other.getBasicConfig())) return false; + if (!getBasicConfig() + .equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -245,154 +207,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata 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.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - 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.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata 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.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - 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.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata 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.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - 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.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata 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.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 a LabelVideoObjectDetection operation metadata.
    * 
* - * Protobuf type {@code - * google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata} + * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - .class, - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - .Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.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(); @@ -406,23 +349,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - build() { - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata result = - buildPartial(); + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata build() { + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -430,11 +369,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata result = - new com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata( - this); + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata buildPartial() { + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata(this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -448,54 +384,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) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) - other); + if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) { + return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata other) { - if (other - == com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata other) { + if (other == com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -514,14 +442,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - parsedMessage = null; + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -533,55 +458,41 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> - basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -595,8 +506,6 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -615,22 +524,17 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); } else { basicConfig_ = value; } @@ -642,8 +546,6 @@ public Builder mergeBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -662,42 +564,33 @@ public Builder clearBasicConfig() { return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder - getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -705,24 +598,21 @@ public Builder clearBasicConfig() { * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), getParentForChildren(), isClean()); + basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), + getParentForChildren(), + isClean()); basicConfig_ = null; } return basicConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -732,35 +622,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1 - .LabelVideoObjectDetectionOperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata(); + DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelVideoObjectDetectionOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelVideoObjectDetectionOperationMetadata(input, extensionRegistry); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelVideoObjectDetectionOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelVideoObjectDetectionOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -772,8 +657,9 @@ public com.google.protobuf.Parser ge } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadataOrBuilder.java similarity index 66% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadataOrBuilder.java index 451fda92..9aea6ebb 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelVideoObjectDetectionOperationMetadataOrBuilder - extends +public interface LabelVideoObjectDetectionOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadata.java similarity index 57% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadata.java index b7c9b3e3..68a2b518 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadata.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Details of a LabelVideoObjectTracking operation metadata.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata} */ -public final class LabelVideoObjectTrackingOperationMetadata - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LabelVideoObjectTrackingOperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) LabelVideoObjectTrackingOperationMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LabelVideoObjectTrackingOperationMetadata.newBuilder() to construct. - private LabelVideoObjectTrackingOperationMetadata( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelVideoObjectTrackingOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private LabelVideoObjectTrackingOperationMetadata() {} + private LabelVideoObjectTrackingOperationMetadata() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LabelVideoObjectTrackingOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LabelVideoObjectTrackingOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,30 +52,26 @@ private LabelVideoObjectTrackingOperationMetadata( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); - } - basicConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -101,40 +79,34 @@ private LabelVideoObjectTrackingOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder - .class); + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder.class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -142,25 +114,18 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
@@ -168,13 +133,11 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -200,7 +164,8 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -210,19 +175,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.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata)) { + if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata other = - (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig().equals(other.getBasicConfig())) return false; + if (!getBasicConfig() + .equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -244,153 +207,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata 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.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - 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.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata 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.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - 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.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata 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.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - 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.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata 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.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 a LabelVideoObjectTracking operation metadata.
    * 
* - * Protobuf type {@code - * google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata} + * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.class, - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - .Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.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(); @@ -404,22 +349,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata build() { - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata result = - buildPartial(); + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -427,10 +369,8 @@ public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMe } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata result = - new com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata(this); + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata buildPartial() { + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata(this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -444,54 +384,46 @@ public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMe public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) - other); + if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) { + return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata other) { - if (other - == com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata other) { + if (other == com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -510,14 +442,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - parsedMessage = null; + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -529,55 +458,41 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> - basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -591,8 +506,6 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -611,22 +524,17 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); } else { basicConfig_ = value; } @@ -638,8 +546,6 @@ public Builder mergeBasicConfig( return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -658,42 +564,33 @@ public Builder clearBasicConfig() { return this; } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder - getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } } /** - * - * *
      * Basic human annotation config used in labeling request.
      * 
@@ -701,24 +598,21 @@ public Builder clearBasicConfig() { * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), getParentForChildren(), isClean()); + basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), + getParentForChildren(), + isClean()); basicConfig_ = null; } return basicConfigBuilder_; } - @java.lang.Override - 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,35 +622,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1 - .LabelVideoObjectTrackingOperationMetadata - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata(); + DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelVideoObjectTrackingOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelVideoObjectTrackingOperationMetadata(input, extensionRegistry); - } - }; + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelVideoObjectTrackingOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelVideoObjectTrackingOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -768,8 +657,9 @@ public com.google.protobuf.Parser get } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadataOrBuilder.java similarity index 66% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadataOrBuilder.java index ce5dc4ff..4ddba2ed 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelVideoObjectTrackingOperationMetadataOrBuilder - extends +public interface LabelVideoObjectTrackingOperationMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; - * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** - * - * *
    * Basic human annotation config used in labeling request.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequest.java similarity index 65% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequest.java index ae840b1f..e75dda83 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for LabelVideo.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelVideoRequest} */ -public final class LabelVideoRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class LabelVideoRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelVideoRequest) LabelVideoRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use LabelVideoRequest.newBuilder() to construct. private LabelVideoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LabelVideoRequest() { parent_ = ""; feature_ = 0; @@ -44,15 +26,16 @@ private LabelVideoRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new LabelVideoRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private LabelVideoRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,127 +54,94 @@ private LabelVideoRequest( 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.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); } - case 18: - { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); - } - basicConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = subBuilder.buildPartial(); - } - - break; + basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); } - case 24: - { - int rawValue = input.readEnum(); - feature_ = rawValue; - break; + break; + } + case 24: { + int rawValue = input.readEnum(); + + feature_ = rawValue; + break; + } + case 34: { + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder subBuilder = null; + if (requestConfigCase_ == 4) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_).toBuilder(); } - case 34: - { - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder subBuilder = - null; - if (requestConfigCase_ == 4) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - requestConfig_) - .toBuilder(); - } - requestConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - requestConfig_); - requestConfig_ = subBuilder.buildPartial(); - } - requestConfigCase_ = 4; - break; + requestConfig_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_); + requestConfig_ = subBuilder.buildPartial(); } - case 42: - { - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder subBuilder = null; - if (requestConfigCase_ == 5) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_) - .toBuilder(); - } - requestConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_); - requestConfig_ = subBuilder.buildPartial(); - } - requestConfigCase_ = 5; - break; + requestConfigCase_ = 4; + break; + } + case 42: { + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder subBuilder = null; + if (requestConfigCase_ == 5) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_).toBuilder(); } - case 50: - { - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder subBuilder = null; - if (requestConfigCase_ == 6) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_) - .toBuilder(); - } - requestConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_); - requestConfig_ = subBuilder.buildPartial(); - } - requestConfigCase_ = 6; - break; + requestConfig_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_); + requestConfig_ = subBuilder.buildPartial(); } - case 58: - { - com.google.cloud.datalabeling.v1beta1.EventConfig.Builder subBuilder = null; - if (requestConfigCase_ == 7) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_) - .toBuilder(); - } - requestConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.EventConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_); - requestConfig_ = subBuilder.buildPartial(); - } - requestConfigCase_ = 7; - break; + requestConfigCase_ = 5; + break; + } + case 50: { + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder subBuilder = null; + if (requestConfigCase_ == 6) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_).toBuilder(); + } + requestConfig_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_); + requestConfig_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + requestConfigCase_ = 6; + break; + } + case 58: { + com.google.cloud.datalabeling.v1beta1.EventConfig.Builder subBuilder = null; + if (requestConfigCase_ == 7) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_).toBuilder(); } + requestConfig_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.EventConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_); + requestConfig_ = subBuilder.buildPartial(); + } + requestConfigCase_ = 7; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -199,43 +149,40 @@ private LabelVideoRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.class, - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.class, com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Builder.class); } /** - * - * *
    * Video labeling task feature.
    * 
* * Protobuf enum {@code google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature} */ - public enum Feature implements com.google.protobuf.ProtocolMessageEnum { - /** FEATURE_UNSPECIFIED = 0; */ + public enum Feature + implements com.google.protobuf.ProtocolMessageEnum { + /** + * FEATURE_UNSPECIFIED = 0; + */ FEATURE_UNSPECIFIED(0), /** - * - * *
      * Label whole video or video segment with one or more labels.
      * 
@@ -244,8 +191,6 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum { */ CLASSIFICATION(1), /** - * - * *
      * Label objects with bounding box on image frames extracted from the video.
      * 
@@ -254,8 +199,6 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum { */ OBJECT_DETECTION(2), /** - * - * *
      * Label and track objects in video.
      * 
@@ -264,8 +207,6 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum { */ OBJECT_TRACKING(3), /** - * - * *
      * Label the range of video for the specified events.
      * 
@@ -276,11 +217,11 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum { UNRECOGNIZED(-1), ; - /** FEATURE_UNSPECIFIED = 0; */ + /** + * FEATURE_UNSPECIFIED = 0; + */ public static final int FEATURE_UNSPECIFIED_VALUE = 0; /** - * - * *
      * Label whole video or video segment with one or more labels.
      * 
@@ -289,8 +230,6 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CLASSIFICATION_VALUE = 1; /** - * - * *
      * Label objects with bounding box on image frames extracted from the video.
      * 
@@ -299,8 +238,6 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OBJECT_DETECTION_VALUE = 2; /** - * - * *
      * Label and track objects in video.
      * 
@@ -309,8 +246,6 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OBJECT_TRACKING_VALUE = 3; /** - * - * *
      * Label the range of video for the specified events.
      * 
@@ -319,6 +254,7 @@ public enum Feature implements com.google.protobuf.ProtocolMessageEnum { */ public static final int EVENT_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -343,55 +279,51 @@ public static Feature valueOf(int value) { */ public static Feature forNumber(int value) { switch (value) { - case 0: - return FEATURE_UNSPECIFIED; - case 1: - return CLASSIFICATION; - case 2: - return OBJECT_DETECTION; - case 3: - return OBJECT_TRACKING; - case 4: - return EVENT; - default: - return null; + case 0: return FEATURE_UNSPECIFIED; + case 1: return CLASSIFICATION; + case 2: return OBJECT_DETECTION; + case 3: return OBJECT_TRACKING; + case 4: return EVENT; + 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< + Feature> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Feature findValueByNumber(int number) { + return Feature.forNumber(number); + } + }; - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Feature findValueByNumber(int number) { - return Feature.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.datalabeling.v1beta1.LabelVideoRequest.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.getDescriptor().getEnumTypes().get(0); } private static final Feature[] VALUES = values(); - public static Feature valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Feature 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; @@ -410,10 +342,8 @@ private Feature(int value) { private int requestConfigCase_ = 0; private java.lang.Object requestConfig_; - public enum RequestConfigCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VIDEO_CLASSIFICATION_CONFIG(4), OBJECT_DETECTION_CONFIG(5), @@ -421,7 +351,6 @@ public enum RequestConfigCase EVENT_CONFIG(7), REQUESTCONFIG_NOT_SET(0); private final int value; - private RequestConfigCase(int value) { this.value = value; } @@ -437,44 +366,34 @@ public static RequestConfigCase valueOf(int value) { public static RequestConfigCase forNumber(int value) { switch (value) { - case 4: - return VIDEO_CLASSIFICATION_CONFIG; - case 5: - return OBJECT_DETECTION_CONFIG; - case 6: - return OBJECT_TRACKING_CONFIG; - case 7: - return EVENT_CONFIG; - case 0: - return REQUESTCONFIG_NOT_SET; - default: - return null; + case 4: return VIDEO_CLASSIFICATION_CONFIG; + case 5: return OBJECT_DETECTION_CONFIG; + case 6: return OBJECT_TRACKING_CONFIG; + case 7: return EVENT_CONFIG; + case 0: return REQUESTCONFIG_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public RequestConfigCase getRequestConfigCase() { - return RequestConfigCase.forNumber(requestConfigCase_); + public RequestConfigCase + getRequestConfigCase() { + return RequestConfigCase.forNumber( + requestConfigCase_); } public static final int VIDEO_CLASSIFICATION_CONFIG_FIELD_NUMBER = 4; /** - * - * *
    * Configuration for video classification task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; * @return Whether the videoClassificationConfig field is set. */ @java.lang.Override @@ -482,63 +401,48 @@ public boolean hasVideoClassificationConfig() { return requestConfigCase_ == 4; } /** - * - * *
    * Configuration for video classification task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; * @return The videoClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - getVideoClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig getVideoClassificationConfig() { if (requestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); } /** - * - * *
    * Configuration for video classification task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder - getVideoClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder getVideoClassificationConfigOrBuilder() { if (requestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); } public static final int OBJECT_DETECTION_CONFIG_FIELD_NUMBER = 5; /** - * - * *
    * Configuration for video object detection task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; * @return Whether the objectDetectionConfig field is set. */ @java.lang.Override @@ -546,60 +450,48 @@ public boolean hasObjectDetectionConfig() { return requestConfigCase_ == 5; } /** - * - * *
    * Configuration for video object detection task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; * @return The objectDetectionConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig getObjectDetectionConfig() { if (requestConfigCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); } /** - * - * *
    * Configuration for video object detection task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder - getObjectDetectionConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder getObjectDetectionConfigOrBuilder() { if (requestConfigCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); } public static final int OBJECT_TRACKING_CONFIG_FIELD_NUMBER = 6; /** - * - * *
    * Configuration for video object tracking task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; * @return Whether the objectTrackingConfig field is set. */ @java.lang.Override @@ -607,51 +499,41 @@ public boolean hasObjectTrackingConfig() { return requestConfigCase_ == 6; } /** - * - * *
    * Configuration for video object tracking task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; * @return The objectTrackingConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig getObjectTrackingConfig() { if (requestConfigCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); } /** - * - * *
    * Configuration for video object tracking task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder - getObjectTrackingConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder getObjectTrackingConfigOrBuilder() { if (requestConfigCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); } public static final int EVENT_CONFIG_FIELD_NUMBER = 7; /** - * - * *
    * Configuration for video event task.
    * One of video_classification_config, object_detection_config,
@@ -659,7 +541,6 @@ public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig getObjectTrack
    * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 7; - * * @return Whether the eventConfig field is set. */ @java.lang.Override @@ -667,8 +548,6 @@ public boolean hasEventConfig() { return requestConfigCase_ == 7; } /** - * - * *
    * Configuration for video event task.
    * One of video_classification_config, object_detection_config,
@@ -676,19 +555,16 @@ public boolean hasEventConfig() {
    * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 7; - * * @return The eventConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EventConfig getEventConfig() { if (requestConfigCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance(); } /** - * - * *
    * Configuration for video event task.
    * One of video_classification_config, object_detection_config,
@@ -700,7 +576,7 @@ public com.google.cloud.datalabeling.v1beta1.EventConfig getEventConfig() {
   @java.lang.Override
   public com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder getEventConfigOrBuilder() {
     if (requestConfigCase_ == 7) {
-      return (com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_;
+       return (com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_;
     }
     return com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance();
   }
@@ -708,17 +584,12 @@ public com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder getEventConfig
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
-   *
-   *
    * 
    * Required. Name of the dataset to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * 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 @@ -727,32 +598,30 @@ 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. Name of the dataset to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * 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 { @@ -763,16 +632,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int BASIC_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** - * - * *
    * Required. Basic human annotation config.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -780,85 +644,57 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** - * - * *
    * Required. Basic human annotation config.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } /** - * - * *
    * Required. Basic human annotation config.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { return getBasicConfig(); } public static final int FEATURE_FIELD_NUMBER = 3; private int feature_; /** - * - * *
    * Required. The type of video labeling task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for feature. */ - @java.lang.Override - public int getFeatureValue() { + @java.lang.Override public int getFeatureValue() { return feature_; } /** - * - * *
    * Required. The type of video labeling task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The feature. */ - @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature getFeature() { + @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature getFeature() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature result = - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.valueOf(feature_); - return result == null - ? com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.UNRECOGNIZED - : result; + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature result = com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.valueOf(feature_); + return result == null ? com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -870,29 +706,25 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } if (basicConfig_ != null) { output.writeMessage(2, getBasicConfig()); } - if (feature_ - != com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.FEATURE_UNSPECIFIED - .getNumber()) { + if (feature_ != com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.FEATURE_UNSPECIFIED.getNumber()) { output.writeEnum(3, feature_); } if (requestConfigCase_ == 4) { - output.writeMessage( - 4, (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_); + output.writeMessage(4, (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_); } if (requestConfigCase_ == 5) { - output.writeMessage( - 5, (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_); + output.writeMessage(5, (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_); } if (requestConfigCase_ == 6) { - output.writeMessage( - 6, (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_); + output.writeMessage(6, (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_); } if (requestConfigCase_ == 7) { output.writeMessage(7, (com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_); @@ -910,32 +742,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getBasicConfig()); } - if (feature_ - != com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.FEATURE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, feature_); + if (feature_ != com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.FEATURE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, feature_); } if (requestConfigCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_); } if (requestConfigCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_); } if (requestConfigCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_); } if (requestConfigCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, (com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -945,34 +773,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.datalabeling.v1beta1.LabelVideoRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest other = - (com.google.cloud.datalabeling.v1beta1.LabelVideoRequest) obj; + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest other = (com.google.cloud.datalabeling.v1beta1.LabelVideoRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig().equals(other.getBasicConfig())) return false; + if (!getBasicConfig() + .equals(other.getBasicConfig())) return false; } if (feature_ != other.feature_) return false; if (!getRequestConfigCase().equals(other.getRequestConfigCase())) return false; switch (requestConfigCase_) { case 4: - if (!getVideoClassificationConfig().equals(other.getVideoClassificationConfig())) - return false; + if (!getVideoClassificationConfig() + .equals(other.getVideoClassificationConfig())) return false; break; case 5: - if (!getObjectDetectionConfig().equals(other.getObjectDetectionConfig())) return false; + if (!getObjectDetectionConfig() + .equals(other.getObjectDetectionConfig())) return false; break; case 6: - if (!getObjectTrackingConfig().equals(other.getObjectTrackingConfig())) return false; + if (!getObjectTrackingConfig() + .equals(other.getObjectTrackingConfig())) return false; break; case 7: - if (!getEventConfig().equals(other.getEventConfig())) return false; + if (!getEventConfig() + .equals(other.getEventConfig())) return false; break; case 0: default: @@ -1022,127 +854,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest 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.datalabeling.v1beta1.LabelVideoRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelVideoRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 LabelVideo.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelVideoRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelVideoRequest) com.google.cloud.datalabeling.v1beta1.LabelVideoRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.class, - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.class, com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.newBuilder() @@ -1150,15 +972,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(); @@ -1178,9 +1001,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor; } @java.lang.Override @@ -1199,8 +1022,7 @@ public com.google.cloud.datalabeling.v1beta1.LabelVideoRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelVideoRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest result = - new com.google.cloud.datalabeling.v1beta1.LabelVideoRequest(this); + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest result = new com.google.cloud.datalabeling.v1beta1.LabelVideoRequest(this); if (requestConfigCase_ == 4) { if (videoClassificationConfigBuilder_ == null) { result.requestConfig_ = requestConfig_; @@ -1245,39 +1067,38 @@ public com.google.cloud.datalabeling.v1beta1.LabelVideoRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelVideoRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelVideoRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelVideoRequest)other); } else { super.mergeFrom(other); return this; @@ -1285,8 +1106,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelVideoRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1298,30 +1118,25 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelVideoRequest setFeatureValue(other.getFeatureValue()); } switch (other.getRequestConfigCase()) { - case VIDEO_CLASSIFICATION_CONFIG: - { - mergeVideoClassificationConfig(other.getVideoClassificationConfig()); - break; - } - case OBJECT_DETECTION_CONFIG: - { - mergeObjectDetectionConfig(other.getObjectDetectionConfig()); - break; - } - case OBJECT_TRACKING_CONFIG: - { - mergeObjectTrackingConfig(other.getObjectTrackingConfig()); - break; - } - case EVENT_CONFIG: - { - mergeEventConfig(other.getEventConfig()); - break; - } - case REQUESTCONFIG_NOT_SET: - { - break; - } + case VIDEO_CLASSIFICATION_CONFIG: { + mergeVideoClassificationConfig(other.getVideoClassificationConfig()); + break; + } + case OBJECT_DETECTION_CONFIG: { + mergeObjectDetectionConfig(other.getObjectDetectionConfig()); + break; + } + case OBJECT_TRACKING_CONFIG: { + mergeObjectTrackingConfig(other.getObjectTrackingConfig()); + break; + } + case EVENT_CONFIG: { + mergeEventConfig(other.getEventConfig()); + break; + } + case REQUESTCONFIG_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1342,8 +1157,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.LabelVideoRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelVideoRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1352,12 +1166,12 @@ public Builder mergeFrom( } return this; } - private int requestConfigCase_ = 0; private java.lang.Object requestConfig_; - - public RequestConfigCase getRequestConfigCase() { - return RequestConfigCase.forNumber(requestConfigCase_); + public RequestConfigCase + getRequestConfigCase() { + return RequestConfigCase.forNumber( + requestConfigCase_); } public Builder clearRequestConfig() { @@ -1367,24 +1181,17 @@ public Builder clearRequestConfig() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder> - videoClassificationConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder> videoClassificationConfigBuilder_; /** - * - * *
      * Configuration for video classification task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; * @return Whether the videoClassificationConfig field is set. */ @java.lang.Override @@ -1392,23 +1199,17 @@ public boolean hasVideoClassificationConfig() { return requestConfigCase_ == 4; } /** - * - * *
      * Configuration for video classification task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; * @return The videoClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - getVideoClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig getVideoClassificationConfig() { if (videoClassificationConfigBuilder_ == null) { if (requestConfigCase_ == 4) { return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_; @@ -1422,20 +1223,15 @@ public boolean hasVideoClassificationConfig() { } } /** - * - * *
      * Configuration for video classification task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; */ - public Builder setVideoClassificationConfig( - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig value) { + public Builder setVideoClassificationConfig(com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig value) { if (videoClassificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1449,17 +1245,13 @@ public Builder setVideoClassificationConfig( return this; } /** - * - * *
      * Configuration for video classification task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; */ public Builder setVideoClassificationConfig( com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder builderForValue) { @@ -1473,31 +1265,20 @@ public Builder setVideoClassificationConfig( return this; } /** - * - * *
      * Configuration for video classification task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; */ - public Builder mergeVideoClassificationConfig( - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig value) { + public Builder mergeVideoClassificationConfig(com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig value) { if (videoClassificationConfigBuilder_ == null) { - if (requestConfigCase_ == 4 - && requestConfig_ - != com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .getDefaultInstance()) { - requestConfig_ = - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.newBuilder( - (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - requestConfig_) - .mergeFrom(value) - .buildPartial(); + if (requestConfigCase_ == 4 && + requestConfig_ != com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance()) { + requestConfig_ = com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_) + .mergeFrom(value).buildPartial(); } else { requestConfig_ = value; } @@ -1513,17 +1294,13 @@ public Builder mergeVideoClassificationConfig( return this; } /** - * - * *
      * Configuration for video classification task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; */ public Builder clearVideoClassificationConfig() { if (videoClassificationConfigBuilder_ == null) { @@ -1542,38 +1319,28 @@ public Builder clearVideoClassificationConfig() { return this; } /** - * - * *
      * Configuration for video classification task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; */ - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder - getVideoClassificationConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder getVideoClassificationConfigBuilder() { return getVideoClassificationConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for video classification task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder - getVideoClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder getVideoClassificationConfigOrBuilder() { if ((requestConfigCase_ == 4) && (videoClassificationConfigBuilder_ != null)) { return videoClassificationConfigBuilder_.getMessageOrBuilder(); } else { @@ -1584,61 +1351,43 @@ public Builder clearVideoClassificationConfig() { } } /** - * - * *
      * Configuration for video classification task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder> getVideoClassificationConfigFieldBuilder() { if (videoClassificationConfigBuilder_ == null) { if (!(requestConfigCase_ == 4)) { - requestConfig_ = - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); + requestConfig_ = com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); } - videoClassificationConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder>( + videoClassificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder>( (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_, getParentForChildren(), isClean()); requestConfig_ = null; } requestConfigCase_ = 4; - onChanged(); - ; + onChanged();; return videoClassificationConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder> - objectDetectionConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder> objectDetectionConfigBuilder_; /** - * - * *
      * Configuration for video object detection task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; * @return Whether the objectDetectionConfig field is set. */ @java.lang.Override @@ -1646,17 +1395,13 @@ public boolean hasObjectDetectionConfig() { return requestConfigCase_ == 5; } /** - * - * *
      * Configuration for video object detection task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; * @return The objectDetectionConfig. */ @java.lang.Override @@ -1674,19 +1419,15 @@ public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig getObjectDete } } /** - * - * *
      * Configuration for video object detection task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; */ - public Builder setObjectDetectionConfig( - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig value) { + public Builder setObjectDetectionConfig(com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig value) { if (objectDetectionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1700,16 +1441,13 @@ public Builder setObjectDetectionConfig( return this; } /** - * - * *
      * Configuration for video object detection task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; */ public Builder setObjectDetectionConfig( com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder builderForValue) { @@ -1723,29 +1461,20 @@ public Builder setObjectDetectionConfig( return this; } /** - * - * *
      * Configuration for video object detection task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; */ - public Builder mergeObjectDetectionConfig( - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig value) { + public Builder mergeObjectDetectionConfig(com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig value) { if (objectDetectionConfigBuilder_ == null) { - if (requestConfigCase_ == 5 - && requestConfig_ - != com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig - .getDefaultInstance()) { - requestConfig_ = - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.newBuilder( - (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_) - .mergeFrom(value) - .buildPartial(); + if (requestConfigCase_ == 5 && + requestConfig_ != com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance()) { + requestConfig_ = com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_) + .mergeFrom(value).buildPartial(); } else { requestConfig_ = value; } @@ -1761,16 +1490,13 @@ public Builder mergeObjectDetectionConfig( return this; } /** - * - * *
      * Configuration for video object detection task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; */ public Builder clearObjectDetectionConfig() { if (objectDetectionConfigBuilder_ == null) { @@ -1789,36 +1515,28 @@ public Builder clearObjectDetectionConfig() { return this; } /** - * - * *
      * Configuration for video object detection task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; */ - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder - getObjectDetectionConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder getObjectDetectionConfigBuilder() { return getObjectDetectionConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for video object detection task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder - getObjectDetectionConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder getObjectDetectionConfigOrBuilder() { if ((requestConfigCase_ == 5) && (objectDetectionConfigBuilder_ != null)) { return objectDetectionConfigBuilder_.getMessageOrBuilder(); } else { @@ -1829,60 +1547,43 @@ public Builder clearObjectDetectionConfig() { } } /** - * - * *
      * Configuration for video object detection task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder> getObjectDetectionConfigFieldBuilder() { if (objectDetectionConfigBuilder_ == null) { if (!(requestConfigCase_ == 5)) { - requestConfig_ = - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); + requestConfig_ = com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); } - objectDetectionConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder>( + objectDetectionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder>( (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_, getParentForChildren(), isClean()); requestConfig_ = null; } requestConfigCase_ = 5; - onChanged(); - ; + onChanged();; return objectDetectionConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder> - objectTrackingConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder> objectTrackingConfigBuilder_; /** - * - * *
      * Configuration for video object tracking task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; * @return Whether the objectTrackingConfig field is set. */ @java.lang.Override @@ -1890,17 +1591,13 @@ public boolean hasObjectTrackingConfig() { return requestConfigCase_ == 6; } /** - * - * *
      * Configuration for video object tracking task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; * @return The objectTrackingConfig. */ @java.lang.Override @@ -1918,19 +1615,15 @@ public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig getObjectTrack } } /** - * - * *
      * Configuration for video object tracking task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; */ - public Builder setObjectTrackingConfig( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig value) { + public Builder setObjectTrackingConfig(com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig value) { if (objectTrackingConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1944,16 +1637,13 @@ public Builder setObjectTrackingConfig( return this; } /** - * - * *
      * Configuration for video object tracking task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; */ public Builder setObjectTrackingConfig( com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder builderForValue) { @@ -1967,29 +1657,20 @@ public Builder setObjectTrackingConfig( return this; } /** - * - * *
      * Configuration for video object tracking task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; */ - public Builder mergeObjectTrackingConfig( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig value) { + public Builder mergeObjectTrackingConfig(com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig value) { if (objectTrackingConfigBuilder_ == null) { - if (requestConfigCase_ == 6 - && requestConfig_ - != com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig - .getDefaultInstance()) { - requestConfig_ = - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.newBuilder( - (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_) - .mergeFrom(value) - .buildPartial(); + if (requestConfigCase_ == 6 && + requestConfig_ != com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance()) { + requestConfig_ = com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_) + .mergeFrom(value).buildPartial(); } else { requestConfig_ = value; } @@ -2005,16 +1686,13 @@ public Builder mergeObjectTrackingConfig( return this; } /** - * - * *
      * Configuration for video object tracking task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; */ public Builder clearObjectTrackingConfig() { if (objectTrackingConfigBuilder_ == null) { @@ -2033,36 +1711,28 @@ public Builder clearObjectTrackingConfig() { return this; } /** - * - * *
      * Configuration for video object tracking task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; */ - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder - getObjectTrackingConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder getObjectTrackingConfigBuilder() { return getObjectTrackingConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Configuration for video object tracking task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder - getObjectTrackingConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder getObjectTrackingConfigOrBuilder() { if ((requestConfigCase_ == 6) && (objectTrackingConfigBuilder_ != null)) { return objectTrackingConfigBuilder_.getMessageOrBuilder(); } else { @@ -2073,51 +1743,36 @@ public Builder clearObjectTrackingConfig() { } } /** - * - * *
      * Configuration for video object tracking task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder> getObjectTrackingConfigFieldBuilder() { if (objectTrackingConfigBuilder_ == null) { if (!(requestConfigCase_ == 6)) { - requestConfig_ = - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); + requestConfig_ = com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); } - objectTrackingConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder>( + objectTrackingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder>( (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_, getParentForChildren(), isClean()); requestConfig_ = null; } requestConfigCase_ = 6; - onChanged(); - ; + onChanged();; return objectTrackingConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EventConfig, - com.google.cloud.datalabeling.v1beta1.EventConfig.Builder, - com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder> - eventConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.EventConfig, com.google.cloud.datalabeling.v1beta1.EventConfig.Builder, com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder> eventConfigBuilder_; /** - * - * *
      * Configuration for video event task.
      * One of video_classification_config, object_detection_config,
@@ -2125,7 +1780,6 @@ public Builder clearObjectTrackingConfig() {
      * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 7; - * * @return Whether the eventConfig field is set. */ @java.lang.Override @@ -2133,8 +1787,6 @@ public boolean hasEventConfig() { return requestConfigCase_ == 7; } /** - * - * *
      * Configuration for video event task.
      * One of video_classification_config, object_detection_config,
@@ -2142,7 +1794,6 @@ public boolean hasEventConfig() {
      * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 7; - * * @return The eventConfig. */ @java.lang.Override @@ -2160,8 +1811,6 @@ public com.google.cloud.datalabeling.v1beta1.EventConfig getEventConfig() { } } /** - * - * *
      * Configuration for video event task.
      * One of video_classification_config, object_detection_config,
@@ -2184,8 +1833,6 @@ public Builder setEventConfig(com.google.cloud.datalabeling.v1beta1.EventConfig
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration for video event task.
      * One of video_classification_config, object_detection_config,
@@ -2206,8 +1853,6 @@ public Builder setEventConfig(
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration for video event task.
      * One of video_classification_config, object_detection_config,
@@ -2218,14 +1863,10 @@ public Builder setEventConfig(
      */
     public Builder mergeEventConfig(com.google.cloud.datalabeling.v1beta1.EventConfig value) {
       if (eventConfigBuilder_ == null) {
-        if (requestConfigCase_ == 7
-            && requestConfig_
-                != com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance()) {
-          requestConfig_ =
-              com.google.cloud.datalabeling.v1beta1.EventConfig.newBuilder(
-                      (com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (requestConfigCase_ == 7 &&
+            requestConfig_ != com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance()) {
+          requestConfig_ = com.google.cloud.datalabeling.v1beta1.EventConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_)
+              .mergeFrom(value).buildPartial();
         } else {
           requestConfig_ = value;
         }
@@ -2241,8 +1882,6 @@ public Builder mergeEventConfig(com.google.cloud.datalabeling.v1beta1.EventConfi
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration for video event task.
      * One of video_classification_config, object_detection_config,
@@ -2268,8 +1907,6 @@ public Builder clearEventConfig() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Configuration for video event task.
      * One of video_classification_config, object_detection_config,
@@ -2282,8 +1919,6 @@ public com.google.cloud.datalabeling.v1beta1.EventConfig.Builder getEventConfigB
       return getEventConfigFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Configuration for video event task.
      * One of video_classification_config, object_detection_config,
@@ -2304,8 +1939,6 @@ public com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder getEventConfig
       }
     }
     /**
-     *
-     *
      * 
      * Configuration for video event task.
      * One of video_classification_config, object_detection_config,
@@ -2315,49 +1948,39 @@ public com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder getEventConfig
      * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.EventConfig,
-            com.google.cloud.datalabeling.v1beta1.EventConfig.Builder,
-            com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder>
+        com.google.cloud.datalabeling.v1beta1.EventConfig, com.google.cloud.datalabeling.v1beta1.EventConfig.Builder, com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder> 
         getEventConfigFieldBuilder() {
       if (eventConfigBuilder_ == null) {
         if (!(requestConfigCase_ == 7)) {
           requestConfig_ = com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance();
         }
-        eventConfigBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.datalabeling.v1beta1.EventConfig,
-                com.google.cloud.datalabeling.v1beta1.EventConfig.Builder,
-                com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder>(
+        eventConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.datalabeling.v1beta1.EventConfig, com.google.cloud.datalabeling.v1beta1.EventConfig.Builder, com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder>(
                 (com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_,
                 getParentForChildren(),
                 isClean());
         requestConfig_ = null;
       }
       requestConfigCase_ = 7;
-      onChanged();
-      ;
+      onChanged();;
       return eventConfigBuilder_;
     }
 
     private java.lang.Object parent_ = "";
     /**
-     *
-     *
      * 
      * Required. Name of the dataset to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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; @@ -2366,24 +1989,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the dataset to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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 { @@ -2391,70 +2011,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the dataset to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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. Name of the dataset to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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. Name of the dataset to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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; @@ -2462,61 +2069,41 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> - basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder setBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2530,15 +2117,11 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setBasicConfig( com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder builderForValue) { @@ -2552,24 +2135,17 @@ public Builder setBasicConfig( return this; } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder mergeBasicConfig( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); } else { basicConfig_ = value; } @@ -2581,15 +2157,11 @@ public Builder mergeBasicConfig( return this; } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearBasicConfig() { if (basicConfigBuilder_ == null) { @@ -2603,66 +2175,48 @@ public Builder clearBasicConfig() { return this; } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder - getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder - getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() - : basicConfig_; + return basicConfig_ == null ? + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; } } /** - * - * *
      * Required. Basic human annotation config.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), getParentForChildren(), isClean()); + basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), + getParentForChildren(), + isClean()); basicConfig_ = null; } return basicConfigBuilder_; @@ -2670,110 +2224,80 @@ public Builder clearBasicConfig() { private int feature_ = 0; /** - * - * *
      * Required. The type of video labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for feature. */ - @java.lang.Override - public int getFeatureValue() { + @java.lang.Override public int getFeatureValue() { return feature_; } /** - * - * *
      * Required. The type of video labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for feature to set. * @return This builder for chaining. */ public Builder setFeatureValue(int value) { - + feature_ = value; onChanged(); return this; } /** - * - * *
      * Required. The type of video labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The feature. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature getFeature() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature result = - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.valueOf(feature_); - return result == null - ? com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.UNRECOGNIZED - : result; + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature result = com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.valueOf(feature_); + return result == null ? com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.UNRECOGNIZED : result; } /** - * - * *
      * Required. The type of video labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The feature to set. * @return This builder for chaining. */ - public Builder setFeature( - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature value) { + public Builder setFeature(com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature value) { if (value == null) { throw new NullPointerException(); } - + feature_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The type of video labeling task.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearFeature() { - + feature_ = 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); } @@ -2783,12 +2307,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelVideoRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelVideoRequest) private static final com.google.cloud.datalabeling.v1beta1.LabelVideoRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelVideoRequest(); } @@ -2797,16 +2321,16 @@ public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelVideoRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelVideoRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelVideoRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelVideoRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2821,4 +2345,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.LabelVideoRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequestOrBuilder.java similarity index 68% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequestOrBuilder.java index 459fafca..e0f709aa 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequestOrBuilder.java @@ -1,169 +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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelVideoRequestOrBuilder - extends +public interface LabelVideoRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelVideoRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Configuration for video classification task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; * @return Whether the videoClassificationConfig field is set. */ boolean hasVideoClassificationConfig(); /** - * - * *
    * Configuration for video classification task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; - * - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; * @return The videoClassificationConfig. */ com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig getVideoClassificationConfig(); /** - * - * *
    * Configuration for video classification task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; - * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; */ - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder - getVideoClassificationConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder getVideoClassificationConfigOrBuilder(); /** - * - * *
    * Configuration for video object detection task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; * @return Whether the objectDetectionConfig field is set. */ boolean hasObjectDetectionConfig(); /** - * - * *
    * Configuration for video object detection task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; * @return The objectDetectionConfig. */ com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig getObjectDetectionConfig(); /** - * - * *
    * Configuration for video object detection task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; - * + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; */ - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder - getObjectDetectionConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder getObjectDetectionConfigOrBuilder(); /** - * - * *
    * Configuration for video object tracking task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; * @return Whether the objectTrackingConfig field is set. */ boolean hasObjectTrackingConfig(); /** - * - * *
    * Configuration for video object tracking task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; - * - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; * @return The objectTrackingConfig. */ com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig getObjectTrackingConfig(); /** - * - * *
    * Configuration for video object tracking task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; - * + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; */ - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder - getObjectTrackingConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder getObjectTrackingConfigOrBuilder(); /** - * - * *
    * Configuration for video event task.
    * One of video_classification_config, object_detection_config,
@@ -171,13 +114,10 @@ public interface LabelVideoRequestOrBuilder
    * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 7; - * * @return Whether the eventConfig field is set. */ boolean hasEventConfig(); /** - * - * *
    * Configuration for video event task.
    * One of video_classification_config, object_detection_config,
@@ -185,13 +125,10 @@ public interface LabelVideoRequestOrBuilder
    * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 7; - * * @return The eventConfig. */ com.google.cloud.datalabeling.v1beta1.EventConfig getEventConfig(); /** - * - * *
    * Configuration for video event task.
    * One of video_classification_config, object_detection_config,
@@ -203,106 +140,72 @@ public interface LabelVideoRequestOrBuilder
   com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder getEventConfigOrBuilder();
 
   /**
-   *
-   *
    * 
    * Required. Name of the dataset to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * 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. Name of the dataset to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * 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. Basic human annotation config.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** - * - * *
    * Required. Basic human annotation config.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** - * - * *
    * Required. Basic human annotation config.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder(); /** - * - * *
    * Required. The type of video labeling task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for feature. */ int getFeatureValue(); /** - * - * *
    * Required. The type of video labeling task.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The feature. */ com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature getFeature(); - public com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.RequestConfigCase - getRequestConfigCase(); + public com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.RequestConfigCase getRequestConfigCase(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequest.java similarity index 69% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequest.java index c2ab42a3..8c1b13e9 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for ListAnnotatedDatasets.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest} */ -public final class ListAnnotatedDatasetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAnnotatedDatasetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) ListAnnotatedDatasetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAnnotatedDatasetsRequest.newBuilder() to construct. private ListAnnotatedDatasetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAnnotatedDatasetsRequest() { parent_ = ""; filter_ = ""; @@ -45,15 +27,16 @@ private ListAnnotatedDatasetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAnnotatedDatasetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListAnnotatedDatasetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListAnnotatedDatasetsRequest( 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: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 24: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 34: { + 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) { @@ -112,42 +92,35 @@ private ListAnnotatedDatasetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.class, - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.class, com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Name of the dataset to list annotated datasets, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * 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 @@ -156,32 +129,30 @@ 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. Name of the dataset to list annotated datasets, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * 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,14 +163,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -208,29 +176,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; } } /** - * - * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -241,15 +209,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -260,8 +225,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -271,7 +234,6 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -280,15 +242,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; } } /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -298,15 +259,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -315,7 +277,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -327,7 +288,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_); } @@ -356,7 +318,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -369,18 +332,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.datalabeling.v1beta1.ListAnnotatedDatasetsRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest other = - (com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) 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.datalabeling.v1beta1.ListAnnotatedDatasetsRequest other = (com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) 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; } @@ -406,145 +372,134 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest 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.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest - 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.datalabeling.v1beta1.ListAnnotatedDatasetsRequest 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.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListAnnotatedDatasets.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.class, - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.class, com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.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,16 +515,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.getDefaultInstance(); } @java.lang.Override @@ -583,8 +536,7 @@ public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest build( @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest result = - new com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest(this); + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest result = new com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -597,51 +549,46 @@ public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest 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.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest other) { - if (other - == com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest other) { + if (other == com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -676,9 +623,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -690,23 +635,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the dataset to list annotated datasets, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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; @@ -715,24 +656,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the dataset to list annotated datasets, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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 { @@ -740,70 +678,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the dataset to list annotated datasets, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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. Name of the dataset to list annotated datasets, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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. Name of the dataset to list annotated datasets, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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; @@ -811,20 +736,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -833,21 +756,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -855,77 +777,67 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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_ ; /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -933,38 +845,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -972,8 +878,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -983,13 +887,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -998,8 +902,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1009,14 +911,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1024,8 +927,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1035,22 +936,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1060,18 +959,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1081,23 +977,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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); } @@ -1107,32 +1003,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) - private static final com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest(); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAnnotatedDatasetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAnnotatedDatasetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAnnotatedDatasetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAnnotatedDatasetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1144,8 +1038,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequestOrBuilder.java similarity index 67% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequestOrBuilder.java index dbe7faa5..70c28503 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequestOrBuilder.java @@ -1,101 +1,66 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListAnnotatedDatasetsRequestOrBuilder - extends +public interface ListAnnotatedDatasetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the dataset to list annotated datasets, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * 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. Name of the dataset to list annotated datasets, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * 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(); /** - * - * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -105,13 +70,10 @@ public interface ListAnnotatedDatasetsRequestOrBuilder
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -121,8 +83,8 @@ public interface ListAnnotatedDatasetsRequestOrBuilder
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponse.java similarity index 68% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponse.java index 064a10ad..c4308c7d 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponse.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Results of listing annotated datasets for a dataset.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse} */ -public final class ListAnnotatedDatasetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAnnotatedDatasetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) ListAnnotatedDatasetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAnnotatedDatasetsResponse.newBuilder() to construct. private ListAnnotatedDatasetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAnnotatedDatasetsResponse() { annotatedDatasets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListAnnotatedDatasetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAnnotatedDatasetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListAnnotatedDatasetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,34 +55,28 @@ private ListAnnotatedDatasetsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - annotatedDatasets_ = - new java.util.ArrayList< - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset>(); - mutable_bitField0_ |= 0x00000001; - } - annotatedDatasets_.add( - input.readMessage( - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + annotatedDatasets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + annotatedDatasets_.add( + input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.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) { @@ -107,7 +84,8 @@ private ListAnnotatedDatasetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { annotatedDatasets_ = java.util.Collections.unmodifiableList(annotatedDatasets_); @@ -116,109 +94,87 @@ private ListAnnotatedDatasetsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.class, - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.class, com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.Builder.class); } public static final int ANNOTATED_DATASETS_FIELD_NUMBER = 1; private java.util.List annotatedDatasets_; /** - * - * *
    * The list of annotated datasets to return.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ @java.lang.Override - public java.util.List - getAnnotatedDatasetsList() { + public java.util.List getAnnotatedDatasetsList() { return annotatedDatasets_; } /** - * - * *
    * The list of annotated datasets to return.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getAnnotatedDatasetsOrBuilderList() { return annotatedDatasets_; } /** - * - * *
    * The list of annotated datasets to return.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ @java.lang.Override public int getAnnotatedDatasetsCount() { return annotatedDatasets_.size(); } /** - * - * *
    * The list of annotated datasets to return.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset getAnnotatedDatasets(int index) { return annotatedDatasets_.get(index); } /** - * - * *
    * The list of annotated datasets to return.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder - getAnnotatedDatasetsOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder getAnnotatedDatasetsOrBuilder( + int index) { return annotatedDatasets_.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.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -227,29 +183,29 @@ 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.
    * 
* * 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 { @@ -258,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,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 < annotatedDatasets_.size(); i++) { output.writeMessage(1, annotatedDatasets_.get(i)); } @@ -287,8 +243,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < annotatedDatasets_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, annotatedDatasets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, annotatedDatasets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -301,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.datalabeling.v1beta1.ListAnnotatedDatasetsResponse)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse other = - (com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) obj; + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse other = (com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) obj; - if (!getAnnotatedDatasetsList().equals(other.getAnnotatedDatasetsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getAnnotatedDatasetsList() + .equals(other.getAnnotatedDatasetsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -334,147 +291,135 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse 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.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse - 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.datalabeling.v1beta1.ListAnnotatedDatasetsResponse 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.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Results of listing annotated datasets for a dataset.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.class, - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.class, com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.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) { getAnnotatedDatasetsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -490,16 +435,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.getDefaultInstance(); } @java.lang.Override @@ -513,8 +456,7 @@ public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse build @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse result = - new com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse(this); + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse result = new com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse(this); int from_bitField0_ = bitField0_; if (annotatedDatasetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -534,51 +476,46 @@ public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse 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.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse other) { - if (other - == com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse other) { + if (other == com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.getDefaultInstance()) return this; if (annotatedDatasetsBuilder_ == null) { if (!other.annotatedDatasets_.isEmpty()) { if (annotatedDatasets_.isEmpty()) { @@ -597,10 +534,9 @@ public Builder mergeFrom( annotatedDatasetsBuilder_ = null; annotatedDatasets_ = other.annotatedDatasets_; bitField0_ = (bitField0_ & ~0x00000001); - annotatedDatasetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAnnotatedDatasetsFieldBuilder() - : null; + annotatedDatasetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAnnotatedDatasetsFieldBuilder() : null; } else { annotatedDatasetsBuilder_.addAllMessages(other.annotatedDatasets_); } @@ -629,9 +565,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -640,39 +574,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - annotatedDatasets_ = java.util.Collections.emptyList(); - + private java.util.List annotatedDatasets_ = + java.util.Collections.emptyList(); private void ensureAnnotatedDatasetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - annotatedDatasets_ = - new java.util.ArrayList( - annotatedDatasets_); + annotatedDatasets_ = new java.util.ArrayList(annotatedDatasets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset, - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder> - annotatedDatasetsBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset, com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder, com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder> annotatedDatasetsBuilder_; /** - * - * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ - public java.util.List - getAnnotatedDatasetsList() { + public java.util.List getAnnotatedDatasetsList() { if (annotatedDatasetsBuilder_ == null) { return java.util.Collections.unmodifiableList(annotatedDatasets_); } else { @@ -680,14 +603,11 @@ private void ensureAnnotatedDatasetsIsMutable() { } } /** - * - * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ public int getAnnotatedDatasetsCount() { if (annotatedDatasetsBuilder_ == null) { @@ -697,14 +617,11 @@ public int getAnnotatedDatasetsCount() { } } /** - * - * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset getAnnotatedDatasets(int index) { if (annotatedDatasetsBuilder_ == null) { @@ -714,14 +631,11 @@ public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset getAnnotatedDatase } } /** - * - * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ public Builder setAnnotatedDatasets( int index, com.google.cloud.datalabeling.v1beta1.AnnotatedDataset value) { @@ -738,14 +652,11 @@ public Builder setAnnotatedDatasets( return this; } /** - * - * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ public Builder setAnnotatedDatasets( int index, com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder builderForValue) { @@ -759,17 +670,13 @@ public Builder setAnnotatedDatasets( return this; } /** - * - * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ - public Builder addAnnotatedDatasets( - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset value) { + public Builder addAnnotatedDatasets(com.google.cloud.datalabeling.v1beta1.AnnotatedDataset value) { if (annotatedDatasetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -783,14 +690,11 @@ public Builder addAnnotatedDatasets( return this; } /** - * - * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ public Builder addAnnotatedDatasets( int index, com.google.cloud.datalabeling.v1beta1.AnnotatedDataset value) { @@ -807,14 +711,11 @@ public Builder addAnnotatedDatasets( return this; } /** - * - * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ public Builder addAnnotatedDatasets( com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder builderForValue) { @@ -828,14 +729,11 @@ public Builder addAnnotatedDatasets( return this; } /** - * - * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ public Builder addAnnotatedDatasets( int index, com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder builderForValue) { @@ -849,21 +747,18 @@ public Builder addAnnotatedDatasets( return this; } /** - * - * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ public Builder addAllAnnotatedDatasets( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (annotatedDatasetsBuilder_ == null) { ensureAnnotatedDatasetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotatedDatasets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, annotatedDatasets_); onChanged(); } else { annotatedDatasetsBuilder_.addAllMessages(values); @@ -871,14 +766,11 @@ public Builder addAllAnnotatedDatasets( return this; } /** - * - * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ public Builder clearAnnotatedDatasets() { if (annotatedDatasetsBuilder_ == null) { @@ -891,14 +783,11 @@ public Builder clearAnnotatedDatasets() { return this; } /** - * - * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ public Builder removeAnnotatedDatasets(int index) { if (annotatedDatasetsBuilder_ == null) { @@ -911,49 +800,39 @@ public Builder removeAnnotatedDatasets(int index) { return this; } /** - * - * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder - getAnnotatedDatasetsBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder getAnnotatedDatasetsBuilder( + int index) { return getAnnotatedDatasetsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder - getAnnotatedDatasetsOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder getAnnotatedDatasetsOrBuilder( + int index) { if (annotatedDatasetsBuilder_ == null) { - return annotatedDatasets_.get(index); - } else { + return annotatedDatasets_.get(index); } else { return annotatedDatasetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ - public java.util.List - getAnnotatedDatasetsOrBuilderList() { + public java.util.List + getAnnotatedDatasetsOrBuilderList() { if (annotatedDatasetsBuilder_ != null) { return annotatedDatasetsBuilder_.getMessageOrBuilderList(); } else { @@ -961,62 +840,45 @@ public Builder removeAnnotatedDatasets(int index) { } } /** - * - * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder - addAnnotatedDatasetsBuilder() { - return getAnnotatedDatasetsFieldBuilder() - .addBuilder(com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder addAnnotatedDatasetsBuilder() { + return getAnnotatedDatasetsFieldBuilder().addBuilder( + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.getDefaultInstance()); } /** - * - * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder - addAnnotatedDatasetsBuilder(int index) { - return getAnnotatedDatasetsFieldBuilder() - .addBuilder( - index, com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder addAnnotatedDatasetsBuilder( + int index) { + return getAnnotatedDatasetsFieldBuilder().addBuilder( + index, com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.getDefaultInstance()); } /** - * - * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ - public java.util.List - getAnnotatedDatasetsBuilderList() { + public java.util.List + getAnnotatedDatasetsBuilderList() { return getAnnotatedDatasetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset, - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset, com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder, com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder> getAnnotatedDatasetsFieldBuilder() { if (annotatedDatasetsBuilder_ == null) { - annotatedDatasetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset, - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder>( + annotatedDatasetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset, com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder, com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder>( annotatedDatasets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1028,20 +890,18 @@ public Builder removeAnnotatedDatasets(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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; @@ -1050,21 +910,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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 { @@ -1072,68 +931,61 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -1143,32 +995,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) - private static final com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse(); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAnnotatedDatasetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAnnotatedDatasetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAnnotatedDatasetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAnnotatedDatasetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1180,8 +1030,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponseOrBuilder.java similarity index 63% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponseOrBuilder.java index 7618200e..decd9564 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponseOrBuilder.java @@ -1,108 +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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListAnnotatedDatasetsResponseOrBuilder - extends +public interface ListAnnotatedDatasetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of annotated datasets to return.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ - java.util.List getAnnotatedDatasetsList(); + java.util.List + getAnnotatedDatasetsList(); /** - * - * *
    * The list of annotated datasets to return.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ com.google.cloud.datalabeling.v1beta1.AnnotatedDataset getAnnotatedDatasets(int index); /** - * - * *
    * The list of annotated datasets to return.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ int getAnnotatedDatasetsCount(); /** - * - * *
    * The list of annotated datasets to return.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ - java.util.List + java.util.List getAnnotatedDatasetsOrBuilderList(); /** - * - * *
    * The list of annotated datasets to return.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; */ com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder getAnnotatedDatasetsOrBuilder( int index); /** - * - * *
    * A token to retrieve next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results.
    * 
* * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequest.java similarity index 69% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequest.java index a6430767..7291d223 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for ListAnnotationSpecSets.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest} */ -public final class ListAnnotationSpecSetsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAnnotationSpecSetsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) ListAnnotationSpecSetsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAnnotationSpecSetsRequest.newBuilder() to construct. private ListAnnotationSpecSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAnnotationSpecSetsRequest() { parent_ = ""; filter_ = ""; @@ -45,15 +27,16 @@ private ListAnnotationSpecSetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAnnotationSpecSetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListAnnotationSpecSetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListAnnotationSpecSetsRequest( 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: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 24: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 34: { + 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) { @@ -112,42 +92,35 @@ private ListAnnotationSpecSetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.class, - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.class, com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent of AnnotationSpecSet resource, format:
    * projects/{project_id}
    * 
* - * - * 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 @@ -156,32 +129,30 @@ 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. Parent of AnnotationSpecSet resource, format:
    * projects/{project_id}
    * 
* - * - * 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,14 +163,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -208,29 +176,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; } } /** - * - * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -241,15 +209,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -260,8 +225,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -271,7 +234,6 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -280,15 +242,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; } } /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -298,15 +259,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -315,7 +277,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -327,7 +288,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_); } @@ -356,7 +318,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -369,18 +332,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.datalabeling.v1beta1.ListAnnotationSpecSetsRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest other = - (com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) 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.datalabeling.v1beta1.ListAnnotationSpecSetsRequest other = (com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) 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; } @@ -406,145 +372,134 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest 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.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest - 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.datalabeling.v1beta1.ListAnnotationSpecSetsRequest 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.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListAnnotationSpecSets.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.class, - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.class, com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.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,16 +515,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.getDefaultInstance(); } @java.lang.Override @@ -583,8 +536,7 @@ public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest build @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest result = - new com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest(this); + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest result = new com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -597,51 +549,46 @@ public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest 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.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest other) { - if (other - == com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest other) { + if (other == com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -676,9 +623,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -690,23 +635,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent of AnnotationSpecSet resource, format:
      * projects/{project_id}
      * 
* - * - * 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; @@ -715,24 +656,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent of AnnotationSpecSet resource, format:
      * projects/{project_id}
      * 
* - * - * 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 { @@ -740,70 +678,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent of AnnotationSpecSet resource, format:
      * projects/{project_id}
      * 
* - * - * 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. Parent of AnnotationSpecSet resource, format:
      * projects/{project_id}
      * 
* - * - * 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. Parent of AnnotationSpecSet resource, format:
      * projects/{project_id}
      * 
* - * - * 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; @@ -811,20 +736,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -833,21 +756,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -855,77 +777,67 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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_ ; /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -933,38 +845,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -972,8 +878,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -983,13 +887,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -998,8 +902,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1009,14 +911,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1024,8 +927,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1035,22 +936,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1060,18 +959,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1081,23 +977,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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); } @@ -1107,32 +1003,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) - private static final com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest(); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAnnotationSpecSetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAnnotationSpecSetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAnnotationSpecSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAnnotationSpecSetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1144,8 +1038,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequestOrBuilder.java similarity index 67% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequestOrBuilder.java index c7020472..801bd3fa 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequestOrBuilder.java @@ -1,101 +1,66 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListAnnotationSpecSetsRequestOrBuilder - extends +public interface ListAnnotationSpecSetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent of AnnotationSpecSet resource, format:
    * projects/{project_id}
    * 
* - * - * 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. Parent of AnnotationSpecSet resource, format:
    * projects/{project_id}
    * 
* - * - * 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(); /** - * - * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -105,13 +70,10 @@ public interface ListAnnotationSpecSetsRequestOrBuilder
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -121,8 +83,8 @@ public interface ListAnnotationSpecSetsRequestOrBuilder
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponse.java similarity index 67% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponse.java index cdb5e1bb..201f90ec 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponse.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Results of listing annotation spec set under a project.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse} */ -public final class ListAnnotationSpecSetsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListAnnotationSpecSetsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) ListAnnotationSpecSetsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListAnnotationSpecSetsResponse.newBuilder() to construct. - private ListAnnotationSpecSetsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListAnnotationSpecSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListAnnotationSpecSetsResponse() { annotationSpecSets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +26,16 @@ private ListAnnotationSpecSetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListAnnotationSpecSetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListAnnotationSpecSetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,34 +55,28 @@ private ListAnnotationSpecSetsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - annotationSpecSets_ = - new java.util.ArrayList< - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet>(); - mutable_bitField0_ |= 0x00000001; - } - annotationSpecSets_.add( - input.readMessage( - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + annotationSpecSets_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + annotationSpecSets_.add( + input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.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) { @@ -108,7 +84,8 @@ private ListAnnotationSpecSetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { annotationSpecSets_ = java.util.Collections.unmodifiableList(annotationSpecSets_); @@ -117,110 +94,87 @@ private ListAnnotationSpecSetsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.class, - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.class, com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.Builder.class); } public static final int ANNOTATION_SPEC_SETS_FIELD_NUMBER = 1; - private java.util.List - annotationSpecSets_; + private java.util.List annotationSpecSets_; /** - * - * *
    * The list of annotation spec sets.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ @java.lang.Override - public java.util.List - getAnnotationSpecSetsList() { + public java.util.List getAnnotationSpecSetsList() { return annotationSpecSets_; } /** - * - * *
    * The list of annotation spec sets.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getAnnotationSpecSetsOrBuilderList() { return annotationSpecSets_; } /** - * - * *
    * The list of annotation spec sets.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ @java.lang.Override public int getAnnotationSpecSetsCount() { return annotationSpecSets_.size(); } /** - * - * *
    * The list of annotation spec sets.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpecSets(int index) { return annotationSpecSets_.get(index); } /** - * - * *
    * The list of annotation spec sets.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder - getAnnotationSpecSetsOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder getAnnotationSpecSetsOrBuilder( + int index) { return annotationSpecSets_.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.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -229,29 +183,29 @@ 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.
    * 
* * 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 { @@ -260,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,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 < annotationSpecSets_.size(); i++) { output.writeMessage(1, annotationSpecSets_.get(i)); } @@ -289,8 +243,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < annotationSpecSets_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, annotationSpecSets_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, annotationSpecSets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -303,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.datalabeling.v1beta1.ListAnnotationSpecSetsResponse)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse other = - (com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) obj; + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse other = (com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) obj; - if (!getAnnotationSpecSetsList().equals(other.getAnnotationSpecSetsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getAnnotationSpecSetsList() + .equals(other.getAnnotationSpecSetsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -336,147 +291,135 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse 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.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse - 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.datalabeling.v1beta1.ListAnnotationSpecSetsResponse 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.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Results of listing annotation spec set under a project.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.class, - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.class, com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.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) { getAnnotationSpecSetsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -492,16 +435,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.getDefaultInstance(); } @java.lang.Override @@ -515,8 +456,7 @@ public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse buil @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse result = - new com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse(this); + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse result = new com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse(this); int from_bitField0_ = bitField0_; if (annotationSpecSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -536,51 +476,46 @@ public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse 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.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse other) { - if (other - == com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse other) { + if (other == com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.getDefaultInstance()) return this; if (annotationSpecSetsBuilder_ == null) { if (!other.annotationSpecSets_.isEmpty()) { if (annotationSpecSets_.isEmpty()) { @@ -599,10 +534,9 @@ public Builder mergeFrom( annotationSpecSetsBuilder_ = null; annotationSpecSets_ = other.annotationSpecSets_; bitField0_ = (bitField0_ & ~0x00000001); - annotationSpecSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAnnotationSpecSetsFieldBuilder() - : null; + annotationSpecSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAnnotationSpecSetsFieldBuilder() : null; } else { annotationSpecSetsBuilder_.addAllMessages(other.annotationSpecSets_); } @@ -631,9 +565,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -642,39 +574,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - annotationSpecSets_ = java.util.Collections.emptyList(); - + private java.util.List annotationSpecSets_ = + java.util.Collections.emptyList(); private void ensureAnnotationSpecSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - annotationSpecSets_ = - new java.util.ArrayList( - annotationSpecSets_); + annotationSpecSets_ = new java.util.ArrayList(annotationSpecSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder> - annotationSpecSetsBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder> annotationSpecSetsBuilder_; /** - * - * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ - public java.util.List - getAnnotationSpecSetsList() { + public java.util.List getAnnotationSpecSetsList() { if (annotationSpecSetsBuilder_ == null) { return java.util.Collections.unmodifiableList(annotationSpecSets_); } else { @@ -682,14 +603,11 @@ private void ensureAnnotationSpecSetsIsMutable() { } } /** - * - * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ public int getAnnotationSpecSetsCount() { if (annotationSpecSetsBuilder_ == null) { @@ -699,17 +617,13 @@ public int getAnnotationSpecSetsCount() { } } /** - * - * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpecSets( - int index) { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpecSets(int index) { if (annotationSpecSetsBuilder_ == null) { return annotationSpecSets_.get(index); } else { @@ -717,14 +631,11 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpec } } /** - * - * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ public Builder setAnnotationSpecSets( int index, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet value) { @@ -741,18 +652,14 @@ public Builder setAnnotationSpecSets( return this; } /** - * - * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ public Builder setAnnotationSpecSets( - int index, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder builderForValue) { + int index, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder builderForValue) { if (annotationSpecSetsBuilder_ == null) { ensureAnnotationSpecSetsIsMutable(); annotationSpecSets_.set(index, builderForValue.build()); @@ -763,17 +670,13 @@ public Builder setAnnotationSpecSets( return this; } /** - * - * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ - public Builder addAnnotationSpecSets( - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet value) { + public Builder addAnnotationSpecSets(com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet value) { if (annotationSpecSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -787,14 +690,11 @@ public Builder addAnnotationSpecSets( return this; } /** - * - * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ public Builder addAnnotationSpecSets( int index, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet value) { @@ -811,14 +711,11 @@ public Builder addAnnotationSpecSets( return this; } /** - * - * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ public Builder addAnnotationSpecSets( com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder builderForValue) { @@ -832,18 +729,14 @@ public Builder addAnnotationSpecSets( return this; } /** - * - * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ public Builder addAnnotationSpecSets( - int index, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder builderForValue) { + int index, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder builderForValue) { if (annotationSpecSetsBuilder_ == null) { ensureAnnotationSpecSetsIsMutable(); annotationSpecSets_.add(index, builderForValue.build()); @@ -854,21 +747,18 @@ public Builder addAnnotationSpecSets( return this; } /** - * - * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ public Builder addAllAnnotationSpecSets( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (annotationSpecSetsBuilder_ == null) { ensureAnnotationSpecSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationSpecSets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, annotationSpecSets_); onChanged(); } else { annotationSpecSetsBuilder_.addAllMessages(values); @@ -876,14 +766,11 @@ public Builder addAllAnnotationSpecSets( return this; } /** - * - * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ public Builder clearAnnotationSpecSets() { if (annotationSpecSetsBuilder_ == null) { @@ -896,14 +783,11 @@ public Builder clearAnnotationSpecSets() { return this; } /** - * - * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ public Builder removeAnnotationSpecSets(int index) { if (annotationSpecSetsBuilder_ == null) { @@ -916,50 +800,39 @@ public Builder removeAnnotationSpecSets(int index) { return this; } /** - * - * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder - getAnnotationSpecSetsBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder getAnnotationSpecSetsBuilder( + int index) { return getAnnotationSpecSetsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder - getAnnotationSpecSetsOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder getAnnotationSpecSetsOrBuilder( + int index) { if (annotationSpecSetsBuilder_ == null) { - return annotationSpecSets_.get(index); - } else { + return annotationSpecSets_.get(index); } else { return annotationSpecSetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ - public java.util.List< - ? extends com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder> - getAnnotationSpecSetsOrBuilderList() { + public java.util.List + getAnnotationSpecSetsOrBuilderList() { if (annotationSpecSetsBuilder_ != null) { return annotationSpecSetsBuilder_.getMessageOrBuilderList(); } else { @@ -967,62 +840,45 @@ public Builder removeAnnotationSpecSets(int index) { } } /** - * - * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder - addAnnotationSpecSetsBuilder() { - return getAnnotationSpecSetsFieldBuilder() - .addBuilder(com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder addAnnotationSpecSetsBuilder() { + return getAnnotationSpecSetsFieldBuilder().addBuilder( + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance()); } /** - * - * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder - addAnnotationSpecSetsBuilder(int index) { - return getAnnotationSpecSetsFieldBuilder() - .addBuilder( - index, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder addAnnotationSpecSetsBuilder( + int index) { + return getAnnotationSpecSetsFieldBuilder().addBuilder( + index, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance()); } /** - * - * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ - public java.util.List - getAnnotationSpecSetsBuilderList() { + public java.util.List + getAnnotationSpecSetsBuilderList() { return getAnnotationSpecSetsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder> getAnnotationSpecSetsFieldBuilder() { if (annotationSpecSetsBuilder_ == null) { - annotationSpecSetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder>( + annotationSpecSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder>( annotationSpecSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1034,20 +890,18 @@ public Builder removeAnnotationSpecSets(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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; @@ -1056,21 +910,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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 { @@ -1078,68 +931,61 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -1149,32 +995,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) - private static final com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse(); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAnnotationSpecSetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAnnotationSpecSetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAnnotationSpecSetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAnnotationSpecSetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1186,8 +1030,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponseOrBuilder.java similarity index 63% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponseOrBuilder.java index ac656eca..7f6b3eb4 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponseOrBuilder.java @@ -1,109 +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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListAnnotationSpecSetsResponseOrBuilder - extends +public interface ListAnnotationSpecSetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of annotation spec sets.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ - java.util.List + java.util.List getAnnotationSpecSetsList(); /** - * - * *
    * The list of annotation spec sets.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpecSets(int index); /** - * - * *
    * The list of annotation spec sets.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ int getAnnotationSpecSetsCount(); /** - * - * *
    * The list of annotation spec sets.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ - java.util.List + java.util.List getAnnotationSpecSetsOrBuilderList(); /** - * - * *
    * The list of annotation spec sets.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; */ com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder getAnnotationSpecSetsOrBuilder( int index); /** - * - * *
    * A token to retrieve next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results.
    * 
* * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequest.java similarity index 71% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequest.java index ea4c1e65..1eed3f0b 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for ListDataItems.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListDataItemsRequest} */ -public final class ListDataItemsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDataItemsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListDataItemsRequest) ListDataItemsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDataItemsRequest.newBuilder() to construct. private ListDataItemsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDataItemsRequest() { parent_ = ""; filter_ = ""; @@ -45,15 +27,16 @@ private ListDataItemsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDataItemsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListDataItemsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListDataItemsRequest( 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: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 24: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 34: { + 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) { @@ -112,42 +92,35 @@ private ListDataItemsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.class, - com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.class, com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Name of the dataset to list data items, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * 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 @@ -156,32 +129,30 @@ 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. Name of the dataset to list data items, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * 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,14 +163,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -208,29 +176,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; } } /** - * - * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -241,15 +209,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -260,8 +225,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -271,7 +234,6 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -280,15 +242,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; } } /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -298,15 +259,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -315,7 +277,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -327,7 +288,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_); } @@ -356,7 +318,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -369,18 +332,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.datalabeling.v1beta1.ListDataItemsRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest other = - (com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest) 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.datalabeling.v1beta1.ListDataItemsRequest other = (com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest) 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; } @@ -406,127 +372,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest 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.datalabeling.v1beta1.ListDataItemsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListDataItems.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListDataItemsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListDataItemsRequest) com.google.cloud.datalabeling.v1beta1.ListDataItemsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.class, - com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.class, com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.newBuilder() @@ -534,15 +490,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(); @@ -558,9 +515,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor; } @java.lang.Override @@ -579,8 +536,7 @@ public com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest result = - new com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest(this); + com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest result = new com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -593,39 +549,38 @@ public com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest)other); } else { super.mergeFrom(other); return this; @@ -633,8 +588,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -669,8 +623,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -682,23 +635,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the dataset to list data items, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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,24 +656,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the dataset to list data items, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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,70 +678,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the dataset to list data items, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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. Name of the dataset to list data items, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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. Name of the dataset to list data items, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * - * 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; @@ -803,20 +736,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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,21 +756,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -847,77 +777,67 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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_ ; /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -925,38 +845,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -964,8 +878,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -975,13 +887,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -990,8 +902,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1001,14 +911,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1016,8 +927,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1027,22 +936,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1052,18 +959,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1073,23 +977,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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); } @@ -1099,12 +1003,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListDataItemsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListDataItemsRequest) private static final com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest(); } @@ -1113,16 +1017,16 @@ public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDataItemsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDataItemsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataItemsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDataItemsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1137,4 +1041,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequestOrBuilder.java similarity index 67% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequestOrBuilder.java index 14741e6c..77db5b62 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequestOrBuilder.java @@ -1,101 +1,66 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListDataItemsRequestOrBuilder - extends +public interface ListDataItemsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListDataItemsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the dataset to list data items, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * 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. Name of the dataset to list data items, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * - * 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(); /** - * - * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -105,13 +70,10 @@ public interface ListDataItemsRequestOrBuilder
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -121,8 +83,8 @@ public interface ListDataItemsRequestOrBuilder
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponse.java similarity index 73% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponse.java index f39c15e1..af7b9fc7 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponse.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Results of listing data items in a dataset.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListDataItemsResponse} */ -public final class ListDataItemsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListDataItemsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListDataItemsResponse) ListDataItemsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListDataItemsResponse.newBuilder() to construct. private ListDataItemsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListDataItemsResponse() { dataItems_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListDataItemsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListDataItemsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListDataItemsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +55,28 @@ private ListDataItemsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dataItems_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - dataItems_.add( - input.readMessage( - com.google.cloud.datalabeling.v1beta1.DataItem.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + dataItems_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + dataItems_.add( + input.readMessage(com.google.cloud.datalabeling.v1beta1.DataItem.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) { @@ -105,7 +84,8 @@ private ListDataItemsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { dataItems_ = java.util.Collections.unmodifiableList(dataItems_); @@ -114,27 +94,22 @@ private ListDataItemsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.class, - com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.class, com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.Builder.class); } public static final int DATA_ITEMS_FIELD_NUMBER = 1; private java.util.List dataItems_; /** - * - * *
    * The list of data items to return.
    * 
@@ -146,8 +121,6 @@ public java.util.List getDataIte return dataItems_; } /** - * - * *
    * The list of data items to return.
    * 
@@ -155,13 +128,11 @@ public java.util.List getDataIte * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDataItemsOrBuilderList() { return dataItems_; } /** - * - * *
    * The list of data items to return.
    * 
@@ -173,8 +144,6 @@ public int getDataItemsCount() { return dataItems_.size(); } /** - * - * *
    * The list of data items to return.
    * 
@@ -186,8 +155,6 @@ public com.google.cloud.datalabeling.v1beta1.DataItem getDataItems(int index) { return dataItems_.get(index); } /** - * - * *
    * The list of data items to return.
    * 
@@ -195,21 +162,19 @@ public com.google.cloud.datalabeling.v1beta1.DataItem getDataItems(int index) { * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder getDataItemsOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder getDataItemsOrBuilder( + int index) { return dataItems_.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.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -218,29 +183,29 @@ 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.
    * 
* * 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 < dataItems_.size(); i++) { output.writeMessage(1, dataItems_.get(i)); } @@ -278,7 +243,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < dataItems_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataItems_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, dataItems_.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.datalabeling.v1beta1.ListDataItemsResponse)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse other = - (com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse) obj; + com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse other = (com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse) obj; - if (!getDataItemsList().equals(other.getDataItemsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getDataItemsList() + .equals(other.getDataItemsList())) 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.datalabeling.v1beta1.ListDataItemsResponse 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.datalabeling.v1beta1.ListDataItemsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Results of listing data items in a dataset.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListDataItemsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListDataItemsResponse) com.google.cloud.datalabeling.v1beta1.ListDataItemsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.class, - com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.class, com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.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) { getDataItemsFieldBuilder(); } } - @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.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor; } @java.lang.Override @@ -499,8 +456,7 @@ public com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse result = - new com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse(this); + com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse result = new com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse(this); int from_bitField0_ = bitField0_; if (dataItemsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -520,39 +476,38 @@ public com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse buildPartial( public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse)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.datalabeling.v1beta1.ListDataItemsResponse other) { - if (other == com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.getDefaultInstance()) return this; if (dataItemsBuilder_ == null) { if (!other.dataItems_.isEmpty()) { if (dataItems_.isEmpty()) { @@ -580,10 +534,9 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListDataItemsResp dataItemsBuilder_ = null; dataItems_ = other.dataItems_; bitField0_ = (bitField0_ & ~0x00000001); - dataItemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDataItemsFieldBuilder() - : null; + dataItemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDataItemsFieldBuilder() : null; } else { dataItemsBuilder_.addAllMessages(other.dataItems_); } @@ -612,8 +565,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse) 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 dataItems_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDataItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - dataItems_ = - new java.util.ArrayList(dataItems_); + dataItems_ = new java.util.ArrayList(dataItems_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.DataItem, - com.google.cloud.datalabeling.v1beta1.DataItem.Builder, - com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder> - dataItemsBuilder_; + com.google.cloud.datalabeling.v1beta1.DataItem, com.google.cloud.datalabeling.v1beta1.DataItem.Builder, com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder> dataItemsBuilder_; /** - * - * *
      * The list of data items to return.
      * 
@@ -659,8 +603,6 @@ public java.util.List getDataIte } } /** - * - * *
      * The list of data items to return.
      * 
@@ -675,8 +617,6 @@ public int getDataItemsCount() { } } /** - * - * *
      * The list of data items to return.
      * 
@@ -691,15 +631,14 @@ public com.google.cloud.datalabeling.v1beta1.DataItem getDataItems(int index) { } } /** - * - * *
      * The list of data items to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ - public Builder setDataItems(int index, com.google.cloud.datalabeling.v1beta1.DataItem value) { + public Builder setDataItems( + int index, com.google.cloud.datalabeling.v1beta1.DataItem value) { if (dataItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,8 +652,6 @@ public Builder setDataItems(int index, com.google.cloud.datalabeling.v1beta1.Dat return this; } /** - * - * *
      * The list of data items to return.
      * 
@@ -733,8 +670,6 @@ public Builder setDataItems( return this; } /** - * - * *
      * The list of data items to return.
      * 
@@ -755,15 +690,14 @@ public Builder addDataItems(com.google.cloud.datalabeling.v1beta1.DataItem value return this; } /** - * - * *
      * The list of data items to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ - public Builder addDataItems(int index, com.google.cloud.datalabeling.v1beta1.DataItem value) { + public Builder addDataItems( + int index, com.google.cloud.datalabeling.v1beta1.DataItem value) { if (dataItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -777,8 +711,6 @@ public Builder addDataItems(int index, com.google.cloud.datalabeling.v1beta1.Dat return this; } /** - * - * *
      * The list of data items to return.
      * 
@@ -797,8 +729,6 @@ public Builder addDataItems( return this; } /** - * - * *
      * The list of data items to return.
      * 
@@ -817,8 +747,6 @@ public Builder addDataItems( return this; } /** - * - * *
      * The list of data items to return.
      * 
@@ -829,7 +757,8 @@ public Builder addAllDataItems( java.lang.Iterable values) { if (dataItemsBuilder_ == null) { ensureDataItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataItems_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, dataItems_); onChanged(); } else { dataItemsBuilder_.addAllMessages(values); @@ -837,8 +766,6 @@ public Builder addAllDataItems( return this; } /** - * - * *
      * The list of data items to return.
      * 
@@ -856,8 +783,6 @@ public Builder clearDataItems() { return this; } /** - * - * *
      * The list of data items to return.
      * 
@@ -875,20 +800,17 @@ public Builder removeDataItems(int index) { return this; } /** - * - * *
      * The list of data items to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ - public com.google.cloud.datalabeling.v1beta1.DataItem.Builder getDataItemsBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.DataItem.Builder getDataItemsBuilder( + int index) { return getDataItemsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of data items to return.
      * 
@@ -898,22 +820,19 @@ public com.google.cloud.datalabeling.v1beta1.DataItem.Builder getDataItemsBuilde public com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder getDataItemsOrBuilder( int index) { if (dataItemsBuilder_ == null) { - return dataItems_.get(index); - } else { + return dataItems_.get(index); } else { return dataItemsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of data items to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ - public java.util.List - getDataItemsOrBuilderList() { + public java.util.List + getDataItemsOrBuilderList() { if (dataItemsBuilder_ != null) { return dataItemsBuilder_.getMessageOrBuilderList(); } else { @@ -921,8 +840,6 @@ public com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder getDataItemsOrBui } } /** - * - * *
      * The list of data items to return.
      * 
@@ -930,48 +847,42 @@ public com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder getDataItemsOrBui * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ public com.google.cloud.datalabeling.v1beta1.DataItem.Builder addDataItemsBuilder() { - return getDataItemsFieldBuilder() - .addBuilder(com.google.cloud.datalabeling.v1beta1.DataItem.getDefaultInstance()); + return getDataItemsFieldBuilder().addBuilder( + com.google.cloud.datalabeling.v1beta1.DataItem.getDefaultInstance()); } /** - * - * *
      * The list of data items to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ - public com.google.cloud.datalabeling.v1beta1.DataItem.Builder addDataItemsBuilder(int index) { - return getDataItemsFieldBuilder() - .addBuilder(index, com.google.cloud.datalabeling.v1beta1.DataItem.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.DataItem.Builder addDataItemsBuilder( + int index) { + return getDataItemsFieldBuilder().addBuilder( + index, com.google.cloud.datalabeling.v1beta1.DataItem.getDefaultInstance()); } /** - * - * *
      * The list of data items to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ - public java.util.List - getDataItemsBuilderList() { + public java.util.List + getDataItemsBuilderList() { return getDataItemsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.DataItem, - com.google.cloud.datalabeling.v1beta1.DataItem.Builder, - com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder> + com.google.cloud.datalabeling.v1beta1.DataItem, com.google.cloud.datalabeling.v1beta1.DataItem.Builder, com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder> getDataItemsFieldBuilder() { if (dataItemsBuilder_ == null) { - dataItemsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.DataItem, - com.google.cloud.datalabeling.v1beta1.DataItem.Builder, - com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder>( - dataItems_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + dataItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.DataItem, com.google.cloud.datalabeling.v1beta1.DataItem.Builder, com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder>( + dataItems_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); dataItems_ = null; } return dataItemsBuilder_; @@ -979,20 +890,18 @@ public com.google.cloud.datalabeling.v1beta1.DataItem.Builder addDataItemsBuilde private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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,21 +910,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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,68 +931,61 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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 +995,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListDataItemsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListDataItemsResponse) private static final com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse(); } @@ -1108,16 +1009,16 @@ public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDataItemsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDataItemsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataItemsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDataItemsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1132,4 +1033,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponseOrBuilder.java similarity index 68% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponseOrBuilder.java index 75589d88..47f63aa0 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponseOrBuilder.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListDataItemsResponseOrBuilder - extends +public interface ListDataItemsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListDataItemsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of data items to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ - java.util.List getDataItemsList(); + java.util.List + getDataItemsList(); /** - * - * *
    * The list of data items to return.
    * 
@@ -44,8 +25,6 @@ public interface ListDataItemsResponseOrBuilder */ com.google.cloud.datalabeling.v1beta1.DataItem getDataItems(int index); /** - * - * *
    * The list of data items to return.
    * 
@@ -54,49 +33,41 @@ public interface ListDataItemsResponseOrBuilder */ int getDataItemsCount(); /** - * - * *
    * The list of data items to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ - java.util.List + java.util.List getDataItemsOrBuilderList(); /** - * - * *
    * The list of data items to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ - com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder getDataItemsOrBuilder(int index); + com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder getDataItemsOrBuilder( + int index); /** - * - * *
    * A token to retrieve next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results.
    * 
* * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequest.java similarity index 71% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequest.java index 1717304d..9e34fd36 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for ListDataset.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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,39 +55,36 @@ 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 18: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 24: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 34: { + 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) { @@ -112,42 +92,35 @@ private ListDatasetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.class, - com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.class, com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Dataset resource parent, format:
    * projects/{project_id}
    * 
* - * - * 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 @@ -156,32 +129,30 @@ 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. Dataset resource parent, format:
    * projects/{project_id}
    * 
* - * - * 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,14 +163,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. Filter on dataset is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -208,29 +176,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; } } /** - * - * *
    * Optional. Filter on dataset is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -241,15 +209,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -260,8 +225,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -271,7 +234,6 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -280,15 +242,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; } } /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -298,15 +259,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -315,7 +277,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -327,7 +288,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_); } @@ -356,7 +318,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -369,18 +332,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.datalabeling.v1beta1.ListDatasetsRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest other = - (com.google.cloud.datalabeling.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.datalabeling.v1beta1.ListDatasetsRequest other = (com.google.cloud.datalabeling.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; } @@ -406,127 +372,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ListDatasetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ListDatasetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ListDatasetsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ListDatasetsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ListDatasetsRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.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 ListDataset.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.ListDatasetsRequest) com.google.cloud.datalabeling.v1beta1.ListDatasetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.class, - com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.class, com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.newBuilder() @@ -534,15 +490,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(); @@ -558,9 +515,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor; } @java.lang.Override @@ -579,8 +536,7 @@ public com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest result = - new com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest(this); + com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest result = new com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -593,39 +549,38 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.ListDatasetsRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest)other); } else { super.mergeFrom(other); return this; @@ -633,8 +588,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -669,8 +623,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -682,23 +635,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Dataset resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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,24 +656,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Dataset resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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,70 +678,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Dataset resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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. Dataset resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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. Dataset resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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; @@ -803,20 +736,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Filter on dataset is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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,21 +756,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Filter on dataset is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -847,77 +777,67 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Filter on dataset is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. Filter on dataset is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. Filter on dataset is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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_ ; /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -925,38 +845,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -964,8 +878,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -975,13 +887,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -990,8 +902,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1001,14 +911,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1016,8 +927,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1027,22 +936,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1052,18 +959,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1073,23 +977,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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); } @@ -1099,12 +1003,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListDatasetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListDatasetsRequest) private static final com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest(); } @@ -1113,16 +1017,16 @@ public static com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest getDefau 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; @@ -1137,4 +1041,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequestOrBuilder.java similarity index 66% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequestOrBuilder.java index 43f5860d..a5ecfeba 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequestOrBuilder.java @@ -1,101 +1,66 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListDatasetsRequestOrBuilder - extends +public interface ListDatasetsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListDatasetsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Dataset resource parent, format:
    * projects/{project_id}
    * 
* - * - * 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. Dataset resource parent, format:
    * projects/{project_id}
    * 
* - * - * 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(); /** - * - * *
    * Optional. Filter on dataset is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Filter on dataset is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -105,13 +70,10 @@ public interface ListDatasetsRequestOrBuilder
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -121,8 +83,8 @@ public interface ListDatasetsRequestOrBuilder
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponse.java similarity index 73% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponse.java index e5adb3e4..0b2de610 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Results of listing datasets within a project.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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,32 +55,28 @@ 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.datalabeling.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.datalabeling.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) { @@ -105,7 +84,8 @@ private ListDatasetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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_); @@ -114,27 +94,22 @@ private ListDatasetsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.class, - com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.class, com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.Builder.class); } public static final int DATASETS_FIELD_NUMBER = 1; private java.util.List datasets_; /** - * - * *
    * The list of datasets to return.
    * 
@@ -146,8 +121,6 @@ public java.util.List getDatasets return datasets_; } /** - * - * *
    * The list of datasets to return.
    * 
@@ -155,13 +128,11 @@ public java.util.List getDatasets * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDatasetsOrBuilderList() { return datasets_; } /** - * - * *
    * The list of datasets to return.
    * 
@@ -173,8 +144,6 @@ public int getDatasetsCount() { return datasets_.size(); } /** - * - * *
    * The list of datasets to return.
    * 
@@ -186,8 +155,6 @@ public com.google.cloud.datalabeling.v1beta1.Dataset getDatasets(int index) { return datasets_.get(index); } /** - * - * *
    * The list of datasets to return.
    * 
@@ -195,21 +162,19 @@ public com.google.cloud.datalabeling.v1beta1.Dataset getDatasets(int index) { * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetsOrBuilder(int index) { + public com.google.cloud.datalabeling.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.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -218,29 +183,29 @@ 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.
    * 
* * 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 < datasets_.size(); i++) { output.writeMessage(1, datasets_.get(i)); } @@ -278,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_); @@ -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.datalabeling.v1beta1.ListDatasetsResponse)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse other = - (com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse) obj; + com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse other = (com.google.cloud.datalabeling.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; } @@ -324,127 +291,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ListDatasetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ListDatasetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ListDatasetsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ListDatasetsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ListDatasetsResponse prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.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; } /** - * - * *
    * Results of listing datasets within a project.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.ListDatasetsResponse) com.google.cloud.datalabeling.v1beta1.ListDatasetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.class, - com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.class, com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.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) { getDatasetsFieldBuilder(); } } - @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.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor; } @java.lang.Override @@ -499,8 +456,7 @@ public com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse result = - new com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse(this); + com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse result = new com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse(this); int from_bitField0_ = bitField0_; if (datasetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -520,39 +476,38 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.ListDatasetsResponse) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse)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.datalabeling.v1beta1.ListDatasetsResponse other) { - if (other == com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.getDefaultInstance()) return this; if (datasetsBuilder_ == null) { if (!other.datasets_.isEmpty()) { if (datasets_.isEmpty()) { @@ -580,10 +534,9 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListDatasetsRespo 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_); } @@ -612,8 +565,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse) 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 datasets_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDatasetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - datasets_ = - new java.util.ArrayList(datasets_); + datasets_ = new java.util.ArrayList(datasets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Dataset, - com.google.cloud.datalabeling.v1beta1.Dataset.Builder, - com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder> - datasetsBuilder_; + com.google.cloud.datalabeling.v1beta1.Dataset, com.google.cloud.datalabeling.v1beta1.Dataset.Builder, com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder> datasetsBuilder_; /** - * - * *
      * The list of datasets to return.
      * 
@@ -659,8 +603,6 @@ public java.util.List getDatasets } } /** - * - * *
      * The list of datasets to return.
      * 
@@ -675,8 +617,6 @@ public int getDatasetsCount() { } } /** - * - * *
      * The list of datasets to return.
      * 
@@ -691,15 +631,14 @@ public com.google.cloud.datalabeling.v1beta1.Dataset getDatasets(int index) { } } /** - * - * *
      * The list of datasets to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ - public Builder setDatasets(int index, com.google.cloud.datalabeling.v1beta1.Dataset value) { + public Builder setDatasets( + int index, com.google.cloud.datalabeling.v1beta1.Dataset value) { if (datasetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,8 +652,6 @@ public Builder setDatasets(int index, com.google.cloud.datalabeling.v1beta1.Data return this; } /** - * - * *
      * The list of datasets to return.
      * 
@@ -733,8 +670,6 @@ public Builder setDatasets( return this; } /** - * - * *
      * The list of datasets to return.
      * 
@@ -755,15 +690,14 @@ public Builder addDatasets(com.google.cloud.datalabeling.v1beta1.Dataset value) return this; } /** - * - * *
      * The list of datasets to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ - public Builder addDatasets(int index, com.google.cloud.datalabeling.v1beta1.Dataset value) { + public Builder addDatasets( + int index, com.google.cloud.datalabeling.v1beta1.Dataset value) { if (datasetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -777,8 +711,6 @@ public Builder addDatasets(int index, com.google.cloud.datalabeling.v1beta1.Data return this; } /** - * - * *
      * The list of datasets to return.
      * 
@@ -797,8 +729,6 @@ public Builder addDatasets( return this; } /** - * - * *
      * The list of datasets to return.
      * 
@@ -817,8 +747,6 @@ public Builder addDatasets( return this; } /** - * - * *
      * The list of datasets to return.
      * 
@@ -829,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); @@ -837,8 +766,6 @@ public Builder addAllDatasets( return this; } /** - * - * *
      * The list of datasets to return.
      * 
@@ -856,8 +783,6 @@ public Builder clearDatasets() { return this; } /** - * - * *
      * The list of datasets to return.
      * 
@@ -875,44 +800,39 @@ public Builder removeDatasets(int index) { return this; } /** - * - * *
      * The list of datasets to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ - public com.google.cloud.datalabeling.v1beta1.Dataset.Builder getDatasetsBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.Dataset.Builder getDatasetsBuilder( + int index) { return getDatasetsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of datasets to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ - public com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetsOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetsOrBuilder( + int index) { if (datasetsBuilder_ == null) { - return datasets_.get(index); - } else { + return datasets_.get(index); } else { return datasetsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of datasets to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ - public java.util.List - getDatasetsOrBuilderList() { + public java.util.List + getDatasetsOrBuilderList() { if (datasetsBuilder_ != null) { return datasetsBuilder_.getMessageOrBuilderList(); } else { @@ -920,8 +840,6 @@ public com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetsOrBuild } } /** - * - * *
      * The list of datasets to return.
      * 
@@ -929,48 +847,42 @@ public com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetsOrBuild * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ public com.google.cloud.datalabeling.v1beta1.Dataset.Builder addDatasetsBuilder() { - return getDatasetsFieldBuilder() - .addBuilder(com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance()); + return getDatasetsFieldBuilder().addBuilder( + com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance()); } /** - * - * *
      * The list of datasets to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ - public com.google.cloud.datalabeling.v1beta1.Dataset.Builder addDatasetsBuilder(int index) { - return getDatasetsFieldBuilder() - .addBuilder(index, com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.Dataset.Builder addDatasetsBuilder( + int index) { + return getDatasetsFieldBuilder().addBuilder( + index, com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance()); } /** - * - * *
      * The list of datasets to return.
      * 
* * repeated .google.cloud.datalabeling.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.datalabeling.v1beta1.Dataset, - com.google.cloud.datalabeling.v1beta1.Dataset.Builder, - com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder> + com.google.cloud.datalabeling.v1beta1.Dataset, com.google.cloud.datalabeling.v1beta1.Dataset.Builder, com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder> getDatasetsFieldBuilder() { if (datasetsBuilder_ == null) { - datasetsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Dataset, - com.google.cloud.datalabeling.v1beta1.Dataset.Builder, - com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder>( - datasets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + datasetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.Dataset, com.google.cloud.datalabeling.v1beta1.Dataset.Builder, com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder>( + datasets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); datasets_ = null; } return datasetsBuilder_; @@ -978,20 +890,18 @@ public com.google.cloud.datalabeling.v1beta1.Dataset.Builder addDatasetsBuilder( private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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,21 +910,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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 { @@ -1022,68 +931,61 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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 +995,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListDatasetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListDatasetsResponse) private static final com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse(); } @@ -1107,16 +1009,16 @@ public static com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse getDefa 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; @@ -1131,4 +1033,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponseOrBuilder.java similarity index 68% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponseOrBuilder.java index 63f60058..9302ce9f 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListDatasetsResponseOrBuilder - extends +public interface ListDatasetsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListDatasetsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of datasets to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ - java.util.List getDatasetsList(); + java.util.List + getDatasetsList(); /** - * - * *
    * The list of datasets to return.
    * 
@@ -44,8 +25,6 @@ public interface ListDatasetsResponseOrBuilder */ com.google.cloud.datalabeling.v1beta1.Dataset getDatasets(int index); /** - * - * *
    * The list of datasets to return.
    * 
@@ -54,49 +33,41 @@ public interface ListDatasetsResponseOrBuilder */ int getDatasetsCount(); /** - * - * *
    * The list of datasets to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ - java.util.List + java.util.List getDatasetsOrBuilderList(); /** - * - * *
    * The list of datasets to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ - com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetsOrBuilder(int index); + com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetsOrBuilder( + int index); /** - * - * *
    * A token to retrieve next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results.
    * 
* * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequest.java similarity index 73% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequest.java index 11f29a05..1c0557a3 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for ListEvaluationJobs.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest} */ -public final class ListEvaluationJobsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListEvaluationJobsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) ListEvaluationJobsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListEvaluationJobsRequest.newBuilder() to construct. private ListEvaluationJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListEvaluationJobsRequest() { parent_ = ""; filter_ = ""; @@ -45,15 +27,16 @@ private ListEvaluationJobsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListEvaluationJobsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListEvaluationJobsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListEvaluationJobsRequest( 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: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 24: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 34: { + 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) { @@ -112,42 +92,35 @@ private ListEvaluationJobsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.class, - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.class, com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Evaluation job resource parent. Format:
    * "projects/<var>{project_id}</var>"
    * 
* - * - * 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 @@ -156,32 +129,30 @@ 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. Evaluation job resource parent. Format:
    * "projects/<var>{project_id}</var>"
    * 
* - * - * 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 = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. You can filter the jobs to list by model_id (also known as
    * model_name, as described in
@@ -206,7 +175,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } } /** - * - * *
    * Optional. You can filter the jobs to list by model_id (also known as
    * model_name, as described in
@@ -236,15 +203,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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,15 +223,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -274,8 +239,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -285,7 +248,6 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -294,15 +256,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; } } /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -312,15 +273,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -329,7 +291,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,7 +302,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_); } @@ -370,7 +332,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -383,18 +346,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.datalabeling.v1beta1.ListEvaluationJobsRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest other = - (com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) 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.datalabeling.v1beta1.ListEvaluationJobsRequest other = (com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) 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; } @@ -420,127 +386,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest 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.datalabeling.v1beta1.ListEvaluationJobsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListEvaluationJobs.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.class, - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.class, com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.newBuilder() @@ -548,15 +504,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(); @@ -572,14 +529,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.getDefaultInstance(); } @@ -594,8 +550,7 @@ public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest result = - new com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest(this); + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest result = new com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -608,50 +563,46 @@ public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest 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.datalabeling.v1beta1.ListEvaluationJobsRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest other) { - if (other - == com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest other) { + if (other == com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -686,9 +637,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -700,23 +649,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Evaluation job resource parent. Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * - * 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; @@ -725,24 +670,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Evaluation job resource parent. Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * - * 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 { @@ -750,70 +692,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Evaluation job resource parent. Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * - * 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. Evaluation job resource parent. Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * - * 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. Evaluation job resource parent. Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * - * 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; @@ -821,8 +750,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. You can filter the jobs to list by model_id (also known as
      * model_name, as described in
@@ -835,13 +762,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -850,8 +777,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. You can filter the jobs to list by model_id (also known as
      * model_name, as described in
@@ -864,14 +789,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -879,8 +805,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. You can filter the jobs to list by model_id (also known as
      * model_name, as described in
@@ -893,22 +817,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. You can filter the jobs to list by model_id (also known as
      * model_name, as described in
@@ -921,18 +843,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. You can filter the jobs to list by model_id (also known as
      * model_name, as described in
@@ -945,32 +864,29 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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_ ; /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -978,38 +894,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1017,8 +927,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -1028,13 +936,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1043,8 +951,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -1054,14 +960,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1069,8 +976,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -1080,22 +985,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -1105,18 +1008,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -1126,23 +1026,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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); } @@ -1152,32 +1052,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) - private static final com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest(); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEvaluationJobsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListEvaluationJobsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEvaluationJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListEvaluationJobsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1189,8 +1087,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequestOrBuilder.java similarity index 75% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequestOrBuilder.java index ef055dd8..549ad0e3 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequestOrBuilder.java @@ -1,62 +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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListEvaluationJobsRequestOrBuilder - extends +public interface ListEvaluationJobsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Evaluation job resource parent. Format:
    * "projects/<var>{project_id}</var>"
    * 
* - * - * 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. Evaluation job resource parent. Format:
    * "projects/<var>{project_id}</var>"
    * 
* - * - * 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(); /** - * - * *
    * Optional. You can filter the jobs to list by model_id (also known as
    * model_name, as described in
@@ -69,13 +42,10 @@ public interface ListEvaluationJobsRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. You can filter the jobs to list by model_id (also known as
    * model_name, as described in
@@ -88,28 +58,23 @@ public interface ListEvaluationJobsRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -119,13 +84,10 @@ public interface ListEvaluationJobsRequestOrBuilder
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -135,8 +97,8 @@ public interface ListEvaluationJobsRequestOrBuilder
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponse.java similarity index 73% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponse.java index 04736707..d7c587fc 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponse.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Results for listing evaluation jobs.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse} */ -public final class ListEvaluationJobsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListEvaluationJobsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse) ListEvaluationJobsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListEvaluationJobsResponse.newBuilder() to construct. private ListEvaluationJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListEvaluationJobsResponse() { evaluationJobs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListEvaluationJobsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListEvaluationJobsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListEvaluationJobsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,33 +55,28 @@ private ListEvaluationJobsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - evaluationJobs_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - evaluationJobs_.add( - input.readMessage( - com.google.cloud.datalabeling.v1beta1.EvaluationJob.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + evaluationJobs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + evaluationJobs_.add( + input.readMessage(com.google.cloud.datalabeling.v1beta1.EvaluationJob.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) { @@ -106,7 +84,8 @@ private ListEvaluationJobsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { evaluationJobs_ = java.util.Collections.unmodifiableList(evaluationJobs_); @@ -115,27 +94,22 @@ private ListEvaluationJobsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.class, - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.class, com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.Builder.class); } public static final int EVALUATION_JOBS_FIELD_NUMBER = 1; private java.util.List evaluationJobs_; /** - * - * *
    * The list of evaluation jobs to return.
    * 
@@ -143,13 +117,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_jobs = 1; */ @java.lang.Override - public java.util.List - getEvaluationJobsList() { + public java.util.List getEvaluationJobsList() { return evaluationJobs_; } /** - * - * *
    * The list of evaluation jobs to return.
    * 
@@ -157,13 +128,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_jobs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getEvaluationJobsOrBuilderList() { return evaluationJobs_; } /** - * - * *
    * The list of evaluation jobs to return.
    * 
@@ -175,8 +144,6 @@ public int getEvaluationJobsCount() { return evaluationJobs_.size(); } /** - * - * *
    * The list of evaluation jobs to return.
    * 
@@ -188,8 +155,6 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob getEvaluationJobs(int return evaluationJobs_.get(index); } /** - * - * *
    * The list of evaluation jobs to return.
    * 
@@ -205,14 +170,11 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluatio public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token to retrieve next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -221,29 +183,29 @@ 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.
    * 
* * 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 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,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 < evaluationJobs_.size(); i++) { output.writeMessage(1, evaluationJobs_.get(i)); } @@ -281,7 +243,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < evaluationJobs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, evaluationJobs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, evaluationJobs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -294,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.datalabeling.v1beta1.ListEvaluationJobsResponse)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse other = - (com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse) obj; + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse other = (com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse) obj; - if (!getEvaluationJobsList().equals(other.getEvaluationJobsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getEvaluationJobsList() + .equals(other.getEvaluationJobsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -327,127 +291,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse 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.datalabeling.v1beta1.ListEvaluationJobsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Results for listing evaluation jobs.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse) com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.class, - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.class, com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.newBuilder() @@ -455,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) { getEvaluationJobsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -481,14 +435,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.getDefaultInstance(); } @@ -503,8 +456,7 @@ public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse result = - new com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse(this); + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse result = new com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse(this); int from_bitField0_ = bitField0_; if (evaluationJobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -524,50 +476,46 @@ public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse 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.datalabeling.v1beta1.ListEvaluationJobsResponse) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse other) { - if (other - == com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse other) { + if (other == com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.getDefaultInstance()) return this; if (evaluationJobsBuilder_ == null) { if (!other.evaluationJobs_.isEmpty()) { if (evaluationJobs_.isEmpty()) { @@ -586,10 +534,9 @@ public Builder mergeFrom( evaluationJobsBuilder_ = null; evaluationJobs_ = other.evaluationJobs_; bitField0_ = (bitField0_ & ~0x00000001); - evaluationJobsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEvaluationJobsFieldBuilder() - : null; + evaluationJobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEvaluationJobsFieldBuilder() : null; } else { evaluationJobsBuilder_.addAllMessages(other.evaluationJobs_); } @@ -618,9 +565,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -629,38 +574,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List evaluationJobs_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureEvaluationJobsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - evaluationJobs_ = - new java.util.ArrayList( - evaluationJobs_); + evaluationJobs_ = new java.util.ArrayList(evaluationJobs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJob, - com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, - com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> - evaluationJobsBuilder_; + com.google.cloud.datalabeling.v1beta1.EvaluationJob, com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> evaluationJobsBuilder_; /** - * - * *
      * The list of evaluation jobs to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_jobs = 1; */ - public java.util.List - getEvaluationJobsList() { + public java.util.List getEvaluationJobsList() { if (evaluationJobsBuilder_ == null) { return java.util.Collections.unmodifiableList(evaluationJobs_); } else { @@ -668,8 +603,6 @@ private void ensureEvaluationJobsIsMutable() { } } /** - * - * *
      * The list of evaluation jobs to return.
      * 
@@ -684,8 +617,6 @@ public int getEvaluationJobsCount() { } } /** - * - * *
      * The list of evaluation jobs to return.
      * 
@@ -700,8 +631,6 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob getEvaluationJobs(int } } /** - * - * *
      * The list of evaluation jobs to return.
      * 
@@ -723,8 +652,6 @@ public Builder setEvaluationJobs( return this; } /** - * - * *
      * The list of evaluation jobs to return.
      * 
@@ -743,8 +670,6 @@ public Builder setEvaluationJobs( return this; } /** - * - * *
      * The list of evaluation jobs to return.
      * 
@@ -765,8 +690,6 @@ public Builder addEvaluationJobs(com.google.cloud.datalabeling.v1beta1.Evaluatio return this; } /** - * - * *
      * The list of evaluation jobs to return.
      * 
@@ -788,8 +711,6 @@ public Builder addEvaluationJobs( return this; } /** - * - * *
      * The list of evaluation jobs to return.
      * 
@@ -808,8 +729,6 @@ public Builder addEvaluationJobs( return this; } /** - * - * *
      * The list of evaluation jobs to return.
      * 
@@ -828,8 +747,6 @@ public Builder addEvaluationJobs( return this; } /** - * - * *
      * The list of evaluation jobs to return.
      * 
@@ -840,7 +757,8 @@ public Builder addAllEvaluationJobs( java.lang.Iterable values) { if (evaluationJobsBuilder_ == null) { ensureEvaluationJobsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, evaluationJobs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, evaluationJobs_); onChanged(); } else { evaluationJobsBuilder_.addAllMessages(values); @@ -848,8 +766,6 @@ public Builder addAllEvaluationJobs( return this; } /** - * - * *
      * The list of evaluation jobs to return.
      * 
@@ -867,8 +783,6 @@ public Builder clearEvaluationJobs() { return this; } /** - * - * *
      * The list of evaluation jobs to return.
      * 
@@ -886,8 +800,6 @@ public Builder removeEvaluationJobs(int index) { return this; } /** - * - * *
      * The list of evaluation jobs to return.
      * 
@@ -899,8 +811,6 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder getEvaluation return getEvaluationJobsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of evaluation jobs to return.
      * 
@@ -910,22 +820,19 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder getEvaluation public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluationJobsOrBuilder( int index) { if (evaluationJobsBuilder_ == null) { - return evaluationJobs_.get(index); - } else { + return evaluationJobs_.get(index); } else { return evaluationJobsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of evaluation jobs to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_jobs = 1; */ - public java.util.List - getEvaluationJobsOrBuilderList() { + public java.util.List + getEvaluationJobsOrBuilderList() { if (evaluationJobsBuilder_ != null) { return evaluationJobsBuilder_.getMessageOrBuilderList(); } else { @@ -933,8 +840,6 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluatio } } /** - * - * *
      * The list of evaluation jobs to return.
      * 
@@ -942,12 +847,10 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluatio * repeated .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_jobs = 1; */ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder addEvaluationJobsBuilder() { - return getEvaluationJobsFieldBuilder() - .addBuilder(com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance()); + return getEvaluationJobsFieldBuilder().addBuilder( + com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance()); } /** - * - * *
      * The list of evaluation jobs to return.
      * 
@@ -956,35 +859,26 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder addEvaluation */ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder addEvaluationJobsBuilder( int index) { - return getEvaluationJobsFieldBuilder() - .addBuilder( - index, com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance()); + return getEvaluationJobsFieldBuilder().addBuilder( + index, com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance()); } /** - * - * *
      * The list of evaluation jobs to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_jobs = 1; */ - public java.util.List - getEvaluationJobsBuilderList() { + public java.util.List + getEvaluationJobsBuilderList() { return getEvaluationJobsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJob, - com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, - com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> + com.google.cloud.datalabeling.v1beta1.EvaluationJob, com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> getEvaluationJobsFieldBuilder() { if (evaluationJobsBuilder_ == null) { - evaluationJobsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJob, - com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, - com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder>( + evaluationJobsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.EvaluationJob, com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder>( evaluationJobs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -996,20 +890,18 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder addEvaluation private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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; @@ -1018,21 +910,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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 { @@ -1040,68 +931,61 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -1111,32 +995,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse) - private static final com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse(); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEvaluationJobsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListEvaluationJobsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEvaluationJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListEvaluationJobsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1148,8 +1030,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponseOrBuilder.java similarity index 70% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponseOrBuilder.java index 5a9abaf7..4427d2d1 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponseOrBuilder.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListEvaluationJobsResponseOrBuilder - extends +public interface ListEvaluationJobsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of evaluation jobs to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_jobs = 1; */ - java.util.List getEvaluationJobsList(); + java.util.List + getEvaluationJobsList(); /** - * - * *
    * The list of evaluation jobs to return.
    * 
@@ -44,8 +25,6 @@ public interface ListEvaluationJobsResponseOrBuilder */ com.google.cloud.datalabeling.v1beta1.EvaluationJob getEvaluationJobs(int index); /** - * - * *
    * The list of evaluation jobs to return.
    * 
@@ -54,19 +33,15 @@ public interface ListEvaluationJobsResponseOrBuilder */ int getEvaluationJobsCount(); /** - * - * *
    * The list of evaluation jobs to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_jobs = 1; */ - java.util.List + java.util.List getEvaluationJobsOrBuilderList(); /** - * - * *
    * The list of evaluation jobs to return.
    * 
@@ -77,27 +52,22 @@ com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluationJobsOr int index); /** - * - * *
    * A token to retrieve next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results.
    * 
* * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequest.java similarity index 72% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequest.java index 2a0c0746..9878962e 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for ListExamples.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListExamplesRequest} */ -public final class ListExamplesRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListExamplesRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListExamplesRequest) ListExamplesRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListExamplesRequest.newBuilder() to construct. private ListExamplesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListExamplesRequest() { parent_ = ""; filter_ = ""; @@ -45,15 +27,16 @@ private ListExamplesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListExamplesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListExamplesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListExamplesRequest( 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: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 24: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 34: { + 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) { @@ -112,41 +92,34 @@ private ListExamplesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.class, - com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.class, com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Example resource parent.
    * 
* - * - * 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,31 +128,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. Example resource parent.
    * 
* - * - * 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 { @@ -190,8 +161,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. An expression for filtering Examples. For annotated datasets that
    * have annotation spec set, filter by
@@ -200,7 +169,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -209,15 +177,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; } } /** - * - * *
    * Optional. An expression for filtering Examples. For annotated datasets that
    * have annotation spec set, filter by
@@ -226,15 +193,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 +213,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -264,8 +229,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -275,7 +238,6 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -284,15 +246,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; } } /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -302,15 +263,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -319,7 +281,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -331,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_); } @@ -360,7 +322,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -373,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.datalabeling.v1beta1.ListExamplesRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListExamplesRequest other = - (com.google.cloud.datalabeling.v1beta1.ListExamplesRequest) 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.datalabeling.v1beta1.ListExamplesRequest other = (com.google.cloud.datalabeling.v1beta1.ListExamplesRequest) 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,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest 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.datalabeling.v1beta1.ListExamplesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ListExamplesRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListExamplesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListExamples.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListExamplesRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListExamplesRequest) com.google.cloud.datalabeling.v1beta1.ListExamplesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.class, - com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.class, com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.newBuilder() @@ -538,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(); @@ -562,9 +519,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor; } @java.lang.Override @@ -583,8 +540,7 @@ public com.google.cloud.datalabeling.v1beta1.ListExamplesRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListExamplesRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListExamplesRequest result = - new com.google.cloud.datalabeling.v1beta1.ListExamplesRequest(this); + com.google.cloud.datalabeling.v1beta1.ListExamplesRequest result = new com.google.cloud.datalabeling.v1beta1.ListExamplesRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -597,39 +553,38 @@ public com.google.cloud.datalabeling.v1beta1.ListExamplesRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.ListExamplesRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListExamplesRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListExamplesRequest)other); } else { super.mergeFrom(other); return this; @@ -637,8 +592,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListExamplesRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -673,8 +627,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ListExamplesRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListExamplesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -686,22 +639,18 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Example resource parent.
      * 
* - * - * 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 +659,20 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Example resource parent.
      * 
* - * - * 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 +680,54 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Example resource parent.
      * 
* - * - * 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. Example resource parent.
      * 
* - * - * 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. Example resource parent.
      * 
* - * - * 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,8 +735,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. An expression for filtering Examples. For annotated datasets that
      * have annotation spec set, filter by
@@ -812,13 +743,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -827,8 +758,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. An expression for filtering Examples. For annotated datasets that
      * have annotation spec set, filter by
@@ -837,14 +766,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -852,8 +782,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. An expression for filtering Examples. For annotated datasets that
      * have annotation spec set, filter by
@@ -862,22 +790,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. An expression for filtering Examples. For annotated datasets that
      * have annotation spec set, filter by
@@ -886,18 +812,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. An expression for filtering Examples. For annotated datasets that
      * have annotation spec set, filter by
@@ -906,32 +829,29 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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_ ; /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -939,38 +859,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -978,8 +892,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -989,13 +901,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1004,8 +916,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1015,14 +925,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 +941,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1041,22 +950,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1066,18 +973,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1087,23 +991,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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); } @@ -1113,12 +1017,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListExamplesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListExamplesRequest) private static final com.google.cloud.datalabeling.v1beta1.ListExamplesRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListExamplesRequest(); } @@ -1127,16 +1031,16 @@ public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListExamplesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListExamplesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExamplesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListExamplesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1151,4 +1055,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ListExamplesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequestOrBuilder.java similarity index 69% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequestOrBuilder.java index e8046808..6ee8fb88 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequestOrBuilder.java @@ -1,60 +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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListExamplesRequestOrBuilder - extends +public interface ListExamplesRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListExamplesRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Example resource parent.
    * 
* - * - * 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. Example resource parent.
    * 
* - * - * 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(); /** - * - * *
    * Optional. An expression for filtering Examples. For annotated datasets that
    * have annotation spec set, filter by
@@ -63,13 +36,10 @@ public interface ListExamplesRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. An expression for filtering Examples. For annotated datasets that
    * have annotation spec set, filter by
@@ -78,28 +48,23 @@ public interface ListExamplesRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -109,13 +74,10 @@ public interface ListExamplesRequestOrBuilder
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -125,8 +87,8 @@ public interface ListExamplesRequestOrBuilder
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponse.java similarity index 73% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponse.java index 6e9032cd..e38b2c0b 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponse.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Results of listing Examples in and annotated dataset.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListExamplesResponse} */ -public final class ListExamplesResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListExamplesResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListExamplesResponse) ListExamplesResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListExamplesResponse.newBuilder() to construct. private ListExamplesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListExamplesResponse() { examples_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListExamplesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListExamplesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListExamplesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +55,28 @@ private ListExamplesResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - examples_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - examples_.add( - input.readMessage( - com.google.cloud.datalabeling.v1beta1.Example.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + examples_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + examples_.add( + input.readMessage(com.google.cloud.datalabeling.v1beta1.Example.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) { @@ -105,7 +84,8 @@ private ListExamplesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { examples_ = java.util.Collections.unmodifiableList(examples_); @@ -114,27 +94,22 @@ private ListExamplesResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.class, - com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.class, com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.Builder.class); } public static final int EXAMPLES_FIELD_NUMBER = 1; private java.util.List examples_; /** - * - * *
    * The list of examples to return.
    * 
@@ -146,8 +121,6 @@ public java.util.List getExamples return examples_; } /** - * - * *
    * The list of examples to return.
    * 
@@ -155,13 +128,11 @@ public java.util.List getExamples * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ @java.lang.Override - public java.util.List + public java.util.List getExamplesOrBuilderList() { return examples_; } /** - * - * *
    * The list of examples to return.
    * 
@@ -173,8 +144,6 @@ public int getExamplesCount() { return examples_.size(); } /** - * - * *
    * The list of examples to return.
    * 
@@ -186,8 +155,6 @@ public com.google.cloud.datalabeling.v1beta1.Example getExamples(int index) { return examples_.get(index); } /** - * - * *
    * The list of examples to return.
    * 
@@ -195,21 +162,19 @@ public com.google.cloud.datalabeling.v1beta1.Example getExamples(int index) { * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getExamplesOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getExamplesOrBuilder( + int index) { return examples_.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.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -218,29 +183,29 @@ 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.
    * 
* * 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 < examples_.size(); i++) { output.writeMessage(1, examples_.get(i)); } @@ -278,7 +243,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < examples_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, examples_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, examples_.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.datalabeling.v1beta1.ListExamplesResponse)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListExamplesResponse other = - (com.google.cloud.datalabeling.v1beta1.ListExamplesResponse) obj; + com.google.cloud.datalabeling.v1beta1.ListExamplesResponse other = (com.google.cloud.datalabeling.v1beta1.ListExamplesResponse) obj; - if (!getExamplesList().equals(other.getExamplesList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getExamplesList() + .equals(other.getExamplesList())) 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.datalabeling.v1beta1.ListExamplesResponse 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.datalabeling.v1beta1.ListExamplesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ListExamplesResponse prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListExamplesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Results of listing Examples in and annotated dataset.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListExamplesResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListExamplesResponse) com.google.cloud.datalabeling.v1beta1.ListExamplesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.class, - com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.class, com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.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) { getExamplesFieldBuilder(); } } - @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.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor; } @java.lang.Override @@ -499,8 +456,7 @@ public com.google.cloud.datalabeling.v1beta1.ListExamplesResponse build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListExamplesResponse buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListExamplesResponse result = - new com.google.cloud.datalabeling.v1beta1.ListExamplesResponse(this); + com.google.cloud.datalabeling.v1beta1.ListExamplesResponse result = new com.google.cloud.datalabeling.v1beta1.ListExamplesResponse(this); int from_bitField0_ = bitField0_; if (examplesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -520,39 +476,38 @@ public com.google.cloud.datalabeling.v1beta1.ListExamplesResponse buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.ListExamplesResponse) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListExamplesResponse) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListExamplesResponse)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.datalabeling.v1beta1.ListExamplesResponse other) { - if (other == com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.getDefaultInstance()) return this; if (examplesBuilder_ == null) { if (!other.examples_.isEmpty()) { if (examples_.isEmpty()) { @@ -580,10 +534,9 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListExamplesRespo examplesBuilder_ = null; examples_ = other.examples_; bitField0_ = (bitField0_ & ~0x00000001); - examplesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getExamplesFieldBuilder() - : null; + examplesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getExamplesFieldBuilder() : null; } else { examplesBuilder_.addAllMessages(other.examples_); } @@ -612,8 +565,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ListExamplesResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListExamplesResponse) 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 examples_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureExamplesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - examples_ = - new java.util.ArrayList(examples_); + examples_ = new java.util.ArrayList(examples_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Example, - com.google.cloud.datalabeling.v1beta1.Example.Builder, - com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> - examplesBuilder_; + com.google.cloud.datalabeling.v1beta1.Example, com.google.cloud.datalabeling.v1beta1.Example.Builder, com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> examplesBuilder_; /** - * - * *
      * The list of examples to return.
      * 
@@ -659,8 +603,6 @@ public java.util.List getExamples } } /** - * - * *
      * The list of examples to return.
      * 
@@ -675,8 +617,6 @@ public int getExamplesCount() { } } /** - * - * *
      * The list of examples to return.
      * 
@@ -691,15 +631,14 @@ public com.google.cloud.datalabeling.v1beta1.Example getExamples(int index) { } } /** - * - * *
      * The list of examples to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ - public Builder setExamples(int index, com.google.cloud.datalabeling.v1beta1.Example value) { + public Builder setExamples( + int index, com.google.cloud.datalabeling.v1beta1.Example value) { if (examplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -713,8 +652,6 @@ public Builder setExamples(int index, com.google.cloud.datalabeling.v1beta1.Exam return this; } /** - * - * *
      * The list of examples to return.
      * 
@@ -733,8 +670,6 @@ public Builder setExamples( return this; } /** - * - * *
      * The list of examples to return.
      * 
@@ -755,15 +690,14 @@ public Builder addExamples(com.google.cloud.datalabeling.v1beta1.Example value) return this; } /** - * - * *
      * The list of examples to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ - public Builder addExamples(int index, com.google.cloud.datalabeling.v1beta1.Example value) { + public Builder addExamples( + int index, com.google.cloud.datalabeling.v1beta1.Example value) { if (examplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -777,8 +711,6 @@ public Builder addExamples(int index, com.google.cloud.datalabeling.v1beta1.Exam return this; } /** - * - * *
      * The list of examples to return.
      * 
@@ -797,8 +729,6 @@ public Builder addExamples( return this; } /** - * - * *
      * The list of examples to return.
      * 
@@ -817,8 +747,6 @@ public Builder addExamples( return this; } /** - * - * *
      * The list of examples to return.
      * 
@@ -829,7 +757,8 @@ public Builder addAllExamples( java.lang.Iterable values) { if (examplesBuilder_ == null) { ensureExamplesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, examples_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, examples_); onChanged(); } else { examplesBuilder_.addAllMessages(values); @@ -837,8 +766,6 @@ public Builder addAllExamples( return this; } /** - * - * *
      * The list of examples to return.
      * 
@@ -856,8 +783,6 @@ public Builder clearExamples() { return this; } /** - * - * *
      * The list of examples to return.
      * 
@@ -875,44 +800,39 @@ public Builder removeExamples(int index) { return this; } /** - * - * *
      * The list of examples to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ - public com.google.cloud.datalabeling.v1beta1.Example.Builder getExamplesBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.Example.Builder getExamplesBuilder( + int index) { return getExamplesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of examples to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ - public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getExamplesOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getExamplesOrBuilder( + int index) { if (examplesBuilder_ == null) { - return examples_.get(index); - } else { + return examples_.get(index); } else { return examplesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of examples to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ - public java.util.List - getExamplesOrBuilderList() { + public java.util.List + getExamplesOrBuilderList() { if (examplesBuilder_ != null) { return examplesBuilder_.getMessageOrBuilderList(); } else { @@ -920,8 +840,6 @@ public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getExamplesOrBuild } } /** - * - * *
      * The list of examples to return.
      * 
@@ -929,48 +847,42 @@ public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getExamplesOrBuild * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ public com.google.cloud.datalabeling.v1beta1.Example.Builder addExamplesBuilder() { - return getExamplesFieldBuilder() - .addBuilder(com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance()); + return getExamplesFieldBuilder().addBuilder( + com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance()); } /** - * - * *
      * The list of examples to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ - public com.google.cloud.datalabeling.v1beta1.Example.Builder addExamplesBuilder(int index) { - return getExamplesFieldBuilder() - .addBuilder(index, com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.Example.Builder addExamplesBuilder( + int index) { + return getExamplesFieldBuilder().addBuilder( + index, com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance()); } /** - * - * *
      * The list of examples to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ - public java.util.List - getExamplesBuilderList() { + public java.util.List + getExamplesBuilderList() { return getExamplesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Example, - com.google.cloud.datalabeling.v1beta1.Example.Builder, - com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> + com.google.cloud.datalabeling.v1beta1.Example, com.google.cloud.datalabeling.v1beta1.Example.Builder, com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> getExamplesFieldBuilder() { if (examplesBuilder_ == null) { - examplesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Example, - com.google.cloud.datalabeling.v1beta1.Example.Builder, - com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder>( - examples_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + examplesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.Example, com.google.cloud.datalabeling.v1beta1.Example.Builder, com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder>( + examples_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); examples_ = null; } return examplesBuilder_; @@ -978,20 +890,18 @@ public com.google.cloud.datalabeling.v1beta1.Example.Builder addExamplesBuilder( private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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,21 +910,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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 { @@ -1022,68 +931,61 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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 +995,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListExamplesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListExamplesResponse) private static final com.google.cloud.datalabeling.v1beta1.ListExamplesResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListExamplesResponse(); } @@ -1107,16 +1009,16 @@ public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListExamplesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListExamplesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExamplesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListExamplesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1131,4 +1033,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ListExamplesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponseOrBuilder.java similarity index 68% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponseOrBuilder.java index 03023f63..3aea2f16 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponseOrBuilder.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListExamplesResponseOrBuilder - extends +public interface ListExamplesResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListExamplesResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of examples to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ - java.util.List getExamplesList(); + java.util.List + getExamplesList(); /** - * - * *
    * The list of examples to return.
    * 
@@ -44,8 +25,6 @@ public interface ListExamplesResponseOrBuilder */ com.google.cloud.datalabeling.v1beta1.Example getExamples(int index); /** - * - * *
    * The list of examples to return.
    * 
@@ -54,49 +33,41 @@ public interface ListExamplesResponseOrBuilder */ int getExamplesCount(); /** - * - * *
    * The list of examples to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ - java.util.List + java.util.List getExamplesOrBuilderList(); /** - * - * *
    * The list of examples to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ - com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getExamplesOrBuilder(int index); + com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getExamplesOrBuilder( + int index); /** - * - * *
    * A token to retrieve next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results.
    * 
* * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequest.java similarity index 71% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequest.java index a0333c96..a04ea96a 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for ListInstructions.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListInstructionsRequest} */ -public final class ListInstructionsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstructionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListInstructionsRequest) ListInstructionsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstructionsRequest.newBuilder() to construct. private ListInstructionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListInstructionsRequest() { parent_ = ""; filter_ = ""; @@ -45,15 +27,16 @@ private ListInstructionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstructionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListInstructionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private ListInstructionsRequest( 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: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 24: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 34: { + 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) { @@ -112,42 +92,35 @@ private ListInstructionsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.class, - com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.class, com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Instruction resource parent, format:
    * projects/{project_id}
    * 
* - * - * 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 @@ -156,32 +129,30 @@ 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. Instruction resource parent, format:
    * projects/{project_id}
    * 
* - * - * 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,14 +163,11 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -208,29 +176,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; } } /** - * - * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -241,15 +209,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -260,8 +225,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -271,7 +234,6 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -280,15 +242,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; } } /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -298,15 +259,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -315,7 +277,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -327,7 +288,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_); } @@ -356,7 +318,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -369,18 +332,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.datalabeling.v1beta1.ListInstructionsRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest other = - (com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest) 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.datalabeling.v1beta1.ListInstructionsRequest other = (com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest) 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; } @@ -406,127 +372,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest 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.datalabeling.v1beta1.ListInstructionsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListInstructions.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListInstructionsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListInstructionsRequest) com.google.cloud.datalabeling.v1beta1.ListInstructionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.class, - com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.class, com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.newBuilder() @@ -534,15 +490,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(); @@ -558,14 +515,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.getDefaultInstance(); } @@ -580,8 +536,7 @@ public com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest result = - new com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest(this); + com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest result = new com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -594,39 +549,38 @@ public com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest 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.datalabeling.v1beta1.ListInstructionsRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest)other); } else { super.mergeFrom(other); return this; @@ -634,9 +588,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest other) { - if (other - == com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -671,9 +623,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -685,23 +635,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Instruction resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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,24 +656,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Instruction resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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 { @@ -735,70 +678,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Instruction resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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. Instruction resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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. Instruction resource parent, format:
      * projects/{project_id}
      * 
* - * - * 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,20 +736,18 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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,21 +756,20 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -850,77 +777,67 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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_ ; /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -928,38 +845,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -967,8 +878,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -978,13 +887,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -993,8 +902,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1004,14 +911,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1019,8 +927,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1030,22 +936,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1055,18 +959,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -1076,23 +977,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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); } @@ -1102,13 +1003,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListInstructionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListInstructionsRequest) - private static final com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest(); } @@ -1117,16 +1017,16 @@ public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstructionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstructionsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstructionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstructionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1141,4 +1041,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequestOrBuilder.java similarity index 66% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequestOrBuilder.java index 582ee222..1ce8b2dd 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequestOrBuilder.java @@ -1,101 +1,66 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListInstructionsRequestOrBuilder - extends +public interface ListInstructionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListInstructionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Instruction resource parent, format:
    * projects/{project_id}
    * 
* - * - * 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. Instruction resource parent, format:
    * projects/{project_id}
    * 
* - * - * 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(); /** - * - * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -105,13 +70,10 @@ public interface ListInstructionsRequestOrBuilder
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -121,8 +83,8 @@ public interface ListInstructionsRequestOrBuilder
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponse.java similarity index 73% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponse.java index 2704bf83..9271d31a 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponse.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Results of listing instructions under a project.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListInstructionsResponse} */ -public final class ListInstructionsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListInstructionsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListInstructionsResponse) ListInstructionsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListInstructionsResponse.newBuilder() to construct. private ListInstructionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListInstructionsResponse() { instructions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListInstructionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListInstructionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListInstructionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,33 +55,28 @@ private ListInstructionsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - instructions_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - instructions_.add( - input.readMessage( - com.google.cloud.datalabeling.v1beta1.Instruction.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + instructions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + instructions_.add( + input.readMessage(com.google.cloud.datalabeling.v1beta1.Instruction.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) { @@ -106,7 +84,8 @@ private ListInstructionsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { instructions_ = java.util.Collections.unmodifiableList(instructions_); @@ -115,27 +94,22 @@ private ListInstructionsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.class, - com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.class, com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.Builder.class); } public static final int INSTRUCTIONS_FIELD_NUMBER = 1; private java.util.List instructions_; /** - * - * *
    * The list of Instructions to return.
    * 
@@ -147,8 +121,6 @@ public java.util.List getInst return instructions_; } /** - * - * *
    * The list of Instructions to return.
    * 
@@ -156,13 +128,11 @@ public java.util.List getInst * repeated .google.cloud.datalabeling.v1beta1.Instruction instructions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getInstructionsOrBuilderList() { return instructions_; } /** - * - * *
    * The list of Instructions to return.
    * 
@@ -174,8 +144,6 @@ public int getInstructionsCount() { return instructions_.size(); } /** - * - * *
    * The list of Instructions to return.
    * 
@@ -187,8 +155,6 @@ public com.google.cloud.datalabeling.v1beta1.Instruction getInstructions(int ind return instructions_.get(index); } /** - * - * *
    * The list of Instructions to return.
    * 
@@ -204,14 +170,11 @@ public com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstruction public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token to retrieve next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -220,29 +183,29 @@ 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.
    * 
* * 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 { @@ -251,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,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 < instructions_.size(); i++) { output.writeMessage(1, instructions_.get(i)); } @@ -280,7 +243,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < instructions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instructions_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, instructions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -293,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.datalabeling.v1beta1.ListInstructionsResponse)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse other = - (com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse) obj; + com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse other = (com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse) obj; - if (!getInstructionsList().equals(other.getInstructionsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getInstructionsList() + .equals(other.getInstructionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,127 +291,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse 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.datalabeling.v1beta1.ListInstructionsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Results of listing instructions under a project.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListInstructionsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListInstructionsResponse) com.google.cloud.datalabeling.v1beta1.ListInstructionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.class, - com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.class, com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.newBuilder() @@ -454,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) { getInstructionsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -480,14 +435,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.getDefaultInstance(); } @@ -502,8 +456,7 @@ public com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse result = - new com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse(this); + com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse result = new com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse(this); int from_bitField0_ = bitField0_; if (instructionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -523,39 +476,38 @@ public com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse 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.datalabeling.v1beta1.ListInstructionsResponse) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse)other); } else { super.mergeFrom(other); return this; @@ -563,9 +515,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse other) { - if (other - == com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.getDefaultInstance()) return this; if (instructionsBuilder_ == null) { if (!other.instructions_.isEmpty()) { if (instructions_.isEmpty()) { @@ -584,10 +534,9 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListInstructionsR instructionsBuilder_ = null; instructions_ = other.instructions_; bitField0_ = (bitField0_ & ~0x00000001); - instructionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getInstructionsFieldBuilder() - : null; + instructionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getInstructionsFieldBuilder() : null; } else { instructionsBuilder_.addAllMessages(other.instructions_); } @@ -616,9 +565,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -627,30 +574,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List instructions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureInstructionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - instructions_ = - new java.util.ArrayList( - instructions_); + instructions_ = new java.util.ArrayList(instructions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Instruction, - com.google.cloud.datalabeling.v1beta1.Instruction.Builder, - com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder> - instructionsBuilder_; + com.google.cloud.datalabeling.v1beta1.Instruction, com.google.cloud.datalabeling.v1beta1.Instruction.Builder, com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder> instructionsBuilder_; /** - * - * *
      * The list of Instructions to return.
      * 
@@ -665,8 +603,6 @@ public java.util.List getInst } } /** - * - * *
      * The list of Instructions to return.
      * 
@@ -681,8 +617,6 @@ public int getInstructionsCount() { } } /** - * - * *
      * The list of Instructions to return.
      * 
@@ -697,8 +631,6 @@ public com.google.cloud.datalabeling.v1beta1.Instruction getInstructions(int ind } } /** - * - * *
      * The list of Instructions to return.
      * 
@@ -720,8 +652,6 @@ public Builder setInstructions( return this; } /** - * - * *
      * The list of Instructions to return.
      * 
@@ -740,8 +670,6 @@ public Builder setInstructions( return this; } /** - * - * *
      * The list of Instructions to return.
      * 
@@ -762,8 +690,6 @@ public Builder addInstructions(com.google.cloud.datalabeling.v1beta1.Instruction return this; } /** - * - * *
      * The list of Instructions to return.
      * 
@@ -785,8 +711,6 @@ public Builder addInstructions( return this; } /** - * - * *
      * The list of Instructions to return.
      * 
@@ -805,8 +729,6 @@ public Builder addInstructions( return this; } /** - * - * *
      * The list of Instructions to return.
      * 
@@ -825,8 +747,6 @@ public Builder addInstructions( return this; } /** - * - * *
      * The list of Instructions to return.
      * 
@@ -837,7 +757,8 @@ public Builder addAllInstructions( java.lang.Iterable values) { if (instructionsBuilder_ == null) { ensureInstructionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instructions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, instructions_); onChanged(); } else { instructionsBuilder_.addAllMessages(values); @@ -845,8 +766,6 @@ public Builder addAllInstructions( return this; } /** - * - * *
      * The list of Instructions to return.
      * 
@@ -864,8 +783,6 @@ public Builder clearInstructions() { return this; } /** - * - * *
      * The list of Instructions to return.
      * 
@@ -883,8 +800,6 @@ public Builder removeInstructions(int index) { return this; } /** - * - * *
      * The list of Instructions to return.
      * 
@@ -896,8 +811,6 @@ public com.google.cloud.datalabeling.v1beta1.Instruction.Builder getInstructions return getInstructionsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of Instructions to return.
      * 
@@ -907,22 +820,19 @@ public com.google.cloud.datalabeling.v1beta1.Instruction.Builder getInstructions public com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstructionsOrBuilder( int index) { if (instructionsBuilder_ == null) { - return instructions_.get(index); - } else { + return instructions_.get(index); } else { return instructionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of Instructions to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Instruction instructions = 1; */ - public java.util.List - getInstructionsOrBuilderList() { + public java.util.List + getInstructionsOrBuilderList() { if (instructionsBuilder_ != null) { return instructionsBuilder_.getMessageOrBuilderList(); } else { @@ -930,8 +840,6 @@ public com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstruction } } /** - * - * *
      * The list of Instructions to return.
      * 
@@ -939,12 +847,10 @@ public com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstruction * repeated .google.cloud.datalabeling.v1beta1.Instruction instructions = 1; */ public com.google.cloud.datalabeling.v1beta1.Instruction.Builder addInstructionsBuilder() { - return getInstructionsFieldBuilder() - .addBuilder(com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance()); + return getInstructionsFieldBuilder().addBuilder( + com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance()); } /** - * - * *
      * The list of Instructions to return.
      * 
@@ -953,36 +859,30 @@ public com.google.cloud.datalabeling.v1beta1.Instruction.Builder addInstructions */ public com.google.cloud.datalabeling.v1beta1.Instruction.Builder addInstructionsBuilder( int index) { - return getInstructionsFieldBuilder() - .addBuilder( - index, com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance()); + return getInstructionsFieldBuilder().addBuilder( + index, com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance()); } /** - * - * *
      * The list of Instructions to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Instruction instructions = 1; */ - public java.util.List - getInstructionsBuilderList() { + public java.util.List + getInstructionsBuilderList() { return getInstructionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Instruction, - com.google.cloud.datalabeling.v1beta1.Instruction.Builder, - com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder> + com.google.cloud.datalabeling.v1beta1.Instruction, com.google.cloud.datalabeling.v1beta1.Instruction.Builder, com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder> getInstructionsFieldBuilder() { if (instructionsBuilder_ == null) { - instructionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Instruction, - com.google.cloud.datalabeling.v1beta1.Instruction.Builder, - com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder>( - instructions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + instructionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.Instruction, com.google.cloud.datalabeling.v1beta1.Instruction.Builder, com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder>( + instructions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); instructions_ = null; } return instructionsBuilder_; @@ -990,20 +890,18 @@ public com.google.cloud.datalabeling.v1beta1.Instruction.Builder addInstructions private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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; @@ -1012,21 +910,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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 { @@ -1034,68 +931,61 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -1105,32 +995,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListInstructionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListInstructionsResponse) - private static final com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse(); } - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstructionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstructionsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstructionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstructionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1142,8 +1030,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponseOrBuilder.java similarity index 68% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponseOrBuilder.java index 4ca8be04..30e6de37 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponseOrBuilder.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListInstructionsResponseOrBuilder - extends +public interface ListInstructionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListInstructionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of Instructions to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Instruction instructions = 1; */ - java.util.List getInstructionsList(); + java.util.List + getInstructionsList(); /** - * - * *
    * The list of Instructions to return.
    * 
@@ -44,8 +25,6 @@ public interface ListInstructionsResponseOrBuilder */ com.google.cloud.datalabeling.v1beta1.Instruction getInstructions(int index); /** - * - * *
    * The list of Instructions to return.
    * 
@@ -54,49 +33,41 @@ public interface ListInstructionsResponseOrBuilder */ int getInstructionsCount(); /** - * - * *
    * The list of Instructions to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Instruction instructions = 1; */ - java.util.List + java.util.List getInstructionsOrBuilderList(); /** - * - * *
    * The list of Instructions to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Instruction instructions = 1; */ - com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstructionsOrBuilder(int index); + com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstructionsOrBuilder( + int index); /** - * - * *
    * A token to retrieve next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results.
    * 
* * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPoly.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPoly.java similarity index 70% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPoly.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPoly.java index 72dc87ac..b5de6f44 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPoly.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPoly.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Normalized bounding polygon.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly} */ -public final class NormalizedBoundingPoly extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NormalizedBoundingPoly extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) NormalizedBoundingPolyOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NormalizedBoundingPoly.newBuilder() to construct. private NormalizedBoundingPoly(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NormalizedBoundingPoly() { 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 NormalizedBoundingPoly(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private NormalizedBoundingPoly( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,22 @@ private NormalizedBoundingPoly( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - normalizedVertices_ = - new java.util.ArrayList< - com.google.cloud.datalabeling.v1beta1.NormalizedVertex>(); - mutable_bitField0_ |= 0x00000001; - } - normalizedVertices_.add( - input.readMessage( - com.google.cloud.datalabeling.v1beta1.NormalizedVertex.parser(), - extensionRegistry)); - break; + case 10: { + 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.datalabeling.v1beta1.NormalizedVertex.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +77,8 @@ private NormalizedBoundingPoly( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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_); @@ -108,101 +87,80 @@ private NormalizedBoundingPoly( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.class, - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder.class); + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.class, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder.class); } public static final int NORMALIZED_VERTICES_FIELD_NUMBER = 1; - private java.util.List - normalizedVertices_; + private java.util.List normalizedVertices_; /** - * - * *
    * The bounding polygon normalized vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ @java.lang.Override - public java.util.List - getNormalizedVerticesList() { + public java.util.List getNormalizedVerticesList() { return normalizedVertices_; } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNormalizedVerticesOrBuilderList() { return normalizedVertices_; } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ @java.lang.Override public int getNormalizedVerticesCount() { return normalizedVertices_.size(); } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.NormalizedVertex getNormalizedVertices(int index) { return normalizedVertices_.get(index); } /** - * - * *
    * The bounding polygon normalized vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder - getNormalizedVerticesOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( + int index) { return normalizedVertices_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,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(1, normalizedVertices_.get(i)); } @@ -228,8 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < normalizedVertices_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, normalizedVertices_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, normalizedVertices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -239,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.datalabeling.v1beta1.NormalizedBoundingPoly)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly other = - (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) obj; + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly other = (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) obj; - if (!getNormalizedVerticesList().equals(other.getNormalizedVerticesList())) return false; + if (!getNormalizedVerticesList() + .equals(other.getNormalizedVerticesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -269,127 +228,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly 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.datalabeling.v1beta1.NormalizedBoundingPoly parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Normalized bounding polygon.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.class, - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder.class); + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.class, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.newBuilder() @@ -397,17 +346,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(); @@ -421,14 +370,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance(); } @@ -443,8 +391,7 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly buildPartial() { - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly result = - new com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly(this); + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly result = new com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly(this); int from_bitField0_ = bitField0_; if (normalizedVerticesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -463,39 +410,38 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly)other); } else { super.mergeFrom(other); return this; @@ -503,9 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly other) { - if (other - == com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance()) return this; if (normalizedVerticesBuilder_ == null) { if (!other.normalizedVertices_.isEmpty()) { if (normalizedVertices_.isEmpty()) { @@ -524,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.NormalizedBoundin 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,8 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -562,39 +504,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - normalizedVertices_ = java.util.Collections.emptyList(); - + private java.util.List normalizedVertices_ = + 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.datalabeling.v1beta1.NormalizedVertex, - com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, - com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder> - normalizedVerticesBuilder_; + com.google.cloud.datalabeling.v1beta1.NormalizedVertex, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder> normalizedVerticesBuilder_; /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ - public java.util.List - getNormalizedVerticesList() { + public java.util.List getNormalizedVerticesList() { if (normalizedVerticesBuilder_ == null) { return java.util.Collections.unmodifiableList(normalizedVertices_); } else { @@ -602,14 +533,11 @@ private void ensureNormalizedVerticesIsMutable() { } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ public int getNormalizedVerticesCount() { if (normalizedVerticesBuilder_ == null) { @@ -619,14 +547,11 @@ public int getNormalizedVerticesCount() { } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ public com.google.cloud.datalabeling.v1beta1.NormalizedVertex getNormalizedVertices(int index) { if (normalizedVerticesBuilder_ == null) { @@ -636,14 +561,11 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedVertex getNormalizedVerti } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ public Builder setNormalizedVertices( int index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex value) { @@ -660,14 +582,11 @@ public Builder setNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ public Builder setNormalizedVertices( int index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder builderForValue) { @@ -681,17 +600,13 @@ public Builder setNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ - public Builder addNormalizedVertices( - com.google.cloud.datalabeling.v1beta1.NormalizedVertex value) { + public Builder addNormalizedVertices(com.google.cloud.datalabeling.v1beta1.NormalizedVertex value) { if (normalizedVerticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -705,14 +620,11 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ public Builder addNormalizedVertices( int index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex value) { @@ -729,14 +641,11 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ public Builder addNormalizedVertices( com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder builderForValue) { @@ -750,14 +659,11 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ public Builder addNormalizedVertices( int index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder builderForValue) { @@ -771,21 +677,18 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ public Builder addAllNormalizedVertices( - java.lang.Iterable - values) { + 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); @@ -793,14 +696,11 @@ public Builder addAllNormalizedVertices( return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ public Builder clearNormalizedVertices() { if (normalizedVerticesBuilder_ == null) { @@ -813,14 +713,11 @@ public Builder clearNormalizedVertices() { return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ public Builder removeNormalizedVertices(int index) { if (normalizedVerticesBuilder_ == null) { @@ -833,49 +730,39 @@ public Builder removeNormalizedVertices(int index) { return this; } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ - public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder - getNormalizedVerticesBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder getNormalizedVerticesBuilder( + int index) { return getNormalizedVerticesFieldBuilder().getBuilder(index); } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ - public com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder - getNormalizedVerticesOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( + int index) { if (normalizedVerticesBuilder_ == null) { - return normalizedVertices_.get(index); - } else { + return normalizedVertices_.get(index); } else { return normalizedVerticesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ - public java.util.List - getNormalizedVerticesOrBuilderList() { + public java.util.List + getNormalizedVerticesOrBuilderList() { if (normalizedVerticesBuilder_ != null) { return normalizedVerticesBuilder_.getMessageOrBuilderList(); } else { @@ -883,62 +770,45 @@ public Builder removeNormalizedVertices(int index) { } } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ - public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder - addNormalizedVerticesBuilder() { - return getNormalizedVerticesFieldBuilder() - .addBuilder(com.google.cloud.datalabeling.v1beta1.NormalizedVertex.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder() { + return getNormalizedVerticesFieldBuilder().addBuilder( + com.google.cloud.datalabeling.v1beta1.NormalizedVertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ - public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder - addNormalizedVerticesBuilder(int index) { - return getNormalizedVerticesFieldBuilder() - .addBuilder( - index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder( + int index) { + return getNormalizedVerticesFieldBuilder().addBuilder( + index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.getDefaultInstance()); } /** - * - * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ - public java.util.List - getNormalizedVerticesBuilderList() { + public java.util.List + getNormalizedVerticesBuilderList() { return getNormalizedVerticesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.NormalizedVertex, - com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, - com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder> + com.google.cloud.datalabeling.v1beta1.NormalizedVertex, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder> getNormalizedVerticesFieldBuilder() { if (normalizedVerticesBuilder_ == null) { - normalizedVerticesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.NormalizedVertex, - com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, - com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder>( + normalizedVerticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.NormalizedVertex, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder>( normalizedVertices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -947,9 +817,9 @@ public Builder removeNormalizedVertices(int index) { } 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); } @@ -959,13 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) - private static final com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly(); } @@ -974,16 +843,16 @@ public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NormalizedBoundingPoly parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NormalizedBoundingPoly(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NormalizedBoundingPoly parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NormalizedBoundingPoly(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -998,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPolyOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPolyOrBuilder.java similarity index 61% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPolyOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPolyOrBuilder.java index 70cb2b31..9d95a345 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPolyOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPolyOrBuilder.java @@ -1,83 +1,52 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface NormalizedBoundingPolyOrBuilder - extends +public interface NormalizedBoundingPolyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The bounding polygon normalized vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ - java.util.List + java.util.List getNormalizedVerticesList(); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ com.google.cloud.datalabeling.v1beta1.NormalizedVertex getNormalizedVertices(int index); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ int getNormalizedVerticesCount(); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ - java.util.List + java.util.List getNormalizedVerticesOrBuilderList(); /** - * - * *
    * The bounding polygon normalized vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( int index); diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolyline.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolyline.java similarity index 70% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolyline.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolyline.java index df05b713..8effad00 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolyline.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolyline.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Normalized polyline.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.NormalizedPolyline} */ -public final class NormalizedPolyline extends com.google.protobuf.GeneratedMessageV3 - implements +public final class NormalizedPolyline extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.NormalizedPolyline) NormalizedPolylineOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use NormalizedPolyline.newBuilder() to construct. private NormalizedPolyline(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NormalizedPolyline() { 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 NormalizedPolyline(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private NormalizedPolyline( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,22 @@ private NormalizedPolyline( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - normalizedVertices_ = - new java.util.ArrayList< - com.google.cloud.datalabeling.v1beta1.NormalizedVertex>(); - mutable_bitField0_ |= 0x00000001; - } - normalizedVertices_.add( - input.readMessage( - com.google.cloud.datalabeling.v1beta1.NormalizedVertex.parser(), - extensionRegistry)); - break; + case 10: { + 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.datalabeling.v1beta1.NormalizedVertex.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,7 +77,8 @@ private NormalizedPolyline( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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_); @@ -108,101 +87,80 @@ private NormalizedPolyline( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.class, - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder.class); + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.class, com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder.class); } public static final int NORMALIZED_VERTICES_FIELD_NUMBER = 1; - private java.util.List - normalizedVertices_; + private java.util.List normalizedVertices_; /** - * - * *
    * The normalized polyline vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ @java.lang.Override - public java.util.List - getNormalizedVerticesList() { + public java.util.List getNormalizedVerticesList() { return normalizedVertices_; } /** - * - * *
    * The normalized polyline vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNormalizedVerticesOrBuilderList() { return normalizedVertices_; } /** - * - * *
    * The normalized polyline vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ @java.lang.Override public int getNormalizedVerticesCount() { return normalizedVertices_.size(); } /** - * - * *
    * The normalized polyline vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.NormalizedVertex getNormalizedVertices(int index) { return normalizedVertices_.get(index); } /** - * - * *
    * The normalized polyline vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder - getNormalizedVerticesOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( + int index) { return normalizedVertices_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -214,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(1, normalizedVertices_.get(i)); } @@ -228,8 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < normalizedVertices_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, normalizedVertices_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, normalizedVertices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -239,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.datalabeling.v1beta1.NormalizedPolyline)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline other = - (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) obj; + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline other = (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) obj; - if (!getNormalizedVerticesList().equals(other.getNormalizedVerticesList())) return false; + if (!getNormalizedVerticesList() + .equals(other.getNormalizedVerticesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -269,127 +228,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline 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.datalabeling.v1beta1.NormalizedPolyline parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.NormalizedPolyline prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Normalized polyline.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.NormalizedPolyline} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.NormalizedPolyline) com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.class, - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder.class); + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.class, com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.newBuilder() @@ -397,17 +346,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(); @@ -421,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor; } @java.lang.Override @@ -442,8 +391,7 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedPolyline build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.NormalizedPolyline buildPartial() { - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline result = - new com.google.cloud.datalabeling.v1beta1.NormalizedPolyline(this); + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline result = new com.google.cloud.datalabeling.v1beta1.NormalizedPolyline(this); int from_bitField0_ = bitField0_; if (normalizedVerticesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -462,39 +410,38 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedPolyline buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.NormalizedPolyline)other); } else { super.mergeFrom(other); return this; @@ -502,8 +449,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.NormalizedPolyline other) { - if (other == com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.getDefaultInstance()) return this; if (normalizedVerticesBuilder_ == null) { if (!other.normalizedVertices_.isEmpty()) { if (normalizedVertices_.isEmpty()) { @@ -522,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.NormalizedPolylin 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_); } @@ -550,8 +495,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -560,39 +504,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List - normalizedVertices_ = java.util.Collections.emptyList(); - + private java.util.List normalizedVertices_ = + 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.datalabeling.v1beta1.NormalizedVertex, - com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, - com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder> - normalizedVerticesBuilder_; + com.google.cloud.datalabeling.v1beta1.NormalizedVertex, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder> normalizedVerticesBuilder_; /** - * - * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ - public java.util.List - getNormalizedVerticesList() { + public java.util.List getNormalizedVerticesList() { if (normalizedVerticesBuilder_ == null) { return java.util.Collections.unmodifiableList(normalizedVertices_); } else { @@ -600,14 +533,11 @@ private void ensureNormalizedVerticesIsMutable() { } } /** - * - * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ public int getNormalizedVerticesCount() { if (normalizedVerticesBuilder_ == null) { @@ -617,14 +547,11 @@ public int getNormalizedVerticesCount() { } } /** - * - * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ public com.google.cloud.datalabeling.v1beta1.NormalizedVertex getNormalizedVertices(int index) { if (normalizedVerticesBuilder_ == null) { @@ -634,14 +561,11 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedVertex getNormalizedVerti } } /** - * - * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ public Builder setNormalizedVertices( int index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex value) { @@ -658,14 +582,11 @@ public Builder setNormalizedVertices( return this; } /** - * - * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ public Builder setNormalizedVertices( int index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder builderForValue) { @@ -679,17 +600,13 @@ public Builder setNormalizedVertices( return this; } /** - * - * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ - public Builder addNormalizedVertices( - com.google.cloud.datalabeling.v1beta1.NormalizedVertex value) { + public Builder addNormalizedVertices(com.google.cloud.datalabeling.v1beta1.NormalizedVertex value) { if (normalizedVerticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -703,14 +620,11 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ public Builder addNormalizedVertices( int index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex value) { @@ -727,14 +641,11 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ public Builder addNormalizedVertices( com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder builderForValue) { @@ -748,14 +659,11 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ public Builder addNormalizedVertices( int index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder builderForValue) { @@ -769,21 +677,18 @@ public Builder addNormalizedVertices( return this; } /** - * - * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ public Builder addAllNormalizedVertices( - java.lang.Iterable - values) { + 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); @@ -791,14 +696,11 @@ public Builder addAllNormalizedVertices( return this; } /** - * - * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ public Builder clearNormalizedVertices() { if (normalizedVerticesBuilder_ == null) { @@ -811,14 +713,11 @@ public Builder clearNormalizedVertices() { return this; } /** - * - * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ public Builder removeNormalizedVertices(int index) { if (normalizedVerticesBuilder_ == null) { @@ -831,49 +730,39 @@ public Builder removeNormalizedVertices(int index) { return this; } /** - * - * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ - public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder - getNormalizedVerticesBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder getNormalizedVerticesBuilder( + int index) { return getNormalizedVerticesFieldBuilder().getBuilder(index); } /** - * - * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ - public com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder - getNormalizedVerticesOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( + int index) { if (normalizedVerticesBuilder_ == null) { - return normalizedVertices_.get(index); - } else { + return normalizedVertices_.get(index); } else { return normalizedVerticesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ - public java.util.List - getNormalizedVerticesOrBuilderList() { + public java.util.List + getNormalizedVerticesOrBuilderList() { if (normalizedVerticesBuilder_ != null) { return normalizedVerticesBuilder_.getMessageOrBuilderList(); } else { @@ -881,62 +770,45 @@ public Builder removeNormalizedVertices(int index) { } } /** - * - * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ - public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder - addNormalizedVerticesBuilder() { - return getNormalizedVerticesFieldBuilder() - .addBuilder(com.google.cloud.datalabeling.v1beta1.NormalizedVertex.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder() { + return getNormalizedVerticesFieldBuilder().addBuilder( + com.google.cloud.datalabeling.v1beta1.NormalizedVertex.getDefaultInstance()); } /** - * - * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ - public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder - addNormalizedVerticesBuilder(int index) { - return getNormalizedVerticesFieldBuilder() - .addBuilder( - index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder( + int index) { + return getNormalizedVerticesFieldBuilder().addBuilder( + index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.getDefaultInstance()); } /** - * - * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ - public java.util.List - getNormalizedVerticesBuilderList() { + public java.util.List + getNormalizedVerticesBuilderList() { return getNormalizedVerticesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.NormalizedVertex, - com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, - com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder> + com.google.cloud.datalabeling.v1beta1.NormalizedVertex, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder> getNormalizedVerticesFieldBuilder() { if (normalizedVerticesBuilder_ == null) { - normalizedVerticesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.NormalizedVertex, - com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, - com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder>( + normalizedVerticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.NormalizedVertex, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder>( normalizedVertices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -945,9 +817,9 @@ public Builder removeNormalizedVertices(int index) { } 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); } @@ -957,12 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.NormalizedPolyline) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.NormalizedPolyline) private static final com.google.cloud.datalabeling.v1beta1.NormalizedPolyline DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.NormalizedPolyline(); } @@ -971,16 +843,16 @@ public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NormalizedPolyline parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NormalizedPolyline(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NormalizedPolyline parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NormalizedPolyline(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -995,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.NormalizedPolyline getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolylineOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolylineOrBuilder.java similarity index 60% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolylineOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolylineOrBuilder.java index 8eaef191..28effdb1 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolylineOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolylineOrBuilder.java @@ -1,83 +1,52 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface NormalizedPolylineOrBuilder - extends +public interface NormalizedPolylineOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.NormalizedPolyline) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The normalized polyline vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ - java.util.List + java.util.List getNormalizedVerticesList(); /** - * - * *
    * The normalized polyline vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ com.google.cloud.datalabeling.v1beta1.NormalizedVertex getNormalizedVertices(int index); /** - * - * *
    * The normalized polyline vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ int getNormalizedVerticesCount(); /** - * - * *
    * The normalized polyline vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ - java.util.List + java.util.List getNormalizedVerticesOrBuilderList(); /** - * - * *
    * The normalized polyline vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; */ com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( int index); diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertex.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertex.java similarity index 68% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertex.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertex.java index cfc65a87..b1f26531 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertex.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * A vertex represents a 2D point in the image.
  * NOTE: the normalized vertex coordinates are relative to the original image
@@ -29,29 +12,30 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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)
@@ -70,23 +54,23 @@ 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) {
@@ -94,39 +78,34 @@ private NormalizedVertex(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.NormalizedVertex.class,
-            com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.NormalizedVertex.class, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private float x_;
   /**
-   *
-   *
    * 
    * X 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_; /** - * - * *
    * Y 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 (java.lang.Float.floatToRawIntBits(x_) != 0) { output.writeFloat(1, x_); } @@ -182,10 +158,12 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(x_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, x_); } if (java.lang.Float.floatToRawIntBits(y_) != 0) { - 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.datalabeling.v1beta1.NormalizedVertex)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.NormalizedVertex other = - (com.google.cloud.datalabeling.v1beta1.NormalizedVertex) obj; + com.google.cloud.datalabeling.v1beta1.NormalizedVertex other = (com.google.cloud.datalabeling.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,113 +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.datalabeling.v1beta1.NormalizedVertex 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.datalabeling.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.datalabeling.v1beta1.NormalizedVertex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.NormalizedVertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.NormalizedVertex parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.NormalizedVertex parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.NormalizedVertex parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.NormalizedVertex parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.NormalizedVertex prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.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.
    * NOTE: the normalized vertex coordinates are relative to the original image
@@ -334,23 +307,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.NormalizedVertex)
       com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.NormalizedVertex.class,
-              com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.NormalizedVertex.class, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.NormalizedVertex.newBuilder()
@@ -358,15 +329,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 +350,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
@@ -399,8 +371,7 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedVertex build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.NormalizedVertex buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.NormalizedVertex result =
-          new com.google.cloud.datalabeling.v1beta1.NormalizedVertex(this);
+      com.google.cloud.datalabeling.v1beta1.NormalizedVertex result = new com.google.cloud.datalabeling.v1beta1.NormalizedVertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -411,39 +382,38 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.NormalizedVertex) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.NormalizedVertex) other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.NormalizedVertex)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -451,8 +421,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.NormalizedVertex other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.NormalizedVertex.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.NormalizedVertex.getDefaultInstance()) return this;
       if (other.getX() != 0F) {
         setX(other.getX());
       }
@@ -478,8 +447,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.datalabeling.v1beta1.NormalizedVertex) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.datalabeling.v1beta1.NormalizedVertex) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -489,16 +457,13 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_;
+    private float x_ ;
     /**
-     *
-     *
      * 
      * X coordinate.
      * 
* * float x = 1; - * * @return The x. */ @java.lang.Override @@ -506,51 +471,42 @@ public float getX() { return x_; } /** - * - * *
      * X 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; } /** - * - * *
      * X coordinate.
      * 
* * float x = 1; - * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_; + private float y_ ; /** - * - * *
      * Y coordinate.
      * 
* * float y = 2; - * * @return The y. */ @java.lang.Override @@ -558,43 +514,37 @@ public float getY() { return y_; } /** - * - * *
      * Y 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; } /** - * - * *
      * Y 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 +554,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.NormalizedVertex) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.NormalizedVertex) private static final com.google.cloud.datalabeling.v1beta1.NormalizedVertex DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.NormalizedVertex(); } @@ -618,16 +568,16 @@ public static com.google.cloud.datalabeling.v1beta1.NormalizedVertex getDefaultI 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 +592,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.NormalizedVertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertexOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertexOrBuilder.java new file mode 100644 index 00000000..36340d1f --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertexOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/annotation.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface NormalizedVertexOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.NormalizedVertex) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * X coordinate.
+   * 
+ * + * float x = 1; + * @return The x. + */ + float getX(); + + /** + *
+   * Y coordinate.
+   * 
+ * + * float y = 2; + * @return The y. + */ + float getY(); +} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfig.java similarity index 71% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfig.java index 61842016..95258921 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Config for video object detection human labeling task.
  * Object detection will be conducted on the images extracted from the video,
@@ -31,31 +14,31 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.ObjectDetectionConfig}
  */
-public final class ObjectDetectionConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ObjectDetectionConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ObjectDetectionConfig)
     ObjectDetectionConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ObjectDetectionConfig.newBuilder() to construct.
   private ObjectDetectionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ObjectDetectionConfig() {
     annotationSpecSet_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ObjectDetectionConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ObjectDetectionConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,25 +57,24 @@ private ObjectDetectionConfig(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+          case 10: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              annotationSpecSet_ = s;
-              break;
-            }
-          case 25:
-            {
-              extractionFrameRate_ = input.readDouble();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            annotationSpecSet_ = s;
+            break;
+          }
+          case 25: {
+
+            extractionFrameRate_ = input.readDouble();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -100,39 +82,34 @@ private ObjectDetectionConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.class,
-            com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.class, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder.class);
   }
 
   public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER = 1;
   private volatile java.lang.Object annotationSpecSet_;
   /**
-   *
-   *
    * 
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ @java.lang.Override @@ -141,29 +118,29 @@ public java.lang.String getAnnotationSpecSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; } } /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ @java.lang.Override - public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -174,14 +151,11 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { public static final int EXTRACTION_FRAME_RATE_FIELD_NUMBER = 3; private double extractionFrameRate_; /** - * - * *
    * Required. Number of frames per second to be extracted from the video.
    * 
* * double extraction_frame_rate = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The extractionFrameRate. */ @java.lang.Override @@ -190,7 +164,6 @@ public double getExtractionFrameRate() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -202,7 +175,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(annotationSpecSet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecSet_); } @@ -222,7 +196,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, annotationSpecSet_); } if (java.lang.Double.doubleToRawLongBits(extractionFrameRate_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, extractionFrameRate_); + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(3, extractionFrameRate_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -232,17 +207,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.datalabeling.v1beta1.ObjectDetectionConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig other = - (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) obj; + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig other = (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) obj; - if (!getAnnotationSpecSet().equals(other.getAnnotationSpecSet())) return false; + if (!getAnnotationSpecSet() + .equals(other.getAnnotationSpecSet())) return false; if (java.lang.Double.doubleToLongBits(getExtractionFrameRate()) - != java.lang.Double.doubleToLongBits(other.getExtractionFrameRate())) return false; + != java.lang.Double.doubleToLongBits( + other.getExtractionFrameRate())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -257,114 +233,104 @@ public int hashCode() { hash = (37 * hash) + ANNOTATION_SPEC_SET_FIELD_NUMBER; hash = (53 * hash) + getAnnotationSpecSet().hashCode(); hash = (37 * hash) + EXTRACTION_FRAME_RATE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getExtractionFrameRate())); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getExtractionFrameRate())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig 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.datalabeling.v1beta1.ObjectDetectionConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Config for video object detection human labeling task.
    * Object detection will be conducted on the images extracted from the video,
@@ -375,23 +341,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.ObjectDetectionConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ObjectDetectionConfig)
       com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.class,
-              com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.class, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.newBuilder()
@@ -399,15 +363,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();
@@ -419,9 +384,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor;
     }
 
     @java.lang.Override
@@ -440,8 +405,7 @@ public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig result =
-          new com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig(this);
+      com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig result = new com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig(this);
       result.annotationSpecSet_ = annotationSpecSet_;
       result.extractionFrameRate_ = extractionFrameRate_;
       onBuilt();
@@ -452,39 +416,38 @@ public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig buildPartial(
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -492,8 +455,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance()) return this;
       if (!other.getAnnotationSpecSet().isEmpty()) {
         annotationSpecSet_ = other.annotationSpecSet_;
         onChanged();
@@ -520,8 +482,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -533,20 +494,18 @@ public Builder mergeFrom(
 
     private java.lang.Object annotationSpecSet_ = "";
     /**
-     *
-     *
      * 
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ public java.lang.String getAnnotationSpecSet() { java.lang.Object ref = annotationSpecSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; @@ -555,21 +514,20 @@ public java.lang.String getAnnotationSpecSet() { } } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ - public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -577,76 +535,66 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { } } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSet(java.lang.String value) { + public Builder setAnnotationSpecSet( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecSet_ = value; onChanged(); return this; } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAnnotationSpecSet() { - + annotationSpecSet_ = getDefaultInstance().getAnnotationSpecSet(); onChanged(); return this; } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecSetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecSet_ = value; onChanged(); return this; } - private double extractionFrameRate_; + private double extractionFrameRate_ ; /** - * - * *
      * Required. Number of frames per second to be extracted from the video.
      * 
* * double extraction_frame_rate = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The extractionFrameRate. */ @java.lang.Override @@ -654,43 +602,37 @@ public double getExtractionFrameRate() { return extractionFrameRate_; } /** - * - * *
      * Required. Number of frames per second to be extracted from the video.
      * 
* * double extraction_frame_rate = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The extractionFrameRate to set. * @return This builder for chaining. */ public Builder setExtractionFrameRate(double value) { - + extractionFrameRate_ = value; onChanged(); return this; } /** - * - * *
      * Required. Number of frames per second to be extracted from the video.
      * 
* * double extraction_frame_rate = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearExtractionFrameRate() { - + extractionFrameRate_ = 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); } @@ -700,12 +642,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) private static final com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig(); } @@ -714,16 +656,16 @@ public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectDetectionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObjectDetectionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectDetectionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectDetectionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -738,4 +680,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfigOrBuilder.java similarity index 59% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfigOrBuilder.java index 3ad3b03c..010ef1a4 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfigOrBuilder.java @@ -1,62 +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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface ObjectDetectionConfigOrBuilder - extends +public interface ObjectDetectionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ java.lang.String getAnnotationSpecSet(); /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ - com.google.protobuf.ByteString getAnnotationSpecSetBytes(); + com.google.protobuf.ByteString + getAnnotationSpecSetBytes(); /** - * - * *
    * Required. Number of frames per second to be extracted from the video.
    * 
* * double extraction_frame_rate = 3 [(.google.api.field_behavior) = REQUIRED]; - * * @return The extractionFrameRate. */ double getExtractionFrameRate(); diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetrics.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetrics.java similarity index 68% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetrics.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetrics.java index 8cae981f..fd5030fa 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetrics.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetrics.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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Metrics calculated for an image object detection (bounding box) model.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics} */ -public final class ObjectDetectionMetrics extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ObjectDetectionMetrics extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) ObjectDetectionMetricsOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ObjectDetectionMetrics.newBuilder() to construct. private ObjectDetectionMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ObjectDetectionMetrics() {} + private ObjectDetectionMetrics() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ObjectDetectionMetrics(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ObjectDetectionMetrics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,29 +52,26 @@ private ObjectDetectionMetrics( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.PrCurve.Builder subBuilder = null; - if (prCurve_ != null) { - subBuilder = prCurve_.toBuilder(); - } - prCurve_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.PrCurve.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(prCurve_); - prCurve_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.PrCurve.Builder subBuilder = null; + if (prCurve_ != null) { + subBuilder = prCurve_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + prCurve_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.PrCurve.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(prCurve_); + prCurve_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -98,39 +79,34 @@ private ObjectDetectionMetrics( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.class, - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder.class); + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.class, com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder.class); } public static final int PR_CURVE_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.PrCurve prCurve_; /** - * - * *
    * Precision-recall curve.
    * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; - * * @return Whether the prCurve field is set. */ @java.lang.Override @@ -138,25 +114,18 @@ public boolean hasPrCurve() { return prCurve_ != null; } /** - * - * *
    * Precision-recall curve.
    * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; - * * @return The prCurve. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PrCurve getPrCurve() { - return prCurve_ == null - ? com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance() - : prCurve_; + return prCurve_ == null ? com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance() : prCurve_; } /** - * - * *
    * Precision-recall curve.
    * 
@@ -169,7 +138,6 @@ public com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder getPrCurveOrBuilde } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,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 (prCurve_ != null) { output.writeMessage(1, getPrCurve()); } @@ -195,7 +164,8 @@ public int getSerializedSize() { size = 0; if (prCurve_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPrCurve()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPrCurve()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -205,17 +175,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.datalabeling.v1beta1.ObjectDetectionMetrics)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics other = - (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) obj; + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics other = (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) obj; if (hasPrCurve() != other.hasPrCurve()) return false; if (hasPrCurve()) { - if (!getPrCurve().equals(other.getPrCurve())) return false; + if (!getPrCurve() + .equals(other.getPrCurve())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -238,127 +208,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics 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.datalabeling.v1beta1.ObjectDetectionMetrics parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Metrics calculated for an image object detection (bounding box) model.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.class, - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder.class); + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.class, com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.newBuilder() @@ -366,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(); @@ -388,14 +349,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.getDefaultInstance(); } @@ -410,8 +370,7 @@ public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics buildPartial() { - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics result = - new com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics(this); + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics result = new com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics(this); if (prCurveBuilder_ == null) { result.prCurve_ = prCurve_; } else { @@ -425,39 +384,38 @@ public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics)other); } else { super.mergeFrom(other); return this; @@ -465,9 +423,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics other) { - if (other - == com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.getDefaultInstance()) return this; if (other.hasPrCurve()) { mergePrCurve(other.getPrCurve()); } @@ -490,8 +446,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -503,47 +458,34 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.PrCurve prCurve_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.PrCurve, - com.google.cloud.datalabeling.v1beta1.PrCurve.Builder, - com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder> - prCurveBuilder_; + com.google.cloud.datalabeling.v1beta1.PrCurve, com.google.cloud.datalabeling.v1beta1.PrCurve.Builder, com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder> prCurveBuilder_; /** - * - * *
      * Precision-recall curve.
      * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; - * * @return Whether the prCurve field is set. */ public boolean hasPrCurve() { return prCurveBuilder_ != null || prCurve_ != null; } /** - * - * *
      * Precision-recall curve.
      * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; - * * @return The prCurve. */ public com.google.cloud.datalabeling.v1beta1.PrCurve getPrCurve() { if (prCurveBuilder_ == null) { - return prCurve_ == null - ? com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance() - : prCurve_; + return prCurve_ == null ? com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance() : prCurve_; } else { return prCurveBuilder_.getMessage(); } } /** - * - * *
      * Precision-recall curve.
      * 
@@ -564,8 +506,6 @@ public Builder setPrCurve(com.google.cloud.datalabeling.v1beta1.PrCurve value) { return this; } /** - * - * *
      * Precision-recall curve.
      * 
@@ -584,8 +524,6 @@ public Builder setPrCurve( return this; } /** - * - * *
      * Precision-recall curve.
      * 
@@ -596,9 +534,7 @@ public Builder mergePrCurve(com.google.cloud.datalabeling.v1beta1.PrCurve value) if (prCurveBuilder_ == null) { if (prCurve_ != null) { prCurve_ = - com.google.cloud.datalabeling.v1beta1.PrCurve.newBuilder(prCurve_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.PrCurve.newBuilder(prCurve_).mergeFrom(value).buildPartial(); } else { prCurve_ = value; } @@ -610,8 +546,6 @@ public Builder mergePrCurve(com.google.cloud.datalabeling.v1beta1.PrCurve value) return this; } /** - * - * *
      * Precision-recall curve.
      * 
@@ -630,8 +564,6 @@ public Builder clearPrCurve() { return this; } /** - * - * *
      * Precision-recall curve.
      * 
@@ -639,13 +571,11 @@ public Builder clearPrCurve() { * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; */ public com.google.cloud.datalabeling.v1beta1.PrCurve.Builder getPrCurveBuilder() { - + onChanged(); return getPrCurveFieldBuilder().getBuilder(); } /** - * - * *
      * Precision-recall curve.
      * 
@@ -656,14 +586,11 @@ public com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder getPrCurveOrBuilde if (prCurveBuilder_ != null) { return prCurveBuilder_.getMessageOrBuilder(); } else { - return prCurve_ == null - ? com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance() - : prCurve_; + return prCurve_ == null ? + com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance() : prCurve_; } } /** - * - * *
      * Precision-recall curve.
      * 
@@ -671,24 +598,21 @@ public com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder getPrCurveOrBuilde * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.PrCurve, - com.google.cloud.datalabeling.v1beta1.PrCurve.Builder, - com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder> + com.google.cloud.datalabeling.v1beta1.PrCurve, com.google.cloud.datalabeling.v1beta1.PrCurve.Builder, com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder> getPrCurveFieldBuilder() { if (prCurveBuilder_ == null) { - prCurveBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.PrCurve, - com.google.cloud.datalabeling.v1beta1.PrCurve.Builder, - com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder>( - getPrCurve(), getParentForChildren(), isClean()); + prCurveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.PrCurve, com.google.cloud.datalabeling.v1beta1.PrCurve.Builder, com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder>( + getPrCurve(), + getParentForChildren(), + isClean()); prCurve_ = null; } return prCurveBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -698,13 +622,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) - private static final com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics(); } @@ -713,16 +636,16 @@ public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectDetectionMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObjectDetectionMetrics(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectDetectionMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectDetectionMetrics(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -737,4 +660,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetricsOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetricsOrBuilder.java similarity index 58% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetricsOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetricsOrBuilder.java index 7bf3b0c9..20a4180a 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetricsOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetricsOrBuilder.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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; -public interface ObjectDetectionMetricsOrBuilder - extends +public interface ObjectDetectionMetricsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Precision-recall curve.
    * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; - * * @return Whether the prCurve field is set. */ boolean hasPrCurve(); /** - * - * *
    * Precision-recall curve.
    * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; - * * @return The prCurve. */ com.google.cloud.datalabeling.v1beta1.PrCurve getPrCurve(); /** - * - * *
    * Precision-recall curve.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfig.java similarity index 69% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfig.java index 8efcc4c4..f3e39fcd 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Config for video object tracking human labeling task.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ObjectTrackingConfig} */ -public final class ObjectTrackingConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ObjectTrackingConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) ObjectTrackingConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ObjectTrackingConfig.newBuilder() to construct. private ObjectTrackingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ObjectTrackingConfig() { annotationSpecSet_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ObjectTrackingConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ObjectTrackingConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private ObjectTrackingConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - annotationSpecSet_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + annotationSpecSet_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,39 +73,34 @@ private ObjectTrackingConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.class, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.class, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder.class); } public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER = 1; private volatile java.lang.Object annotationSpecSet_; /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ @java.lang.Override @@ -132,29 +109,29 @@ public java.lang.String getAnnotationSpecSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; } } /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ @java.lang.Override - public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -163,7 +140,6 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +151,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(annotationSpecSet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecSet_); } @@ -199,15 +176,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.datalabeling.v1beta1.ObjectTrackingConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig other = - (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) obj; + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig other = (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) obj; - if (!getAnnotationSpecSet().equals(other.getAnnotationSpecSet())) return false; + if (!getAnnotationSpecSet() + .equals(other.getAnnotationSpecSet())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig 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.datalabeling.v1beta1.ObjectTrackingConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Config for video object tracking human labeling task.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ObjectTrackingConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.class, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.class, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.newBuilder() @@ -355,15 +322,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(); @@ -373,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor; } @java.lang.Override @@ -394,8 +362,7 @@ public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig result = - new com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig(this); + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig result = new com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig(this); result.annotationSpecSet_ = annotationSpecSet_; onBuilt(); return result; @@ -405,39 +372,38 @@ public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig)other); } else { super.mergeFrom(other); return this; @@ -445,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig other) { - if (other == com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance()) return this; if (!other.getAnnotationSpecSet().isEmpty()) { annotationSpecSet_ = other.annotationSpecSet_; onChanged(); @@ -470,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -483,20 +447,18 @@ public Builder mergeFrom( private java.lang.Object annotationSpecSet_ = ""; /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ public java.lang.String getAnnotationSpecSet() { java.lang.Object ref = annotationSpecSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; @@ -505,21 +467,20 @@ public java.lang.String getAnnotationSpecSet() { } } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ - public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -527,68 +488,61 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { } } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSet(java.lang.String value) { + public Builder setAnnotationSpecSet( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecSet_ = value; onChanged(); return this; } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAnnotationSpecSet() { - + annotationSpecSet_ = getDefaultInstance().getAnnotationSpecSet(); onChanged(); return this; } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecSetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecSet_ = 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); } @@ -598,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) private static final com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig(); } @@ -612,16 +566,16 @@ public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectTrackingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObjectTrackingConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectTrackingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectTrackingConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -636,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfigOrBuilder.java similarity index 52% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfigOrBuilder.java index 9c23d068..1b3dc0b3 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfigOrBuilder.java @@ -1,50 +1,29 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface ObjectTrackingConfigOrBuilder - extends +public interface ObjectTrackingConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ java.lang.String getAnnotationSpecSet(); /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ - com.google.protobuf.ByteString getAnnotationSpecSetBytes(); + com.google.protobuf.ByteString + getAnnotationSpecSetBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrame.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrame.java similarity index 66% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrame.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrame.java index 0192232d..eac450e3 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrame.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrame.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Video frame level annotation for object detection and tracking.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ObjectTrackingFrame} */ -public final class ObjectTrackingFrame extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ObjectTrackingFrame extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ObjectTrackingFrame) ObjectTrackingFrameOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ObjectTrackingFrame.newBuilder() to construct. private ObjectTrackingFrame(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private ObjectTrackingFrame() {} + private ObjectTrackingFrame() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ObjectTrackingFrame(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ObjectTrackingFrame( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,68 +52,54 @@ private ObjectTrackingFrame( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder subBuilder = null; - if (boundedAreaCase_ == 1) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_).toBuilder(); - } - boundedArea_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.BoundingPoly.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_); - boundedArea_ = subBuilder.buildPartial(); - } - boundedAreaCase_ = 1; - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder subBuilder = null; + if (boundedAreaCase_ == 1) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_).toBuilder(); } - case 18: - { - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder subBuilder = - null; - if (boundedAreaCase_ == 2) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_) - .toBuilder(); - } - boundedArea_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_); - boundedArea_ = subBuilder.buildPartial(); - } - boundedAreaCase_ = 2; - break; + boundedArea_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.BoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_); + boundedArea_ = subBuilder.buildPartial(); } - case 26: - { - 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; + boundedAreaCase_ = 1; + break; + } + case 18: { + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder subBuilder = null; + if (boundedAreaCase_ == 2) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_).toBuilder(); + } + boundedArea_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_); + boundedArea_ = subBuilder.buildPartial(); + } + boundedAreaCase_ = 2; + break; + } + case 26: { + 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(); } - 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) { @@ -137,40 +107,35 @@ private ObjectTrackingFrame( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.class, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder.class); + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.class, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder.class); } private int boundedAreaCase_ = 0; private java.lang.Object boundedArea_; - public enum BoundedAreaCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BOUNDING_POLY(1), NORMALIZED_BOUNDING_POLY(2), BOUNDEDAREA_NOT_SET(0); private final int value; - private BoundedAreaCase(int value) { this.value = value; } @@ -186,30 +151,26 @@ public static BoundedAreaCase valueOf(int value) { public static BoundedAreaCase forNumber(int value) { switch (value) { - case 1: - return BOUNDING_POLY; - case 2: - return NORMALIZED_BOUNDING_POLY; - case 0: - return BOUNDEDAREA_NOT_SET; - default: - return null; + case 1: return BOUNDING_POLY; + case 2: return NORMALIZED_BOUNDING_POLY; + case 0: return BOUNDEDAREA_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public BoundedAreaCase getBoundedAreaCase() { - return BoundedAreaCase.forNumber(boundedAreaCase_); + public BoundedAreaCase + getBoundedAreaCase() { + return BoundedAreaCase.forNumber( + boundedAreaCase_); } public static final int BOUNDING_POLY_FIELD_NUMBER = 1; /** * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -218,30 +179,29 @@ public boolean hasBoundingPoly() { } /** * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BoundingPoly getBoundingPoly() { if (boundedAreaCase_ == 1) { - return (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_; + return (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_; } return com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance(); } - /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; */ + /** + * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; + */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder() { if (boundedAreaCase_ == 1) { - return (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_; + return (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_; } return com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance(); } public static final int NORMALIZED_BOUNDING_POLY_FIELD_NUMBER = 2; /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; - * - * + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; * @return Whether the normalizedBoundingPoly field is set. */ @java.lang.Override @@ -249,27 +209,23 @@ public boolean hasNormalizedBoundingPoly() { return boundedAreaCase_ == 2; } /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; - * - * + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; * @return The normalizedBoundingPoly. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly getNormalizedBoundingPoly() { if (boundedAreaCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_; + return (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_; } return com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance(); } /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; - * + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder - getNormalizedBoundingPolyOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder getNormalizedBoundingPolyOrBuilder() { if (boundedAreaCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_; + return (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_; } return com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance(); } @@ -277,14 +233,11 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly getNormalize public static final int TIME_OFFSET_FIELD_NUMBER = 3; private com.google.protobuf.Duration timeOffset_; /** - * - * *
    * The time offset of this frame relative to the beginning of the video.
    * 
* * .google.protobuf.Duration time_offset = 3; - * * @return Whether the timeOffset field is set. */ @java.lang.Override @@ -292,14 +245,11 @@ public boolean hasTimeOffset() { return timeOffset_ != null; } /** - * - * *
    * The time offset of this frame relative to the beginning of the video.
    * 
* * .google.protobuf.Duration time_offset = 3; - * * @return The timeOffset. */ @java.lang.Override @@ -307,8 +257,6 @@ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; } /** - * - * *
    * The time offset of this frame relative to the beginning of the video.
    * 
@@ -321,7 +269,6 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -333,13 +280,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (boundedAreaCase_ == 1) { output.writeMessage(1, (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_); } if (boundedAreaCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_); + output.writeMessage(2, (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_); } if (timeOffset_ != null) { output.writeMessage(3, getTimeOffset()); @@ -354,17 +301,16 @@ public int getSerializedSize() { size = 0; if (boundedAreaCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_); } if (boundedAreaCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_); } if (timeOffset_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTimeOffset()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTimeOffset()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -374,25 +320,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.datalabeling.v1beta1.ObjectTrackingFrame)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame other = - (com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame) obj; + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame other = (com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame) obj; if (hasTimeOffset() != other.hasTimeOffset()) return false; if (hasTimeOffset()) { - if (!getTimeOffset().equals(other.getTimeOffset())) return false; + if (!getTimeOffset() + .equals(other.getTimeOffset())) return false; } if (!getBoundedAreaCase().equals(other.getBoundedAreaCase())) return false; switch (boundedAreaCase_) { case 1: - if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly() + .equals(other.getBoundingPoly())) return false; break; case 2: - if (!getNormalizedBoundingPoly().equals(other.getNormalizedBoundingPoly())) return false; + if (!getNormalizedBoundingPoly() + .equals(other.getNormalizedBoundingPoly())) return false; break; case 0: default: @@ -430,127 +378,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame 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.datalabeling.v1beta1.ObjectTrackingFrame parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Video frame level annotation for object detection and tracking.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ObjectTrackingFrame} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ObjectTrackingFrame) com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.class, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder.class); + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.class, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.newBuilder() @@ -558,15 +496,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(); @@ -582,9 +521,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor; } @java.lang.Override @@ -603,8 +542,7 @@ public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame buildPartial() { - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame result = - new com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame(this); + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame result = new com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame(this); if (boundedAreaCase_ == 1) { if (boundingPolyBuilder_ == null) { result.boundedArea_ = boundedArea_; @@ -633,39 +571,38 @@ public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame)other); } else { super.mergeFrom(other); return this; @@ -673,26 +610,22 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame other) { - if (other == com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.getDefaultInstance()) return this; if (other.hasTimeOffset()) { mergeTimeOffset(other.getTimeOffset()); } switch (other.getBoundedAreaCase()) { - case BOUNDING_POLY: - { - mergeBoundingPoly(other.getBoundingPoly()); - break; - } - case NORMALIZED_BOUNDING_POLY: - { - mergeNormalizedBoundingPoly(other.getNormalizedBoundingPoly()); - break; - } - case BOUNDEDAREA_NOT_SET: - { - break; - } + case BOUNDING_POLY: { + mergeBoundingPoly(other.getBoundingPoly()); + break; + } + case NORMALIZED_BOUNDING_POLY: { + mergeNormalizedBoundingPoly(other.getNormalizedBoundingPoly()); + break; + } + case BOUNDEDAREA_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -713,8 +646,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -723,12 +655,12 @@ public Builder mergeFrom( } return this; } - private int boundedAreaCase_ = 0; private java.lang.Object boundedArea_; - - public BoundedAreaCase getBoundedAreaCase() { - return BoundedAreaCase.forNumber(boundedAreaCase_); + public BoundedAreaCase + getBoundedAreaCase() { + return BoundedAreaCase.forNumber( + boundedAreaCase_); } public Builder clearBoundedArea() { @@ -738,14 +670,11 @@ public Builder clearBoundedArea() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.BoundingPoly, - com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder, - com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder> - boundingPolyBuilder_; + com.google.cloud.datalabeling.v1beta1.BoundingPoly, com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; /** * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -754,7 +683,6 @@ public boolean hasBoundingPoly() { } /** * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ @java.lang.Override @@ -771,7 +699,9 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPoly getBoundingPoly() { return com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance(); } } - /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; */ + /** + * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; + */ public Builder setBoundingPoly(com.google.cloud.datalabeling.v1beta1.BoundingPoly value) { if (boundingPolyBuilder_ == null) { if (value == null) { @@ -785,7 +715,9 @@ public Builder setBoundingPoly(com.google.cloud.datalabeling.v1beta1.BoundingPol boundedAreaCase_ = 1; return this; } - /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; */ + /** + * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; + */ public Builder setBoundingPoly( com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder builderForValue) { if (boundingPolyBuilder_ == null) { @@ -797,17 +729,15 @@ public Builder setBoundingPoly( boundedAreaCase_ = 1; return this; } - /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; */ + /** + * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; + */ public Builder mergeBoundingPoly(com.google.cloud.datalabeling.v1beta1.BoundingPoly value) { if (boundingPolyBuilder_ == null) { - if (boundedAreaCase_ == 1 - && boundedArea_ - != com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance()) { - boundedArea_ = - com.google.cloud.datalabeling.v1beta1.BoundingPoly.newBuilder( - (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_) - .mergeFrom(value) - .buildPartial(); + if (boundedAreaCase_ == 1 && + boundedArea_ != com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance()) { + boundedArea_ = com.google.cloud.datalabeling.v1beta1.BoundingPoly.newBuilder((com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_) + .mergeFrom(value).buildPartial(); } else { boundedArea_ = value; } @@ -822,7 +752,9 @@ public Builder mergeBoundingPoly(com.google.cloud.datalabeling.v1beta1.BoundingP boundedAreaCase_ = 1; return this; } - /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; */ + /** + * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; + */ public Builder clearBoundingPoly() { if (boundingPolyBuilder_ == null) { if (boundedAreaCase_ == 1) { @@ -839,11 +771,15 @@ public Builder clearBoundingPoly() { } return this; } - /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; */ + /** + * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; + */ public com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder getBoundingPolyBuilder() { return getBoundingPolyFieldBuilder().getBuilder(); } - /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; */ + /** + * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; + */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder() { if ((boundedAreaCase_ == 1) && (boundingPolyBuilder_ != null)) { @@ -855,41 +791,32 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder getBoundingPo return com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance(); } } - /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; */ + /** + * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; + */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.BoundingPoly, - com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder, - com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder> + com.google.cloud.datalabeling.v1beta1.BoundingPoly, com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder> getBoundingPolyFieldBuilder() { if (boundingPolyBuilder_ == null) { if (!(boundedAreaCase_ == 1)) { boundedArea_ = com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance(); } - boundingPolyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.BoundingPoly, - com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder, - com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder>( + boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.BoundingPoly, com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder>( (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_, getParentForChildren(), isClean()); boundedArea_ = null; } boundedAreaCase_ = 1; - onChanged(); - ; + onChanged();; return boundingPolyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly, - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder, - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder> - normalizedBoundingPolyBuilder_; + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder> normalizedBoundingPolyBuilder_; /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; - * - * + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; * @return Whether the normalizedBoundingPoly field is set. */ @java.lang.Override @@ -897,14 +824,11 @@ public boolean hasNormalizedBoundingPoly() { return boundedAreaCase_ == 2; } /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; - * - * + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; * @return The normalizedBoundingPoly. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly - getNormalizedBoundingPoly() { + public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly getNormalizedBoundingPoly() { if (normalizedBoundingPolyBuilder_ == null) { if (boundedAreaCase_ == 2) { return (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_; @@ -918,11 +842,9 @@ public boolean hasNormalizedBoundingPoly() { } } /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; - * + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; */ - public Builder setNormalizedBoundingPoly( - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly value) { + public Builder setNormalizedBoundingPoly(com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly value) { if (normalizedBoundingPolyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -936,8 +858,7 @@ public Builder setNormalizedBoundingPoly( return this; } /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; - * + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; */ public Builder setNormalizedBoundingPoly( com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder builderForValue) { @@ -951,21 +872,14 @@ public Builder setNormalizedBoundingPoly( return this; } /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; - * + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; */ - public Builder mergeNormalizedBoundingPoly( - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly value) { + public Builder mergeNormalizedBoundingPoly(com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly value) { if (normalizedBoundingPolyBuilder_ == null) { - if (boundedAreaCase_ == 2 - && boundedArea_ - != com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly - .getDefaultInstance()) { - boundedArea_ = - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.newBuilder( - (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_) - .mergeFrom(value) - .buildPartial(); + if (boundedAreaCase_ == 2 && + boundedArea_ != com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance()) { + boundedArea_ = com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.newBuilder((com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_) + .mergeFrom(value).buildPartial(); } else { boundedArea_ = value; } @@ -981,8 +895,7 @@ public Builder mergeNormalizedBoundingPoly( return this; } /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; - * + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; */ public Builder clearNormalizedBoundingPoly() { if (normalizedBoundingPolyBuilder_ == null) { @@ -1001,20 +914,16 @@ public Builder clearNormalizedBoundingPoly() { return this; } /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; - * + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; */ - public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder - getNormalizedBoundingPolyBuilder() { + public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder getNormalizedBoundingPolyBuilder() { return getNormalizedBoundingPolyFieldBuilder().getBuilder(); } /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; - * + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder - getNormalizedBoundingPolyOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder getNormalizedBoundingPolyOrBuilder() { if ((boundedAreaCase_ == 2) && (normalizedBoundingPolyBuilder_ != null)) { return normalizedBoundingPolyBuilder_.getMessageOrBuilder(); } else { @@ -1025,78 +934,57 @@ public Builder clearNormalizedBoundingPoly() { } } /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; - * + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly, - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder, - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder> + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder> getNormalizedBoundingPolyFieldBuilder() { if (normalizedBoundingPolyBuilder_ == null) { if (!(boundedAreaCase_ == 2)) { - boundedArea_ = - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance(); + boundedArea_ = com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance(); } - normalizedBoundingPolyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly, - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder, - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder>( + normalizedBoundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder>( (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_, getParentForChildren(), isClean()); boundedArea_ = null; } boundedAreaCase_ = 2; - onChanged(); - ; + onChanged();; return normalizedBoundingPolyBuilder_; } 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_; /** - * - * *
      * The time offset of this frame relative to the beginning of the video.
      * 
* * .google.protobuf.Duration time_offset = 3; - * * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; } /** - * - * *
      * The time offset of this frame relative to the beginning of the video.
      * 
* * .google.protobuf.Duration time_offset = 3; - * * @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(); } } /** - * - * *
      * The time offset of this frame relative to the beginning of the video.
      * 
@@ -1117,15 +1005,14 @@ public Builder setTimeOffset(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * The time offset of this frame relative to the beginning of the video.
      * 
* * .google.protobuf.Duration time_offset = 3; */ - 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(); @@ -1136,8 +1023,6 @@ public Builder setTimeOffset(com.google.protobuf.Duration.Builder builderForValu return this; } /** - * - * *
      * The time offset of this frame relative to the beginning of the video.
      * 
@@ -1148,7 +1033,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; } @@ -1160,8 +1045,6 @@ public Builder mergeTimeOffset(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * The time offset of this frame relative to the beginning of the video.
      * 
@@ -1180,8 +1063,6 @@ public Builder clearTimeOffset() { return this; } /** - * - * *
      * The time offset of this frame relative to the beginning of the video.
      * 
@@ -1189,13 +1070,11 @@ public Builder clearTimeOffset() { * .google.protobuf.Duration time_offset = 3; */ public com.google.protobuf.Duration.Builder getTimeOffsetBuilder() { - + onChanged(); return getTimeOffsetFieldBuilder().getBuilder(); } /** - * - * *
      * The time offset of this frame relative to the beginning of the video.
      * 
@@ -1206,14 +1085,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_; } } /** - * - * *
      * The time offset of this frame relative to the beginning of the video.
      * 
@@ -1221,24 +1097,21 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * .google.protobuf.Duration time_offset = 3; */ 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_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1248,12 +1121,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ObjectTrackingFrame) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ObjectTrackingFrame) private static final com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame(); } @@ -1262,16 +1135,16 @@ public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectTrackingFrame parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObjectTrackingFrame(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectTrackingFrame parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectTrackingFrame(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1286,4 +1159,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrameOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrameOrBuilder.java similarity index 67% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrameOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrameOrBuilder.java index d84c4a2a..623cb81f 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrameOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrameOrBuilder.java @@ -1,91 +1,61 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface ObjectTrackingFrameOrBuilder - extends +public interface ObjectTrackingFrameOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ObjectTrackingFrame) com.google.protobuf.MessageOrBuilder { /** * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; - * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; - * * @return The boundingPoly. */ com.google.cloud.datalabeling.v1beta1.BoundingPoly getBoundingPoly(); - /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; */ + /** + * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; + */ com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder(); /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; - * - * + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; * @return Whether the normalizedBoundingPoly field is set. */ boolean hasNormalizedBoundingPoly(); /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; - * - * + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; * @return The normalizedBoundingPoly. */ com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly getNormalizedBoundingPoly(); /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; - * + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; */ - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder - getNormalizedBoundingPolyOrBuilder(); + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder getNormalizedBoundingPolyOrBuilder(); /** - * - * *
    * The time offset of this frame relative to the beginning of the video.
    * 
* * .google.protobuf.Duration time_offset = 3; - * * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** - * - * *
    * The time offset of this frame relative to the beginning of the video.
    * 
* * .google.protobuf.Duration time_offset = 3; - * * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** - * - * *
    * The time offset of this frame relative to the beginning of the video.
    * 
@@ -94,6 +64,5 @@ public interface ObjectTrackingFrameOrBuilder */ com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder(); - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.BoundedAreaCase - getBoundedAreaCase(); + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.BoundedAreaCase getBoundedAreaCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Operations.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Operations.java new file mode 100644 index 00000000..0184c514 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Operations.java @@ -0,0 +1,353 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/operations.proto + +package com.google.cloud.datalabeling.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_datalabeling_v1beta1_ImportDataOperationResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_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/datalabeling/v1beta1/oper" + + "ations.proto\022!google.cloud.datalabeling." + + "v1beta1\032\034google/api/annotations.proto\032\031g" + + "oogle/api/resource.proto\032/google/cloud/d" + + "atalabeling/v1beta1/dataset.proto\032?googl" + + "e/cloud/datalabeling/v1beta1/human_annot" + + "ation_config.proto\032\037google/protobuf/time" + + "stamp.proto\032\027google/rpc/status.proto\"Y\n\033" + + "ImportDataOperationResponse\022\017\n\007dataset\030\001" + + " \001(\t\022\023\n\013total_count\030\002 \001(\005\022\024\n\014import_coun" + + "t\030\003 \001(\005\"\345\001\n\033ExportDataOperationResponse\022" + + "\017\n\007dataset\030\001 \001(\t\022\023\n\013total_count\030\002 \001(\005\022\024\n" + + "\014export_count\030\003 \001(\005\022B\n\013label_stats\030\004 \001(\013" + + "2-.google.cloud.datalabeling.v1beta1.Lab" + + "elStats\022F\n\routput_config\030\005 \001(\0132/.google." + + "cloud.datalabeling.v1beta1.OutputConfig\"" + + "\215\001\n\033ImportDataOperationMetadata\022\017\n\007datas" + + "et\030\001 \001(\t\022,\n\020partial_failures\030\002 \003(\0132\022.goo" + + "gle.rpc.Status\022/\n\013create_time\030\003 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\"\215\001\n\033ExportDataOp" + + "erationMetadata\022\017\n\007dataset\030\001 \001(\t\022,\n\020part" + + "ial_failures\030\002 \003(\0132\022.google.rpc.Status\022/" + + "\n\013create_time\030\003 \001(\0132\032.google.protobuf.Ti" + + "mestamp\"\214\014\n\026LabelOperationMetadata\022t\n\034im" + + "age_classification_details\030\003 \001(\0132L.googl" + + "e.cloud.datalabeling.v1beta1.LabelImageC" + + "lassificationOperationMetadataH\000\022o\n\032imag" + + "e_bounding_box_details\030\004 \001(\0132I.google.cl" + + "oud.datalabeling.v1beta1.LabelImageBound" + + "ingBoxOperationMetadataH\000\022q\n\033image_bound" + + "ing_poly_details\030\013 \001(\0132J.google.cloud.da" + + "talabeling.v1beta1.LabelImageBoundingPol" + + "yOperationMetadataH\000\022\200\001\n#image_oriented_" + + "bounding_box_details\030\016 \001(\0132Q.google.clou" + + "d.datalabeling.v1beta1.LabelImageOriente" + + "dBoundingBoxOperationMetadataH\000\022h\n\026image" + + "_polyline_details\030\014 \001(\0132F.google.cloud.d" + + "atalabeling.v1beta1.LabelImagePolylineOp" + + "erationMetadataH\000\022p\n\032image_segmentation_" + + "details\030\017 \001(\0132J.google.cloud.datalabelin" + + "g.v1beta1.LabelImageSegmentationOperatio" + + "nMetadataH\000\022t\n\034video_classification_deta" + + "ils\030\005 \001(\0132L.google.cloud.datalabeling.v1" + + "beta1.LabelVideoClassificationOperationM" + + "etadataH\000\022w\n\036video_object_detection_deta" + + "ils\030\006 \001(\0132M.google.cloud.datalabeling.v1" + + "beta1.LabelVideoObjectDetectionOperation" + + "MetadataH\000\022u\n\035video_object_tracking_deta" + + "ils\030\007 \001(\0132L.google.cloud.datalabeling.v1" + + "beta1.LabelVideoObjectTrackingOperationM" + + "etadataH\000\022b\n\023video_event_details\030\010 \001(\0132C" + + ".google.cloud.datalabeling.v1beta1.Label" + + "VideoEventOperationMetadataH\000\022r\n\033text_cl" + + "assification_details\030\t \001(\0132K.google.clou" + + "d.datalabeling.v1beta1.LabelTextClassifi" + + "cationOperationMetadataH\000\022w\n\036text_entity" + + "_extraction_details\030\r \001(\0132M.google.cloud" + + ".datalabeling.v1beta1.LabelTextEntityExt" + + "ractionOperationMetadataH\000\022\030\n\020progress_p" + + "ercent\030\001 \001(\005\022,\n\020partial_failures\030\002 \003(\0132\022" + + ".google.rpc.Status\022/\n\013create_time\030\020 \001(\0132" + + "\032.google.protobuf.TimestampB\t\n\007details\"{" + + "\n)LabelImageClassificationOperationMetad" + + "ata\022N\n\014basic_config\030\001 \001(\01328.google.cloud" + + ".datalabeling.v1beta1.HumanAnnotationCon" + + "fig\"x\n&LabelImageBoundingBoxOperationMet" + + "adata\022N\n\014basic_config\030\001 \001(\01328.google.clo" + + "ud.datalabeling.v1beta1.HumanAnnotationC" + + "onfig\"\200\001\n.LabelImageOrientedBoundingBoxO" + + "perationMetadata\022N\n\014basic_config\030\001 \001(\01328" + + ".google.cloud.datalabeling.v1beta1.Human" + + "AnnotationConfig\"y\n\'LabelImageBoundingPo" + + "lyOperationMetadata\022N\n\014basic_config\030\001 \001(" + + "\01328.google.cloud.datalabeling.v1beta1.Hu" + + "manAnnotationConfig\"u\n#LabelImagePolylin" + + "eOperationMetadata\022N\n\014basic_config\030\001 \001(\013" + + "28.google.cloud.datalabeling.v1beta1.Hum" + + "anAnnotationConfig\"y\n\'LabelImageSegmenta" + + "tionOperationMetadata\022N\n\014basic_config\030\001 " + + "\001(\01328.google.cloud.datalabeling.v1beta1." + + "HumanAnnotationConfig\"{\n)LabelVideoClass" + + "ificationOperationMetadata\022N\n\014basic_conf" + + "ig\030\001 \001(\01328.google.cloud.datalabeling.v1b" + + "eta1.HumanAnnotationConfig\"|\n*LabelVideo" + + "ObjectDetectionOperationMetadata\022N\n\014basi" + + "c_config\030\001 \001(\01328.google.cloud.datalabeli" + + "ng.v1beta1.HumanAnnotationConfig\"{\n)Labe" + + "lVideoObjectTrackingOperationMetadata\022N\n" + + "\014basic_config\030\001 \001(\01328.google.cloud.datal" + + "abeling.v1beta1.HumanAnnotationConfig\"r\n" + + " LabelVideoEventOperationMetadata\022N\n\014bas" + + "ic_config\030\001 \001(\01328.google.cloud.datalabel" + + "ing.v1beta1.HumanAnnotationConfig\"z\n(Lab" + + "elTextClassificationOperationMetadata\022N\n" + + "\014basic_config\030\001 \001(\01328.google.cloud.datal" + + "abeling.v1beta1.HumanAnnotationConfig\"|\n" + + "*LabelTextEntityExtractionOperationMetad" + + "ata\022N\n\014basic_config\030\001 \001(\01328.google.cloud" + + ".datalabeling.v1beta1.HumanAnnotationCon" + + "fig\"\217\001\n\031CreateInstructionMetadata\022\023\n\013ins" + + "truction\030\001 \001(\t\022,\n\020partial_failures\030\002 \003(\013" + + "2\022.google.rpc.Status\022/\n\013create_time\030\003 \001(" + + "\0132\032.google.protobuf.TimestampB\347\001\n%com.go" + + "ogle.cloud.datalabeling.v1beta1P\001ZMgoogl" + + "e.golang.org/genproto/googleapis/cloud/d" + + "atalabeling/v1beta1;datalabeling\252\002!Googl" + + "e.Cloud.DataLabeling.V1Beta1\312\002!Google\\Cl" + + "oud\\DataLabeling\\V1beta1\352\002$Google::Cloud" + + "::DataLabeling::V1beta1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_descriptor, + new java.lang.String[] { "Dataset", "TotalCount", "ImportCount", }); + internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor, + new java.lang.String[] { "Dataset", "TotalCount", "ExportCount", "LabelStats", "OutputConfig", }); + internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor, + new java.lang.String[] { "Dataset", "PartialFailures", "CreateTime", }); + internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor, + new java.lang.String[] { "Dataset", "PartialFailures", "CreateTime", }); + internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor, + new java.lang.String[] { "ImageClassificationDetails", "ImageBoundingBoxDetails", "ImageBoundingPolyDetails", "ImageOrientedBoundingBoxDetails", "ImagePolylineDetails", "ImageSegmentationDetails", "VideoClassificationDetails", "VideoObjectDetectionDetails", "VideoObjectTrackingDetails", "VideoEventDetails", "TextClassificationDetails", "TextEntityExtractionDetails", "ProgressPercent", "PartialFailures", "CreateTime", "Details", }); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor, + new java.lang.String[] { "BasicConfig", }); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor, + new java.lang.String[] { "BasicConfig", }); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor, + new java.lang.String[] { "BasicConfig", }); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor, + new java.lang.String[] { "BasicConfig", }); + internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor, + new java.lang.String[] { "BasicConfig", }); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor, + new java.lang.String[] { "BasicConfig", }); + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor, + new java.lang.String[] { "BasicConfig", }); + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor, + new java.lang.String[] { "BasicConfig", }); + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor, + new java.lang.String[] { "BasicConfig", }); + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor, + new java.lang.String[] { "BasicConfig", }); + internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor, + new java.lang.String[] { "BasicConfig", }); + internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor, + new java.lang.String[] { "BasicConfig", }); + internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor, + new java.lang.String[] { "Instruction", "PartialFailures", "CreateTime", }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadata.java similarity index 73% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadata.java index 65e29449..ceefcb81 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadata.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * General information useful for labels coming from contributors.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.OperatorMetadata} */ -public final class OperatorMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class OperatorMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.OperatorMetadata) OperatorMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use OperatorMetadata.newBuilder() to construct. private OperatorMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private OperatorMetadata() { comments_ = 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 OperatorMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private OperatorMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,38 +54,37 @@ private OperatorMetadata( case 0: done = true; break; - case 13: - { - score_ = input.readFloat(); - break; - } - case 16: - { - totalVotes_ = input.readInt32(); - break; - } - case 24: - { - labelVotes_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - comments_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - comments_.add(s); - break; + case 13: { + + score_ = input.readFloat(); + break; + } + case 16: { + + totalVotes_ = input.readInt32(); + break; + } + case 24: { + + labelVotes_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + comments_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + comments_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,7 +92,8 @@ private OperatorMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { comments_ = comments_.getUnmodifiableView(); @@ -119,27 +102,22 @@ private OperatorMetadata( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.OperatorMetadata.class, - com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.OperatorMetadata.class, com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder.class); } public static final int SCORE_FIELD_NUMBER = 1; private float score_; /** - * - * *
    * Confidence score corresponding to a label. For examle, if 3 contributors
    * have answered the question and 2 of them agree on the final label, the
@@ -147,7 +125,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * float score = 1; - * * @return The score. */ @java.lang.Override @@ -158,14 +135,11 @@ public float getScore() { public static final int TOTAL_VOTES_FIELD_NUMBER = 2; private int totalVotes_; /** - * - * *
    * The total number of contributors that answer this question.
    * 
* * int32 total_votes = 2; - * * @return The totalVotes. */ @java.lang.Override @@ -176,14 +150,11 @@ public int getTotalVotes() { public static final int LABEL_VOTES_FIELD_NUMBER = 3; private int labelVotes_; /** - * - * *
    * The total number of contributors that choose this label.
    * 
* * int32 label_votes = 3; - * * @return The labelVotes. */ @java.lang.Override @@ -194,42 +165,34 @@ public int getLabelVotes() { public static final int COMMENTS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList comments_; /** - * - * *
    * Comments from contributors.
    * 
* * repeated string comments = 4; - * * @return A list containing the comments. */ - public com.google.protobuf.ProtocolStringList getCommentsList() { + public com.google.protobuf.ProtocolStringList + getCommentsList() { return comments_; } /** - * - * *
    * Comments from contributors.
    * 
* * repeated string comments = 4; - * * @return The count of comments. */ public int getCommentsCount() { return comments_.size(); } /** - * - * *
    * Comments from contributors.
    * 
* * repeated string comments = 4; - * * @param index The index of the element to return. * @return The comments at the given index. */ @@ -237,23 +200,20 @@ public java.lang.String getComments(int index) { return comments_.get(index); } /** - * - * *
    * Comments from contributors.
    * 
* * repeated string comments = 4; - * * @param index The index of the value to return. * @return The bytes of the comments at the given index. */ - public com.google.protobuf.ByteString getCommentsBytes(int index) { + public com.google.protobuf.ByteString + getCommentsBytes(int index) { return comments_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,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 { if (java.lang.Float.floatToRawIntBits(score_) != 0) { output.writeFloat(1, score_); } @@ -288,13 +249,16 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, score_); } if (totalVotes_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, totalVotes_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, totalVotes_); } if (labelVotes_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, labelVotes_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, labelVotes_); } { int dataSize = 0; @@ -312,19 +276,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.datalabeling.v1beta1.OperatorMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.OperatorMetadata other = - (com.google.cloud.datalabeling.v1beta1.OperatorMetadata) obj; + com.google.cloud.datalabeling.v1beta1.OperatorMetadata other = (com.google.cloud.datalabeling.v1beta1.OperatorMetadata) obj; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits(other.getScore())) return false; - if (getTotalVotes() != other.getTotalVotes()) return false; - if (getLabelVotes() != other.getLabelVotes()) return false; - if (!getCommentsList().equals(other.getCommentsList())) return false; + != java.lang.Float.floatToIntBits( + other.getScore())) return false; + if (getTotalVotes() + != other.getTotalVotes()) return false; + if (getLabelVotes() + != other.getLabelVotes()) return false; + if (!getCommentsList() + .equals(other.getCommentsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -337,7 +304,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()); hash = (37 * hash) + TOTAL_VOTES_FIELD_NUMBER; hash = (53 * hash) + getTotalVotes(); hash = (37 * hash) + LABEL_VOTES_FIELD_NUMBER; @@ -352,127 +320,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata 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.datalabeling.v1beta1.OperatorMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.OperatorMetadata prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.OperatorMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * General information useful for labels coming from contributors.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.OperatorMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.OperatorMetadata) com.google.cloud.datalabeling.v1beta1.OperatorMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.OperatorMetadata.class, - com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.OperatorMetadata.class, com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.OperatorMetadata.newBuilder() @@ -480,15 +438,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(); @@ -504,9 +463,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor; } @java.lang.Override @@ -525,8 +484,7 @@ public com.google.cloud.datalabeling.v1beta1.OperatorMetadata build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.OperatorMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.OperatorMetadata result = - new com.google.cloud.datalabeling.v1beta1.OperatorMetadata(this); + com.google.cloud.datalabeling.v1beta1.OperatorMetadata result = new com.google.cloud.datalabeling.v1beta1.OperatorMetadata(this); int from_bitField0_ = bitField0_; result.score_ = score_; result.totalVotes_ = totalVotes_; @@ -544,39 +502,38 @@ public com.google.cloud.datalabeling.v1beta1.OperatorMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.OperatorMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.OperatorMetadata) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.OperatorMetadata)other); } else { super.mergeFrom(other); return this; @@ -584,8 +541,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.OperatorMetadata other) { - if (other == com.google.cloud.datalabeling.v1beta1.OperatorMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.OperatorMetadata.getDefaultInstance()) return this; if (other.getScore() != 0F) { setScore(other.getScore()); } @@ -624,8 +580,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.OperatorMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.OperatorMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -634,13 +589,10 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private float score_; + private float score_ ; /** - * - * *
      * Confidence score corresponding to a label. For examle, if 3 contributors
      * have answered the question and 2 of them agree on the final label, the
@@ -648,7 +600,6 @@ public Builder mergeFrom(
      * 
* * float score = 1; - * * @return The score. */ @java.lang.Override @@ -656,8 +607,6 @@ public float getScore() { return score_; } /** - * - * *
      * Confidence score corresponding to a label. For examle, if 3 contributors
      * have answered the question and 2 of them agree on the final label, the
@@ -665,19 +614,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; } /** - * - * *
      * Confidence score corresponding to a label. For examle, if 3 contributors
      * have answered the question and 2 of them agree on the final label, the
@@ -685,26 +631,22 @@ public Builder setScore(float value) {
      * 
* * float score = 1; - * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - private int totalVotes_; + private int totalVotes_ ; /** - * - * *
      * The total number of contributors that answer this question.
      * 
* * int32 total_votes = 2; - * * @return The totalVotes. */ @java.lang.Override @@ -712,51 +654,42 @@ public int getTotalVotes() { return totalVotes_; } /** - * - * *
      * The total number of contributors that answer this question.
      * 
* * int32 total_votes = 2; - * * @param value The totalVotes to set. * @return This builder for chaining. */ public Builder setTotalVotes(int value) { - + totalVotes_ = value; onChanged(); return this; } /** - * - * *
      * The total number of contributors that answer this question.
      * 
* * int32 total_votes = 2; - * * @return This builder for chaining. */ public Builder clearTotalVotes() { - + totalVotes_ = 0; onChanged(); return this; } - private int labelVotes_; + private int labelVotes_ ; /** - * - * *
      * The total number of contributors that choose this label.
      * 
* * int32 label_votes = 3; - * * @return The labelVotes. */ @java.lang.Override @@ -764,87 +697,71 @@ public int getLabelVotes() { return labelVotes_; } /** - * - * *
      * The total number of contributors that choose this label.
      * 
* * int32 label_votes = 3; - * * @param value The labelVotes to set. * @return This builder for chaining. */ public Builder setLabelVotes(int value) { - + labelVotes_ = value; onChanged(); return this; } /** - * - * *
      * The total number of contributors that choose this label.
      * 
* * int32 label_votes = 3; - * * @return This builder for chaining. */ public Builder clearLabelVotes() { - + labelVotes_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList comments_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList comments_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureCommentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { comments_ = new com.google.protobuf.LazyStringArrayList(comments_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Comments from contributors.
      * 
* * repeated string comments = 4; - * * @return A list containing the comments. */ - public com.google.protobuf.ProtocolStringList getCommentsList() { + public com.google.protobuf.ProtocolStringList + getCommentsList() { return comments_.getUnmodifiableView(); } /** - * - * *
      * Comments from contributors.
      * 
* * repeated string comments = 4; - * * @return The count of comments. */ public int getCommentsCount() { return comments_.size(); } /** - * - * *
      * Comments from contributors.
      * 
* * repeated string comments = 4; - * * @param index The index of the element to return. * @return The comments at the given index. */ @@ -852,90 +769,80 @@ public java.lang.String getComments(int index) { return comments_.get(index); } /** - * - * *
      * Comments from contributors.
      * 
* * repeated string comments = 4; - * * @param index The index of the value to return. * @return The bytes of the comments at the given index. */ - public com.google.protobuf.ByteString getCommentsBytes(int index) { + public com.google.protobuf.ByteString + getCommentsBytes(int index) { return comments_.getByteString(index); } /** - * - * *
      * Comments from contributors.
      * 
* * repeated string comments = 4; - * * @param index The index to set the value at. * @param value The comments to set. * @return This builder for chaining. */ - public Builder setComments(int index, java.lang.String value) { + public Builder setComments( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCommentsIsMutable(); + throw new NullPointerException(); + } + ensureCommentsIsMutable(); comments_.set(index, value); onChanged(); return this; } /** - * - * *
      * Comments from contributors.
      * 
* * repeated string comments = 4; - * * @param value The comments to add. * @return This builder for chaining. */ - public Builder addComments(java.lang.String value) { + public Builder addComments( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCommentsIsMutable(); + throw new NullPointerException(); + } + ensureCommentsIsMutable(); comments_.add(value); onChanged(); return this; } /** - * - * *
      * Comments from contributors.
      * 
* * repeated string comments = 4; - * * @param values The comments to add. * @return This builder for chaining. */ - public Builder addAllComments(java.lang.Iterable values) { + public Builder addAllComments( + java.lang.Iterable values) { ensureCommentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, comments_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, comments_); onChanged(); return this; } /** - * - * *
      * Comments from contributors.
      * 
* * repeated string comments = 4; - * * @return This builder for chaining. */ public Builder clearComments() { @@ -945,30 +852,28 @@ public Builder clearComments() { return this; } /** - * - * *
      * Comments from contributors.
      * 
* * repeated string comments = 4; - * * @param value The bytes of the comments to add. * @return This builder for chaining. */ - public Builder addCommentsBytes(com.google.protobuf.ByteString value) { + public Builder addCommentsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureCommentsIsMutable(); comments_.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); } @@ -978,12 +883,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.OperatorMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.OperatorMetadata) private static final com.google.cloud.datalabeling.v1beta1.OperatorMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.OperatorMetadata(); } @@ -992,16 +897,16 @@ public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperatorMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperatorMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperatorMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperatorMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1016,4 +921,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.OperatorMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadataOrBuilder.java similarity index 68% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadataOrBuilder.java index 96eb7690..fe780c80 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadataOrBuilder.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface OperatorMetadataOrBuilder - extends +public interface OperatorMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.OperatorMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Confidence score corresponding to a label. For examle, if 3 contributors
    * have answered the question and 2 of them agree on the final label, the
@@ -33,85 +15,68 @@ public interface OperatorMetadataOrBuilder
    * 
* * float score = 1; - * * @return The score. */ float getScore(); /** - * - * *
    * The total number of contributors that answer this question.
    * 
* * int32 total_votes = 2; - * * @return The totalVotes. */ int getTotalVotes(); /** - * - * *
    * The total number of contributors that choose this label.
    * 
* * int32 label_votes = 3; - * * @return The labelVotes. */ int getLabelVotes(); /** - * - * *
    * Comments from contributors.
    * 
* * repeated string comments = 4; - * * @return A list containing the comments. */ - java.util.List getCommentsList(); + java.util.List + getCommentsList(); /** - * - * *
    * Comments from contributors.
    * 
* * repeated string comments = 4; - * * @return The count of comments. */ int getCommentsCount(); /** - * - * *
    * Comments from contributors.
    * 
* * repeated string comments = 4; - * * @param index The index of the element to return. * @return The comments at the given index. */ java.lang.String getComments(int index); /** - * - * *
    * Comments from contributors.
    * 
* * repeated string comments = 4; - * * @param index The index of the value to return. * @return The bytes of the comments at the given index. */ - com.google.protobuf.ByteString getCommentsBytes(int index); + com.google.protobuf.ByteString + getCommentsBytes(int index); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfig.java similarity index 69% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfig.java index 57355afe..163c189f 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfig.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * The configuration of output data.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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) @@ -68,53 +52,41 @@ private OutputConfig( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_) - .toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.GcsDestination.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 1; - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_).toBuilder(); } - case 18: - { - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder subBuilder = null; - if (destinationCase_ == 2) { - subBuilder = - ((com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_) - .toBuilder(); - } - destination_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_); - destination_ = subBuilder.buildPartial(); - } - destinationCase_ = 2; - break; + destination_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.GcsDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + destinationCase_ = 1; + break; + } + case 18: { + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder subBuilder = null; + if (destinationCase_ == 2) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_).toBuilder(); + } + destination_ = + input.readMessage(com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_); + destination_ = subBuilder.buildPartial(); } + destinationCase_ = 2; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -122,40 +94,35 @@ private OutputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.OutputConfig.class, - com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.OutputConfig.class, com.google.cloud.datalabeling.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), GCS_FOLDER_DESTINATION(2), DESTINATION_NOT_SET(0); private final int value; - private DestinationCase(int value) { this.value = value; } @@ -171,37 +138,31 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: - return GCS_DESTINATION; - case 2: - return GCS_FOLDER_DESTINATION; - case 0: - return DESTINATION_NOT_SET; - default: - return null; + case 1: return GCS_DESTINATION; + case 2: return GCS_FOLDER_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; /** - * - * *
    * Output to a file in Cloud Storage. Should be used for labeling output
    * other than image segmentation.
    * 
* * .google.cloud.datalabeling.v1beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -209,27 +170,22 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
    * Output to a file in Cloud Storage. Should be used for labeling output
    * other than image segmentation.
    * 
* * .google.cloud.datalabeling.v1beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_; + return (com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_; } return com.google.cloud.datalabeling.v1beta1.GcsDestination.getDefaultInstance(); } /** - * - * *
    * Output to a file in Cloud Storage. Should be used for labeling output
    * other than image segmentation.
@@ -238,26 +194,21 @@ public com.google.cloud.datalabeling.v1beta1.GcsDestination getGcsDestination()
    * .google.cloud.datalabeling.v1beta1.GcsDestination gcs_destination = 1;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder
-      getGcsDestinationOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() {
     if (destinationCase_ == 1) {
-      return (com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_;
+       return (com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_;
     }
     return com.google.cloud.datalabeling.v1beta1.GcsDestination.getDefaultInstance();
   }
 
   public static final int GCS_FOLDER_DESTINATION_FIELD_NUMBER = 2;
   /**
-   *
-   *
    * 
    * Output to a folder in Cloud Storage. Should be used for image
    * segmentation labeling output.
    * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; - * - * + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; * @return Whether the gcsFolderDestination field is set. */ @java.lang.Override @@ -265,47 +216,38 @@ public boolean hasGcsFolderDestination() { return destinationCase_ == 2; } /** - * - * *
    * Output to a folder in Cloud Storage. Should be used for image
    * segmentation labeling output.
    * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; - * - * + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; * @return The gcsFolderDestination. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GcsFolderDestination getGcsFolderDestination() { if (destinationCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_; + return (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_; } return com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.getDefaultInstance(); } /** - * - * *
    * Output to a folder in Cloud Storage. Should be used for image
    * segmentation labeling output.
    * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; - * + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder - getGcsFolderDestinationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder getGcsFolderDestinationOrBuilder() { if (destinationCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_; + return (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_; } return com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -317,13 +259,13 @@ public final boolean isInitialized() { } @java.lang.Override - public 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.datalabeling.v1beta1.GcsDestination) destination_); } if (destinationCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_); + output.writeMessage(2, (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_); } unknownFields.writeTo(output); } @@ -335,14 +277,12 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_); } if (destinationCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -352,21 +292,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.datalabeling.v1beta1.OutputConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.OutputConfig other = - (com.google.cloud.datalabeling.v1beta1.OutputConfig) obj; + com.google.cloud.datalabeling.v1beta1.OutputConfig other = (com.google.cloud.datalabeling.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 (!getGcsFolderDestination().equals(other.getGcsFolderDestination())) return false; + if (!getGcsFolderDestination() + .equals(other.getGcsFolderDestination())) return false; break; case 0: default: @@ -400,126 +341,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.OutputConfig 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.datalabeling.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.datalabeling.v1beta1.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.OutputConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.OutputConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.OutputConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.OutputConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.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; } /** - * - * *
    * The configuration of output data.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.OutputConfig) com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.OutputConfig.class, - com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.OutputConfig.class, com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.OutputConfig.newBuilder() @@ -527,15 +459,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(); @@ -545,9 +478,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor; } @java.lang.Override @@ -566,8 +499,7 @@ public com.google.cloud.datalabeling.v1beta1.OutputConfig build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.OutputConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.OutputConfig result = - new com.google.cloud.datalabeling.v1beta1.OutputConfig(this); + com.google.cloud.datalabeling.v1beta1.OutputConfig result = new com.google.cloud.datalabeling.v1beta1.OutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -591,39 +523,38 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.OutputConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.OutputConfig) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.OutputConfig)other); } else { super.mergeFrom(other); return this; @@ -631,23 +562,19 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.OutputConfig other) { - if (other == com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance()) return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: - { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case GCS_FOLDER_DESTINATION: - { - mergeGcsFolderDestination(other.getGcsFolderDestination()); - break; - } - case DESTINATION_NOT_SET: - { - break; - } + case GCS_DESTINATION: { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case GCS_FOLDER_DESTINATION: { + mergeGcsFolderDestination(other.getGcsFolderDestination()); + break; + } + case DESTINATION_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -668,8 +595,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.OutputConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.OutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -678,12 +604,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() { @@ -693,21 +619,16 @@ public Builder clearDestination() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.GcsDestination, - com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder, - com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder> - gcsDestinationBuilder_; + com.google.cloud.datalabeling.v1beta1.GcsDestination, com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder, com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; /** - * - * *
      * Output to a file in Cloud Storage. Should be used for labeling output
      * other than image segmentation.
      * 
* * .google.cloud.datalabeling.v1beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -715,15 +636,12 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** - * - * *
      * Output to a file in Cloud Storage. Should be used for labeling output
      * other than image segmentation.
      * 
* * .google.cloud.datalabeling.v1beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ @java.lang.Override @@ -741,8 +659,6 @@ public com.google.cloud.datalabeling.v1beta1.GcsDestination getGcsDestination() } } /** - * - * *
      * Output to a file in Cloud Storage. Should be used for labeling output
      * other than image segmentation.
@@ -764,8 +680,6 @@ public Builder setGcsDestination(com.google.cloud.datalabeling.v1beta1.GcsDestin
       return this;
     }
     /**
-     *
-     *
      * 
      * Output to a file in Cloud Storage. Should be used for labeling output
      * other than image segmentation.
@@ -785,8 +699,6 @@ public Builder setGcsDestination(
       return this;
     }
     /**
-     *
-     *
      * 
      * Output to a file in Cloud Storage. Should be used for labeling output
      * other than image segmentation.
@@ -796,14 +708,10 @@ public Builder setGcsDestination(
      */
     public Builder mergeGcsDestination(com.google.cloud.datalabeling.v1beta1.GcsDestination value) {
       if (gcsDestinationBuilder_ == null) {
-        if (destinationCase_ == 1
-            && destination_
-                != com.google.cloud.datalabeling.v1beta1.GcsDestination.getDefaultInstance()) {
-          destination_ =
-              com.google.cloud.datalabeling.v1beta1.GcsDestination.newBuilder(
-                      (com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_)
-                  .mergeFrom(value)
-                  .buildPartial();
+        if (destinationCase_ == 1 &&
+            destination_ != com.google.cloud.datalabeling.v1beta1.GcsDestination.getDefaultInstance()) {
+          destination_ = com.google.cloud.datalabeling.v1beta1.GcsDestination.newBuilder((com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_)
+              .mergeFrom(value).buildPartial();
         } else {
           destination_ = value;
         }
@@ -819,8 +727,6 @@ public Builder mergeGcsDestination(com.google.cloud.datalabeling.v1beta1.GcsDest
       return this;
     }
     /**
-     *
-     *
      * 
      * Output to a file in Cloud Storage. Should be used for labeling output
      * other than image segmentation.
@@ -845,8 +751,6 @@ public Builder clearGcsDestination() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Output to a file in Cloud Storage. Should be used for labeling output
      * other than image segmentation.
@@ -858,8 +762,6 @@ public com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder getGcsDestin
       return getGcsDestinationFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Output to a file in Cloud Storage. Should be used for labeling output
      * other than image segmentation.
@@ -868,8 +770,7 @@ public com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder getGcsDestin
      * .google.cloud.datalabeling.v1beta1.GcsDestination gcs_destination = 1;
      */
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder
-        getGcsDestinationOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() {
       if ((destinationCase_ == 1) && (gcsDestinationBuilder_ != null)) {
         return gcsDestinationBuilder_.getMessageOrBuilder();
       } else {
@@ -880,8 +781,6 @@ public com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder getGcsDestin
       }
     }
     /**
-     *
-     *
      * 
      * Output to a file in Cloud Storage. Should be used for labeling output
      * other than image segmentation.
@@ -890,46 +789,33 @@ public com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder getGcsDestin
      * .google.cloud.datalabeling.v1beta1.GcsDestination gcs_destination = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.GcsDestination,
-            com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder,
-            com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder>
+        com.google.cloud.datalabeling.v1beta1.GcsDestination, com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder, com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder> 
         getGcsDestinationFieldBuilder() {
       if (gcsDestinationBuilder_ == null) {
         if (!(destinationCase_ == 1)) {
           destination_ = com.google.cloud.datalabeling.v1beta1.GcsDestination.getDefaultInstance();
         }
-        gcsDestinationBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.datalabeling.v1beta1.GcsDestination,
-                com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder,
-                com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder>(
+        gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.datalabeling.v1beta1.GcsDestination, com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder, com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder>(
                 (com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_,
                 getParentForChildren(),
                 isClean());
         destination_ = null;
       }
       destinationCase_ = 1;
-      onChanged();
-      ;
+      onChanged();;
       return gcsDestinationBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.GcsFolderDestination,
-            com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder,
-            com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder>
-        gcsFolderDestinationBuilder_;
+        com.google.cloud.datalabeling.v1beta1.GcsFolderDestination, com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder, com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder> gcsFolderDestinationBuilder_;
     /**
-     *
-     *
      * 
      * Output to a folder in Cloud Storage. Should be used for image
      * segmentation labeling output.
      * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; - * - * + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; * @return Whether the gcsFolderDestination field is set. */ @java.lang.Override @@ -937,16 +823,12 @@ public boolean hasGcsFolderDestination() { return destinationCase_ == 2; } /** - * - * *
      * Output to a folder in Cloud Storage. Should be used for image
      * segmentation labeling output.
      * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; - * - * + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; * @return The gcsFolderDestination. */ @java.lang.Override @@ -964,18 +846,14 @@ public com.google.cloud.datalabeling.v1beta1.GcsFolderDestination getGcsFolderDe } } /** - * - * *
      * Output to a folder in Cloud Storage. Should be used for image
      * segmentation labeling output.
      * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; - * + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; */ - public Builder setGcsFolderDestination( - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination value) { + public Builder setGcsFolderDestination(com.google.cloud.datalabeling.v1beta1.GcsFolderDestination value) { if (gcsFolderDestinationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -989,15 +867,12 @@ public Builder setGcsFolderDestination( return this; } /** - * - * *
      * Output to a folder in Cloud Storage. Should be used for image
      * segmentation labeling output.
      * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; - * + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; */ public Builder setGcsFolderDestination( com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder builderForValue) { @@ -1011,28 +886,19 @@ public Builder setGcsFolderDestination( return this; } /** - * - * *
      * Output to a folder in Cloud Storage. Should be used for image
      * segmentation labeling output.
      * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; - * + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; */ - public Builder mergeGcsFolderDestination( - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination value) { + public Builder mergeGcsFolderDestination(com.google.cloud.datalabeling.v1beta1.GcsFolderDestination value) { if (gcsFolderDestinationBuilder_ == null) { - if (destinationCase_ == 2 - && destination_ - != com.google.cloud.datalabeling.v1beta1.GcsFolderDestination - .getDefaultInstance()) { - destination_ = - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.newBuilder( - (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_) - .mergeFrom(value) - .buildPartial(); + if (destinationCase_ == 2 && + destination_ != com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.getDefaultInstance()) { + destination_ = com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.newBuilder((com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_) + .mergeFrom(value).buildPartial(); } else { destination_ = value; } @@ -1048,15 +914,12 @@ public Builder mergeGcsFolderDestination( return this; } /** - * - * *
      * Output to a folder in Cloud Storage. Should be used for image
      * segmentation labeling output.
      * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; - * + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; */ public Builder clearGcsFolderDestination() { if (gcsFolderDestinationBuilder_ == null) { @@ -1075,34 +938,26 @@ public Builder clearGcsFolderDestination() { return this; } /** - * - * *
      * Output to a folder in Cloud Storage. Should be used for image
      * segmentation labeling output.
      * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; - * + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; */ - public com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder - getGcsFolderDestinationBuilder() { + public com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder getGcsFolderDestinationBuilder() { return getGcsFolderDestinationFieldBuilder().getBuilder(); } /** - * - * *
      * Output to a folder in Cloud Storage. Should be used for image
      * segmentation labeling output.
      * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; - * + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder - getGcsFolderDestinationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder getGcsFolderDestinationOrBuilder() { if ((destinationCase_ == 2) && (gcsFolderDestinationBuilder_ != null)) { return gcsFolderDestinationBuilder_.getMessageOrBuilder(); } else { @@ -1113,44 +968,34 @@ public Builder clearGcsFolderDestination() { } } /** - * - * *
      * Output to a folder in Cloud Storage. Should be used for image
      * segmentation labeling output.
      * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; - * + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination, - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder, - com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder> + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination, com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder, com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder> getGcsFolderDestinationFieldBuilder() { if (gcsFolderDestinationBuilder_ == null) { if (!(destinationCase_ == 2)) { - destination_ = - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.getDefaultInstance(); + destination_ = com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.getDefaultInstance(); } - gcsFolderDestinationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination, - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder, - com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder>( + gcsFolderDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination, com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder, com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder>( (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 2; - onChanged(); - ; + onChanged();; return gcsFolderDestinationBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1160,12 +1005,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.OutputConfig) private static final com.google.cloud.datalabeling.v1beta1.OutputConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.OutputConfig(); } @@ -1174,16 +1019,16 @@ public static com.google.cloud.datalabeling.v1beta1.OutputConfig getDefaultInsta 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; @@ -1198,4 +1043,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfigOrBuilder.java similarity index 71% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfigOrBuilder.java index 0bab3419..69be437d 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfigOrBuilder.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; -public interface OutputConfigOrBuilder - extends +public interface OutputConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Output to a file in Cloud Storage. Should be used for labeling output
    * other than image segmentation.
    * 
* * .google.cloud.datalabeling.v1beta1.GcsDestination gcs_destination = 1; - * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** - * - * *
    * Output to a file in Cloud Storage. Should be used for labeling output
    * other than image segmentation.
    * 
* * .google.cloud.datalabeling.v1beta1.GcsDestination gcs_destination = 1; - * * @return The gcsDestination. */ com.google.cloud.datalabeling.v1beta1.GcsDestination getGcsDestination(); /** - * - * *
    * Output to a file in Cloud Storage. Should be used for labeling output
    * other than image segmentation.
@@ -62,46 +38,34 @@ public interface OutputConfigOrBuilder
   com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder();
 
   /**
-   *
-   *
    * 
    * Output to a folder in Cloud Storage. Should be used for image
    * segmentation labeling output.
    * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; - * - * + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; * @return Whether the gcsFolderDestination field is set. */ boolean hasGcsFolderDestination(); /** - * - * *
    * Output to a folder in Cloud Storage. Should be used for image
    * segmentation labeling output.
    * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; - * - * + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; * @return The gcsFolderDestination. */ com.google.cloud.datalabeling.v1beta1.GcsFolderDestination getGcsFolderDestination(); /** - * - * *
    * Output to a folder in Cloud Storage. Should be used for image
    * segmentation labeling output.
    * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; - * + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; */ - com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder - getGcsFolderDestinationOrBuilder(); + com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder getGcsFolderDestinationOrBuilder(); public com.google.cloud.datalabeling.v1beta1.OutputConfig.DestinationCase getDestinationCase(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequest.java similarity index 64% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequest.java index cbdd6da7..999bb995 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for PauseEvaluationJob.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest} */ -public final class PauseEvaluationJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PauseEvaluationJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) PauseEvaluationJobRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PauseEvaluationJobRequest.newBuilder() to construct. private PauseEvaluationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PauseEvaluationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PauseEvaluationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PauseEvaluationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private PauseEvaluationJobRequest( 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) { @@ -91,42 +73,35 @@ private PauseEvaluationJobRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.class, - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the evaluation job that is going to be paused. Format:
    * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * - * string 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 @@ -135,32 +110,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. Name of the evaluation job that is going to be paused. Format:
    * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * - * string 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,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.datalabeling.v1beta1.PauseEvaluationJobRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest other = - (com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) obj; + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest other = (com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest 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.datalabeling.v1beta1.PauseEvaluationJobRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 PauseEvaluationJob.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.class, - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.newBuilder() @@ -361,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(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest result = - new com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest(this); + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest result = new com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,50 +374,46 @@ public com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest 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.datalabeling.v1beta1.PauseEvaluationJobRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest other) { - if (other - == com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest other) { + if (other == com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -479,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the evaluation job that is going to be paused. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * - * string 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; @@ -518,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the evaluation job that is going to be paused. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * - * string 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 { @@ -543,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the evaluation job that is going to be paused. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * - * 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 evaluation job that is going to be paused. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * - * string 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 evaluation job that is going to be paused. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * - * 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); } @@ -623,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) - private static final com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest(); } - public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PauseEvaluationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PauseEvaluationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PauseEvaluationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PauseEvaluationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequestOrBuilder.java new file mode 100644 index 00000000..d6534aa4 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface PauseEvaluationJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the evaluation job that is going to be paused. Format:
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the evaluation job that is going to be paused. Format:
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
+   * 
+ * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstruction.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstruction.java similarity index 70% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstruction.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstruction.java index afbc8937..44bd47e6 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstruction.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstruction.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/datalabeling/v1beta1/instruction.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Instruction from a PDF file.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.PdfInstruction} */ -public final class PdfInstruction extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PdfInstruction extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.PdfInstruction) PdfInstructionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PdfInstruction.newBuilder() to construct. private PdfInstruction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PdfInstruction() { gcsFileUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PdfInstruction(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PdfInstruction( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private PdfInstruction( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - gcsFileUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + gcsFileUri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,39 +73,34 @@ private PdfInstruction( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.PdfInstruction.class, - com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder.class); + com.google.cloud.datalabeling.v1beta1.PdfInstruction.class, com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder.class); } public static final int GCS_FILE_URI_FIELD_NUMBER = 1; private volatile java.lang.Object gcsFileUri_; /** - * - * *
    * PDF file for the instruction. Only gcs path is allowed.
    * 
* * string gcs_file_uri = 1; - * * @return The gcsFileUri. */ @java.lang.Override @@ -132,29 +109,29 @@ public java.lang.String getGcsFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsFileUri_ = s; return s; } } /** - * - * *
    * PDF file for the instruction. Only gcs path is allowed.
    * 
* * string gcs_file_uri = 1; - * * @return The bytes for gcsFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString getGcsFileUriBytes() { + public com.google.protobuf.ByteString + getGcsFileUriBytes() { java.lang.Object ref = gcsFileUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsFileUri_ = b; return b; } else { @@ -163,7 +140,6 @@ public com.google.protobuf.ByteString getGcsFileUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +151,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(gcsFileUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcsFileUri_); } @@ -199,15 +176,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.datalabeling.v1beta1.PdfInstruction)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.PdfInstruction other = - (com.google.cloud.datalabeling.v1beta1.PdfInstruction) obj; + com.google.cloud.datalabeling.v1beta1.PdfInstruction other = (com.google.cloud.datalabeling.v1beta1.PdfInstruction) obj; - if (!getGcsFileUri().equals(other.getGcsFileUri())) return false; + if (!getGcsFileUri() + .equals(other.getGcsFileUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,126 +204,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.PdfInstruction 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.datalabeling.v1beta1.PdfInstruction parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.PdfInstruction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Instruction from a PDF file.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.PdfInstruction} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.PdfInstruction) com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.PdfInstruction.class, - com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder.class); + com.google.cloud.datalabeling.v1beta1.PdfInstruction.class, com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.PdfInstruction.newBuilder() @@ -354,15 +322,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(); @@ -372,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor; } @java.lang.Override @@ -393,8 +362,7 @@ public com.google.cloud.datalabeling.v1beta1.PdfInstruction build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PdfInstruction buildPartial() { - com.google.cloud.datalabeling.v1beta1.PdfInstruction result = - new com.google.cloud.datalabeling.v1beta1.PdfInstruction(this); + com.google.cloud.datalabeling.v1beta1.PdfInstruction result = new com.google.cloud.datalabeling.v1beta1.PdfInstruction(this); result.gcsFileUri_ = gcsFileUri_; onBuilt(); return result; @@ -404,39 +372,38 @@ public com.google.cloud.datalabeling.v1beta1.PdfInstruction buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.PdfInstruction) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.PdfInstruction) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.PdfInstruction)other); } else { super.mergeFrom(other); return this; @@ -444,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.PdfInstruction other) { - if (other == com.google.cloud.datalabeling.v1beta1.PdfInstruction.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.PdfInstruction.getDefaultInstance()) return this; if (!other.getGcsFileUri().isEmpty()) { gcsFileUri_ = other.gcsFileUri_; onChanged(); @@ -469,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.PdfInstruction) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.PdfInstruction) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -482,20 +447,18 @@ public Builder mergeFrom( private java.lang.Object gcsFileUri_ = ""; /** - * - * *
      * PDF file for the instruction. Only gcs path is allowed.
      * 
* * string gcs_file_uri = 1; - * * @return The gcsFileUri. */ public java.lang.String getGcsFileUri() { java.lang.Object ref = gcsFileUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsFileUri_ = s; return s; @@ -504,21 +467,20 @@ public java.lang.String getGcsFileUri() { } } /** - * - * *
      * PDF file for the instruction. Only gcs path is allowed.
      * 
* * string gcs_file_uri = 1; - * * @return The bytes for gcsFileUri. */ - public com.google.protobuf.ByteString getGcsFileUriBytes() { + public com.google.protobuf.ByteString + getGcsFileUriBytes() { java.lang.Object ref = gcsFileUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); gcsFileUri_ = b; return b; } else { @@ -526,68 +488,61 @@ public com.google.protobuf.ByteString getGcsFileUriBytes() { } } /** - * - * *
      * PDF file for the instruction. Only gcs path is allowed.
      * 
* * string gcs_file_uri = 1; - * * @param value The gcsFileUri to set. * @return This builder for chaining. */ - public Builder setGcsFileUri(java.lang.String value) { + public Builder setGcsFileUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcsFileUri_ = value; onChanged(); return this; } /** - * - * *
      * PDF file for the instruction. Only gcs path is allowed.
      * 
* * string gcs_file_uri = 1; - * * @return This builder for chaining. */ public Builder clearGcsFileUri() { - + gcsFileUri_ = getDefaultInstance().getGcsFileUri(); onChanged(); return this; } /** - * - * *
      * PDF file for the instruction. Only gcs path is allowed.
      * 
* * string gcs_file_uri = 1; - * * @param value The bytes for gcsFileUri to set. * @return This builder for chaining. */ - public Builder setGcsFileUriBytes(com.google.protobuf.ByteString value) { + public Builder setGcsFileUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsFileUri_ = 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); } @@ -597,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.PdfInstruction) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.PdfInstruction) private static final com.google.cloud.datalabeling.v1beta1.PdfInstruction DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.PdfInstruction(); } @@ -611,16 +566,16 @@ public static com.google.cloud.datalabeling.v1beta1.PdfInstruction getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PdfInstruction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PdfInstruction(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PdfInstruction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PdfInstruction(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -635,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.PdfInstruction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstructionOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstructionOrBuilder.java new file mode 100644 index 00000000..de6df70e --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstructionOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/instruction.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface PdfInstructionOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.PdfInstruction) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * PDF file for the instruction. Only gcs path is allowed.
+   * 
+ * + * string gcs_file_uri = 1; + * @return The gcsFileUri. + */ + java.lang.String getGcsFileUri(); + /** + *
+   * PDF file for the instruction. Only gcs path is allowed.
+   * 
+ * + * string gcs_file_uri = 1; + * @return The bytes for gcsFileUri. + */ + com.google.protobuf.ByteString + getGcsFileUriBytes(); +} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Polyline.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Polyline.java similarity index 74% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Polyline.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Polyline.java index 1831964e..6336b597 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Polyline.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Polyline.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * A line with multiple line segments.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.Polyline} */ -public final class Polyline extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Polyline extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.Polyline) PolylineOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Polyline.newBuilder() to construct. private Polyline(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Polyline() { vertices_ = 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 Polyline(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Polyline( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,24 +54,22 @@ private Polyline( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - vertices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - vertices_.add( - input.readMessage( - com.google.cloud.datalabeling.v1beta1.Vertex.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + vertices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + vertices_.add( + input.readMessage(com.google.cloud.datalabeling.v1beta1.Vertex.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,7 +77,8 @@ private Polyline( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { vertices_ = java.util.Collections.unmodifiableList(vertices_); @@ -105,27 +87,22 @@ private Polyline( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_Polyline_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Polyline_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.Polyline.class, - com.google.cloud.datalabeling.v1beta1.Polyline.Builder.class); + com.google.cloud.datalabeling.v1beta1.Polyline.class, com.google.cloud.datalabeling.v1beta1.Polyline.Builder.class); } public static final int VERTICES_FIELD_NUMBER = 1; private java.util.List vertices_; /** - * - * *
    * The polyline vertices.
    * 
@@ -137,8 +114,6 @@ public java.util.List getVerticesL return vertices_; } /** - * - * *
    * The polyline vertices.
    * 
@@ -146,13 +121,11 @@ public java.util.List getVerticesL * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVerticesOrBuilderList() { return vertices_; } /** - * - * *
    * The polyline vertices.
    * 
@@ -164,8 +137,6 @@ public int getVerticesCount() { return vertices_.size(); } /** - * - * *
    * The polyline vertices.
    * 
@@ -177,8 +148,6 @@ public com.google.cloud.datalabeling.v1beta1.Vertex getVertices(int index) { return vertices_.get(index); } /** - * - * *
    * The polyline vertices.
    * 
@@ -186,12 +155,12 @@ public com.google.cloud.datalabeling.v1beta1.Vertex getVertices(int index) { * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder( + int index) { return vertices_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,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 < vertices_.size(); i++) { output.writeMessage(1, vertices_.get(i)); } @@ -217,7 +187,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < vertices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, vertices_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, vertices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -227,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.datalabeling.v1beta1.Polyline)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.Polyline other = - (com.google.cloud.datalabeling.v1beta1.Polyline) obj; + com.google.cloud.datalabeling.v1beta1.Polyline other = (com.google.cloud.datalabeling.v1beta1.Polyline) obj; - if (!getVerticesList().equals(other.getVerticesList())) return false; + if (!getVerticesList() + .equals(other.getVerticesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -256,127 +227,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.Polyline parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datalabeling.v1beta1.Polyline parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.Polyline parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Polyline parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.Polyline parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Polyline parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.Polyline parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Polyline 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.datalabeling.v1beta1.Polyline parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.Polyline parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.Polyline parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.Polyline parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Polyline parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.Polyline parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.Polyline prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 line with multiple line segments.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.Polyline} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.Polyline) com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_Polyline_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Polyline_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.Polyline.class, - com.google.cloud.datalabeling.v1beta1.Polyline.Builder.class); + com.google.cloud.datalabeling.v1beta1.Polyline.class, com.google.cloud.datalabeling.v1beta1.Polyline.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.Polyline.newBuilder() @@ -384,17 +346,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) { getVerticesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -408,9 +370,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor; } @java.lang.Override @@ -429,8 +391,7 @@ public com.google.cloud.datalabeling.v1beta1.Polyline build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.Polyline buildPartial() { - com.google.cloud.datalabeling.v1beta1.Polyline result = - new com.google.cloud.datalabeling.v1beta1.Polyline(this); + com.google.cloud.datalabeling.v1beta1.Polyline result = new com.google.cloud.datalabeling.v1beta1.Polyline(this); int from_bitField0_ = bitField0_; if (verticesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -449,39 +410,38 @@ public com.google.cloud.datalabeling.v1beta1.Polyline buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.Polyline) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.Polyline) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.Polyline)other); } else { super.mergeFrom(other); return this; @@ -508,10 +468,9 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.Polyline other) { verticesBuilder_ = null; vertices_ = other.vertices_; bitField0_ = (bitField0_ & ~0x00000001); - verticesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVerticesFieldBuilder() - : null; + verticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVerticesFieldBuilder() : null; } else { verticesBuilder_.addAllMessages(other.vertices_); } @@ -545,29 +504,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List vertices_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureVerticesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - vertices_ = - new java.util.ArrayList(vertices_); + vertices_ = new java.util.ArrayList(vertices_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Vertex, - com.google.cloud.datalabeling.v1beta1.Vertex.Builder, - com.google.cloud.datalabeling.v1beta1.VertexOrBuilder> - verticesBuilder_; + com.google.cloud.datalabeling.v1beta1.Vertex, com.google.cloud.datalabeling.v1beta1.Vertex.Builder, com.google.cloud.datalabeling.v1beta1.VertexOrBuilder> verticesBuilder_; /** - * - * *
      * The polyline vertices.
      * 
@@ -582,8 +533,6 @@ public java.util.List getVerticesL } } /** - * - * *
      * The polyline vertices.
      * 
@@ -598,8 +547,6 @@ public int getVerticesCount() { } } /** - * - * *
      * The polyline vertices.
      * 
@@ -614,15 +561,14 @@ public com.google.cloud.datalabeling.v1beta1.Vertex getVertices(int index) { } } /** - * - * *
      * The polyline vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public Builder setVertices(int index, com.google.cloud.datalabeling.v1beta1.Vertex value) { + public Builder setVertices( + int index, com.google.cloud.datalabeling.v1beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -636,8 +582,6 @@ public Builder setVertices(int index, com.google.cloud.datalabeling.v1beta1.Vert return this; } /** - * - * *
      * The polyline vertices.
      * 
@@ -656,8 +600,6 @@ public Builder setVertices( return this; } /** - * - * *
      * The polyline vertices.
      * 
@@ -678,15 +620,14 @@ public Builder addVertices(com.google.cloud.datalabeling.v1beta1.Vertex value) { return this; } /** - * - * *
      * The polyline vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public Builder addVertices(int index, com.google.cloud.datalabeling.v1beta1.Vertex value) { + public Builder addVertices( + int index, com.google.cloud.datalabeling.v1beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -700,8 +641,6 @@ public Builder addVertices(int index, com.google.cloud.datalabeling.v1beta1.Vert return this; } /** - * - * *
      * The polyline vertices.
      * 
@@ -720,8 +659,6 @@ public Builder addVertices( return this; } /** - * - * *
      * The polyline vertices.
      * 
@@ -740,8 +677,6 @@ public Builder addVertices( return this; } /** - * - * *
      * The polyline vertices.
      * 
@@ -752,7 +687,8 @@ public Builder addAllVertices( java.lang.Iterable values) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, vertices_); onChanged(); } else { verticesBuilder_.addAllMessages(values); @@ -760,8 +696,6 @@ public Builder addAllVertices( return this; } /** - * - * *
      * The polyline vertices.
      * 
@@ -779,8 +713,6 @@ public Builder clearVertices() { return this; } /** - * - * *
      * The polyline vertices.
      * 
@@ -798,44 +730,39 @@ public Builder removeVertices(int index) { return this; } /** - * - * *
      * The polyline vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public com.google.cloud.datalabeling.v1beta1.Vertex.Builder getVerticesBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.Vertex.Builder getVerticesBuilder( + int index) { return getVerticesFieldBuilder().getBuilder(index); } /** - * - * *
      * The polyline vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder( + int index) { if (verticesBuilder_ == null) { - return vertices_.get(index); - } else { + return vertices_.get(index); } else { return verticesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The polyline vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesOrBuilderList() { + public java.util.List + getVerticesOrBuilderList() { if (verticesBuilder_ != null) { return verticesBuilder_.getMessageOrBuilderList(); } else { @@ -843,8 +770,6 @@ public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilde } } /** - * - * *
      * The polyline vertices.
      * 
@@ -852,55 +777,49 @@ public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilde * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ public com.google.cloud.datalabeling.v1beta1.Vertex.Builder addVerticesBuilder() { - return getVerticesFieldBuilder() - .addBuilder(com.google.cloud.datalabeling.v1beta1.Vertex.getDefaultInstance()); + return getVerticesFieldBuilder().addBuilder( + com.google.cloud.datalabeling.v1beta1.Vertex.getDefaultInstance()); } /** - * - * *
      * The polyline vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public com.google.cloud.datalabeling.v1beta1.Vertex.Builder addVerticesBuilder(int index) { - return getVerticesFieldBuilder() - .addBuilder(index, com.google.cloud.datalabeling.v1beta1.Vertex.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.Vertex.Builder addVerticesBuilder( + int index) { + return getVerticesFieldBuilder().addBuilder( + index, com.google.cloud.datalabeling.v1beta1.Vertex.getDefaultInstance()); } /** - * - * *
      * The polyline vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesBuilderList() { + public java.util.List + getVerticesBuilderList() { return getVerticesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Vertex, - com.google.cloud.datalabeling.v1beta1.Vertex.Builder, - com.google.cloud.datalabeling.v1beta1.VertexOrBuilder> + com.google.cloud.datalabeling.v1beta1.Vertex, com.google.cloud.datalabeling.v1beta1.Vertex.Builder, com.google.cloud.datalabeling.v1beta1.VertexOrBuilder> getVerticesFieldBuilder() { if (verticesBuilder_ == null) { - verticesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Vertex, - com.google.cloud.datalabeling.v1beta1.Vertex.Builder, - com.google.cloud.datalabeling.v1beta1.VertexOrBuilder>( - vertices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + verticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.Vertex, com.google.cloud.datalabeling.v1beta1.Vertex.Builder, com.google.cloud.datalabeling.v1beta1.VertexOrBuilder>( + vertices_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); vertices_ = null; } return verticesBuilder_; } - @java.lang.Override - 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 +829,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.Polyline) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Polyline) private static final com.google.cloud.datalabeling.v1beta1.Polyline DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.Polyline(); } @@ -924,16 +843,16 @@ public static com.google.cloud.datalabeling.v1beta1.Polyline getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Polyline parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Polyline(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Polyline parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Polyline(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -948,4 +867,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.Polyline getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfig.java similarity index 71% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfig.java index 02550ba8..1de24792 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Config for image polyline human labeling task.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.PolylineConfig} */ -public final class PolylineConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PolylineConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.PolylineConfig) PolylineConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PolylineConfig.newBuilder() to construct. private PolylineConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PolylineConfig() { annotationSpecSet_ = ""; instructionMessage_ = ""; @@ -44,15 +26,16 @@ private PolylineConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PolylineConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PolylineConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private PolylineConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - annotationSpecSet_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + annotationSpecSet_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - instructionMessage_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + instructionMessage_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,39 +80,34 @@ private PolylineConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.PolylineConfig.class, - com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.PolylineConfig.class, com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder.class); } public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER = 1; private volatile java.lang.Object annotationSpecSet_; /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ @java.lang.Override @@ -140,29 +116,29 @@ public java.lang.String getAnnotationSpecSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; } } /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ @java.lang.Override - public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -173,14 +149,11 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { public static final int INSTRUCTION_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object instructionMessage_; /** - * - * *
    * Optional. Instruction message showed on contributors UI.
    * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The instructionMessage. */ @java.lang.Override @@ -189,29 +162,29 @@ public java.lang.String getInstructionMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instructionMessage_ = s; return s; } } /** - * - * *
    * Optional. Instruction message showed on contributors UI.
    * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for instructionMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getInstructionMessageBytes() { + public com.google.protobuf.ByteString + getInstructionMessageBytes() { java.lang.Object ref = instructionMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instructionMessage_ = b; return b; } else { @@ -220,7 +193,6 @@ public com.google.protobuf.ByteString getInstructionMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -232,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationSpecSet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecSet_); } @@ -262,16 +235,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.datalabeling.v1beta1.PolylineConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.PolylineConfig other = - (com.google.cloud.datalabeling.v1beta1.PolylineConfig) obj; + com.google.cloud.datalabeling.v1beta1.PolylineConfig other = (com.google.cloud.datalabeling.v1beta1.PolylineConfig) obj; - if (!getAnnotationSpecSet().equals(other.getAnnotationSpecSet())) return false; - if (!getInstructionMessage().equals(other.getInstructionMessage())) return false; + if (!getAnnotationSpecSet() + .equals(other.getAnnotationSpecSet())) return false; + if (!getInstructionMessage() + .equals(other.getInstructionMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,126 +267,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.PolylineConfig 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.datalabeling.v1beta1.PolylineConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.PolylineConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Config for image polyline human labeling task.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.PolylineConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.PolylineConfig) com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.PolylineConfig.class, - com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.PolylineConfig.class, com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.PolylineConfig.newBuilder() @@ -420,15 +385,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 +406,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor; } @java.lang.Override @@ -461,8 +427,7 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PolylineConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.PolylineConfig result = - new com.google.cloud.datalabeling.v1beta1.PolylineConfig(this); + com.google.cloud.datalabeling.v1beta1.PolylineConfig result = new com.google.cloud.datalabeling.v1beta1.PolylineConfig(this); result.annotationSpecSet_ = annotationSpecSet_; result.instructionMessage_ = instructionMessage_; onBuilt(); @@ -473,39 +438,38 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.PolylineConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.PolylineConfig) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.PolylineConfig)other); } else { super.mergeFrom(other); return this; @@ -513,8 +477,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.PolylineConfig other) { - if (other == com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance()) return this; if (!other.getAnnotationSpecSet().isEmpty()) { annotationSpecSet_ = other.annotationSpecSet_; onChanged(); @@ -542,8 +505,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.PolylineConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.PolylineConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -555,20 +517,18 @@ public Builder mergeFrom( private java.lang.Object annotationSpecSet_ = ""; /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ public java.lang.String getAnnotationSpecSet() { java.lang.Object ref = annotationSpecSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; @@ -577,21 +537,20 @@ public java.lang.String getAnnotationSpecSet() { } } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ - public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -599,61 +558,54 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { } } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSet(java.lang.String value) { + public Builder setAnnotationSpecSet( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecSet_ = value; onChanged(); return this; } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAnnotationSpecSet() { - + annotationSpecSet_ = getDefaultInstance().getAnnotationSpecSet(); onChanged(); return this; } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecSetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecSet_ = value; onChanged(); return this; @@ -661,20 +613,18 @@ public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { private java.lang.Object instructionMessage_ = ""; /** - * - * *
      * Optional. Instruction message showed on contributors UI.
      * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The instructionMessage. */ public java.lang.String getInstructionMessage() { java.lang.Object ref = instructionMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instructionMessage_ = s; return s; @@ -683,21 +633,20 @@ public java.lang.String getInstructionMessage() { } } /** - * - * *
      * Optional. Instruction message showed on contributors UI.
      * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for instructionMessage. */ - public com.google.protobuf.ByteString getInstructionMessageBytes() { + public com.google.protobuf.ByteString + getInstructionMessageBytes() { java.lang.Object ref = instructionMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instructionMessage_ = b; return b; } else { @@ -705,68 +654,61 @@ public com.google.protobuf.ByteString getInstructionMessageBytes() { } } /** - * - * *
      * Optional. Instruction message showed on contributors UI.
      * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The instructionMessage to set. * @return This builder for chaining. */ - public Builder setInstructionMessage(java.lang.String value) { + public Builder setInstructionMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instructionMessage_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Instruction message showed on contributors UI.
      * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearInstructionMessage() { - + instructionMessage_ = getDefaultInstance().getInstructionMessage(); onChanged(); return this; } /** - * - * *
      * Optional. Instruction message showed on contributors UI.
      * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for instructionMessage to set. * @return This builder for chaining. */ - public Builder setInstructionMessageBytes(com.google.protobuf.ByteString value) { + public Builder setInstructionMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instructionMessage_ = 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); } @@ -776,12 +718,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.PolylineConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.PolylineConfig) private static final com.google.cloud.datalabeling.v1beta1.PolylineConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.PolylineConfig(); } @@ -790,16 +732,16 @@ public static com.google.cloud.datalabeling.v1beta1.PolylineConfig getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolylineConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PolylineConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolylineConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolylineConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -814,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.PolylineConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfigOrBuilder.java similarity index 61% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfigOrBuilder.java index e524510b..08acc403 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfigOrBuilder.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface PolylineConfigOrBuilder - extends +public interface PolylineConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.PolylineConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ java.lang.String getAnnotationSpecSet(); /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ - com.google.protobuf.ByteString getAnnotationSpecSetBytes(); + com.google.protobuf.ByteString + getAnnotationSpecSetBytes(); /** - * - * *
    * Optional. Instruction message showed on contributors UI.
    * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The instructionMessage. */ java.lang.String getInstructionMessage(); /** - * - * *
    * Optional. Instruction message showed on contributors UI.
    * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for instructionMessage. */ - com.google.protobuf.ByteString getInstructionMessageBytes(); + com.google.protobuf.ByteString + getInstructionMessageBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineOrBuilder.java similarity index 61% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineOrBuilder.java index 77d7771f..6e636a47 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineOrBuilder.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface PolylineOrBuilder - extends +public interface PolylineOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.Polyline) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The polyline vertices.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - java.util.List getVerticesList(); + java.util.List + getVerticesList(); /** - * - * *
    * The polyline vertices.
    * 
@@ -44,8 +25,6 @@ public interface PolylineOrBuilder */ com.google.cloud.datalabeling.v1beta1.Vertex getVertices(int index); /** - * - * *
    * The polyline vertices.
    * 
@@ -54,24 +33,21 @@ public interface PolylineOrBuilder */ int getVerticesCount(); /** - * - * *
    * The polyline vertices.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - java.util.List + java.util.List getVerticesOrBuilderList(); /** - * - * *
    * The polyline vertices.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder(int index); + com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder( + int index); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurve.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurve.java similarity index 72% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurve.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurve.java index 6a357b02..d29fceb1 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurve.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurve.java @@ -1,49 +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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; -/** Protobuf type {@code google.cloud.datalabeling.v1beta1.PrCurve} */ -public final class PrCurve extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.datalabeling.v1beta1.PrCurve} + */ +public final class PrCurve extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.PrCurve) PrCurveOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PrCurve.newBuilder() to construct. private PrCurve(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PrCurve() { 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 PrCurve(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PrCurve( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -63,54 +50,45 @@ private PrCurve( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; - if (annotationSpec_ != null) { - subBuilder = annotationSpec_.toBuilder(); - } - annotationSpec_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotationSpec_); - annotationSpec_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; + if (annotationSpec_ != null) { + subBuilder = annotationSpec_.toBuilder(); } - case 21: - { - areaUnderCurve_ = input.readFloat(); - break; + annotationSpec_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotationSpec_); + annotationSpec_ = subBuilder.buildPartial(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntries_ = - new java.util.ArrayList< - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry>(); - mutable_bitField0_ |= 0x00000001; - } - confidenceMetricsEntries_.add( - input.readMessage( - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.parser(), - extensionRegistry)); - break; - } - case 37: - { - meanAveragePrecision_ = input.readFloat(); - break; + + break; + } + case 21: { + + areaUnderCurve_ = 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.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.parser(), extensionRegistry)); + break; + } + case 37: { + + meanAveragePrecision_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -118,40 +96,34 @@ private PrCurve( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PrCurve_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PrCurve_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.PrCurve.class, - com.google.cloud.datalabeling.v1beta1.PrCurve.Builder.class); + com.google.cloud.datalabeling.v1beta1.PrCurve.class, com.google.cloud.datalabeling.v1beta1.PrCurve.Builder.class); } - public interface ConfidenceMetricsEntryOrBuilder - extends + public interface ConfidenceMetricsEntryOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * Threshold used for this entry.
      * For classification tasks, this is a classification threshold: a
@@ -165,152 +137,127 @@ public interface ConfidenceMetricsEntryOrBuilder
      * 
* * float confidence_threshold = 1; - * * @return The confidenceThreshold. */ float getConfidenceThreshold(); /** - * - * *
      * Recall value.
      * 
* * float recall = 2; - * * @return The recall. */ float getRecall(); /** - * - * *
      * Precision value.
      * 
* * float precision = 3; - * * @return The precision. */ float getPrecision(); /** - * - * *
      * Harmonic mean of recall and precision.
      * 
* * float f1_score = 4; - * * @return The f1Score. */ float getF1Score(); /** - * - * *
      * Recall value for entries with label that has highest score.
      * 
* * float recall_at1 = 5; - * * @return The recallAt1. */ float getRecallAt1(); /** - * - * *
      * Precision value for entries with label that has highest score.
      * 
* * float precision_at1 = 6; - * * @return The precisionAt1. */ float getPrecisionAt1(); /** - * - * *
      * The harmonic mean of [recall_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at1].
      * 
* * float f1_score_at1 = 7; - * * @return The f1ScoreAt1. */ float getF1ScoreAt1(); /** - * - * *
      * Recall value for entries with label that has highest 5 scores.
      * 
* * float recall_at5 = 8; - * * @return The recallAt5. */ float getRecallAt5(); /** - * - * *
      * Precision value for entries with label that has highest 5 scores.
      * 
* * float precision_at5 = 9; - * * @return The precisionAt5. */ float getPrecisionAt5(); /** - * - * *
      * The harmonic mean of [recall_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at5] and [precision_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at5].
      * 
* * float f1_score_at5 = 10; - * * @return The f1ScoreAt5. */ float getF1ScoreAt5(); } - /** Protobuf type {@code google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry} */ - public static final class ConfidenceMetricsEntry extends com.google.protobuf.GeneratedMessageV3 - implements + /** + * Protobuf type {@code google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry} + */ + public static final class ConfidenceMetricsEntry extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.PrCurve.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) @@ -329,63 +276,63 @@ 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: - { - recallAt5_ = input.readFloat(); - break; - } - case 77: - { - precisionAt5_ = input.readFloat(); - break; - } - case 85: - { - f1ScoreAt5_ = 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; + } + case 45: { + + recallAt1_ = input.readFloat(); + break; + } + case 53: { + + precisionAt1_ = input.readFloat(); + break; + } + case 61: { + + f1ScoreAt1_ = input.readFloat(); + break; + } + case 69: { + + recallAt5_ = input.readFloat(); + break; + } + case 77: { + + precisionAt5_ = input.readFloat(); + break; + } + case 85: { + + f1ScoreAt5_ = input.readFloat(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -393,33 +340,29 @@ private ConfidenceMetricsEntry( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.class, - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder.class); + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.class, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder.class); } public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER = 1; private float confidenceThreshold_; /** - * - * *
      * Threshold used for this entry.
      * For classification tasks, this is a classification threshold: a
@@ -433,7 +376,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      * 
* * float confidence_threshold = 1; - * * @return The confidenceThreshold. */ @java.lang.Override @@ -444,14 +386,11 @@ public float getConfidenceThreshold() { public static final int RECALL_FIELD_NUMBER = 2; private float recall_; /** - * - * *
      * Recall value.
      * 
* * float recall = 2; - * * @return The recall. */ @java.lang.Override @@ -462,14 +401,11 @@ public float getRecall() { public static final int PRECISION_FIELD_NUMBER = 3; private float precision_; /** - * - * *
      * Precision value.
      * 
* * float precision = 3; - * * @return The precision. */ @java.lang.Override @@ -480,14 +416,11 @@ public float getPrecision() { public static final int F1_SCORE_FIELD_NUMBER = 4; private float f1Score_; /** - * - * *
      * Harmonic mean of recall and precision.
      * 
* * float f1_score = 4; - * * @return The f1Score. */ @java.lang.Override @@ -498,14 +431,11 @@ public float getF1Score() { public static final int RECALL_AT1_FIELD_NUMBER = 5; private float recallAt1_; /** - * - * *
      * Recall value for entries with label that has highest score.
      * 
* * float recall_at1 = 5; - * * @return The recallAt1. */ @java.lang.Override @@ -516,14 +446,11 @@ public float getRecallAt1() { public static final int PRECISION_AT1_FIELD_NUMBER = 6; private float precisionAt1_; /** - * - * *
      * Precision value for entries with label that has highest score.
      * 
* * float precision_at1 = 6; - * * @return The precisionAt1. */ @java.lang.Override @@ -534,14 +461,11 @@ public float getPrecisionAt1() { public static final int F1_SCORE_AT1_FIELD_NUMBER = 7; private float f1ScoreAt1_; /** - * - * *
      * The harmonic mean of [recall_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at1].
      * 
* * float f1_score_at1 = 7; - * * @return The f1ScoreAt1. */ @java.lang.Override @@ -552,14 +476,11 @@ public float getF1ScoreAt1() { public static final int RECALL_AT5_FIELD_NUMBER = 8; private float recallAt5_; /** - * - * *
      * Recall value for entries with label that has highest 5 scores.
      * 
* * float recall_at5 = 8; - * * @return The recallAt5. */ @java.lang.Override @@ -570,14 +491,11 @@ public float getRecallAt5() { public static final int PRECISION_AT5_FIELD_NUMBER = 9; private float precisionAt5_; /** - * - * *
      * Precision value for entries with label that has highest 5 scores.
      * 
* * float precision_at5 = 9; - * * @return The precisionAt5. */ @java.lang.Override @@ -588,14 +506,11 @@ public float getPrecisionAt5() { public static final int F1_SCORE_AT5_FIELD_NUMBER = 10; private float f1ScoreAt5_; /** - * - * *
      * The harmonic mean of [recall_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at5] and [precision_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at5].
      * 
* * float f1_score_at5 = 10; - * * @return The f1ScoreAt5. */ @java.lang.Override @@ -604,7 +519,6 @@ public float getF1ScoreAt5() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -616,7 +530,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 (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { output.writeFloat(1, confidenceThreshold_); } @@ -657,34 +572,44 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(1, confidenceThreshold_); } if (java.lang.Float.floatToRawIntBits(recall_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, recall_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, recall_); } if (java.lang.Float.floatToRawIntBits(precision_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, precision_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(3, precision_); } if (java.lang.Float.floatToRawIntBits(f1Score_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, f1Score_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, f1Score_); } if (java.lang.Float.floatToRawIntBits(recallAt1_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, recallAt1_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(5, recallAt1_); } if (java.lang.Float.floatToRawIntBits(precisionAt1_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, precisionAt1_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(6, precisionAt1_); } if (java.lang.Float.floatToRawIntBits(f1ScoreAt1_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, f1ScoreAt1_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(7, f1ScoreAt1_); } if (java.lang.Float.floatToRawIntBits(recallAt5_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(8, recallAt5_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(8, recallAt5_); } if (java.lang.Float.floatToRawIntBits(precisionAt5_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(9, precisionAt5_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(9, precisionAt5_); } if (java.lang.Float.floatToRawIntBits(f1ScoreAt5_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(10, f1ScoreAt5_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(10, f1ScoreAt5_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -694,34 +619,43 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry other = - (com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry) obj; + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry other = (com.google.cloud.datalabeling.v1beta1.PrCurve.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 (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(getF1ScoreAt1()) - != java.lang.Float.floatToIntBits(other.getF1ScoreAt1())) return false; + != java.lang.Float.floatToIntBits( + other.getF1ScoreAt1())) return false; if (java.lang.Float.floatToIntBits(getRecallAt5()) - != java.lang.Float.floatToIntBits(other.getRecallAt5())) return false; + != java.lang.Float.floatToIntBits( + other.getRecallAt5())) return false; if (java.lang.Float.floatToIntBits(getPrecisionAt5()) - != java.lang.Float.floatToIntBits(other.getPrecisionAt5())) return false; + != java.lang.Float.floatToIntBits( + other.getPrecisionAt5())) return false; if (java.lang.Float.floatToIntBits(getF1ScoreAt5()) - != java.lang.Float.floatToIntBits(other.getF1ScoreAt5())) return false; + != java.lang.Float.floatToIntBits( + other.getF1ScoreAt5())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -734,120 +668,122 @@ 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 = (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) + F1_SCORE_AT1_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1ScoreAt1()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getF1ScoreAt1()); hash = (37 * hash) + RECALL_AT5_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecallAt5()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getRecallAt5()); hash = (37 * hash) + PRECISION_AT5_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecisionAt5()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getPrecisionAt5()); hash = (37 * hash) + F1_SCORE_AT5_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1ScoreAt5()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getF1ScoreAt5()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry 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.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.PrCurve.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.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.PrCurve.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.datalabeling.v1beta1.PrCurve.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.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.PrCurve.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.PrCurve.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 @@ -856,42 +792,41 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry) com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.class, - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder.class); + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.class, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.PrCurve.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(); @@ -919,22 +854,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry build() { - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry result = - buildPartial(); + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -943,8 +875,7 @@ public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry buil @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry buildPartial() { - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry result = - new com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry(this); + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry result = new com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry(this); result.confidenceThreshold_ = confidenceThreshold_; result.recall_ = recall_; result.precision_ = precision_; @@ -963,53 +894,46 @@ public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry 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) { + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry other) { - if (other - == com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry other) { + if (other == com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.getDefaultInstance()) return this; if (other.getConfidenceThreshold() != 0F) { setConfidenceThreshold(other.getConfidenceThreshold()); } @@ -1059,9 +983,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1071,10 +993,8 @@ public Builder mergeFrom( return this; } - private float confidenceThreshold_; + private float confidenceThreshold_ ; /** - * - * *
        * Threshold used for this entry.
        * For classification tasks, this is a classification threshold: a
@@ -1088,7 +1008,6 @@ public Builder mergeFrom(
        * 
* * float confidence_threshold = 1; - * * @return The confidenceThreshold. */ @java.lang.Override @@ -1096,8 +1015,6 @@ public float getConfidenceThreshold() { return confidenceThreshold_; } /** - * - * *
        * Threshold used for this entry.
        * For classification tasks, this is a classification threshold: a
@@ -1111,19 +1028,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; } /** - * - * *
        * Threshold used for this entry.
        * For classification tasks, this is a classification threshold: a
@@ -1137,26 +1051,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_ ; /** - * - * *
        * Recall value.
        * 
* * float recall = 2; - * * @return The recall. */ @java.lang.Override @@ -1164,51 +1074,42 @@ public float getRecall() { return recall_; } /** - * - * *
        * Recall value.
        * 
* * float recall = 2; - * * @param value The recall to set. * @return This builder for chaining. */ public Builder setRecall(float value) { - + recall_ = value; onChanged(); return this; } /** - * - * *
        * Recall value.
        * 
* * float recall = 2; - * * @return This builder for chaining. */ public Builder clearRecall() { - + recall_ = 0F; onChanged(); return this; } - private float precision_; + private float precision_ ; /** - * - * *
        * Precision value.
        * 
* * float precision = 3; - * * @return The precision. */ @java.lang.Override @@ -1216,51 +1117,42 @@ public float getPrecision() { return precision_; } /** - * - * *
        * Precision value.
        * 
* * float precision = 3; - * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(float value) { - + precision_ = value; onChanged(); return this; } /** - * - * *
        * Precision value.
        * 
* * float precision = 3; - * * @return This builder for chaining. */ public Builder clearPrecision() { - + precision_ = 0F; onChanged(); return this; } - private float f1Score_; + private float f1Score_ ; /** - * - * *
        * Harmonic mean of recall and precision.
        * 
* * float f1_score = 4; - * * @return The f1Score. */ @java.lang.Override @@ -1268,51 +1160,42 @@ public float getF1Score() { return f1Score_; } /** - * - * *
        * 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; } /** - * - * *
        * 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_ ; /** - * - * *
        * Recall value for entries with label that has highest score.
        * 
* * float recall_at1 = 5; - * * @return The recallAt1. */ @java.lang.Override @@ -1320,51 +1203,42 @@ public float getRecallAt1() { return recallAt1_; } /** - * - * *
        * Recall value for entries with label that has highest score.
        * 
* * 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; } /** - * - * *
        * Recall value for entries with label that has highest score.
        * 
* * float recall_at1 = 5; - * * @return This builder for chaining. */ public Builder clearRecallAt1() { - + recallAt1_ = 0F; onChanged(); return this; } - private float precisionAt1_; + private float precisionAt1_ ; /** - * - * *
        * Precision value for entries with label that has highest score.
        * 
* * float precision_at1 = 6; - * * @return The precisionAt1. */ @java.lang.Override @@ -1372,51 +1246,42 @@ public float getPrecisionAt1() { return precisionAt1_; } /** - * - * *
        * Precision value for entries with label that has highest score.
        * 
* * 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; } /** - * - * *
        * Precision value for entries with label that has highest score.
        * 
* * float precision_at1 = 6; - * * @return This builder for chaining. */ public Builder clearPrecisionAt1() { - + precisionAt1_ = 0F; onChanged(); return this; } - private float f1ScoreAt1_; + private float f1ScoreAt1_ ; /** - * - * *
        * The harmonic mean of [recall_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at1].
        * 
* * float f1_score_at1 = 7; - * * @return The f1ScoreAt1. */ @java.lang.Override @@ -1424,51 +1289,42 @@ public float getF1ScoreAt1() { return f1ScoreAt1_; } /** - * - * *
        * The harmonic mean of [recall_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.datalabeling.v1beta1.PrCurve.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; } /** - * - * *
        * The harmonic mean of [recall_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at1].
        * 
* * float f1_score_at1 = 7; - * * @return This builder for chaining. */ public Builder clearF1ScoreAt1() { - + f1ScoreAt1_ = 0F; onChanged(); return this; } - private float recallAt5_; + private float recallAt5_ ; /** - * - * *
        * Recall value for entries with label that has highest 5 scores.
        * 
* * float recall_at5 = 8; - * * @return The recallAt5. */ @java.lang.Override @@ -1476,51 +1332,42 @@ public float getRecallAt5() { return recallAt5_; } /** - * - * *
        * Recall value for entries with label that has highest 5 scores.
        * 
* * float recall_at5 = 8; - * * @param value The recallAt5 to set. * @return This builder for chaining. */ public Builder setRecallAt5(float value) { - + recallAt5_ = value; onChanged(); return this; } /** - * - * *
        * Recall value for entries with label that has highest 5 scores.
        * 
* * float recall_at5 = 8; - * * @return This builder for chaining. */ public Builder clearRecallAt5() { - + recallAt5_ = 0F; onChanged(); return this; } - private float precisionAt5_; + private float precisionAt5_ ; /** - * - * *
        * Precision value for entries with label that has highest 5 scores.
        * 
* * float precision_at5 = 9; - * * @return The precisionAt5. */ @java.lang.Override @@ -1528,51 +1375,42 @@ public float getPrecisionAt5() { return precisionAt5_; } /** - * - * *
        * Precision value for entries with label that has highest 5 scores.
        * 
* * float precision_at5 = 9; - * * @param value The precisionAt5 to set. * @return This builder for chaining. */ public Builder setPrecisionAt5(float value) { - + precisionAt5_ = value; onChanged(); return this; } /** - * - * *
        * Precision value for entries with label that has highest 5 scores.
        * 
* * float precision_at5 = 9; - * * @return This builder for chaining. */ public Builder clearPrecisionAt5() { - + precisionAt5_ = 0F; onChanged(); return this; } - private float f1ScoreAt5_; + private float f1ScoreAt5_ ; /** - * - * *
        * The harmonic mean of [recall_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at5] and [precision_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at5].
        * 
* * float f1_score_at5 = 10; - * * @return The f1ScoreAt5. */ @java.lang.Override @@ -1580,41 +1418,34 @@ public float getF1ScoreAt5() { return f1ScoreAt5_; } /** - * - * *
        * The harmonic mean of [recall_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at5] and [precision_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at5].
        * 
* * float f1_score_at5 = 10; - * * @param value The f1ScoreAt5 to set. * @return This builder for chaining. */ public Builder setF1ScoreAt5(float value) { - + f1ScoreAt5_ = value; onChanged(); return this; } /** - * - * *
        * The harmonic mean of [recall_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at5] and [precision_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at5].
        * 
* * float f1_score_at5 = 10; - * * @return This builder for chaining. */ public Builder clearF1ScoreAt5() { - + f1ScoreAt5_ = 0F; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1627,32 +1458,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry) - private static final com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry(); } - public static com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.PrCurve.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; @@ -1664,17 +1493,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int ANNOTATION_SPEC_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; /** - * - * *
    * The annotation spec of the label for which the precision-recall curve
    * calculated. If this field is empty, that means the precision-recall curve
@@ -1682,7 +1509,6 @@ public com.google.protobuf.Parser getParserForType() {
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ @java.lang.Override @@ -1690,8 +1516,6 @@ public boolean hasAnnotationSpec() { return annotationSpec_ != null; } /** - * - * *
    * The annotation spec of the label for which the precision-recall curve
    * calculated. If this field is empty, that means the precision-recall curve
@@ -1699,18 +1523,13 @@ public boolean hasAnnotationSpec() {
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } /** - * - * *
    * The annotation spec of the label for which the precision-recall curve
    * calculated. If this field is empty, that means the precision-recall curve
@@ -1720,23 +1539,19 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec()
    * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder
-      getAnnotationSpecOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() {
     return getAnnotationSpec();
   }
 
   public static final int AREA_UNDER_CURVE_FIELD_NUMBER = 2;
   private float areaUnderCurve_;
   /**
-   *
-   *
    * 
    * Area under the precision-recall curve. Not to be confused with area under
    * a receiver operating characteristic (ROC) curve.
    * 
* * float area_under_curve = 2; - * * @return The areaUnderCurve. */ @java.lang.Override @@ -1745,105 +1560,78 @@ public float getAreaUnderCurve() { } public static final int CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER = 3; - private java.util.List - confidenceMetricsEntries_; + private java.util.List confidenceMetricsEntries_; /** - * - * *
    * Entries that make up the precision-recall graph. Each entry is a "point" on
    * the graph drawn for a different `confidence_threshold`.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ @java.lang.Override - public java.util.List - getConfidenceMetricsEntriesList() { + public java.util.List getConfidenceMetricsEntriesList() { return confidenceMetricsEntries_; } /** - * - * *
    * Entries that make up the precision-recall graph. Each entry is a "point" on
    * the graph drawn for a different `confidence_threshold`.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder> + public java.util.List getConfidenceMetricsEntriesOrBuilderList() { return confidenceMetricsEntries_; } /** - * - * *
    * Entries that make up the precision-recall graph. Each entry is a "point" on
    * the graph drawn for a different `confidence_threshold`.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ @java.lang.Override public int getConfidenceMetricsEntriesCount() { return confidenceMetricsEntries_.size(); } /** - * - * *
    * Entries that make up the precision-recall graph. Each entry is a "point" on
    * the graph drawn for a different `confidence_threshold`.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry - getConfidenceMetricsEntries(int index) { + public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index) { return confidenceMetricsEntries_.get(index); } /** - * - * *
    * Entries that make up the precision-recall graph. Each entry is a "point" on
    * the graph drawn for a different `confidence_threshold`.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder - getConfidenceMetricsEntriesOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( + int index) { return confidenceMetricsEntries_.get(index); } public static final int MEAN_AVERAGE_PRECISION_FIELD_NUMBER = 4; private float meanAveragePrecision_; /** - * - * *
    * Mean average prcision of this curve.
    * 
* * float mean_average_precision = 4; - * * @return The meanAveragePrecision. */ @java.lang.Override @@ -1852,7 +1640,6 @@ public float getMeanAveragePrecision() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1864,7 +1651,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 (annotationSpec_ != null) { output.writeMessage(1, getAnnotationSpec()); } @@ -1887,18 +1675,20 @@ public int getSerializedSize() { size = 0; if (annotationSpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnnotationSpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAnnotationSpec()); } if (java.lang.Float.floatToRawIntBits(areaUnderCurve_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, areaUnderCurve_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(2, areaUnderCurve_); } 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)); } if (java.lang.Float.floatToRawIntBits(meanAveragePrecision_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, meanAveragePrecision_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, meanAveragePrecision_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1908,24 +1698,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.datalabeling.v1beta1.PrCurve)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.PrCurve other = - (com.google.cloud.datalabeling.v1beta1.PrCurve) obj; + com.google.cloud.datalabeling.v1beta1.PrCurve other = (com.google.cloud.datalabeling.v1beta1.PrCurve) obj; if (hasAnnotationSpec() != other.hasAnnotationSpec()) return false; if (hasAnnotationSpec()) { - if (!getAnnotationSpec().equals(other.getAnnotationSpec())) return false; + if (!getAnnotationSpec() + .equals(other.getAnnotationSpec())) return false; } if (java.lang.Float.floatToIntBits(getAreaUnderCurve()) - != java.lang.Float.floatToIntBits(other.getAreaUnderCurve())) return false; - if (!getConfidenceMetricsEntriesList().equals(other.getConfidenceMetricsEntriesList())) - return false; + != java.lang.Float.floatToIntBits( + other.getAreaUnderCurve())) return false; + if (!getConfidenceMetricsEntriesList() + .equals(other.getConfidenceMetricsEntriesList())) return false; if (java.lang.Float.floatToIntBits(getMeanAveragePrecision()) - != java.lang.Float.floatToIntBits(other.getMeanAveragePrecision())) return false; + != java.lang.Float.floatToIntBits( + other.getMeanAveragePrecision())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1942,131 +1734,128 @@ public int hashCode() { hash = (53 * hash) + getAnnotationSpec().hashCode(); } hash = (37 * hash) + AREA_UNDER_CURVE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getAreaUnderCurve()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getAreaUnderCurve()); if (getConfidenceMetricsEntriesCount() > 0) { hash = (37 * hash) + CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getConfidenceMetricsEntriesList().hashCode(); } hash = (37 * hash) + MEAN_AVERAGE_PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getMeanAveragePrecision()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getMeanAveragePrecision()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.datalabeling.v1beta1.PrCurve parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datalabeling.v1beta1.PrCurve parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.PrCurve parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.PrCurve parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.PrCurve parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.PrCurve parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.PrCurve parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.PrCurve 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.datalabeling.v1beta1.PrCurve parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.PrCurve parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.PrCurve parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.PrCurve parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.PrCurve parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.PrCurve parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.PrCurve prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** Protobuf type {@code google.cloud.datalabeling.v1beta1.PrCurve} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.datalabeling.v1beta1.PrCurve} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.PrCurve) com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PrCurve_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PrCurve_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.PrCurve.class, - com.google.cloud.datalabeling.v1beta1.PrCurve.Builder.class); + com.google.cloud.datalabeling.v1beta1.PrCurve.class, com.google.cloud.datalabeling.v1beta1.PrCurve.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.PrCurve.newBuilder() @@ -2074,17 +1863,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(); @@ -2108,9 +1897,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor; } @java.lang.Override @@ -2129,8 +1918,7 @@ public com.google.cloud.datalabeling.v1beta1.PrCurve build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PrCurve buildPartial() { - com.google.cloud.datalabeling.v1beta1.PrCurve result = - new com.google.cloud.datalabeling.v1beta1.PrCurve(this); + com.google.cloud.datalabeling.v1beta1.PrCurve result = new com.google.cloud.datalabeling.v1beta1.PrCurve(this); int from_bitField0_ = bitField0_; if (annotationSpecBuilder_ == null) { result.annotationSpec_ = annotationSpec_; @@ -2140,8 +1928,7 @@ public com.google.cloud.datalabeling.v1beta1.PrCurve buildPartial() { result.areaUnderCurve_ = areaUnderCurve_; 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_; @@ -2157,39 +1944,38 @@ public com.google.cloud.datalabeling.v1beta1.PrCurve buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.PrCurve) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.PrCurve) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.PrCurve)other); } else { super.mergeFrom(other); return this; @@ -2222,10 +2008,9 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.PrCurve other) { 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_); } @@ -2262,18 +2047,12 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> - annotationSpecBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecBuilder_; /** - * - * *
      * The annotation spec of the label for which the precision-recall curve
      * calculated. If this field is empty, that means the precision-recall curve
@@ -2281,15 +2060,12 @@ public Builder mergeFrom(
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ public boolean hasAnnotationSpec() { return annotationSpecBuilder_ != null || annotationSpec_ != null; } /** - * - * *
      * The annotation spec of the label for which the precision-recall curve
      * calculated. If this field is empty, that means the precision-recall curve
@@ -2297,21 +2073,16 @@ public boolean hasAnnotationSpec() {
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { if (annotationSpecBuilder_ == null) { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } else { return annotationSpecBuilder_.getMessage(); } } /** - * - * *
      * The annotation spec of the label for which the precision-recall curve
      * calculated. If this field is empty, that means the precision-recall curve
@@ -2334,8 +2105,6 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio
       return this;
     }
     /**
-     *
-     *
      * 
      * The annotation spec of the label for which the precision-recall curve
      * calculated. If this field is empty, that means the precision-recall curve
@@ -2356,8 +2125,6 @@ public Builder setAnnotationSpec(
       return this;
     }
     /**
-     *
-     *
      * 
      * The annotation spec of the label for which the precision-recall curve
      * calculated. If this field is empty, that means the precision-recall curve
@@ -2370,9 +2137,7 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat
       if (annotationSpecBuilder_ == null) {
         if (annotationSpec_ != null) {
           annotationSpec_ =
-              com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_).mergeFrom(value).buildPartial();
         } else {
           annotationSpec_ = value;
         }
@@ -2384,8 +2149,6 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat
       return this;
     }
     /**
-     *
-     *
      * 
      * The annotation spec of the label for which the precision-recall curve
      * calculated. If this field is empty, that means the precision-recall curve
@@ -2406,8 +2169,6 @@ public Builder clearAnnotationSpec() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The annotation spec of the label for which the precision-recall curve
      * calculated. If this field is empty, that means the precision-recall curve
@@ -2417,13 +2178,11 @@ public Builder clearAnnotationSpec() {
      * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
      */
     public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotationSpecBuilder() {
-
+      
       onChanged();
       return getAnnotationSpecFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The annotation spec of the label for which the precision-recall curve
      * calculated. If this field is empty, that means the precision-recall curve
@@ -2432,19 +2191,15 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio
      *
      * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
      */
-    public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder
-        getAnnotationSpecOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() {
       if (annotationSpecBuilder_ != null) {
         return annotationSpecBuilder_.getMessageOrBuilder();
       } else {
-        return annotationSpec_ == null
-            ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance()
-            : annotationSpec_;
+        return annotationSpec_ == null ?
+            com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_;
       }
     }
     /**
-     *
-     *
      * 
      * The annotation spec of the label for which the precision-recall curve
      * calculated. If this field is empty, that means the precision-recall curve
@@ -2454,33 +2209,27 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio
      * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.AnnotationSpec,
-            com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder,
-            com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>
+        com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> 
         getAnnotationSpecFieldBuilder() {
       if (annotationSpecBuilder_ == null) {
-        annotationSpecBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.cloud.datalabeling.v1beta1.AnnotationSpec,
-                com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder,
-                com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>(
-                getAnnotationSpec(), getParentForChildren(), isClean());
+        annotationSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>(
+                getAnnotationSpec(),
+                getParentForChildren(),
+                isClean());
         annotationSpec_ = null;
       }
       return annotationSpecBuilder_;
     }
 
-    private float areaUnderCurve_;
+    private float areaUnderCurve_ ;
     /**
-     *
-     *
      * 
      * Area under the precision-recall curve. Not to be confused with area under
      * a receiver operating characteristic (ROC) curve.
      * 
* * float area_under_curve = 2; - * * @return The areaUnderCurve. */ @java.lang.Override @@ -2488,76 +2237,58 @@ public float getAreaUnderCurve() { return areaUnderCurve_; } /** - * - * *
      * Area under the precision-recall curve. Not to be confused with area under
      * a receiver operating characteristic (ROC) curve.
      * 
* * float area_under_curve = 2; - * * @param value The areaUnderCurve to set. * @return This builder for chaining. */ public Builder setAreaUnderCurve(float value) { - + areaUnderCurve_ = value; onChanged(); return this; } /** - * - * *
      * Area under the precision-recall curve. Not to be confused with area under
      * a receiver operating characteristic (ROC) curve.
      * 
* * float area_under_curve = 2; - * * @return This builder for chaining. */ public Builder clearAreaUnderCurve() { - + areaUnderCurve_ = 0F; onChanged(); return this; } - private java.util.List - 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.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry>( - confidenceMetricsEntries_); + confidenceMetricsEntries_ = new java.util.ArrayList(confidenceMetricsEntries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry, - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder, - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder> - confidenceMetricsEntriesBuilder_; + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder> confidenceMetricsEntriesBuilder_; /** - * - * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.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 { @@ -2565,16 +2296,12 @@ private void ensureConfidenceMetricsEntriesIsMutable() { } } /** - * - * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public int getConfidenceMetricsEntriesCount() { if (confidenceMetricsEntriesBuilder_ == null) { @@ -2584,19 +2311,14 @@ public int getConfidenceMetricsEntriesCount() { } } /** - * - * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry - getConfidenceMetricsEntries(int index) { + public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index) { if (confidenceMetricsEntriesBuilder_ == null) { return confidenceMetricsEntries_.get(index); } else { @@ -2604,16 +2326,12 @@ public int getConfidenceMetricsEntriesCount() { } } /** - * - * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public Builder setConfidenceMetricsEntries( int index, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry value) { @@ -2630,21 +2348,15 @@ public Builder setConfidenceMetricsEntries( return this; } /** - * - * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public Builder setConfidenceMetricsEntries( - int index, - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder - builderForValue) { + int index, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.set(index, builderForValue.build()); @@ -2655,19 +2367,14 @@ public Builder setConfidenceMetricsEntries( return this; } /** - * - * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public Builder addConfidenceMetricsEntries( - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry value) { + public Builder addConfidenceMetricsEntries(com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2681,16 +2388,12 @@ public Builder addConfidenceMetricsEntries( return this; } /** - * - * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public Builder addConfidenceMetricsEntries( int index, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry value) { @@ -2707,20 +2410,15 @@ public Builder addConfidenceMetricsEntries( return this; } /** - * - * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public Builder addConfidenceMetricsEntries( - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder - builderForValue) { + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(builderForValue.build()); @@ -2731,21 +2429,15 @@ public Builder addConfidenceMetricsEntries( return this; } /** - * - * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public Builder addConfidenceMetricsEntries( - int index, - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder - builderForValue) { + int index, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(index, builderForValue.build()); @@ -2756,24 +2448,19 @@ public Builder addConfidenceMetricsEntries( return this; } /** - * - * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public Builder addAllConfidenceMetricsEntries( - java.lang.Iterable< - ? extends com.google.cloud.datalabeling.v1beta1.PrCurve.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); @@ -2781,16 +2468,12 @@ public Builder addAllConfidenceMetricsEntries( return this; } /** - * - * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public Builder clearConfidenceMetricsEntries() { if (confidenceMetricsEntriesBuilder_ == null) { @@ -2803,16 +2486,12 @@ public Builder clearConfidenceMetricsEntries() { return this; } /** - * - * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ public Builder removeConfidenceMetricsEntries(int index) { if (confidenceMetricsEntriesBuilder_ == null) { @@ -2825,56 +2504,42 @@ public Builder removeConfidenceMetricsEntries(int index) { return this; } /** - * - * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder - getConfidenceMetricsEntriesBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder getConfidenceMetricsEntriesBuilder( + int index) { return getConfidenceMetricsEntriesFieldBuilder().getBuilder(index); } /** - * - * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder - getConfidenceMetricsEntriesOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( + int index) { if (confidenceMetricsEntriesBuilder_ == null) { - return confidenceMetricsEntries_.get(index); - } else { + return confidenceMetricsEntries_.get(index); } else { return confidenceMetricsEntriesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public java.util.List< - ? extends com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder> - getConfidenceMetricsEntriesOrBuilderList() { + public java.util.List + getConfidenceMetricsEntriesOrBuilderList() { if (confidenceMetricsEntriesBuilder_ != null) { return confidenceMetricsEntriesBuilder_.getMessageOrBuilderList(); } else { @@ -2882,73 +2547,48 @@ public Builder removeConfidenceMetricsEntries(int index) { } } /** - * - * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder - addConfidenceMetricsEntriesBuilder() { - return getConfidenceMetricsEntriesFieldBuilder() - .addBuilder( - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry - .getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntriesBuilder() { + return getConfidenceMetricsEntriesFieldBuilder().addBuilder( + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.getDefaultInstance()); } /** - * - * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder - addConfidenceMetricsEntriesBuilder(int index) { - return getConfidenceMetricsEntriesFieldBuilder() - .addBuilder( - index, - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry - .getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntriesBuilder( + int index) { + return getConfidenceMetricsEntriesFieldBuilder().addBuilder( + index, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.getDefaultInstance()); } /** - * - * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - public java.util.List< - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder> - getConfidenceMetricsEntriesBuilderList() { + public java.util.List + getConfidenceMetricsEntriesBuilderList() { return getConfidenceMetricsEntriesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry, - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder, - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder> + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder> getConfidenceMetricsEntriesFieldBuilder() { if (confidenceMetricsEntriesBuilder_ == null) { - confidenceMetricsEntriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry, - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder, - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder>( + confidenceMetricsEntriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder>( confidenceMetricsEntries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2958,16 +2598,13 @@ public Builder removeConfidenceMetricsEntries(int index) { return confidenceMetricsEntriesBuilder_; } - private float meanAveragePrecision_; + private float meanAveragePrecision_ ; /** - * - * *
      * Mean average prcision of this curve.
      * 
* * float mean_average_precision = 4; - * * @return The meanAveragePrecision. */ @java.lang.Override @@ -2975,43 +2612,37 @@ public float getMeanAveragePrecision() { return meanAveragePrecision_; } /** - * - * *
      * Mean average prcision of this curve.
      * 
* * float mean_average_precision = 4; - * * @param value The meanAveragePrecision to set. * @return This builder for chaining. */ public Builder setMeanAveragePrecision(float value) { - + meanAveragePrecision_ = value; onChanged(); return this; } /** - * - * *
      * Mean average prcision of this curve.
      * 
* * float mean_average_precision = 4; - * * @return This builder for chaining. */ public Builder clearMeanAveragePrecision() { - + meanAveragePrecision_ = 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); } @@ -3021,12 +2652,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.PrCurve) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.PrCurve) private static final com.google.cloud.datalabeling.v1beta1.PrCurve DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.PrCurve(); } @@ -3035,16 +2666,16 @@ public static com.google.cloud.datalabeling.v1beta1.PrCurve getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrCurve parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrCurve(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrCurve parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PrCurve(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3059,4 +2690,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.PrCurve getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurveOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurveOrBuilder.java similarity index 66% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurveOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurveOrBuilder.java index 9b27bdcc..771efad5 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurveOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurveOrBuilder.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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; -public interface PrCurveOrBuilder - extends +public interface PrCurveOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.PrCurve) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The annotation spec of the label for which the precision-recall curve
    * calculated. If this field is empty, that means the precision-recall curve
@@ -33,13 +15,10 @@ public interface PrCurveOrBuilder
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ boolean hasAnnotationSpec(); /** - * - * *
    * The annotation spec of the label for which the precision-recall curve
    * calculated. If this field is empty, that means the precision-recall curve
@@ -47,13 +26,10 @@ public interface PrCurveOrBuilder
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec(); /** - * - * *
    * The annotation spec of the label for which the precision-recall curve
    * calculated. If this field is empty, that means the precision-recall curve
@@ -65,99 +41,71 @@ public interface PrCurveOrBuilder
   com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder();
 
   /**
-   *
-   *
    * 
    * Area under the precision-recall curve. Not to be confused with area under
    * a receiver operating characteristic (ROC) curve.
    * 
* * float area_under_curve = 2; - * * @return The areaUnderCurve. */ float getAreaUnderCurve(); /** - * - * *
    * Entries that make up the precision-recall graph. Each entry is a "point" on
    * the graph drawn for a different `confidence_threshold`.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - java.util.List + java.util.List getConfidenceMetricsEntriesList(); /** - * - * *
    * Entries that make up the precision-recall graph. Each entry is a "point" on
    * the graph drawn for a different `confidence_threshold`.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry getConfidenceMetricsEntries( - int index); + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index); /** - * - * *
    * Entries that make up the precision-recall graph. Each entry is a "point" on
    * the graph drawn for a different `confidence_threshold`.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ int getConfidenceMetricsEntriesCount(); /** - * - * *
    * Entries that make up the precision-recall graph. Each entry is a "point" on
    * the graph drawn for a different `confidence_threshold`.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - java.util.List< - ? extends com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder> + java.util.List getConfidenceMetricsEntriesOrBuilderList(); /** - * - * *
    * Entries that make up the precision-recall graph. Each entry is a "point" on
    * the graph drawn for a different `confidence_threshold`.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; */ - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder - getConfidenceMetricsEntriesOrBuilder(int index); + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( + int index); /** - * - * *
    * Mean average prcision of this curve.
    * 
* * float mean_average_precision = 4; - * * @return The meanAveragePrecision. */ float getMeanAveragePrecision(); diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ProjectName.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ProjectName.java similarity index 100% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ProjectName.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ProjectName.java diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequest.java similarity index 64% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequest.java index ae1e4b12..eb6d8c02 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message ResumeEvaluationJob.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest} */ -public final class ResumeEvaluationJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ResumeEvaluationJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) ResumeEvaluationJobRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ResumeEvaluationJobRequest.newBuilder() to construct. private ResumeEvaluationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ResumeEvaluationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ResumeEvaluationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ResumeEvaluationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private ResumeEvaluationJobRequest( 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) { @@ -91,42 +73,35 @@ private ResumeEvaluationJobRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.class, - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. Name of the evaluation job that is going to be resumed. Format:
    * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * - * string 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 @@ -135,32 +110,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. Name of the evaluation job that is going to be resumed. Format:
    * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * - * string 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 { @@ -169,7 +142,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -205,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.datalabeling.v1beta1.ResumeEvaluationJobRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest other = - (com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) obj; + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest other = (com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,127 +206,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest 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.datalabeling.v1beta1.ResumeEvaluationJobRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ResumeEvaluationJob.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.class, - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.newBuilder() @@ -361,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(); @@ -379,14 +343,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.getDefaultInstance(); } @@ -401,8 +364,7 @@ public com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest result = - new com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest(this); + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest result = new com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -412,50 +374,46 @@ public com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest 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.datalabeling.v1beta1.ResumeEvaluationJobRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest other) { - if (other - == com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest other) { + if (other == com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -479,9 +437,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,23 +449,19 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. Name of the evaluation job that is going to be resumed. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * - * string 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; @@ -518,24 +470,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. Name of the evaluation job that is going to be resumed. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * - * string 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 { @@ -543,77 +492,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. Name of the evaluation job that is going to be resumed. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * - * 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 evaluation job that is going to be resumed. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * - * string 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 evaluation job that is going to be resumed. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * - * 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); } @@ -623,32 +559,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) - private static final com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest(); } - public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResumeEvaluationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResumeEvaluationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResumeEvaluationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResumeEvaluationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,8 +594,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequestOrBuilder.java new file mode 100644 index 00000000..e1b833d9 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequestOrBuilder.java @@ -0,0 +1,31 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface ResumeEvaluationJobRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. Name of the evaluation job that is going to be resumed. Format:
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. Name of the evaluation job that is going to be resumed. Format:
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
+   * 
+ * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequest.java similarity index 78% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequest.java index a3dc3cbc..aad661cd 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message for SearchEvaluation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest} */ -public final class SearchEvaluationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SearchEvaluationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) SearchEvaluationsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SearchEvaluationsRequest.newBuilder() to construct. private SearchEvaluationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SearchEvaluationsRequest() { parent_ = ""; filter_ = ""; @@ -45,15 +27,16 @@ private SearchEvaluationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SearchEvaluationsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SearchEvaluationsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,39 +55,36 @@ private SearchEvaluationsRequest( 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: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 24: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 34: { + 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) { @@ -112,42 +92,35 @@ private SearchEvaluationsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.class, - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.class, com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Evaluation search parent (project ID). Format:
    * "projects/<var>{project_id}</var>"
    * 
* - * - * 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 @@ -156,32 +129,30 @@ 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. Evaluation search parent (project ID). Format:
    * "projects/<var>{project_id}</var>"
    * 
* - * - * 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 = 2; private volatile java.lang.Object filter_; /** - * - * *
    * Optional. To search evaluations, you can filter by the following:
    * * evaluation<span>_</span>job.evaluation_job_id (the last part of
@@ -226,7 +195,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ @java.lang.Override @@ -235,15 +203,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; } } /** - * - * *
    * Optional. To search evaluations, you can filter by the following:
    * * evaluation<span>_</span>job.evaluation_job_id (the last part of
@@ -276,15 +243,16 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -295,15 +263,12 @@ public com.google.protobuf.ByteString getFilterBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -314,8 +279,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -326,7 +289,6 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -335,15 +297,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; } } /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -354,15 +315,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -371,7 +333,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -383,7 +344,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_); } @@ -412,7 +374,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -425,18 +388,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.datalabeling.v1beta1.SearchEvaluationsRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest other = - (com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) 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.datalabeling.v1beta1.SearchEvaluationsRequest other = (com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) 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; } @@ -462,127 +428,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest 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.datalabeling.v1beta1.SearchEvaluationsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 SearchEvaluation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.class, - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.class, com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.newBuilder() @@ -590,15 +546,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(); @@ -614,14 +571,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.getDefaultInstance(); } @@ -636,8 +592,7 @@ public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest result = - new com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest(this); + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest result = new com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -650,39 +605,38 @@ public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest 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.datalabeling.v1beta1.SearchEvaluationsRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest)other); } else { super.mergeFrom(other); return this; @@ -690,9 +644,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest other) { - if (other - == com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -727,9 +679,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -741,23 +691,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Evaluation search parent (project ID). Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * - * 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; @@ -766,24 +712,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Evaluation search parent (project ID). Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * - * 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 { @@ -791,70 +734,57 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Evaluation search parent (project ID). Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * - * 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. Evaluation search parent (project ID). Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * - * 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. Evaluation search parent (project ID). Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * - * 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; @@ -862,8 +792,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private java.lang.Object filter_ = ""; /** - * - * *
      * Optional. To search evaluations, you can filter by the following:
      * * evaluation<span>_</span>job.evaluation_job_id (the last part of
@@ -896,13 +824,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -911,8 +839,6 @@ public java.lang.String getFilter() { } } /** - * - * *
      * Optional. To search evaluations, you can filter by the following:
      * * evaluation<span>_</span>job.evaluation_job_id (the last part of
@@ -945,14 +871,15 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -960,8 +887,6 @@ public com.google.protobuf.ByteString getFilterBytes() { } } /** - * - * *
      * Optional. To search evaluations, you can filter by the following:
      * * evaluation<span>_</span>job.evaluation_job_id (the last part of
@@ -994,22 +919,20 @@ public com.google.protobuf.ByteString getFilterBytes() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. To search evaluations, you can filter by the following:
      * * evaluation<span>_</span>job.evaluation_job_id (the last part of
@@ -1042,18 +965,15 @@ public Builder setFilter(java.lang.String value) {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** - * - * *
      * Optional. To search evaluations, you can filter by the following:
      * * evaluation<span>_</span>job.evaluation_job_id (the last part of
@@ -1086,32 +1006,29 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @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_ ; /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -1119,38 +1036,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1158,8 +1069,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -1170,13 +1079,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -1185,8 +1094,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -1197,14 +1104,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -1212,8 +1120,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -1224,22 +1130,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -1250,18 +1154,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -1272,23 +1173,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @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); } @@ -1298,32 +1199,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) - private static final com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest(); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchEvaluationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchEvaluationsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchEvaluationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchEvaluationsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1335,8 +1234,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequestOrBuilder.java similarity index 84% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequestOrBuilder.java index 90d051eb..ff339caf 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequestOrBuilder.java @@ -1,62 +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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface SearchEvaluationsRequestOrBuilder - extends +public interface SearchEvaluationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Evaluation search parent (project ID). Format:
    * "projects/<var>{project_id}</var>"
    * 
* - * - * 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. Evaluation search parent (project ID). Format:
    * "projects/<var>{project_id}</var>"
    * 
* - * - * 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(); /** - * - * *
    * Optional. To search evaluations, you can filter by the following:
    * * evaluation<span>_</span>job.evaluation_job_id (the last part of
@@ -89,13 +62,10 @@ public interface SearchEvaluationsRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The filter. */ java.lang.String getFilter(); /** - * - * *
    * Optional. To search evaluations, you can filter by the following:
    * * evaluation<span>_</span>job.evaluation_job_id (the last part of
@@ -128,28 +98,23 @@ public interface SearchEvaluationsRequestOrBuilder
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for filter. */ - com.google.protobuf.ByteString getFilterBytes(); + com.google.protobuf.ByteString + getFilterBytes(); /** - * - * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -160,13 +125,10 @@ public interface SearchEvaluationsRequestOrBuilder
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -177,8 +139,8 @@ public interface SearchEvaluationsRequestOrBuilder
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponse.java similarity index 73% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponse.java index e6ca4b49..d8cfb504 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponse.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Results of searching evaluations.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse} */ -public final class SearchEvaluationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SearchEvaluationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse) SearchEvaluationsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SearchEvaluationsResponse.newBuilder() to construct. private SearchEvaluationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SearchEvaluationsResponse() { evaluations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private SearchEvaluationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SearchEvaluationsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SearchEvaluationsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,33 +55,28 @@ private SearchEvaluationsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - evaluations_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - evaluations_.add( - input.readMessage( - com.google.cloud.datalabeling.v1beta1.Evaluation.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + evaluations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + evaluations_.add( + input.readMessage(com.google.cloud.datalabeling.v1beta1.Evaluation.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) { @@ -106,7 +84,8 @@ private SearchEvaluationsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { evaluations_ = java.util.Collections.unmodifiableList(evaluations_); @@ -115,27 +94,22 @@ private SearchEvaluationsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.class, - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.class, com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.Builder.class); } public static final int EVALUATIONS_FIELD_NUMBER = 1; private java.util.List evaluations_; /** - * - * *
    * The list of evaluations matching the search.
    * 
@@ -147,8 +121,6 @@ public java.util.List getEvalu return evaluations_; } /** - * - * *
    * The list of evaluations matching the search.
    * 
@@ -156,13 +128,11 @@ public java.util.List getEvalu * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getEvaluationsOrBuilderList() { return evaluations_; } /** - * - * *
    * The list of evaluations matching the search.
    * 
@@ -174,8 +144,6 @@ public int getEvaluationsCount() { return evaluations_.size(); } /** - * - * *
    * The list of evaluations matching the search.
    * 
@@ -187,8 +155,6 @@ public com.google.cloud.datalabeling.v1beta1.Evaluation getEvaluations(int index return evaluations_.get(index); } /** - * - * *
    * The list of evaluations matching the search.
    * 
@@ -204,14 +170,11 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder getEvaluationsO public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token to retrieve next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -220,29 +183,29 @@ 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.
    * 
* * 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 { @@ -251,7 +214,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -263,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 < evaluations_.size(); i++) { output.writeMessage(1, evaluations_.get(i)); } @@ -280,7 +243,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < evaluations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, evaluations_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, evaluations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -293,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.datalabeling.v1beta1.SearchEvaluationsResponse)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse other = - (com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse) obj; + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse other = (com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse) obj; - if (!getEvaluationsList().equals(other.getEvaluationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getEvaluationsList() + .equals(other.getEvaluationsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -326,127 +291,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse 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.datalabeling.v1beta1.SearchEvaluationsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Results of searching evaluations.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse) com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.class, - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.class, com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.newBuilder() @@ -454,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) { getEvaluationsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -480,14 +435,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.getDefaultInstance(); } @@ -502,8 +456,7 @@ public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse buildPartial() { - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse result = - new com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse(this); + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse result = new com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse(this); int from_bitField0_ = bitField0_; if (evaluationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -523,50 +476,46 @@ public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse 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.datalabeling.v1beta1.SearchEvaluationsResponse) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse other) { - if (other - == com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse other) { + if (other == com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.getDefaultInstance()) return this; if (evaluationsBuilder_ == null) { if (!other.evaluations_.isEmpty()) { if (evaluations_.isEmpty()) { @@ -585,10 +534,9 @@ public Builder mergeFrom( evaluationsBuilder_ = null; evaluations_ = other.evaluations_; bitField0_ = (bitField0_ & ~0x00000001); - evaluationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEvaluationsFieldBuilder() - : null; + evaluationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEvaluationsFieldBuilder() : null; } else { evaluationsBuilder_.addAllMessages(other.evaluations_); } @@ -617,9 +565,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -628,29 +574,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List evaluations_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureEvaluationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - evaluations_ = - new java.util.ArrayList(evaluations_); + evaluations_ = new java.util.ArrayList(evaluations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Evaluation, - com.google.cloud.datalabeling.v1beta1.Evaluation.Builder, - com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder> - evaluationsBuilder_; + com.google.cloud.datalabeling.v1beta1.Evaluation, com.google.cloud.datalabeling.v1beta1.Evaluation.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder> evaluationsBuilder_; /** - * - * *
      * The list of evaluations matching the search.
      * 
@@ -665,8 +603,6 @@ public java.util.List getEvalu } } /** - * - * *
      * The list of evaluations matching the search.
      * 
@@ -681,8 +617,6 @@ public int getEvaluationsCount() { } } /** - * - * *
      * The list of evaluations matching the search.
      * 
@@ -697,8 +631,6 @@ public com.google.cloud.datalabeling.v1beta1.Evaluation getEvaluations(int index } } /** - * - * *
      * The list of evaluations matching the search.
      * 
@@ -720,8 +652,6 @@ public Builder setEvaluations( return this; } /** - * - * *
      * The list of evaluations matching the search.
      * 
@@ -740,8 +670,6 @@ public Builder setEvaluations( return this; } /** - * - * *
      * The list of evaluations matching the search.
      * 
@@ -762,8 +690,6 @@ public Builder addEvaluations(com.google.cloud.datalabeling.v1beta1.Evaluation v return this; } /** - * - * *
      * The list of evaluations matching the search.
      * 
@@ -785,8 +711,6 @@ public Builder addEvaluations( return this; } /** - * - * *
      * The list of evaluations matching the search.
      * 
@@ -805,8 +729,6 @@ public Builder addEvaluations( return this; } /** - * - * *
      * The list of evaluations matching the search.
      * 
@@ -825,8 +747,6 @@ public Builder addEvaluations( return this; } /** - * - * *
      * The list of evaluations matching the search.
      * 
@@ -837,7 +757,8 @@ public Builder addAllEvaluations( java.lang.Iterable values) { if (evaluationsBuilder_ == null) { ensureEvaluationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, evaluations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, evaluations_); onChanged(); } else { evaluationsBuilder_.addAllMessages(values); @@ -845,8 +766,6 @@ public Builder addAllEvaluations( return this; } /** - * - * *
      * The list of evaluations matching the search.
      * 
@@ -864,8 +783,6 @@ public Builder clearEvaluations() { return this; } /** - * - * *
      * The list of evaluations matching the search.
      * 
@@ -883,8 +800,6 @@ public Builder removeEvaluations(int index) { return this; } /** - * - * *
      * The list of evaluations matching the search.
      * 
@@ -896,8 +811,6 @@ public com.google.cloud.datalabeling.v1beta1.Evaluation.Builder getEvaluationsBu return getEvaluationsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of evaluations matching the search.
      * 
@@ -907,22 +820,19 @@ public com.google.cloud.datalabeling.v1beta1.Evaluation.Builder getEvaluationsBu public com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder getEvaluationsOrBuilder( int index) { if (evaluationsBuilder_ == null) { - return evaluations_.get(index); - } else { + return evaluations_.get(index); } else { return evaluationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of evaluations matching the search.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; */ - public java.util.List - getEvaluationsOrBuilderList() { + public java.util.List + getEvaluationsOrBuilderList() { if (evaluationsBuilder_ != null) { return evaluationsBuilder_.getMessageOrBuilderList(); } else { @@ -930,8 +840,6 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder getEvaluationsO } } /** - * - * *
      * The list of evaluations matching the search.
      * 
@@ -939,12 +847,10 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder getEvaluationsO * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; */ public com.google.cloud.datalabeling.v1beta1.Evaluation.Builder addEvaluationsBuilder() { - return getEvaluationsFieldBuilder() - .addBuilder(com.google.cloud.datalabeling.v1beta1.Evaluation.getDefaultInstance()); + return getEvaluationsFieldBuilder().addBuilder( + com.google.cloud.datalabeling.v1beta1.Evaluation.getDefaultInstance()); } /** - * - * *
      * The list of evaluations matching the search.
      * 
@@ -953,35 +859,30 @@ public com.google.cloud.datalabeling.v1beta1.Evaluation.Builder addEvaluationsBu */ public com.google.cloud.datalabeling.v1beta1.Evaluation.Builder addEvaluationsBuilder( int index) { - return getEvaluationsFieldBuilder() - .addBuilder(index, com.google.cloud.datalabeling.v1beta1.Evaluation.getDefaultInstance()); + return getEvaluationsFieldBuilder().addBuilder( + index, com.google.cloud.datalabeling.v1beta1.Evaluation.getDefaultInstance()); } /** - * - * *
      * The list of evaluations matching the search.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; */ - public java.util.List - getEvaluationsBuilderList() { + public java.util.List + getEvaluationsBuilderList() { return getEvaluationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Evaluation, - com.google.cloud.datalabeling.v1beta1.Evaluation.Builder, - com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder> + com.google.cloud.datalabeling.v1beta1.Evaluation, com.google.cloud.datalabeling.v1beta1.Evaluation.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder> getEvaluationsFieldBuilder() { if (evaluationsBuilder_ == null) { - evaluationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Evaluation, - com.google.cloud.datalabeling.v1beta1.Evaluation.Builder, - com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder>( - evaluations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + evaluationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.Evaluation, com.google.cloud.datalabeling.v1beta1.Evaluation.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder>( + evaluations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); evaluations_ = null; } return evaluationsBuilder_; @@ -989,20 +890,18 @@ public com.google.cloud.datalabeling.v1beta1.Evaluation.Builder addEvaluationsBu private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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; @@ -1011,21 +910,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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,68 +931,61 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -1104,32 +995,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse) - private static final com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse(); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchEvaluationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchEvaluationsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchEvaluationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchEvaluationsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1141,8 +1030,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponseOrBuilder.java similarity index 69% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponseOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponseOrBuilder.java index 538b77f8..3bfb41e3 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponseOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponseOrBuilder.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface SearchEvaluationsResponseOrBuilder - extends +public interface SearchEvaluationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The list of evaluations matching the search.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; */ - java.util.List getEvaluationsList(); + java.util.List + getEvaluationsList(); /** - * - * *
    * The list of evaluations matching the search.
    * 
@@ -44,8 +25,6 @@ public interface SearchEvaluationsResponseOrBuilder */ com.google.cloud.datalabeling.v1beta1.Evaluation getEvaluations(int index); /** - * - * *
    * The list of evaluations matching the search.
    * 
@@ -54,49 +33,41 @@ public interface SearchEvaluationsResponseOrBuilder */ int getEvaluationsCount(); /** - * - * *
    * The list of evaluations matching the search.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; */ - java.util.List + java.util.List getEvaluationsOrBuilderList(); /** - * - * *
    * The list of evaluations matching the search.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; */ - com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder getEvaluationsOrBuilder(int index); + com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder getEvaluationsOrBuilder( + int index); /** - * - * *
    * A token to retrieve next page of results.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token to retrieve next page of results.
    * 
* * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequest.java similarity index 69% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequest.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequest.java index b950921e..0933ff2b 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequest.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Request message of SearchExampleComparisons.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest} */ -public final class SearchExampleComparisonsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SearchExampleComparisonsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) SearchExampleComparisonsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SearchExampleComparisonsRequest.newBuilder() to construct. - private SearchExampleComparisonsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SearchExampleComparisonsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SearchExampleComparisonsRequest() { parent_ = ""; pageToken_ = ""; @@ -45,15 +26,16 @@ private SearchExampleComparisonsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SearchExampleComparisonsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SearchExampleComparisonsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +54,30 @@ private SearchExampleComparisonsRequest( 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 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + 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) { @@ -105,43 +85,36 @@ private SearchExampleComparisonsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.class, - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.class, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Name of the [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] resource to search for example
    * comparisons from. Format:
    * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>"
    * 
* - * - * 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 @@ -150,33 +123,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. Name of the [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] resource to search for example
    * comparisons from. Format:
    * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>"
    * 
* - * - * 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 { @@ -187,15 +158,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -206,8 +174,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -218,7 +184,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -227,15 +192,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; } } /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -246,15 +210,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -263,7 +228,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -275,7 +239,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_); } @@ -298,7 +263,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -311,17 +277,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.datalabeling.v1beta1.SearchExampleComparisonsRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest other = - (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) obj; + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest other = (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -345,145 +313,134 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest 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.datalabeling.v1beta1.SearchExampleComparisonsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest - 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.datalabeling.v1beta1.SearchExampleComparisonsRequest 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.datalabeling.v1beta1.SearchExampleComparisonsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 of SearchExampleComparisons.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.class, - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.class, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.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(); @@ -497,16 +454,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.getDefaultInstance(); } @java.lang.Override @@ -520,8 +475,7 @@ public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest bui @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest result = - new com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest(this); + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest result = new com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -533,51 +487,46 @@ public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest 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.datalabeling.v1beta1.SearchExampleComparisonsRequest) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest other) { - if (other - == com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest other) { + if (other == com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -608,9 +557,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -622,24 +569,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Name of the [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] resource to search for example
      * comparisons from. Format:
      * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>"
      * 
* - * - * 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; @@ -648,25 +591,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Name of the [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] resource to search for example
      * comparisons from. Format:
      * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>"
      * 
* - * - * 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 { @@ -674,89 +614,73 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Name of the [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] resource to search for example
      * comparisons from. Format:
      * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>"
      * 
* - * - * 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. Name of the [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] resource to search for example
      * comparisons from. Format:
      * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>"
      * 
* - * - * 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. Name of the [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] resource to search for example
      * comparisons from. Format:
      * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>"
      * 
* - * - * 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; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -764,38 +688,32 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -803,8 +721,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -815,13 +731,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; @@ -830,8 +746,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -842,14 +756,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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 { @@ -857,8 +772,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -869,22 +782,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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; } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -895,18 +806,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -917,23 +825,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @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); } @@ -943,32 +851,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) - private static final com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest(); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchExampleComparisonsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchExampleComparisonsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchExampleComparisonsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchExampleComparisonsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -980,8 +886,9 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequestOrBuilder.java similarity index 68% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequestOrBuilder.java index 1bf472e0..67df7fcd 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequestOrBuilder.java @@ -1,78 +1,48 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface SearchExampleComparisonsRequestOrBuilder - extends +public interface SearchExampleComparisonsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Name of the [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] resource to search for example
    * comparisons from. Format:
    * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>"
    * 
* - * - * 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. Name of the [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] resource to search for example
    * comparisons from. Format:
    * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>"
    * 
* - * - * 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(); /** - * - * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -83,13 +53,10 @@ public interface SearchExampleComparisonsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -100,8 +67,8 @@ public interface SearchExampleComparisonsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponse.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponse.java similarity index 64% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponse.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponse.java index 58320f94..26341c8b 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponse.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponse.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Results of searching example comparisons.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse} */ -public final class SearchExampleComparisonsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SearchExampleComparisonsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) SearchExampleComparisonsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SearchExampleComparisonsResponse.newBuilder() to construct. - private SearchExampleComparisonsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SearchExampleComparisonsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SearchExampleComparisonsResponse() { exampleComparisons_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -45,15 +26,16 @@ private SearchExampleComparisonsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SearchExampleComparisonsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SearchExampleComparisonsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,36 +55,28 @@ private SearchExampleComparisonsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - exampleComparisons_ = - new java.util.ArrayList< - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison>(); - mutable_bitField0_ |= 0x00000001; - } - exampleComparisons_.add( - input.readMessage( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison.parser(), - extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + exampleComparisons_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + exampleComparisons_.add( + input.readMessage(com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.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) { @@ -110,7 +84,8 @@ private SearchExampleComparisonsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { exampleComparisons_ = java.util.Collections.unmodifiableList(exampleComparisons_); @@ -119,54 +94,42 @@ private SearchExampleComparisonsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.class, - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.class, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.Builder.class); } - public interface ExampleComparisonOrBuilder - extends + public interface ExampleComparisonOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The ground truth output for the input.
      * 
* * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; - * * @return Whether the groundTruthExample field is set. */ boolean hasGroundTruthExample(); /** - * - * *
      * The ground truth output for the input.
      * 
* * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; - * * @return The groundTruthExample. */ com.google.cloud.datalabeling.v1beta1.Example getGroundTruthExample(); /** - * - * *
      * The ground truth output for the input.
      * 
@@ -176,18 +139,15 @@ public interface ExampleComparisonOrBuilder com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getGroundTruthExampleOrBuilder(); /** - * - * *
      * Predictions by the model for the input.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ - java.util.List getModelCreatedExamplesList(); + java.util.List + getModelCreatedExamplesList(); /** - * - * *
      * Predictions by the model for the input.
      * 
@@ -196,8 +156,6 @@ public interface ExampleComparisonOrBuilder */ com.google.cloud.datalabeling.v1beta1.Example getModelCreatedExamples(int index); /** - * - * *
      * Predictions by the model for the input.
      * 
@@ -206,19 +164,15 @@ public interface ExampleComparisonOrBuilder */ int getModelCreatedExamplesCount(); /** - * - * *
      * Predictions by the model for the input.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ - java.util.List + java.util.List getModelCreatedExamplesOrBuilderList(); /** - * - * *
      * Predictions by the model for the input.
      * 
@@ -229,41 +183,38 @@ com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getModelCreatedExamplesOr int index); } /** - * - * *
    * Example comparisons comparing ground truth output and predictions for a
    * specific input.
    * 
* - * Protobuf type {@code - * google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison} + * Protobuf type {@code google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison} */ - public static final class ExampleComparison extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class ExampleComparison extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison) ExampleComparisonOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExampleComparison.newBuilder() to construct. private ExampleComparison(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExampleComparison() { modelCreatedExamples_ = 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 ExampleComparison(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ExampleComparison( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -283,41 +234,35 @@ private ExampleComparison( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.Example.Builder subBuilder = null; - if (groundTruthExample_ != null) { - subBuilder = groundTruthExample_.toBuilder(); - } - groundTruthExample_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.Example.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(groundTruthExample_); - groundTruthExample_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.Example.Builder subBuilder = null; + if (groundTruthExample_ != null) { + subBuilder = groundTruthExample_.toBuilder(); } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - modelCreatedExamples_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - modelCreatedExamples_.add( - input.readMessage( - com.google.cloud.datalabeling.v1beta1.Example.parser(), extensionRegistry)); - break; + groundTruthExample_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.Example.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(groundTruthExample_); + groundTruthExample_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + modelCreatedExamples_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + modelCreatedExamples_.add( + input.readMessage(com.google.cloud.datalabeling.v1beta1.Example.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -325,7 +270,8 @@ private ExampleComparison( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { modelCreatedExamples_ = java.util.Collections.unmodifiableList(modelCreatedExamples_); @@ -334,35 +280,27 @@ private ExampleComparison( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison.class, - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison.Builder.class); + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.class, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.Builder.class); } public static final int GROUND_TRUTH_EXAMPLE_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.Example groundTruthExample_; /** - * - * *
      * The ground truth output for the input.
      * 
* * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; - * * @return Whether the groundTruthExample field is set. */ @java.lang.Override @@ -370,25 +308,18 @@ public boolean hasGroundTruthExample() { return groundTruthExample_ != null; } /** - * - * *
      * The ground truth output for the input.
      * 
* * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; - * * @return The groundTruthExample. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.Example getGroundTruthExample() { - return groundTruthExample_ == null - ? com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance() - : groundTruthExample_; + return groundTruthExample_ == null ? com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance() : groundTruthExample_; } /** - * - * *
      * The ground truth output for the input.
      * 
@@ -403,8 +334,6 @@ public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getGroundTruthExam public static final int MODEL_CREATED_EXAMPLES_FIELD_NUMBER = 2; private java.util.List modelCreatedExamples_; /** - * - * *
      * Predictions by the model for the input.
      * 
@@ -412,13 +341,10 @@ public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getGroundTruthExam * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ @java.lang.Override - public java.util.List - getModelCreatedExamplesList() { + public java.util.List getModelCreatedExamplesList() { return modelCreatedExamples_; } /** - * - * *
      * Predictions by the model for the input.
      * 
@@ -426,13 +352,11 @@ public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getGroundTruthExam * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ @java.lang.Override - public java.util.List + public java.util.List getModelCreatedExamplesOrBuilderList() { return modelCreatedExamples_; } /** - * - * *
      * Predictions by the model for the input.
      * 
@@ -444,8 +368,6 @@ public int getModelCreatedExamplesCount() { return modelCreatedExamples_.size(); } /** - * - * *
      * Predictions by the model for the input.
      * 
@@ -457,8 +379,6 @@ public com.google.cloud.datalabeling.v1beta1.Example getModelCreatedExamples(int return modelCreatedExamples_.get(index); } /** - * - * *
      * Predictions by the model for the input.
      * 
@@ -472,7 +392,6 @@ public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getModelCreatedExa } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -484,7 +403,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 (groundTruthExample_ != null) { output.writeMessage(1, getGroundTruthExample()); } @@ -501,13 +421,12 @@ public int getSerializedSize() { size = 0; if (groundTruthExample_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGroundTruthExample()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getGroundTruthExample()); } for (int i = 0; i < modelCreatedExamples_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, modelCreatedExamples_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, modelCreatedExamples_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -517,25 +436,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.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison)) { + if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison - other = - (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison) - obj; + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison other = (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison) obj; if (hasGroundTruthExample() != other.hasGroundTruthExample()) return false; if (hasGroundTruthExample()) { - if (!getGroundTruthExample().equals(other.getGroundTruthExample())) return false; + if (!getGroundTruthExample() + .equals(other.getGroundTruthExample())) return false; } - if (!getModelCreatedExamplesList().equals(other.getModelCreatedExamplesList())) return false; + if (!getModelCreatedExamplesList() + .equals(other.getModelCreatedExamplesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -560,114 +474,88 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison 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.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison - 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.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison 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.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison - 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.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison 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.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison - 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.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison 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.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison - prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -677,56 +565,46 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Example comparisons comparing ground truth output and predictions for a
      * specific input.
      * 
* - * Protobuf type {@code - * google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison} + * Protobuf type {@code google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison) - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparisonOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor; + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparisonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison.class, - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison.Builder.class); + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.class, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.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) { getModelCreatedExamplesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -746,25 +624,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison - build() { - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison - result = buildPartial(); + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison build() { + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -772,13 +644,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison - buildPartial() { - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison - result = - new com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison(this); + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison buildPartial() { + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison result = new com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison(this); int from_bitField0_ = bitField0_; if (groundTruthExampleBuilder_ == null) { result.groundTruthExample_ = groundTruthExample_; @@ -802,59 +669,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.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison) - other); + if (other instanceof com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison) { + return mergeFrom((com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison - other) { - if (other - == com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison other) { + if (other == com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.getDefaultInstance()) return this; if (other.hasGroundTruthExample()) { mergeGroundTruthExample(other.getGroundTruthExample()); } @@ -876,10 +730,9 @@ public Builder mergeFrom( modelCreatedExamplesBuilder_ = null; modelCreatedExamples_ = other.modelCreatedExamples_; bitField0_ = (bitField0_ & ~0x00000001); - modelCreatedExamplesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getModelCreatedExamplesFieldBuilder() - : null; + modelCreatedExamplesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getModelCreatedExamplesFieldBuilder() : null; } else { modelCreatedExamplesBuilder_.addAllMessages(other.modelCreatedExamples_); } @@ -900,15 +753,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison - parsedMessage = null; + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -917,52 +766,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.datalabeling.v1beta1.Example groundTruthExample_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Example, - com.google.cloud.datalabeling.v1beta1.Example.Builder, - com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> - groundTruthExampleBuilder_; + com.google.cloud.datalabeling.v1beta1.Example, com.google.cloud.datalabeling.v1beta1.Example.Builder, com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> groundTruthExampleBuilder_; /** - * - * *
        * The ground truth output for the input.
        * 
* * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; - * * @return Whether the groundTruthExample field is set. */ public boolean hasGroundTruthExample() { return groundTruthExampleBuilder_ != null || groundTruthExample_ != null; } /** - * - * *
        * The ground truth output for the input.
        * 
* * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; - * * @return The groundTruthExample. */ public com.google.cloud.datalabeling.v1beta1.Example getGroundTruthExample() { if (groundTruthExampleBuilder_ == null) { - return groundTruthExample_ == null - ? com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance() - : groundTruthExample_; + return groundTruthExample_ == null ? com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance() : groundTruthExample_; } else { return groundTruthExampleBuilder_.getMessage(); } } /** - * - * *
        * The ground truth output for the input.
        * 
@@ -983,8 +818,6 @@ public Builder setGroundTruthExample(com.google.cloud.datalabeling.v1beta1.Examp return this; } /** - * - * *
        * The ground truth output for the input.
        * 
@@ -1003,8 +836,6 @@ public Builder setGroundTruthExample( return this; } /** - * - * *
        * The ground truth output for the input.
        * 
@@ -1015,9 +846,7 @@ public Builder mergeGroundTruthExample(com.google.cloud.datalabeling.v1beta1.Exa if (groundTruthExampleBuilder_ == null) { if (groundTruthExample_ != null) { groundTruthExample_ = - com.google.cloud.datalabeling.v1beta1.Example.newBuilder(groundTruthExample_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.Example.newBuilder(groundTruthExample_).mergeFrom(value).buildPartial(); } else { groundTruthExample_ = value; } @@ -1029,8 +858,6 @@ public Builder mergeGroundTruthExample(com.google.cloud.datalabeling.v1beta1.Exa return this; } /** - * - * *
        * The ground truth output for the input.
        * 
@@ -1049,8 +876,6 @@ public Builder clearGroundTruthExample() { return this; } /** - * - * *
        * The ground truth output for the input.
        * 
@@ -1058,32 +883,26 @@ public Builder clearGroundTruthExample() { * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; */ public com.google.cloud.datalabeling.v1beta1.Example.Builder getGroundTruthExampleBuilder() { - + onChanged(); return getGroundTruthExampleFieldBuilder().getBuilder(); } /** - * - * *
        * The ground truth output for the input.
        * 
* * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; */ - public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder - getGroundTruthExampleOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getGroundTruthExampleOrBuilder() { if (groundTruthExampleBuilder_ != null) { return groundTruthExampleBuilder_.getMessageOrBuilder(); } else { - return groundTruthExample_ == null - ? com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance() - : groundTruthExample_; + return groundTruthExample_ == null ? + com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance() : groundTruthExample_; } } /** - * - * *
        * The ground truth output for the input.
        * 
@@ -1091,52 +910,39 @@ public com.google.cloud.datalabeling.v1beta1.Example.Builder getGroundTruthExamp * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Example, - com.google.cloud.datalabeling.v1beta1.Example.Builder, - com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> + com.google.cloud.datalabeling.v1beta1.Example, com.google.cloud.datalabeling.v1beta1.Example.Builder, com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> getGroundTruthExampleFieldBuilder() { if (groundTruthExampleBuilder_ == null) { - groundTruthExampleBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Example, - com.google.cloud.datalabeling.v1beta1.Example.Builder, - com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder>( - getGroundTruthExample(), getParentForChildren(), isClean()); + groundTruthExampleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.Example, com.google.cloud.datalabeling.v1beta1.Example.Builder, com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder>( + getGroundTruthExample(), + getParentForChildren(), + isClean()); groundTruthExample_ = null; } return groundTruthExampleBuilder_; } private java.util.List modelCreatedExamples_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureModelCreatedExamplesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - modelCreatedExamples_ = - new java.util.ArrayList( - modelCreatedExamples_); + modelCreatedExamples_ = new java.util.ArrayList(modelCreatedExamples_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Example, - com.google.cloud.datalabeling.v1beta1.Example.Builder, - com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> - modelCreatedExamplesBuilder_; + com.google.cloud.datalabeling.v1beta1.Example, com.google.cloud.datalabeling.v1beta1.Example.Builder, com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> modelCreatedExamplesBuilder_; /** - * - * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ - public java.util.List - getModelCreatedExamplesList() { + public java.util.List getModelCreatedExamplesList() { if (modelCreatedExamplesBuilder_ == null) { return java.util.Collections.unmodifiableList(modelCreatedExamples_); } else { @@ -1144,14 +950,11 @@ private void ensureModelCreatedExamplesIsMutable() { } } /** - * - * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ public int getModelCreatedExamplesCount() { if (modelCreatedExamplesBuilder_ == null) { @@ -1161,14 +964,11 @@ public int getModelCreatedExamplesCount() { } } /** - * - * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ public com.google.cloud.datalabeling.v1beta1.Example getModelCreatedExamples(int index) { if (modelCreatedExamplesBuilder_ == null) { @@ -1178,14 +978,11 @@ public com.google.cloud.datalabeling.v1beta1.Example getModelCreatedExamples(int } } /** - * - * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ public Builder setModelCreatedExamples( int index, com.google.cloud.datalabeling.v1beta1.Example value) { @@ -1202,14 +999,11 @@ public Builder setModelCreatedExamples( return this; } /** - * - * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ public Builder setModelCreatedExamples( int index, com.google.cloud.datalabeling.v1beta1.Example.Builder builderForValue) { @@ -1223,14 +1017,11 @@ public Builder setModelCreatedExamples( return this; } /** - * - * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ public Builder addModelCreatedExamples(com.google.cloud.datalabeling.v1beta1.Example value) { if (modelCreatedExamplesBuilder_ == null) { @@ -1246,14 +1037,11 @@ public Builder addModelCreatedExamples(com.google.cloud.datalabeling.v1beta1.Exa return this; } /** - * - * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ public Builder addModelCreatedExamples( int index, com.google.cloud.datalabeling.v1beta1.Example value) { @@ -1270,14 +1058,11 @@ public Builder addModelCreatedExamples( return this; } /** - * - * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ public Builder addModelCreatedExamples( com.google.cloud.datalabeling.v1beta1.Example.Builder builderForValue) { @@ -1291,14 +1076,11 @@ public Builder addModelCreatedExamples( return this; } /** - * - * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ public Builder addModelCreatedExamples( int index, com.google.cloud.datalabeling.v1beta1.Example.Builder builderForValue) { @@ -1312,20 +1094,18 @@ public Builder addModelCreatedExamples( return this; } /** - * - * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ public Builder addAllModelCreatedExamples( java.lang.Iterable values) { if (modelCreatedExamplesBuilder_ == null) { ensureModelCreatedExamplesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, modelCreatedExamples_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, modelCreatedExamples_); onChanged(); } else { modelCreatedExamplesBuilder_.addAllMessages(values); @@ -1333,14 +1113,11 @@ public Builder addAllModelCreatedExamples( return this; } /** - * - * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ public Builder clearModelCreatedExamples() { if (modelCreatedExamplesBuilder_ == null) { @@ -1353,14 +1130,11 @@ public Builder clearModelCreatedExamples() { return this; } /** - * - * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ public Builder removeModelCreatedExamples(int index) { if (modelCreatedExamplesBuilder_ == null) { @@ -1373,49 +1147,39 @@ public Builder removeModelCreatedExamples(int index) { return this; } /** - * - * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ public com.google.cloud.datalabeling.v1beta1.Example.Builder getModelCreatedExamplesBuilder( int index) { return getModelCreatedExamplesFieldBuilder().getBuilder(index); } /** - * - * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ - public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder - getModelCreatedExamplesOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getModelCreatedExamplesOrBuilder( + int index) { if (modelCreatedExamplesBuilder_ == null) { - return modelCreatedExamples_.get(index); - } else { + return modelCreatedExamples_.get(index); } else { return modelCreatedExamplesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ - public java.util.List - getModelCreatedExamplesOrBuilderList() { + public java.util.List + getModelCreatedExamplesOrBuilderList() { if (modelCreatedExamplesBuilder_ != null) { return modelCreatedExamplesBuilder_.getMessageOrBuilderList(); } else { @@ -1423,61 +1187,45 @@ public com.google.cloud.datalabeling.v1beta1.Example.Builder getModelCreatedExam } } /** - * - * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ - public com.google.cloud.datalabeling.v1beta1.Example.Builder - addModelCreatedExamplesBuilder() { - return getModelCreatedExamplesFieldBuilder() - .addBuilder(com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.Example.Builder addModelCreatedExamplesBuilder() { + return getModelCreatedExamplesFieldBuilder().addBuilder( + com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance()); } /** - * - * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ public com.google.cloud.datalabeling.v1beta1.Example.Builder addModelCreatedExamplesBuilder( int index) { - return getModelCreatedExamplesFieldBuilder() - .addBuilder(index, com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance()); + return getModelCreatedExamplesFieldBuilder().addBuilder( + index, com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance()); } /** - * - * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; - * + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ - public java.util.List - getModelCreatedExamplesBuilderList() { + public java.util.List + getModelCreatedExamplesBuilderList() { return getModelCreatedExamplesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Example, - com.google.cloud.datalabeling.v1beta1.Example.Builder, - com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> + com.google.cloud.datalabeling.v1beta1.Example, com.google.cloud.datalabeling.v1beta1.Example.Builder, com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> getModelCreatedExamplesFieldBuilder() { if (modelCreatedExamplesBuilder_ == null) { - modelCreatedExamplesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Example, - com.google.cloud.datalabeling.v1beta1.Example.Builder, - com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder>( + modelCreatedExamplesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.Example, com.google.cloud.datalabeling.v1beta1.Example.Builder, com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder>( modelCreatedExamples_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1486,7 +1234,6 @@ public com.google.cloud.datalabeling.v1beta1.Example.Builder addModelCreatedExam } return modelCreatedExamplesBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1499,36 +1246,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison) - private static final com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison(); + DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison(); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExampleComparison parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExampleComparison(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExampleComparison parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExampleComparison(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1540,112 +1281,80 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int EXAMPLE_COMPARISONS_FIELD_NUMBER = 1; - private java.util.List< - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison> - exampleComparisons_; + private java.util.List exampleComparisons_; /** - * - * *
    * A list of example comparisons matching the search criteria.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; */ @java.lang.Override - public java.util.List< - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison> - getExampleComparisonsList() { + public java.util.List getExampleComparisonsList() { return exampleComparisons_; } /** - * - * *
    * A list of example comparisons matching the search criteria.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparisonOrBuilder> + public java.util.List getExampleComparisonsOrBuilderList() { return exampleComparisons_; } /** - * - * *
    * A list of example comparisons matching the search criteria.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; */ @java.lang.Override public int getExampleComparisonsCount() { return exampleComparisons_.size(); } /** - * - * *
    * A list of example comparisons matching the search criteria.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison - getExampleComparisons(int index) { + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison getExampleComparisons(int index) { return exampleComparisons_.get(index); } /** - * - * *
    * A list of example comparisons matching the search criteria.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparisonOrBuilder - getExampleComparisonsOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparisonOrBuilder getExampleComparisonsOrBuilder( + int index) { return exampleComparisons_.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.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -1654,29 +1363,29 @@ 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.
    * 
* * 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 { @@ -1685,7 +1394,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1697,7 +1405,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 < exampleComparisons_.size(); i++) { output.writeMessage(1, exampleComparisons_.get(i)); } @@ -1714,8 +1423,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < exampleComparisons_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, exampleComparisons_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, exampleComparisons_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -1728,16 +1437,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.datalabeling.v1beta1.SearchExampleComparisonsResponse)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse other = - (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) obj; + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse other = (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) obj; - if (!getExampleComparisonsList().equals(other.getExampleComparisonsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getExampleComparisonsList() + .equals(other.getExampleComparisonsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1761,147 +1471,135 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse 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.datalabeling.v1beta1.SearchExampleComparisonsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - 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.datalabeling.v1beta1.SearchExampleComparisonsResponse 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.datalabeling.v1beta1.SearchExampleComparisonsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Results of searching example comparisons.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.class, - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.class, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.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) { getExampleComparisonsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -1917,22 +1615,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse build() { - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse result = - buildPartial(); + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1941,8 +1636,7 @@ public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse bu @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse buildPartial() { - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse result = - new com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse(this); + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse result = new com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse(this); int from_bitField0_ = bitField0_; if (exampleComparisonsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1962,51 +1656,46 @@ public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse 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.datalabeling.v1beta1.SearchExampleComparisonsResponse) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse other) { - if (other - == com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse other) { + if (other == com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.getDefaultInstance()) return this; if (exampleComparisonsBuilder_ == null) { if (!other.exampleComparisons_.isEmpty()) { if (exampleComparisons_.isEmpty()) { @@ -2025,10 +1714,9 @@ public Builder mergeFrom( exampleComparisonsBuilder_ = null; exampleComparisons_ = other.exampleComparisons_; bitField0_ = (bitField0_ & ~0x00000001); - exampleComparisonsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getExampleComparisonsFieldBuilder() - : null; + exampleComparisonsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getExampleComparisonsFieldBuilder() : null; } else { exampleComparisonsBuilder_.addAllMessages(other.exampleComparisons_); } @@ -2057,9 +1745,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2068,48 +1754,28 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.util.List< - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison> - exampleComparisons_ = java.util.Collections.emptyList(); - + private java.util.List exampleComparisons_ = + java.util.Collections.emptyList(); private void ensureExampleComparisonsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - exampleComparisons_ = - new java.util.ArrayList< - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison>(exampleComparisons_); + exampleComparisons_ = new java.util.ArrayList(exampleComparisons_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison, - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison - .Builder, - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparisonOrBuilder> - exampleComparisonsBuilder_; + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.Builder, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparisonOrBuilder> exampleComparisonsBuilder_; /** - * - * *
      * A list of example comparisons matching the search criteria.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; */ - public java.util.List< - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison> - getExampleComparisonsList() { + public java.util.List getExampleComparisonsList() { if (exampleComparisonsBuilder_ == null) { return java.util.Collections.unmodifiableList(exampleComparisons_); } else { @@ -2117,15 +1783,11 @@ private void ensureExampleComparisonsIsMutable() { } } /** - * - * *
      * A list of example comparisons matching the search criteria.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; */ public int getExampleComparisonsCount() { if (exampleComparisonsBuilder_ == null) { @@ -2135,18 +1797,13 @@ public int getExampleComparisonsCount() { } } /** - * - * *
      * A list of example comparisons matching the search criteria.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; */ - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison - getExampleComparisons(int index) { + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison getExampleComparisons(int index) { if (exampleComparisonsBuilder_ == null) { return exampleComparisons_.get(index); } else { @@ -2154,20 +1811,14 @@ public int getExampleComparisonsCount() { } } /** - * - * *
      * A list of example comparisons matching the search criteria.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; */ public Builder setExampleComparisons( - int index, - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison - value) { + int index, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison value) { if (exampleComparisonsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2181,21 +1832,14 @@ public Builder setExampleComparisons( return this; } /** - * - * *
      * A list of example comparisons matching the search criteria.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; */ public Builder setExampleComparisons( - int index, - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison - .Builder - builderForValue) { + int index, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.Builder builderForValue) { if (exampleComparisonsBuilder_ == null) { ensureExampleComparisonsIsMutable(); exampleComparisons_.set(index, builderForValue.build()); @@ -2206,19 +1850,13 @@ public Builder setExampleComparisons( return this; } /** - * - * *
      * A list of example comparisons matching the search criteria.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; */ - public Builder addExampleComparisons( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison - value) { + public Builder addExampleComparisons(com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison value) { if (exampleComparisonsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2232,20 +1870,14 @@ public Builder addExampleComparisons( return this; } /** - * - * *
      * A list of example comparisons matching the search criteria.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; */ public Builder addExampleComparisons( - int index, - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison - value) { + int index, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison value) { if (exampleComparisonsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2259,20 +1891,14 @@ public Builder addExampleComparisons( return this; } /** - * - * *
      * A list of example comparisons matching the search criteria.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; */ public Builder addExampleComparisons( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison - .Builder - builderForValue) { + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.Builder builderForValue) { if (exampleComparisonsBuilder_ == null) { ensureExampleComparisonsIsMutable(); exampleComparisons_.add(builderForValue.build()); @@ -2283,21 +1909,14 @@ public Builder addExampleComparisons( return this; } /** - * - * *
      * A list of example comparisons matching the search criteria.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; */ public Builder addExampleComparisons( - int index, - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison - .Builder - builderForValue) { + int index, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.Builder builderForValue) { if (exampleComparisonsBuilder_ == null) { ensureExampleComparisonsIsMutable(); exampleComparisons_.add(index, builderForValue.build()); @@ -2308,25 +1927,18 @@ public Builder addExampleComparisons( return this; } /** - * - * *
      * A list of example comparisons matching the search criteria.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; */ public Builder addAllExampleComparisons( - java.lang.Iterable< - ? extends - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison> - values) { + java.lang.Iterable values) { if (exampleComparisonsBuilder_ == null) { ensureExampleComparisonsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exampleComparisons_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, exampleComparisons_); onChanged(); } else { exampleComparisonsBuilder_.addAllMessages(values); @@ -2334,15 +1946,11 @@ public Builder addAllExampleComparisons( return this; } /** - * - * *
      * A list of example comparisons matching the search criteria.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; */ public Builder clearExampleComparisons() { if (exampleComparisonsBuilder_ == null) { @@ -2355,15 +1963,11 @@ public Builder clearExampleComparisons() { return this; } /** - * - * *
      * A list of example comparisons matching the search criteria.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; */ public Builder removeExampleComparisons(int index) { if (exampleComparisonsBuilder_ == null) { @@ -2376,57 +1980,39 @@ public Builder removeExampleComparisons(int index) { return this; } /** - * - * *
      * A list of example comparisons matching the search criteria.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; */ - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison - .Builder - getExampleComparisonsBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.Builder getExampleComparisonsBuilder( + int index) { return getExampleComparisonsFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of example comparisons matching the search criteria.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; */ - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparisonOrBuilder - getExampleComparisonsOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparisonOrBuilder getExampleComparisonsOrBuilder( + int index) { if (exampleComparisonsBuilder_ == null) { - return exampleComparisons_.get(index); - } else { + return exampleComparisons_.get(index); } else { return exampleComparisonsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of example comparisons matching the search criteria.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; */ - public java.util.List< - ? extends - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparisonOrBuilder> - getExampleComparisonsOrBuilderList() { + public java.util.List + getExampleComparisonsOrBuilderList() { if (exampleComparisonsBuilder_ != null) { return exampleComparisonsBuilder_.getMessageOrBuilderList(); } else { @@ -2434,79 +2020,45 @@ public Builder removeExampleComparisons(int index) { } } /** - * - * *
      * A list of example comparisons matching the search criteria.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; */ - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison - .Builder - addExampleComparisonsBuilder() { - return getExampleComparisonsFieldBuilder() - .addBuilder( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.Builder addExampleComparisonsBuilder() { + return getExampleComparisonsFieldBuilder().addBuilder( + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.getDefaultInstance()); } /** - * - * *
      * A list of example comparisons matching the search criteria.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; */ - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison - .Builder - addExampleComparisonsBuilder(int index) { - return getExampleComparisonsFieldBuilder() - .addBuilder( - index, - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.Builder addExampleComparisonsBuilder( + int index) { + return getExampleComparisonsFieldBuilder().addBuilder( + index, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.getDefaultInstance()); } /** - * - * *
      * A list of example comparisons matching the search criteria.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; */ - public java.util.List< - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison - .Builder> - getExampleComparisonsBuilderList() { + public java.util.List + getExampleComparisonsBuilderList() { return getExampleComparisonsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison, - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison - .Builder, - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparisonOrBuilder> + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.Builder, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparisonOrBuilder> getExampleComparisonsFieldBuilder() { if (exampleComparisonsBuilder_ == null) { - exampleComparisonsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison, - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparison.Builder, - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparisonOrBuilder>( + exampleComparisonsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.Builder, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparisonOrBuilder>( exampleComparisons_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2518,20 +2070,18 @@ public Builder removeExampleComparisons(int index) { private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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; @@ -2540,21 +2090,20 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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 { @@ -2562,68 +2111,61 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token to retrieve next page of results.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -2633,32 +2175,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) - private static final com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse(); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchExampleComparisonsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchExampleComparisonsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchExampleComparisonsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchExampleComparisonsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2670,8 +2210,9 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponseOrBuilder.java new file mode 100644 index 00000000..60dea39b --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponseOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface SearchExampleComparisonsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * A list of example comparisons matching the search criteria.
+   * 
+ * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + */ + java.util.List + getExampleComparisonsList(); + /** + *
+   * A list of example comparisons matching the search criteria.
+   * 
+ * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + */ + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison getExampleComparisons(int index); + /** + *
+   * A list of example comparisons matching the search criteria.
+   * 
+ * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + */ + int getExampleComparisonsCount(); + /** + *
+   * A list of example comparisons matching the search criteria.
+   * 
+ * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + */ + java.util.List + getExampleComparisonsOrBuilderList(); + /** + *
+   * A list of example comparisons matching the search criteria.
+   * 
+ * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + */ + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparisonOrBuilder getExampleComparisonsOrBuilder( + int index); + + /** + *
+   * A token to retrieve next page of results.
+   * 
+ * + * string next_page_token = 2; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * A token to retrieve next page of results.
+   * 
+ * + * string next_page_token = 2; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); +} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfig.java similarity index 71% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfig.java index 28e41ac3..aac78ef1 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Config for image segmentation
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SegmentationConfig} */ -public final class SegmentationConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SegmentationConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.SegmentationConfig) SegmentationConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SegmentationConfig.newBuilder() to construct. private SegmentationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SegmentationConfig() { annotationSpecSet_ = ""; instructionMessage_ = ""; @@ -44,15 +26,16 @@ private SegmentationConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SegmentationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SegmentationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,27 +54,25 @@ private SegmentationConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - annotationSpecSet_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + annotationSpecSet_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - instructionMessage_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + instructionMessage_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,40 +80,35 @@ private SegmentationConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SegmentationConfig.class, - com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.SegmentationConfig.class, com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder.class); } public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER = 1; private volatile java.lang.Object annotationSpecSet_; /** - * - * *
    * Required. Annotation spec set resource name. format:
    * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ @java.lang.Override @@ -141,30 +117,30 @@ public java.lang.String getAnnotationSpecSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; } } /** - * - * *
    * Required. Annotation spec set resource name. format:
    * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ @java.lang.Override - public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -175,14 +151,11 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { public static final int INSTRUCTION_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object instructionMessage_; /** - * - * *
    * Instruction message showed on labelers UI.
    * 
* * string instruction_message = 2; - * * @return The instructionMessage. */ @java.lang.Override @@ -191,29 +164,29 @@ public java.lang.String getInstructionMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instructionMessage_ = s; return s; } } /** - * - * *
    * Instruction message showed on labelers UI.
    * 
* * string instruction_message = 2; - * * @return The bytes for instructionMessage. */ @java.lang.Override - public com.google.protobuf.ByteString getInstructionMessageBytes() { + public com.google.protobuf.ByteString + getInstructionMessageBytes() { java.lang.Object ref = instructionMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instructionMessage_ = b; return b; } else { @@ -222,7 +195,6 @@ public com.google.protobuf.ByteString getInstructionMessageBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,7 +206,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(annotationSpecSet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecSet_); } @@ -264,16 +237,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.datalabeling.v1beta1.SegmentationConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.SegmentationConfig other = - (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) obj; + com.google.cloud.datalabeling.v1beta1.SegmentationConfig other = (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) obj; - if (!getAnnotationSpecSet().equals(other.getAnnotationSpecSet())) return false; - if (!getInstructionMessage().equals(other.getInstructionMessage())) return false; + if (!getAnnotationSpecSet() + .equals(other.getAnnotationSpecSet())) return false; + if (!getInstructionMessage() + .equals(other.getInstructionMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -295,127 +269,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig 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.datalabeling.v1beta1.SegmentationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.SegmentationConfig prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.SegmentationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Config for image segmentation
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SegmentationConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.SegmentationConfig) com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SegmentationConfig.class, - com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.SegmentationConfig.class, com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.SegmentationConfig.newBuilder() @@ -423,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(); @@ -443,9 +408,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor; } @java.lang.Override @@ -464,8 +429,7 @@ public com.google.cloud.datalabeling.v1beta1.SegmentationConfig build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SegmentationConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.SegmentationConfig result = - new com.google.cloud.datalabeling.v1beta1.SegmentationConfig(this); + com.google.cloud.datalabeling.v1beta1.SegmentationConfig result = new com.google.cloud.datalabeling.v1beta1.SegmentationConfig(this); result.annotationSpecSet_ = annotationSpecSet_; result.instructionMessage_ = instructionMessage_; onBuilt(); @@ -476,39 +440,38 @@ public com.google.cloud.datalabeling.v1beta1.SegmentationConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.SegmentationConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.SegmentationConfig) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.SegmentationConfig)other); } else { super.mergeFrom(other); return this; @@ -516,8 +479,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.SegmentationConfig other) { - if (other == com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance()) return this; if (!other.getAnnotationSpecSet().isEmpty()) { annotationSpecSet_ = other.annotationSpecSet_; onChanged(); @@ -545,8 +507,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -558,21 +519,19 @@ public Builder mergeFrom( private java.lang.Object annotationSpecSet_ = ""; /** - * - * *
      * Required. Annotation spec set resource name. format:
      * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ public java.lang.String getAnnotationSpecSet() { java.lang.Object ref = annotationSpecSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; @@ -581,22 +540,21 @@ public java.lang.String getAnnotationSpecSet() { } } /** - * - * *
      * Required. Annotation spec set resource name. format:
      * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ - public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -604,64 +562,57 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { } } /** - * - * *
      * Required. Annotation spec set resource name. format:
      * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSet(java.lang.String value) { + public Builder setAnnotationSpecSet( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecSet_ = value; onChanged(); return this; } /** - * - * *
      * Required. Annotation spec set resource name. format:
      * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAnnotationSpecSet() { - + annotationSpecSet_ = getDefaultInstance().getAnnotationSpecSet(); onChanged(); return this; } /** - * - * *
      * Required. Annotation spec set resource name. format:
      * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecSetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecSet_ = value; onChanged(); return this; @@ -669,20 +620,18 @@ public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { private java.lang.Object instructionMessage_ = ""; /** - * - * *
      * Instruction message showed on labelers UI.
      * 
* * string instruction_message = 2; - * * @return The instructionMessage. */ public java.lang.String getInstructionMessage() { java.lang.Object ref = instructionMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instructionMessage_ = s; return s; @@ -691,21 +640,20 @@ public java.lang.String getInstructionMessage() { } } /** - * - * *
      * Instruction message showed on labelers UI.
      * 
* * string instruction_message = 2; - * * @return The bytes for instructionMessage. */ - public com.google.protobuf.ByteString getInstructionMessageBytes() { + public com.google.protobuf.ByteString + getInstructionMessageBytes() { java.lang.Object ref = instructionMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); instructionMessage_ = b; return b; } else { @@ -713,68 +661,61 @@ public com.google.protobuf.ByteString getInstructionMessageBytes() { } } /** - * - * *
      * Instruction message showed on labelers UI.
      * 
* * string instruction_message = 2; - * * @param value The instructionMessage to set. * @return This builder for chaining. */ - public Builder setInstructionMessage(java.lang.String value) { + public Builder setInstructionMessage( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instructionMessage_ = value; onChanged(); return this; } /** - * - * *
      * Instruction message showed on labelers UI.
      * 
* * string instruction_message = 2; - * * @return This builder for chaining. */ public Builder clearInstructionMessage() { - + instructionMessage_ = getDefaultInstance().getInstructionMessage(); onChanged(); return this; } /** - * - * *
      * Instruction message showed on labelers UI.
      * 
* * string instruction_message = 2; - * * @param value The bytes for instructionMessage to set. * @return This builder for chaining. */ - public Builder setInstructionMessageBytes(com.google.protobuf.ByteString value) { + public Builder setInstructionMessageBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instructionMessage_ = 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); } @@ -784,12 +725,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.SegmentationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SegmentationConfig) private static final com.google.cloud.datalabeling.v1beta1.SegmentationConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.SegmentationConfig(); } @@ -798,16 +739,16 @@ public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SegmentationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SegmentationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SegmentationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SegmentationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -822,4 +763,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.SegmentationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfigOrBuilder.java similarity index 62% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfigOrBuilder.java index ce49e331..9b996334 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfigOrBuilder.java @@ -1,77 +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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface SegmentationConfigOrBuilder - extends +public interface SegmentationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.SegmentationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Annotation spec set resource name. format:
    * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ java.lang.String getAnnotationSpecSet(); /** - * - * *
    * Required. Annotation spec set resource name. format:
    * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ - com.google.protobuf.ByteString getAnnotationSpecSetBytes(); + com.google.protobuf.ByteString + getAnnotationSpecSetBytes(); /** - * - * *
    * Instruction message showed on labelers UI.
    * 
* * string instruction_message = 2; - * * @return The instructionMessage. */ java.lang.String getInstructionMessage(); /** - * - * *
    * Instruction message showed on labelers UI.
    * 
* * string instruction_message = 2; - * * @return The bytes for instructionMessage. */ - com.google.protobuf.ByteString getInstructionMessageBytes(); + com.google.protobuf.ByteString + getInstructionMessageBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfig.java similarity index 69% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfig.java index 25fc69f7..d72b6f52 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Config for setting up sentiments.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SentimentConfig} */ -public final class SentimentConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SentimentConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.SentimentConfig) SentimentConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SentimentConfig.newBuilder() to construct. private SentimentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SentimentConfig() {} + private SentimentConfig() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SentimentConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SentimentConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,18 +52,18 @@ private SentimentConfig( case 0: done = true; break; - case 8: - { - enableLabelSentimentSelection_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + enableLabelSentimentSelection_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,33 +71,29 @@ private SentimentConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SentimentConfig.class, - com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.SentimentConfig.class, com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder.class); } public static final int ENABLE_LABEL_SENTIMENT_SELECTION_FIELD_NUMBER = 1; private boolean enableLabelSentimentSelection_; /** - * - * *
    * If set to true, contributors will have the option to select sentiment of
    * the label they selected, to mark it as negative or positive label. Default
@@ -121,7 +101,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * bool enable_label_sentiment_selection = 1; - * * @return The enableLabelSentimentSelection. */ @java.lang.Override @@ -130,7 +109,6 @@ public boolean getEnableLabelSentimentSelection() { } 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 (enableLabelSentimentSelection_ != false) { output.writeBool(1, enableLabelSentimentSelection_); } @@ -156,8 +135,8 @@ public int getSerializedSize() { size = 0; if (enableLabelSentimentSelection_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableLabelSentimentSelection_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enableLabelSentimentSelection_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -167,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.datalabeling.v1beta1.SentimentConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.SentimentConfig other = - (com.google.cloud.datalabeling.v1beta1.SentimentConfig) obj; + com.google.cloud.datalabeling.v1beta1.SentimentConfig other = (com.google.cloud.datalabeling.v1beta1.SentimentConfig) obj; - if (getEnableLabelSentimentSelection() != other.getEnableLabelSentimentSelection()) - return false; + if (getEnableLabelSentimentSelection() + != other.getEnableLabelSentimentSelection()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -189,135 +167,125 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_LABEL_SENTIMENT_SELECTION_FIELD_NUMBER; - hash = - (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableLabelSentimentSelection()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableLabelSentimentSelection()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datalabeling.v1beta1.SentimentConfig 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.datalabeling.v1beta1.SentimentConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.SentimentConfig prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.SentimentConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Config for setting up sentiments.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SentimentConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.SentimentConfig) com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SentimentConfig.class, - com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.SentimentConfig.class, com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.SentimentConfig.newBuilder() @@ -325,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(); @@ -343,9 +312,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor; } @java.lang.Override @@ -364,8 +333,7 @@ public com.google.cloud.datalabeling.v1beta1.SentimentConfig build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SentimentConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.SentimentConfig result = - new com.google.cloud.datalabeling.v1beta1.SentimentConfig(this); + com.google.cloud.datalabeling.v1beta1.SentimentConfig result = new com.google.cloud.datalabeling.v1beta1.SentimentConfig(this); result.enableLabelSentimentSelection_ = enableLabelSentimentSelection_; onBuilt(); return result; @@ -375,39 +343,38 @@ public com.google.cloud.datalabeling.v1beta1.SentimentConfig buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.SentimentConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.SentimentConfig) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.SentimentConfig)other); } else { super.mergeFrom(other); return this; @@ -415,8 +382,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.SentimentConfig other) { - if (other == com.google.cloud.datalabeling.v1beta1.SentimentConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.SentimentConfig.getDefaultInstance()) return this; if (other.getEnableLabelSentimentSelection() != false) { setEnableLabelSentimentSelection(other.getEnableLabelSentimentSelection()); } @@ -439,8 +405,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.SentimentConfig) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.SentimentConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -450,10 +415,8 @@ public Builder mergeFrom( return this; } - private boolean enableLabelSentimentSelection_; + private boolean enableLabelSentimentSelection_ ; /** - * - * *
      * If set to true, contributors will have the option to select sentiment of
      * the label they selected, to mark it as negative or positive label. Default
@@ -461,7 +424,6 @@ public Builder mergeFrom(
      * 
* * bool enable_label_sentiment_selection = 1; - * * @return The enableLabelSentimentSelection. */ @java.lang.Override @@ -469,8 +431,6 @@ public boolean getEnableLabelSentimentSelection() { return enableLabelSentimentSelection_; } /** - * - * *
      * If set to true, contributors will have the option to select sentiment of
      * the label they selected, to mark it as negative or positive label. Default
@@ -478,19 +438,16 @@ public boolean getEnableLabelSentimentSelection() {
      * 
* * bool enable_label_sentiment_selection = 1; - * * @param value The enableLabelSentimentSelection to set. * @return This builder for chaining. */ public Builder setEnableLabelSentimentSelection(boolean value) { - + enableLabelSentimentSelection_ = value; onChanged(); return this; } /** - * - * *
      * If set to true, contributors will have the option to select sentiment of
      * the label they selected, to mark it as negative or positive label. Default
@@ -498,18 +455,17 @@ public Builder setEnableLabelSentimentSelection(boolean value) {
      * 
* * bool enable_label_sentiment_selection = 1; - * * @return This builder for chaining. */ public Builder clearEnableLabelSentimentSelection() { - + enableLabelSentimentSelection_ = 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); } @@ -519,12 +475,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.SentimentConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SentimentConfig) private static final com.google.cloud.datalabeling.v1beta1.SentimentConfig DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.SentimentConfig(); } @@ -533,16 +489,16 @@ public static com.google.cloud.datalabeling.v1beta1.SentimentConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SentimentConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SentimentConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SentimentConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SentimentConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -557,4 +513,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.SentimentConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfigOrBuilder.java similarity index 51% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfigOrBuilder.java index 0059268a..9a6cfb23 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfigOrBuilder.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface SentimentConfigOrBuilder - extends +public interface SentimentConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.SentimentConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * If set to true, contributors will have the option to select sentiment of
    * the label they selected, to mark it as negative or positive label. Default
@@ -33,7 +15,6 @@ public interface SentimentConfigOrBuilder
    * 
* * bool enable_label_sentiment_selection = 1; - * * @return The enableLabelSentimentSelection. */ boolean getEnableLabelSentimentSelection(); diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegment.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegment.java similarity index 69% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegment.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegment.java index d621e828..8609c1cc 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegment.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegment.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Start and end position in a sequence (e.g. text segment).
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SequentialSegment} */ -public final class SequentialSegment extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SequentialSegment extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.SequentialSegment) SequentialSegmentOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SequentialSegment.newBuilder() to construct. private SequentialSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private SequentialSegment() {} + private SequentialSegment() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SequentialSegment(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SequentialSegment( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,23 +52,23 @@ private SequentialSegment( case 0: done = true; break; - case 8: - { - start_ = input.readInt32(); - break; - } - case 16: - { - end_ = input.readInt32(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + case 8: { + + start_ = input.readInt32(); + break; + } + case 16: { + + end_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,39 +76,34 @@ private SequentialSegment( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SequentialSegment.class, - com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder.class); + com.google.cloud.datalabeling.v1beta1.SequentialSegment.class, com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder.class); } public static final int START_FIELD_NUMBER = 1; private int start_; /** - * - * *
    * Start position (inclusive).
    * 
* * int32 start = 1; - * * @return The start. */ @java.lang.Override @@ -135,14 +114,11 @@ public int getStart() { public static final int END_FIELD_NUMBER = 2; private int end_; /** - * - * *
    * End position (exclusive).
    * 
* * int32 end = 2; - * * @return The end. */ @java.lang.Override @@ -151,7 +127,6 @@ public int getEnd() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -163,7 +138,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_ != 0) { output.writeInt32(1, start_); } @@ -180,10 +156,12 @@ public int getSerializedSize() { size = 0; if (start_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, start_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, start_); } if (end_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, end_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, end_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -193,16 +171,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.datalabeling.v1beta1.SequentialSegment)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.SequentialSegment other = - (com.google.cloud.datalabeling.v1beta1.SequentialSegment) obj; + com.google.cloud.datalabeling.v1beta1.SequentialSegment other = (com.google.cloud.datalabeling.v1beta1.SequentialSegment) obj; - if (getStart() != other.getStart()) return false; - if (getEnd() != other.getEnd()) return false; + if (getStart() + != other.getStart()) return false; + if (getEnd() + != other.getEnd()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -224,127 +203,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.SequentialSegment 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.datalabeling.v1beta1.SequentialSegment parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.SequentialSegment prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.SequentialSegment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Start and end position in a sequence (e.g. text segment).
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SequentialSegment} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.SequentialSegment) com.google.cloud.datalabeling.v1beta1.SequentialSegmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SequentialSegment.class, - com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder.class); + com.google.cloud.datalabeling.v1beta1.SequentialSegment.class, com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.SequentialSegment.newBuilder() @@ -352,15 +321,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(); @@ -372,9 +342,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor; } @java.lang.Override @@ -393,8 +363,7 @@ public com.google.cloud.datalabeling.v1beta1.SequentialSegment build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SequentialSegment buildPartial() { - com.google.cloud.datalabeling.v1beta1.SequentialSegment result = - new com.google.cloud.datalabeling.v1beta1.SequentialSegment(this); + com.google.cloud.datalabeling.v1beta1.SequentialSegment result = new com.google.cloud.datalabeling.v1beta1.SequentialSegment(this); result.start_ = start_; result.end_ = end_; onBuilt(); @@ -405,39 +374,38 @@ public com.google.cloud.datalabeling.v1beta1.SequentialSegment buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.SequentialSegment) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.SequentialSegment) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.SequentialSegment)other); } else { super.mergeFrom(other); return this; @@ -445,8 +413,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.SequentialSegment other) { - if (other == com.google.cloud.datalabeling.v1beta1.SequentialSegment.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.SequentialSegment.getDefaultInstance()) return this; if (other.getStart() != 0) { setStart(other.getStart()); } @@ -472,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.SequentialSegment) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.SequentialSegment) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -483,16 +449,13 @@ public Builder mergeFrom( return this; } - private int start_; + private int start_ ; /** - * - * *
      * Start position (inclusive).
      * 
* * int32 start = 1; - * * @return The start. */ @java.lang.Override @@ -500,51 +463,42 @@ public int getStart() { return start_; } /** - * - * *
      * Start position (inclusive).
      * 
* * int32 start = 1; - * * @param value The start to set. * @return This builder for chaining. */ public Builder setStart(int value) { - + start_ = value; onChanged(); return this; } /** - * - * *
      * Start position (inclusive).
      * 
* * int32 start = 1; - * * @return This builder for chaining. */ public Builder clearStart() { - + start_ = 0; onChanged(); return this; } - private int end_; + private int end_ ; /** - * - * *
      * End position (exclusive).
      * 
* * int32 end = 2; - * * @return The end. */ @java.lang.Override @@ -552,43 +506,37 @@ public int getEnd() { return end_; } /** - * - * *
      * End position (exclusive).
      * 
* * int32 end = 2; - * * @param value The end to set. * @return This builder for chaining. */ public Builder setEnd(int value) { - + end_ = value; onChanged(); return this; } /** - * - * *
      * End position (exclusive).
      * 
* * int32 end = 2; - * * @return This builder for chaining. */ public Builder clearEnd() { - + end_ = 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); } @@ -598,12 +546,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.SequentialSegment) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SequentialSegment) private static final com.google.cloud.datalabeling.v1beta1.SequentialSegment DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.SequentialSegment(); } @@ -612,16 +560,16 @@ public static com.google.cloud.datalabeling.v1beta1.SequentialSegment getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SequentialSegment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SequentialSegment(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SequentialSegment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SequentialSegment(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -636,4 +584,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.SequentialSegment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegmentOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegmentOrBuilder.java new file mode 100644 index 00000000..e595911e --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegmentOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/annotation.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface SequentialSegmentOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.SequentialSegment) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Start position (inclusive).
+   * 
+ * + * int32 start = 1; + * @return The start. + */ + int getStart(); + + /** + *
+   * End position (exclusive).
+   * 
+ * + * int32 end = 2; + * @return The end. + */ + int getEnd(); +} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/StringAggregationType.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/StringAggregationType.java similarity index 64% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/StringAggregationType.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/StringAggregationType.java index c5e1907f..e40d3fb3 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/StringAggregationType.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/StringAggregationType.java @@ -1,30 +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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -/** Protobuf enum {@code google.cloud.datalabeling.v1beta1.StringAggregationType} */ -public enum StringAggregationType implements com.google.protobuf.ProtocolMessageEnum { - /** STRING_AGGREGATION_TYPE_UNSPECIFIED = 0; */ +/** + * Protobuf enum {@code google.cloud.datalabeling.v1beta1.StringAggregationType} + */ +public enum StringAggregationType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * STRING_AGGREGATION_TYPE_UNSPECIFIED = 0; + */ STRING_AGGREGATION_TYPE_UNSPECIFIED(0), /** - * - * *
    * Majority vote to aggregate answers.
    * 
@@ -33,8 +21,6 @@ public enum StringAggregationType implements com.google.protobuf.ProtocolMessage */ MAJORITY_VOTE(1), /** - * - * *
    * Unanimous answers will be adopted.
    * 
@@ -43,8 +29,6 @@ public enum StringAggregationType implements com.google.protobuf.ProtocolMessage */ UNANIMOUS_VOTE(2), /** - * - * *
    * Preserve all answers by crowd compute.
    * 
@@ -55,11 +39,11 @@ public enum StringAggregationType implements com.google.protobuf.ProtocolMessage UNRECOGNIZED(-1), ; - /** STRING_AGGREGATION_TYPE_UNSPECIFIED = 0; */ + /** + * STRING_AGGREGATION_TYPE_UNSPECIFIED = 0; + */ public static final int STRING_AGGREGATION_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Majority vote to aggregate answers.
    * 
@@ -68,8 +52,6 @@ public enum StringAggregationType implements com.google.protobuf.ProtocolMessage */ public static final int MAJORITY_VOTE_VALUE = 1; /** - * - * *
    * Unanimous answers will be adopted.
    * 
@@ -78,8 +60,6 @@ public enum StringAggregationType implements com.google.protobuf.ProtocolMessage */ public static final int UNANIMOUS_VOTE_VALUE = 2; /** - * - * *
    * Preserve all answers by crowd compute.
    * 
@@ -88,6 +68,7 @@ public enum StringAggregationType implements com.google.protobuf.ProtocolMessage */ public static final int NO_AGGREGATION_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -112,16 +93,11 @@ public static StringAggregationType valueOf(int value) { */ public static StringAggregationType forNumber(int value) { switch (value) { - case 0: - return STRING_AGGREGATION_TYPE_UNSPECIFIED; - case 1: - return MAJORITY_VOTE; - case 2: - return UNANIMOUS_VOTE; - case 3: - return NO_AGGREGATION; - default: - return null; + case 0: return STRING_AGGREGATION_TYPE_UNSPECIFIED; + case 1: return MAJORITY_VOTE; + case 2: return UNANIMOUS_VOTE; + case 3: return NO_AGGREGATION; + default: return null; } } @@ -129,31 +105,29 @@ public static StringAggregationType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap - internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StringAggregationType findValueByNumber(int number) { - return StringAggregationType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + StringAggregationType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StringAggregationType findValueByNumber(int number) { + return StringAggregationType.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.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor().getEnumTypes().get(0); } private static final StringAggregationType[] VALUES = values(); @@ -161,7 +135,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static StringAggregationType 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; @@ -177,3 +152,4 @@ private StringAggregationType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.datalabeling.v1beta1.StringAggregationType) } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotation.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotation.java similarity index 65% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotation.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotation.java index 1025a7ce..5b2e3c2b 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotation.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotation.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Text classification annotation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextClassificationAnnotation} */ -public final class TextClassificationAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextClassificationAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) TextClassificationAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextClassificationAnnotation.newBuilder() to construct. private TextClassificationAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TextClassificationAnnotation() {} + private TextClassificationAnnotation() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextClassificationAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextClassificationAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,30 +52,26 @@ private TextClassificationAnnotation( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; - if (annotationSpec_ != null) { - subBuilder = annotationSpec_.toBuilder(); - } - annotationSpec_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotationSpec_); - annotationSpec_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; + if (annotationSpec_ != null) { + subBuilder = annotationSpec_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + annotationSpec_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotationSpec_); + annotationSpec_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -99,39 +79,34 @@ private TextClassificationAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.class, - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.class, com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder.class); } public static final int ANNOTATION_SPEC_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; /** - * - * *
    * Label of the text.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ @java.lang.Override @@ -139,25 +114,18 @@ public boolean hasAnnotationSpec() { return annotationSpec_ != null; } /** - * - * *
    * Label of the text.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } /** - * - * *
    * Label of the text.
    * 
@@ -165,13 +133,11 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder - getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { return getAnnotationSpec(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,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 (annotationSpec_ != null) { output.writeMessage(1, getAnnotationSpec()); } @@ -197,7 +164,8 @@ public int getSerializedSize() { size = 0; if (annotationSpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnnotationSpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAnnotationSpec()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -207,17 +175,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.datalabeling.v1beta1.TextClassificationAnnotation)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation other = - (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) obj; + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation other = (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) obj; if (hasAnnotationSpec() != other.hasAnnotationSpec()) return false; if (hasAnnotationSpec()) { - if (!getAnnotationSpec().equals(other.getAnnotationSpec())) return false; + if (!getAnnotationSpec() + .equals(other.getAnnotationSpec())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -240,145 +208,134 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation 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.datalabeling.v1beta1.TextClassificationAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation - 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.datalabeling.v1beta1.TextClassificationAnnotation 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.datalabeling.v1beta1.TextClassificationAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Text classification annotation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextClassificationAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.class, - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.class, com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.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(); @@ -392,16 +349,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.getDefaultInstance(); } @java.lang.Override @@ -415,8 +370,7 @@ public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation build( @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation buildPartial() { - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation result = - new com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation(this); + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation result = new com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation(this); if (annotationSpecBuilder_ == null) { result.annotationSpec_ = annotationSpec_; } else { @@ -430,51 +384,46 @@ public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation 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.datalabeling.v1beta1.TextClassificationAnnotation) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation other) { - if (other - == com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation other) { + if (other == com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.getDefaultInstance()) return this; if (other.hasAnnotationSpec()) { mergeAnnotationSpec(other.getAnnotationSpec()); } @@ -497,9 +446,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -511,47 +458,34 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> - annotationSpecBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecBuilder_; /** - * - * *
      * Label of the text.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ public boolean hasAnnotationSpec() { return annotationSpecBuilder_ != null || annotationSpec_ != null; } /** - * - * *
      * Label of the text.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { if (annotationSpecBuilder_ == null) { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } else { return annotationSpecBuilder_.getMessage(); } } /** - * - * *
      * Label of the text.
      * 
@@ -572,8 +506,6 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio return this; } /** - * - * *
      * Label of the text.
      * 
@@ -592,8 +524,6 @@ public Builder setAnnotationSpec( return this; } /** - * - * *
      * Label of the text.
      * 
@@ -604,9 +534,7 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat if (annotationSpecBuilder_ == null) { if (annotationSpec_ != null) { annotationSpec_ = - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_).mergeFrom(value).buildPartial(); } else { annotationSpec_ = value; } @@ -618,8 +546,6 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat return this; } /** - * - * *
      * Label of the text.
      * 
@@ -638,8 +564,6 @@ public Builder clearAnnotationSpec() { return this; } /** - * - * *
      * Label of the text.
      * 
@@ -647,32 +571,26 @@ public Builder clearAnnotationSpec() { * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotationSpecBuilder() { - + onChanged(); return getAnnotationSpecFieldBuilder().getBuilder(); } /** - * - * *
      * Label of the text.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder - getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { if (annotationSpecBuilder_ != null) { return annotationSpecBuilder_.getMessageOrBuilder(); } else { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } } /** - * - * *
      * Label of the text.
      * 
@@ -680,24 +598,21 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> getAnnotationSpecFieldBuilder() { if (annotationSpecBuilder_ == null) { - annotationSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( - getAnnotationSpec(), getParentForChildren(), isClean()); + annotationSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( + getAnnotationSpec(), + getParentForChildren(), + isClean()); annotationSpec_ = null; } return annotationSpecBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -707,32 +622,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) - private static final com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation(); } - public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextClassificationAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextClassificationAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextClassificationAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextClassificationAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -744,8 +657,9 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotationOrBuilder.java similarity index 60% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotationOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotationOrBuilder.java index b8f15383..d7416aff 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotationOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotationOrBuilder.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface TextClassificationAnnotationOrBuilder - extends +public interface TextClassificationAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Label of the text.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ boolean hasAnnotationSpec(); /** - * - * *
    * Label of the text.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec(); /** - * - * *
    * Label of the text.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfig.java similarity index 65% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfig.java index 81935323..bc095cca 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Config for text classification human labeling task.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextClassificationConfig} */ -public final class TextClassificationConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextClassificationConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.TextClassificationConfig) TextClassificationConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextClassificationConfig.newBuilder() to construct. private TextClassificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextClassificationConfig() { annotationSpecSet_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextClassificationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextClassificationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,42 +53,37 @@ private TextClassificationConfig( case 0: done = true; break; - case 8: - { - allowMultiLabel_ = input.readBool(); - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + case 8: { - annotationSpecSet_ = s; - break; - } - case 26: - { - com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder subBuilder = null; - if (sentimentConfig_ != null) { - subBuilder = sentimentConfig_.toBuilder(); - } - sentimentConfig_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.SentimentConfig.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sentimentConfig_); - sentimentConfig_ = subBuilder.buildPartial(); - } + allowMultiLabel_ = input.readBool(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - break; + annotationSpecSet_ = s; + break; + } + case 26: { + com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder subBuilder = null; + if (sentimentConfig_ != null) { + subBuilder = sentimentConfig_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + sentimentConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.SentimentConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sentimentConfig_); + sentimentConfig_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,40 +91,35 @@ private TextClassificationConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.class, - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.class, com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder.class); } public static final int ALLOW_MULTI_LABEL_FIELD_NUMBER = 1; private boolean allowMultiLabel_; /** - * - * *
    * Optional. If allow_multi_label is true, contributors are able to choose
    * multiple labels for one text segment.
    * 
* * bool allow_multi_label = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMultiLabel. */ @java.lang.Override @@ -157,14 +130,11 @@ public boolean getAllowMultiLabel() { public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER = 2; private volatile java.lang.Object annotationSpecSet_; /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ @java.lang.Override @@ -173,29 +143,29 @@ public java.lang.String getAnnotationSpecSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; } } /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ @java.lang.Override - public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -206,16 +176,11 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { public static final int SENTIMENT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.datalabeling.v1beta1.SentimentConfig sentimentConfig_; /** - * - * *
    * Optional. Configs for sentiment selection.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sentimentConfig field is set. */ @java.lang.Override @@ -223,43 +188,30 @@ public boolean hasSentimentConfig() { return sentimentConfig_ != null; } /** - * - * *
    * Optional. Configs for sentiment selection.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The sentimentConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SentimentConfig getSentimentConfig() { - return sentimentConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.SentimentConfig.getDefaultInstance() - : sentimentConfig_; + return sentimentConfig_ == null ? com.google.cloud.datalabeling.v1beta1.SentimentConfig.getDefaultInstance() : sentimentConfig_; } /** - * - * *
    * Optional. Configs for sentiment selection.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder - getSentimentConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder getSentimentConfigOrBuilder() { return getSentimentConfig(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -271,7 +223,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 (allowMultiLabel_ != false) { output.writeBool(1, allowMultiLabel_); } @@ -291,13 +244,15 @@ public int getSerializedSize() { size = 0; if (allowMultiLabel_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, allowMultiLabel_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, allowMultiLabel_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationSpecSet_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, annotationSpecSet_); } if (sentimentConfig_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSentimentConfig()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSentimentConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -307,19 +262,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.datalabeling.v1beta1.TextClassificationConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig other = - (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) obj; + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig other = (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) obj; - if (getAllowMultiLabel() != other.getAllowMultiLabel()) return false; - if (!getAnnotationSpecSet().equals(other.getAnnotationSpecSet())) return false; + if (getAllowMultiLabel() + != other.getAllowMultiLabel()) return false; + if (!getAnnotationSpecSet() + .equals(other.getAnnotationSpecSet())) return false; if (hasSentimentConfig() != other.hasSentimentConfig()) return false; if (hasSentimentConfig()) { - if (!getSentimentConfig().equals(other.getSentimentConfig())) return false; + if (!getSentimentConfig() + .equals(other.getSentimentConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -333,7 +290,8 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ALLOW_MULTI_LABEL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMultiLabel()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMultiLabel()); hash = (37 * hash) + ANNOTATION_SPEC_SET_FIELD_NUMBER; hash = (53 * hash) + getAnnotationSpecSet().hashCode(); if (hasSentimentConfig()) { @@ -346,127 +304,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig 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.datalabeling.v1beta1.TextClassificationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.TextClassificationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Config for text classification human labeling task.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextClassificationConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.TextClassificationConfig) com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.class, - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.class, com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.newBuilder() @@ -474,15 +422,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(); @@ -500,14 +449,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } @@ -522,8 +470,7 @@ public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig result = - new com.google.cloud.datalabeling.v1beta1.TextClassificationConfig(this); + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig result = new com.google.cloud.datalabeling.v1beta1.TextClassificationConfig(this); result.allowMultiLabel_ = allowMultiLabel_; result.annotationSpecSet_ = annotationSpecSet_; if (sentimentConfigBuilder_ == null) { @@ -539,39 +486,38 @@ public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig 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.datalabeling.v1beta1.TextClassificationConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig)other); } else { super.mergeFrom(other); return this; @@ -579,9 +525,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.TextClassificationConfig other) { - if (other - == com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance()) return this; if (other.getAllowMultiLabel() != false) { setAllowMultiLabel(other.getAllowMultiLabel()); } @@ -611,9 +555,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -623,17 +565,14 @@ public Builder mergeFrom( return this; } - private boolean allowMultiLabel_; + private boolean allowMultiLabel_ ; /** - * - * *
      * Optional. If allow_multi_label is true, contributors are able to choose
      * multiple labels for one text segment.
      * 
* * bool allow_multi_label = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMultiLabel. */ @java.lang.Override @@ -641,38 +580,32 @@ public boolean getAllowMultiLabel() { return allowMultiLabel_; } /** - * - * *
      * Optional. If allow_multi_label is true, contributors are able to choose
      * multiple labels for one text segment.
      * 
* * bool allow_multi_label = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The allowMultiLabel to set. * @return This builder for chaining. */ public Builder setAllowMultiLabel(boolean value) { - + allowMultiLabel_ = value; onChanged(); return this; } /** - * - * *
      * Optional. If allow_multi_label is true, contributors are able to choose
      * multiple labels for one text segment.
      * 
* * bool allow_multi_label = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAllowMultiLabel() { - + allowMultiLabel_ = false; onChanged(); return this; @@ -680,20 +613,18 @@ public Builder clearAllowMultiLabel() { private java.lang.Object annotationSpecSet_ = ""; /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ public java.lang.String getAnnotationSpecSet() { java.lang.Object ref = annotationSpecSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; @@ -702,21 +633,20 @@ public java.lang.String getAnnotationSpecSet() { } } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ - public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -724,61 +654,54 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { } } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSet(java.lang.String value) { + public Builder setAnnotationSpecSet( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecSet_ = value; onChanged(); return this; } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAnnotationSpecSet() { - + annotationSpecSet_ = getDefaultInstance().getAnnotationSpecSet(); onChanged(); return this; } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecSetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecSet_ = value; onChanged(); return this; @@ -786,58 +709,39 @@ public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { private com.google.cloud.datalabeling.v1beta1.SentimentConfig sentimentConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SentimentConfig, - com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder, - com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder> - sentimentConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.SentimentConfig, com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder, com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder> sentimentConfigBuilder_; /** - * - * *
      * Optional. Configs for sentiment selection.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sentimentConfig field is set. */ public boolean hasSentimentConfig() { return sentimentConfigBuilder_ != null || sentimentConfig_ != null; } /** - * - * *
      * Optional. Configs for sentiment selection.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The sentimentConfig. */ public com.google.cloud.datalabeling.v1beta1.SentimentConfig getSentimentConfig() { if (sentimentConfigBuilder_ == null) { - return sentimentConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.SentimentConfig.getDefaultInstance() - : sentimentConfig_; + return sentimentConfig_ == null ? com.google.cloud.datalabeling.v1beta1.SentimentConfig.getDefaultInstance() : sentimentConfig_; } else { return sentimentConfigBuilder_.getMessage(); } } /** - * - * *
      * Optional. Configs for sentiment selection.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSentimentConfig(com.google.cloud.datalabeling.v1beta1.SentimentConfig value) { if (sentimentConfigBuilder_ == null) { @@ -853,15 +757,11 @@ public Builder setSentimentConfig(com.google.cloud.datalabeling.v1beta1.Sentimen return this; } /** - * - * *
      * Optional. Configs for sentiment selection.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setSentimentConfig( com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder builderForValue) { @@ -875,24 +775,17 @@ public Builder setSentimentConfig( return this; } /** - * - * *
      * Optional. Configs for sentiment selection.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder mergeSentimentConfig( - com.google.cloud.datalabeling.v1beta1.SentimentConfig value) { + public Builder mergeSentimentConfig(com.google.cloud.datalabeling.v1beta1.SentimentConfig value) { if (sentimentConfigBuilder_ == null) { if (sentimentConfig_ != null) { sentimentConfig_ = - com.google.cloud.datalabeling.v1beta1.SentimentConfig.newBuilder(sentimentConfig_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.SentimentConfig.newBuilder(sentimentConfig_).mergeFrom(value).buildPartial(); } else { sentimentConfig_ = value; } @@ -904,15 +797,11 @@ public Builder mergeSentimentConfig( return this; } /** - * - * *
      * Optional. Configs for sentiment selection.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearSentimentConfig() { if (sentimentConfigBuilder_ == null) { @@ -926,73 +815,55 @@ public Builder clearSentimentConfig() { return this; } /** - * - * *
      * Optional. Configs for sentiment selection.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder - getSentimentConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder getSentimentConfigBuilder() { + onChanged(); return getSentimentConfigFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Configs for sentiment selection.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder - getSentimentConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder getSentimentConfigOrBuilder() { if (sentimentConfigBuilder_ != null) { return sentimentConfigBuilder_.getMessageOrBuilder(); } else { - return sentimentConfig_ == null - ? com.google.cloud.datalabeling.v1beta1.SentimentConfig.getDefaultInstance() - : sentimentConfig_; + return sentimentConfig_ == null ? + com.google.cloud.datalabeling.v1beta1.SentimentConfig.getDefaultInstance() : sentimentConfig_; } } /** - * - * *
      * Optional. Configs for sentiment selection.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SentimentConfig, - com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder, - com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.SentimentConfig, com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder, com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder> getSentimentConfigFieldBuilder() { if (sentimentConfigBuilder_ == null) { - sentimentConfigBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SentimentConfig, - com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder, - com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder>( - getSentimentConfig(), getParentForChildren(), isClean()); + sentimentConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.SentimentConfig, com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder, com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder>( + getSentimentConfig(), + getParentForChildren(), + isClean()); sentimentConfig_ = null; } return sentimentConfigBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1002,32 +873,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.TextClassificationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.TextClassificationConfig) - private static final com.google.cloud.datalabeling.v1beta1.TextClassificationConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.TextClassificationConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.TextClassificationConfig(); } - public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextClassificationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextClassificationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextClassificationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextClassificationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1039,8 +908,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfigOrBuilder.java similarity index 57% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfigOrBuilder.java index fb1e365a..a5a64039 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfigOrBuilder.java @@ -1,105 +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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface TextClassificationConfigOrBuilder - extends +public interface TextClassificationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.TextClassificationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Optional. If allow_multi_label is true, contributors are able to choose
    * multiple labels for one text segment.
    * 
* * bool allow_multi_label = 1 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMultiLabel. */ boolean getAllowMultiLabel(); /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ java.lang.String getAnnotationSpecSet(); /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ - com.google.protobuf.ByteString getAnnotationSpecSetBytes(); + com.google.protobuf.ByteString + getAnnotationSpecSetBytes(); /** - * - * *
    * Optional. Configs for sentiment selection.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the sentimentConfig field is set. */ boolean hasSentimentConfig(); /** - * - * *
    * Optional. Configs for sentiment selection.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The sentimentConfig. */ com.google.cloud.datalabeling.v1beta1.SentimentConfig getSentimentConfig(); /** - * - * *
    * Optional. Configs for sentiment selection.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder getSentimentConfigOrBuilder(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotation.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotation.java similarity index 66% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotation.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotation.java index aa7d706e..904d183c 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotation.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotation.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Text entity extraction annotation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation} */ -public final class TextEntityExtractionAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextEntityExtractionAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) TextEntityExtractionAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextEntityExtractionAnnotation.newBuilder() to construct. - private TextEntityExtractionAnnotation( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TextEntityExtractionAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private TextEntityExtractionAnnotation() {} + private TextEntityExtractionAnnotation() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextEntityExtractionAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextEntityExtractionAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -69,47 +52,39 @@ private TextEntityExtractionAnnotation( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; - if (annotationSpec_ != null) { - subBuilder = annotationSpec_.toBuilder(); - } - annotationSpec_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotationSpec_); - annotationSpec_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; + if (annotationSpec_ != null) { + subBuilder = annotationSpec_.toBuilder(); + } + annotationSpec_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotationSpec_); + annotationSpec_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder subBuilder = null; - if (sequentialSegment_ != null) { - subBuilder = sequentialSegment_.toBuilder(); - } - sequentialSegment_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.SequentialSegment.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sequentialSegment_); - sequentialSegment_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder subBuilder = null; + if (sequentialSegment_ != null) { + subBuilder = sequentialSegment_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + sequentialSegment_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.SequentialSegment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sequentialSegment_); + sequentialSegment_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -117,39 +92,34 @@ private TextEntityExtractionAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.class, - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.class, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder.class); } public static final int ANNOTATION_SPEC_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; /** - * - * *
    * Label of the text entities.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ @java.lang.Override @@ -157,25 +127,18 @@ public boolean hasAnnotationSpec() { return annotationSpec_ != null; } /** - * - * *
    * Label of the text entities.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } /** - * - * *
    * Label of the text entities.
    * 
@@ -183,22 +146,18 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder - getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { return getAnnotationSpec(); } public static final int SEQUENTIAL_SEGMENT_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.SequentialSegment sequentialSegment_; /** - * - * *
    * Position of the entity.
    * 
* * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; - * * @return Whether the sequentialSegment field is set. */ @java.lang.Override @@ -206,25 +165,18 @@ public boolean hasSequentialSegment() { return sequentialSegment_ != null; } /** - * - * *
    * Position of the entity.
    * 
* * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; - * * @return The sequentialSegment. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SequentialSegment getSequentialSegment() { - return sequentialSegment_ == null - ? com.google.cloud.datalabeling.v1beta1.SequentialSegment.getDefaultInstance() - : sequentialSegment_; + return sequentialSegment_ == null ? com.google.cloud.datalabeling.v1beta1.SequentialSegment.getDefaultInstance() : sequentialSegment_; } /** - * - * *
    * Position of the entity.
    * 
@@ -232,13 +184,11 @@ public com.google.cloud.datalabeling.v1beta1.SequentialSegment getSequentialSegm * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SequentialSegmentOrBuilder - getSequentialSegmentOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.SequentialSegmentOrBuilder getSequentialSegmentOrBuilder() { return getSequentialSegment(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -250,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 (annotationSpec_ != null) { output.writeMessage(1, getAnnotationSpec()); } @@ -267,10 +218,12 @@ public int getSerializedSize() { size = 0; if (annotationSpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnnotationSpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAnnotationSpec()); } if (sequentialSegment_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSequentialSegment()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSequentialSegment()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -280,21 +233,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.datalabeling.v1beta1.TextEntityExtractionAnnotation)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation other = - (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) obj; + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation other = (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) obj; if (hasAnnotationSpec() != other.hasAnnotationSpec()) return false; if (hasAnnotationSpec()) { - if (!getAnnotationSpec().equals(other.getAnnotationSpec())) return false; + if (!getAnnotationSpec() + .equals(other.getAnnotationSpec())) return false; } if (hasSequentialSegment() != other.hasSequentialSegment()) return false; if (hasSequentialSegment()) { - if (!getSequentialSegment().equals(other.getSequentialSegment())) return false; + if (!getSequentialSegment() + .equals(other.getSequentialSegment())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -321,145 +275,134 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation 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.datalabeling.v1beta1.TextEntityExtractionAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation - 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.datalabeling.v1beta1.TextEntityExtractionAnnotation 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.datalabeling.v1beta1.TextEntityExtractionAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Text entity extraction annotation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.class, - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.class, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.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(); @@ -479,16 +422,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.getDefaultInstance(); } @java.lang.Override @@ -502,8 +443,7 @@ public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation buil @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation buildPartial() { - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation result = - new com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation(this); + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation result = new com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation(this); if (annotationSpecBuilder_ == null) { result.annotationSpec_ = annotationSpec_; } else { @@ -522,51 +462,46 @@ public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation 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.datalabeling.v1beta1.TextEntityExtractionAnnotation) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation other) { - if (other - == com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation other) { + if (other == com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.getDefaultInstance()) return this; if (other.hasAnnotationSpec()) { mergeAnnotationSpec(other.getAnnotationSpec()); } @@ -592,9 +527,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -606,47 +539,34 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> - annotationSpecBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecBuilder_; /** - * - * *
      * Label of the text entities.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ public boolean hasAnnotationSpec() { return annotationSpecBuilder_ != null || annotationSpec_ != null; } /** - * - * *
      * Label of the text entities.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { if (annotationSpecBuilder_ == null) { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } else { return annotationSpecBuilder_.getMessage(); } } /** - * - * *
      * Label of the text entities.
      * 
@@ -667,8 +587,6 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio return this; } /** - * - * *
      * Label of the text entities.
      * 
@@ -687,8 +605,6 @@ public Builder setAnnotationSpec( return this; } /** - * - * *
      * Label of the text entities.
      * 
@@ -699,9 +615,7 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat if (annotationSpecBuilder_ == null) { if (annotationSpec_ != null) { annotationSpec_ = - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_).mergeFrom(value).buildPartial(); } else { annotationSpec_ = value; } @@ -713,8 +627,6 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat return this; } /** - * - * *
      * Label of the text entities.
      * 
@@ -733,8 +645,6 @@ public Builder clearAnnotationSpec() { return this; } /** - * - * *
      * Label of the text entities.
      * 
@@ -742,32 +652,26 @@ public Builder clearAnnotationSpec() { * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotationSpecBuilder() { - + onChanged(); return getAnnotationSpecFieldBuilder().getBuilder(); } /** - * - * *
      * Label of the text entities.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder - getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { if (annotationSpecBuilder_ != null) { return annotationSpecBuilder_.getMessageOrBuilder(); } else { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } } /** - * - * *
      * Label of the text entities.
      * 
@@ -775,17 +679,14 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> getAnnotationSpecFieldBuilder() { if (annotationSpecBuilder_ == null) { - annotationSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( - getAnnotationSpec(), getParentForChildren(), isClean()); + annotationSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( + getAnnotationSpec(), + getParentForChildren(), + isClean()); annotationSpec_ = null; } return annotationSpecBuilder_; @@ -793,55 +694,41 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio private com.google.cloud.datalabeling.v1beta1.SequentialSegment sequentialSegment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SequentialSegment, - com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder, - com.google.cloud.datalabeling.v1beta1.SequentialSegmentOrBuilder> - sequentialSegmentBuilder_; + com.google.cloud.datalabeling.v1beta1.SequentialSegment, com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder, com.google.cloud.datalabeling.v1beta1.SequentialSegmentOrBuilder> sequentialSegmentBuilder_; /** - * - * *
      * Position of the entity.
      * 
* * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; - * * @return Whether the sequentialSegment field is set. */ public boolean hasSequentialSegment() { return sequentialSegmentBuilder_ != null || sequentialSegment_ != null; } /** - * - * *
      * Position of the entity.
      * 
* * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; - * * @return The sequentialSegment. */ public com.google.cloud.datalabeling.v1beta1.SequentialSegment getSequentialSegment() { if (sequentialSegmentBuilder_ == null) { - return sequentialSegment_ == null - ? com.google.cloud.datalabeling.v1beta1.SequentialSegment.getDefaultInstance() - : sequentialSegment_; + return sequentialSegment_ == null ? com.google.cloud.datalabeling.v1beta1.SequentialSegment.getDefaultInstance() : sequentialSegment_; } else { return sequentialSegmentBuilder_.getMessage(); } } /** - * - * *
      * Position of the entity.
      * 
* * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; */ - public Builder setSequentialSegment( - com.google.cloud.datalabeling.v1beta1.SequentialSegment value) { + public Builder setSequentialSegment(com.google.cloud.datalabeling.v1beta1.SequentialSegment value) { if (sequentialSegmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -855,8 +742,6 @@ public Builder setSequentialSegment( return this; } /** - * - * *
      * Position of the entity.
      * 
@@ -875,22 +760,17 @@ public Builder setSequentialSegment( return this; } /** - * - * *
      * Position of the entity.
      * 
* * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; */ - public Builder mergeSequentialSegment( - com.google.cloud.datalabeling.v1beta1.SequentialSegment value) { + public Builder mergeSequentialSegment(com.google.cloud.datalabeling.v1beta1.SequentialSegment value) { if (sequentialSegmentBuilder_ == null) { if (sequentialSegment_ != null) { sequentialSegment_ = - com.google.cloud.datalabeling.v1beta1.SequentialSegment.newBuilder(sequentialSegment_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.SequentialSegment.newBuilder(sequentialSegment_).mergeFrom(value).buildPartial(); } else { sequentialSegment_ = value; } @@ -902,8 +782,6 @@ public Builder mergeSequentialSegment( return this; } /** - * - * *
      * Position of the entity.
      * 
@@ -922,42 +800,33 @@ public Builder clearSequentialSegment() { return this; } /** - * - * *
      * Position of the entity.
      * 
* * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; */ - public com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder - getSequentialSegmentBuilder() { - + public com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder getSequentialSegmentBuilder() { + onChanged(); return getSequentialSegmentFieldBuilder().getBuilder(); } /** - * - * *
      * Position of the entity.
      * 
* * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; */ - public com.google.cloud.datalabeling.v1beta1.SequentialSegmentOrBuilder - getSequentialSegmentOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.SequentialSegmentOrBuilder getSequentialSegmentOrBuilder() { if (sequentialSegmentBuilder_ != null) { return sequentialSegmentBuilder_.getMessageOrBuilder(); } else { - return sequentialSegment_ == null - ? com.google.cloud.datalabeling.v1beta1.SequentialSegment.getDefaultInstance() - : sequentialSegment_; + return sequentialSegment_ == null ? + com.google.cloud.datalabeling.v1beta1.SequentialSegment.getDefaultInstance() : sequentialSegment_; } } /** - * - * *
      * Position of the entity.
      * 
@@ -965,24 +834,21 @@ public Builder clearSequentialSegment() { * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SequentialSegment, - com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder, - com.google.cloud.datalabeling.v1beta1.SequentialSegmentOrBuilder> + com.google.cloud.datalabeling.v1beta1.SequentialSegment, com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder, com.google.cloud.datalabeling.v1beta1.SequentialSegmentOrBuilder> getSequentialSegmentFieldBuilder() { if (sequentialSegmentBuilder_ == null) { - sequentialSegmentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SequentialSegment, - com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder, - com.google.cloud.datalabeling.v1beta1.SequentialSegmentOrBuilder>( - getSequentialSegment(), getParentForChildren(), isClean()); + sequentialSegmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.SequentialSegment, com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder, com.google.cloud.datalabeling.v1beta1.SequentialSegmentOrBuilder>( + getSequentialSegment(), + getParentForChildren(), + isClean()); sequentialSegment_ = null; } return sequentialSegmentBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -992,32 +858,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) - private static final com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation(); } - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextEntityExtractionAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextEntityExtractionAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextEntityExtractionAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextEntityExtractionAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1029,8 +893,9 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotationOrBuilder.java similarity index 71% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotationOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotationOrBuilder.java index 76802466..ea74992a 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotationOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotationOrBuilder.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface TextEntityExtractionAnnotationOrBuilder - extends +public interface TextEntityExtractionAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Label of the text entities.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ boolean hasAnnotationSpec(); /** - * - * *
    * Label of the text entities.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec(); /** - * - * *
    * Label of the text entities.
    * 
@@ -59,32 +35,24 @@ public interface TextEntityExtractionAnnotationOrBuilder com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder(); /** - * - * *
    * Position of the entity.
    * 
* * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; - * * @return Whether the sequentialSegment field is set. */ boolean hasSequentialSegment(); /** - * - * *
    * Position of the entity.
    * 
* * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; - * * @return The sequentialSegment. */ com.google.cloud.datalabeling.v1beta1.SequentialSegment getSequentialSegment(); /** - * - * *
    * Position of the entity.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfig.java similarity index 67% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfig.java index 796b25d6..3f38f837 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Config for text entity extraction human labeling task.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig} */ -public final class TextEntityExtractionConfig extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextEntityExtractionConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) TextEntityExtractionConfigOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextEntityExtractionConfig.newBuilder() to construct. private TextEntityExtractionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextEntityExtractionConfig() { annotationSpecSet_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextEntityExtractionConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextEntityExtractionConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private TextEntityExtractionConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - annotationSpecSet_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + annotationSpecSet_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,39 +73,34 @@ private TextEntityExtractionConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.class, - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.class, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder.class); } public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER = 1; private volatile java.lang.Object annotationSpecSet_; /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ @java.lang.Override @@ -132,29 +109,29 @@ public java.lang.String getAnnotationSpecSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; } } /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ @java.lang.Override - public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -163,7 +140,6 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +151,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(annotationSpecSet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecSet_); } @@ -199,15 +176,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.datalabeling.v1beta1.TextEntityExtractionConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig other = - (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) obj; + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig other = (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) obj; - if (!getAnnotationSpecSet().equals(other.getAnnotationSpecSet())) return false; + if (!getAnnotationSpecSet() + .equals(other.getAnnotationSpecSet())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,127 +204,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig 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.datalabeling.v1beta1.TextEntityExtractionConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Config for text entity extraction human labeling task.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.class, - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.class, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.newBuilder() @@ -355,15 +322,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(); @@ -373,14 +341,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); } @@ -395,8 +362,7 @@ public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig result = - new com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig(this); + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig result = new com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig(this); result.annotationSpecSet_ = annotationSpecSet_; onBuilt(); return result; @@ -406,50 +372,46 @@ public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig 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.datalabeling.v1beta1.TextEntityExtractionConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig other) { - if (other - == com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig other) { + if (other == com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance()) return this; if (!other.getAnnotationSpecSet().isEmpty()) { annotationSpecSet_ = other.annotationSpecSet_; onChanged(); @@ -473,9 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -487,20 +447,18 @@ public Builder mergeFrom( private java.lang.Object annotationSpecSet_ = ""; /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ public java.lang.String getAnnotationSpecSet() { java.lang.Object ref = annotationSpecSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; @@ -509,21 +467,20 @@ public java.lang.String getAnnotationSpecSet() { } } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ - public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -531,68 +488,61 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { } } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSet(java.lang.String value) { + public Builder setAnnotationSpecSet( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecSet_ = value; onChanged(); return this; } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAnnotationSpecSet() { - + annotationSpecSet_ = getDefaultInstance().getAnnotationSpecSet(); onChanged(); return this; } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecSetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecSet_ = 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); } @@ -602,32 +552,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) - private static final com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig(); } - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextEntityExtractionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextEntityExtractionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextEntityExtractionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextEntityExtractionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -639,8 +587,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfigOrBuilder.java similarity index 52% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfigOrBuilder.java index 3496e713..9e4e5a83 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfigOrBuilder.java @@ -1,50 +1,29 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface TextEntityExtractionConfigOrBuilder - extends +public interface TextEntityExtractionConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ java.lang.String getAnnotationSpecSet(); /** - * - * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ - com.google.protobuf.ByteString getAnnotationSpecSetBytes(); + com.google.protobuf.ByteString + getAnnotationSpecSetBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadata.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadata.java similarity index 70% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadata.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadata.java index bd92981d..5d281810 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadata.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadata.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Metadata for the text.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextMetadata} */ -public final class TextMetadata extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextMetadata extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.TextMetadata) TextMetadataOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextMetadata.newBuilder() to construct. private TextMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextMetadata() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private TextMetadata( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + languageCode_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private TextMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextMetadata.class, - com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextMetadata.class, com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** - * - * *
    * The language of this text, as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -125,7 +103,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string language_code = 1; - * * @return The languageCode. */ @java.lang.Override @@ -134,15 +111,14 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** - * - * *
    * The language of this text, as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -150,15 +126,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -167,7 +144,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } 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(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -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.datalabeling.v1beta1.TextMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.TextMetadata other = - (com.google.cloud.datalabeling.v1beta1.TextMetadata) obj; + com.google.cloud.datalabeling.v1beta1.TextMetadata other = (com.google.cloud.datalabeling.v1beta1.TextMetadata) obj; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,126 +208,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.TextMetadata 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.datalabeling.v1beta1.TextMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.TextMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the text.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextMetadata} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.TextMetadata) com.google.cloud.datalabeling.v1beta1.TextMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextMetadata.class, - com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextMetadata.class, com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.TextMetadata.newBuilder() @@ -358,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(); @@ -376,9 +345,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor; } @java.lang.Override @@ -397,8 +366,7 @@ public com.google.cloud.datalabeling.v1beta1.TextMetadata build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.TextMetadata result = - new com.google.cloud.datalabeling.v1beta1.TextMetadata(this); + com.google.cloud.datalabeling.v1beta1.TextMetadata result = new com.google.cloud.datalabeling.v1beta1.TextMetadata(this); result.languageCode_ = languageCode_; onBuilt(); return result; @@ -408,39 +376,38 @@ public com.google.cloud.datalabeling.v1beta1.TextMetadata buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.TextMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.TextMetadata) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.TextMetadata)other); } else { super.mergeFrom(other); return this; @@ -448,8 +415,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.TextMetadata other) { - if (other == com.google.cloud.datalabeling.v1beta1.TextMetadata.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.TextMetadata.getDefaultInstance()) return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; onChanged(); @@ -473,8 +439,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.TextMetadata) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.TextMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -486,8 +451,6 @@ public Builder mergeFrom( private java.lang.Object languageCode_ = ""; /** - * - * *
      * The language of this text, as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -495,13 +458,13 @@ public Builder mergeFrom(
      * 
* * string language_code = 1; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -510,8 +473,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * The language of this text, as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -519,14 +480,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageCode_ = b; return b; } else { @@ -534,8 +496,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * The language of this text, as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -543,22 +503,20 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 1; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { + public Builder setLanguageCode( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** - * - * *
      * The language of this text, as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -566,18 +524,15 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 1; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** - * - * *
      * The language of this text, as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -585,23 +540,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 1; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = 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); } @@ -611,12 +566,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.TextMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.TextMetadata) private static final com.google.cloud.datalabeling.v1beta1.TextMetadata DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.TextMetadata(); } @@ -625,16 +580,16 @@ public static com.google.cloud.datalabeling.v1beta1.TextMetadata getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -649,4 +604,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.TextMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadataOrBuilder.java similarity index 53% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadataOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadataOrBuilder.java index bcdccb95..49355f34 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadataOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadataOrBuilder.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; -public interface TextMetadataOrBuilder - extends +public interface TextMetadataOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.TextMetadata) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The language of this text, as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -33,13 +15,10 @@ public interface TextMetadataOrBuilder
    * 
* * string language_code = 1; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * The language of this text, as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -47,8 +26,8 @@ public interface TextMetadataOrBuilder
    * 
* * string language_code = 1; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayload.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayload.java similarity index 67% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayload.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayload.java index 00168461..1c4c9aa0 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayload.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayload.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/datalabeling/v1beta1/data_payloads.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Container of information about a piece of text.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextPayload} */ -public final class TextPayload extends com.google.protobuf.GeneratedMessageV3 - implements +public final class TextPayload extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.TextPayload) TextPayloadOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use TextPayload.newBuilder() to construct. private TextPayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextPayload() { textContent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new TextPayload(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private TextPayload( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private TextPayload( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - textContent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + textContent_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,39 +73,34 @@ private TextPayload( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads - .internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads - .internal_static_google_cloud_datalabeling_v1beta1_TextPayload_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_TextPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextPayload.class, - com.google.cloud.datalabeling.v1beta1.TextPayload.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextPayload.class, com.google.cloud.datalabeling.v1beta1.TextPayload.Builder.class); } public static final int TEXT_CONTENT_FIELD_NUMBER = 1; private volatile java.lang.Object textContent_; /** - * - * *
    * Text content.
    * 
* * string text_content = 1; - * * @return The textContent. */ @java.lang.Override @@ -132,29 +109,29 @@ public java.lang.String getTextContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); textContent_ = s; return s; } } /** - * - * *
    * Text content.
    * 
* * string text_content = 1; - * * @return The bytes for textContent. */ @java.lang.Override - public com.google.protobuf.ByteString getTextContentBytes() { + public com.google.protobuf.ByteString + getTextContentBytes() { java.lang.Object ref = textContent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); textContent_ = b; return b; } else { @@ -163,7 +140,6 @@ public com.google.protobuf.ByteString getTextContentBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +151,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(textContent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, textContent_); } @@ -199,15 +176,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.datalabeling.v1beta1.TextPayload)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.TextPayload other = - (com.google.cloud.datalabeling.v1beta1.TextPayload) obj; + com.google.cloud.datalabeling.v1beta1.TextPayload other = (com.google.cloud.datalabeling.v1beta1.TextPayload) obj; - if (!getTextContent().equals(other.getTextContent())) return false; + if (!getTextContent() + .equals(other.getTextContent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,126 +204,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.TextPayload 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.datalabeling.v1beta1.TextPayload parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextPayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.TextPayload parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextPayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.TextPayload parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.TextPayload parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.TextPayload parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.TextPayload parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.TextPayload parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.TextPayload parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.TextPayload parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextPayload parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.TextPayload parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.TextPayload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Container of information about a piece of text.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextPayload} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.TextPayload) com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads - .internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads - .internal_static_google_cloud_datalabeling_v1beta1_TextPayload_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_TextPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextPayload.class, - com.google.cloud.datalabeling.v1beta1.TextPayload.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextPayload.class, com.google.cloud.datalabeling.v1beta1.TextPayload.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.TextPayload.newBuilder() @@ -354,15 +322,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(); @@ -372,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads - .internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor; } @java.lang.Override @@ -393,8 +362,7 @@ public com.google.cloud.datalabeling.v1beta1.TextPayload build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextPayload buildPartial() { - com.google.cloud.datalabeling.v1beta1.TextPayload result = - new com.google.cloud.datalabeling.v1beta1.TextPayload(this); + com.google.cloud.datalabeling.v1beta1.TextPayload result = new com.google.cloud.datalabeling.v1beta1.TextPayload(this); result.textContent_ = textContent_; onBuilt(); return result; @@ -404,39 +372,38 @@ public com.google.cloud.datalabeling.v1beta1.TextPayload buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.TextPayload) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.TextPayload) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.TextPayload)other); } else { super.mergeFrom(other); return this; @@ -444,8 +411,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.TextPayload other) { - if (other == com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance()) return this; if (!other.getTextContent().isEmpty()) { textContent_ = other.textContent_; onChanged(); @@ -469,8 +435,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.TextPayload) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.TextPayload) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -482,20 +447,18 @@ public Builder mergeFrom( private java.lang.Object textContent_ = ""; /** - * - * *
      * Text content.
      * 
* * string text_content = 1; - * * @return The textContent. */ public java.lang.String getTextContent() { java.lang.Object ref = textContent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); textContent_ = s; return s; @@ -504,21 +467,20 @@ public java.lang.String getTextContent() { } } /** - * - * *
      * Text content.
      * 
* * string text_content = 1; - * * @return The bytes for textContent. */ - public com.google.protobuf.ByteString getTextContentBytes() { + public com.google.protobuf.ByteString + getTextContentBytes() { java.lang.Object ref = textContent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); textContent_ = b; return b; } else { @@ -526,68 +488,61 @@ public com.google.protobuf.ByteString getTextContentBytes() { } } /** - * - * *
      * Text content.
      * 
* * string text_content = 1; - * * @param value The textContent to set. * @return This builder for chaining. */ - public Builder setTextContent(java.lang.String value) { + public Builder setTextContent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + textContent_ = value; onChanged(); return this; } /** - * - * *
      * Text content.
      * 
* * string text_content = 1; - * * @return This builder for chaining. */ public Builder clearTextContent() { - + textContent_ = getDefaultInstance().getTextContent(); onChanged(); return this; } /** - * - * *
      * Text content.
      * 
* * string text_content = 1; - * * @param value The bytes for textContent to set. * @return This builder for chaining. */ - public Builder setTextContentBytes(com.google.protobuf.ByteString value) { + public Builder setTextContentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + textContent_ = 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); } @@ -597,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.TextPayload) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.TextPayload) private static final com.google.cloud.datalabeling.v1beta1.TextPayload DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.TextPayload(); } @@ -611,16 +566,16 @@ public static com.google.cloud.datalabeling.v1beta1.TextPayload getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextPayload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextPayload(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextPayload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextPayload(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -635,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.TextPayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayloadOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayloadOrBuilder.java new file mode 100644 index 00000000..f26f6d8b --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayloadOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_payloads.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface TextPayloadOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.TextPayload) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Text content.
+   * 
+ * + * string text_content = 1; + * @return The textContent. + */ + java.lang.String getTextContent(); + /** + *
+   * Text content.
+   * 
+ * + * string text_content = 1; + * @return The bytes for textContent. + */ + com.google.protobuf.ByteString + getTextContentBytes(); +} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegment.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegment.java similarity index 71% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegment.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegment.java index f6d46a8f..0d7f33f5 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegment.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * A time period inside of an example that has a time dimension (e.g. video).
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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,43 +52,39 @@ 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) { @@ -112,40 +92,35 @@ private TimeSegment( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TimeSegment.class, - com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder.class); + com.google.cloud.datalabeling.v1beta1.TimeSegment.class, com.google.cloud.datalabeling.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 @@ -153,26 +128,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.
@@ -188,15 +156,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 @@ -204,26 +169,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.
@@ -237,7 +195,6 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOffsetOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -249,7 +206,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());
     }
@@ -266,10 +224,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;
@@ -279,21 +239,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.datalabeling.v1beta1.TimeSegment)) {
       return super.equals(obj);
     }
-    com.google.cloud.datalabeling.v1beta1.TimeSegment other =
-        (com.google.cloud.datalabeling.v1beta1.TimeSegment) obj;
+    com.google.cloud.datalabeling.v1beta1.TimeSegment other = (com.google.cloud.datalabeling.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;
@@ -320,126 +281,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.datalabeling.v1beta1.TimeSegment 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.datalabeling.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.datalabeling.v1beta1.TimeSegment parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.TimeSegment parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.TimeSegment parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.datalabeling.v1beta1.TimeSegment parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.TimeSegment parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.datalabeling.v1beta1.TimeSegment parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.TimeSegment) com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TimeSegment.class, - com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder.class); + com.google.cloud.datalabeling.v1beta1.TimeSegment.class, com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.TimeSegment.newBuilder() @@ -447,15 +399,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(); @@ -475,9 +428,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor; } @java.lang.Override @@ -496,8 +449,7 @@ public com.google.cloud.datalabeling.v1beta1.TimeSegment build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TimeSegment buildPartial() { - com.google.cloud.datalabeling.v1beta1.TimeSegment result = - new com.google.cloud.datalabeling.v1beta1.TimeSegment(this); + com.google.cloud.datalabeling.v1beta1.TimeSegment result = new com.google.cloud.datalabeling.v1beta1.TimeSegment(this); if (startTimeOffsetBuilder_ == null) { result.startTimeOffset_ = startTimeOffset_; } else { @@ -516,39 +468,38 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.TimeSegment) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.TimeSegment) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.TimeSegment)other); } else { super.mergeFrom(other); return this; @@ -556,8 +507,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.TimeSegment other) { - if (other == com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance()) return this; if (other.hasStartTimeOffset()) { mergeStartTimeOffset(other.getStartTimeOffset()); } @@ -583,8 +533,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.TimeSegment) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.TimeSegment) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -596,49 +545,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.
@@ -660,8 +596,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.
@@ -669,7 +603,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();
@@ -680,8 +615,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.
@@ -693,9 +626,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;
         }
@@ -707,8 +638,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.
@@ -728,8 +657,6 @@ public Builder clearStartTimeOffset() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Start of the time segment (inclusive), represented as the duration since
      * the example start.
@@ -738,13 +665,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.
@@ -756,14 +681,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.
@@ -772,17 +694,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_;
@@ -790,49 +709,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.
@@ -854,8 +760,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.
@@ -863,7 +767,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();
@@ -874,8 +779,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.
@@ -887,9 +790,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;
         }
@@ -901,8 +802,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.
@@ -922,8 +821,6 @@ public Builder clearEndTimeOffset() {
       return this;
     }
     /**
-     *
-     *
      * 
      * End of the time segment (exclusive), represented as the duration since the
      * example start.
@@ -932,13 +829,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.
@@ -950,14 +845,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.
@@ -966,24 +858,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);
     }
 
@@ -993,12 +882,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.TimeSegment)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.TimeSegment)
   private static final com.google.cloud.datalabeling.v1beta1.TimeSegment DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.TimeSegment();
   }
@@ -1007,16 +896,16 @@ public static com.google.cloud.datalabeling.v1beta1.TimeSegment getDefaultInstan
     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;
@@ -1031,4 +920,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datalabeling.v1beta1.TimeSegment getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegmentOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegmentOrBuilder.java
similarity index 73%
rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegmentOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegmentOrBuilder.java
index 5d6ac6c8..438652cb 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegmentOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/annotation.proto
 
 package com.google.cloud.datalabeling.v1beta1;
 
-public interface TimeSegmentOrBuilder
-    extends
+public interface TimeSegmentOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequest.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequest.java
similarity index 66%
rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequest.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequest.java
index 4b4977cb..e3ef3865 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequest.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequest.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/datalabeling/v1beta1/data_labeling_service.proto
 
 package com.google.cloud.datalabeling.v1beta1;
 
 /**
- *
- *
  * 
  * Request message for UpdateEvaluationJob.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest} */ -public final class UpdateEvaluationJobRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateEvaluationJobRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) UpdateEvaluationJobRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateEvaluationJobRequest.newBuilder() to construct. private UpdateEvaluationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateEvaluationJobRequest() {} + private UpdateEvaluationJobRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateEvaluationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateEvaluationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,45 +52,39 @@ private UpdateEvaluationJobRequest( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder subBuilder = null; - if (evaluationJob_ != null) { - subBuilder = evaluationJob_.toBuilder(); - } - evaluationJob_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.EvaluationJob.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(evaluationJob_); - evaluationJob_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder subBuilder = null; + if (evaluationJob_ != null) { + subBuilder = evaluationJob_.toBuilder(); + } + evaluationJob_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.EvaluationJob.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(evaluationJob_); + evaluationJob_ = 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) { @@ -114,41 +92,34 @@ private UpdateEvaluationJobRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.class, - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.Builder.class); } public static final int EVALUATION_JOB_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.EvaluationJob evaluationJob_; /** - * - * *
    * Required. Evaluation job that is going to be updated.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the evaluationJob field is set. */ @java.lang.Override @@ -156,34 +127,23 @@ public boolean hasEvaluationJob() { return evaluationJob_ != null; } /** - * - * *
    * Required. Evaluation job that is going to be updated.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The evaluationJob. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EvaluationJob getEvaluationJob() { - return evaluationJob_ == null - ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() - : evaluationJob_; + return evaluationJob_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() : evaluationJob_; } /** - * - * *
    * Required. Evaluation job that is going to be updated.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluationJobOrBuilder() { @@ -193,8 +153,6 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluatio public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. Mask for which fields to update. You can only provide the
    * following fields:
@@ -205,9 +163,7 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluatio
    * commas.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -215,8 +171,6 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. Mask for which fields to update. You can only provide the
    * following fields:
@@ -227,9 +181,7 @@ public boolean hasUpdateMask() {
    * commas.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -237,8 +189,6 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. Mask for which fields to update. You can only provide the
    * following fields:
@@ -249,8 +199,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * commas.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -258,7 +207,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,7 +218,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 (evaluationJob_ != null) { output.writeMessage(1, getEvaluationJob()); } @@ -287,10 +236,12 @@ public int getSerializedSize() { size = 0; if (evaluationJob_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEvaluationJob()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getEvaluationJob()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -300,21 +251,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.datalabeling.v1beta1.UpdateEvaluationJobRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest other = - (com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) obj; + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest other = (com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) obj; if (hasEvaluationJob() != other.hasEvaluationJob()) return false; if (hasEvaluationJob()) { - if (!getEvaluationJob().equals(other.getEvaluationJob())) return false; + if (!getEvaluationJob() + .equals(other.getEvaluationJob())) 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; @@ -341,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest 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.datalabeling.v1beta1.UpdateEvaluationJobRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 UpdateEvaluationJob.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.class, - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.newBuilder() @@ -469,15 +411,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(); @@ -497,14 +440,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.getDefaultInstance(); } @@ -519,8 +461,7 @@ public com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest result = - new com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest(this); + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest result = new com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest(this); if (evaluationJobBuilder_ == null) { result.evaluationJob_ = evaluationJob_; } else { @@ -539,50 +480,46 @@ public com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest 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.datalabeling.v1beta1.UpdateEvaluationJobRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest other) { - if (other - == com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest other) { + if (other == com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.getDefaultInstance()) return this; if (other.hasEvaluationJob()) { mergeEvaluationJob(other.getEvaluationJob()); } @@ -608,9 +545,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -622,58 +557,39 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.EvaluationJob evaluationJob_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJob, - com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, - com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> - evaluationJobBuilder_; + com.google.cloud.datalabeling.v1beta1.EvaluationJob, com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> evaluationJobBuilder_; /** - * - * *
      * Required. Evaluation job that is going to be updated.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the evaluationJob field is set. */ public boolean hasEvaluationJob() { return evaluationJobBuilder_ != null || evaluationJob_ != null; } /** - * - * *
      * Required. Evaluation job that is going to be updated.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The evaluationJob. */ public com.google.cloud.datalabeling.v1beta1.EvaluationJob getEvaluationJob() { if (evaluationJobBuilder_ == null) { - return evaluationJob_ == null - ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() - : evaluationJob_; + return evaluationJob_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() : evaluationJob_; } else { return evaluationJobBuilder_.getMessage(); } } /** - * - * *
      * Required. Evaluation job that is going to be updated.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setEvaluationJob(com.google.cloud.datalabeling.v1beta1.EvaluationJob value) { if (evaluationJobBuilder_ == null) { @@ -689,15 +605,11 @@ public Builder setEvaluationJob(com.google.cloud.datalabeling.v1beta1.Evaluation return this; } /** - * - * *
      * Required. Evaluation job that is going to be updated.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setEvaluationJob( com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder builderForValue) { @@ -711,23 +623,17 @@ public Builder setEvaluationJob( return this; } /** - * - * *
      * Required. Evaluation job that is going to be updated.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeEvaluationJob(com.google.cloud.datalabeling.v1beta1.EvaluationJob value) { if (evaluationJobBuilder_ == null) { if (evaluationJob_ != null) { evaluationJob_ = - com.google.cloud.datalabeling.v1beta1.EvaluationJob.newBuilder(evaluationJob_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.EvaluationJob.newBuilder(evaluationJob_).mergeFrom(value).buildPartial(); } else { evaluationJob_ = value; } @@ -739,15 +645,11 @@ public Builder mergeEvaluationJob(com.google.cloud.datalabeling.v1beta1.Evaluati return this; } /** - * - * *
      * Required. Evaluation job that is going to be updated.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearEvaluationJob() { if (evaluationJobBuilder_ == null) { @@ -761,65 +663,48 @@ public Builder clearEvaluationJob() { return this; } /** - * - * *
      * Required. Evaluation job that is going to be updated.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder getEvaluationJobBuilder() { - + onChanged(); return getEvaluationJobFieldBuilder().getBuilder(); } /** - * - * *
      * Required. Evaluation job that is going to be updated.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder - getEvaluationJobOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluationJobOrBuilder() { if (evaluationJobBuilder_ != null) { return evaluationJobBuilder_.getMessageOrBuilder(); } else { - return evaluationJob_ == null - ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() - : evaluationJob_; + return evaluationJob_ == null ? + com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() : evaluationJob_; } } /** - * - * *
      * Required. Evaluation job that is going to be updated.
      * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJob, - com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, - com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> + com.google.cloud.datalabeling.v1beta1.EvaluationJob, com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> getEvaluationJobFieldBuilder() { if (evaluationJobBuilder_ == null) { - evaluationJobBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJob, - com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, - com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder>( - getEvaluationJob(), getParentForChildren(), isClean()); + evaluationJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.EvaluationJob, com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder>( + getEvaluationJob(), + getParentForChildren(), + isClean()); evaluationJob_ = null; } return evaluationJobBuilder_; @@ -827,13 +712,8 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder getEvaluation 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_; /** - * - * *
      * Optional. Mask for which fields to update. You can only provide the
      * following fields:
@@ -844,17 +724,13 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder getEvaluation
      * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Optional. Mask for which fields to update. You can only provide the
      * following fields:
@@ -865,23 +741,17 @@ public boolean hasUpdateMask() {
      * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @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(); } } /** - * - * *
      * Optional. Mask for which fields to update. You can only provide the
      * following fields:
@@ -892,8 +762,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -909,8 +778,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Mask for which fields to update. You can only provide the
      * following fields:
@@ -921,10 +788,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ - 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(); @@ -935,8 +802,6 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. Mask for which fields to update. You can only provide the
      * following fields:
@@ -947,14 +812,13 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
      * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ 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; } @@ -966,8 +830,6 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. Mask for which fields to update. You can only provide the
      * following fields:
@@ -978,8 +840,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -993,8 +854,6 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. Mask for which fields to update. You can only provide the
      * following fields:
@@ -1005,17 +864,14 @@ public Builder clearUpdateMask() {
      * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. Mask for which fields to update. You can only provide the
      * following fields:
@@ -1026,21 +882,17 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ 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_; } } /** - * - * *
      * Optional. Mask for which fields to update. You can only provide the
      * following fields:
@@ -1051,28 +903,24 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ 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); } @@ -1082,32 +930,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) - private static final com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest(); } - public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateEvaluationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateEvaluationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateEvaluationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateEvaluationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1119,8 +965,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequestOrBuilder.java similarity index 65% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequestOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequestOrBuilder.java index 763ac73e..162e5456 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequestOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequestOrBuilder.java @@ -1,72 +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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface UpdateEvaluationJobRequestOrBuilder - extends +public interface UpdateEvaluationJobRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Evaluation job that is going to be updated.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the evaluationJob field is set. */ boolean hasEvaluationJob(); /** - * - * *
    * Required. Evaluation job that is going to be updated.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; * @return The evaluationJob. */ com.google.cloud.datalabeling.v1beta1.EvaluationJob getEvaluationJob(); /** - * - * *
    * Required. Evaluation job that is going to be updated.
    * 
* - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluationJobOrBuilder(); /** - * - * *
    * Optional. Mask for which fields to update. You can only provide the
    * following fields:
@@ -77,15 +45,11 @@ public interface UpdateEvaluationJobRequestOrBuilder
    * commas.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. Mask for which fields to update. You can only provide the
    * following fields:
@@ -96,15 +60,11 @@ public interface UpdateEvaluationJobRequestOrBuilder
    * commas.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. Mask for which fields to update. You can only provide the
    * following fields:
@@ -115,8 +75,7 @@ public interface UpdateEvaluationJobRequestOrBuilder
    * commas.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Vertex.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Vertex.java similarity index 70% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Vertex.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Vertex.java index d937fc9e..12c7e1f8 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Vertex.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Vertex.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * A vertex represents a 2D point in the image.
  * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -28,29 +11,30 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.Vertex}
  */
-public final class Vertex extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Vertex extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.Vertex)
     VertexOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Vertex.newBuilder() to construct.
   private Vertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
-  private Vertex() {}
+  private Vertex() {
+  }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Vertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Vertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -69,23 +53,23 @@ private Vertex(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              x_ = input.readInt32();
-              break;
-            }
-          case 16:
-            {
-              y_ = input.readInt32();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+          case 8: {
+
+            x_ = input.readInt32();
+            break;
+          }
+          case 16: {
+
+            y_ = input.readInt32();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -93,39 +77,34 @@ private Vertex(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(
+          e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_Vertex_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Vertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.Vertex.class,
-            com.google.cloud.datalabeling.v1beta1.Vertex.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.Vertex.class, com.google.cloud.datalabeling.v1beta1.Vertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private int x_;
   /**
-   *
-   *
    * 
    * X coordinate.
    * 
* * int32 x = 1; - * * @return The x. */ @java.lang.Override @@ -136,14 +115,11 @@ public int getX() { public static final int Y_FIELD_NUMBER = 2; private int y_; /** - * - * *
    * Y coordinate.
    * 
* * int32 y = 2; - * * @return The y. */ @java.lang.Override @@ -152,7 +128,6 @@ public int getY() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -164,7 +139,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_ != 0) { output.writeInt32(1, x_); } @@ -181,10 +157,12 @@ public int getSerializedSize() { size = 0; if (x_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, x_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, x_); } if (y_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, y_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -194,16 +172,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.datalabeling.v1beta1.Vertex)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.Vertex other = - (com.google.cloud.datalabeling.v1beta1.Vertex) obj; + com.google.cloud.datalabeling.v1beta1.Vertex other = (com.google.cloud.datalabeling.v1beta1.Vertex) obj; - if (getX() != other.getX()) return false; - if (getY() != other.getY()) return false; + if (getX() + != other.getX()) return false; + if (getY() + != other.getY()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -224,104 +203,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.Vertex parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.datalabeling.v1beta1.Vertex parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.Vertex parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Vertex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.Vertex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Vertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.Vertex parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Vertex 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.datalabeling.v1beta1.Vertex parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.Vertex parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.Vertex parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.Vertex parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Vertex parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.Vertex parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.Vertex prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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.
    * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -329,23 +301,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.Vertex}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.Vertex)
       com.google.cloud.datalabeling.v1beta1.VertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_Vertex_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Vertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.Vertex.class,
-              com.google.cloud.datalabeling.v1beta1.Vertex.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.Vertex.class, com.google.cloud.datalabeling.v1beta1.Vertex.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.Vertex.newBuilder()
@@ -353,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();
@@ -373,9 +344,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor;
     }
 
     @java.lang.Override
@@ -394,8 +365,7 @@ public com.google.cloud.datalabeling.v1beta1.Vertex build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.Vertex buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.Vertex result =
-          new com.google.cloud.datalabeling.v1beta1.Vertex(this);
+      com.google.cloud.datalabeling.v1beta1.Vertex result = new com.google.cloud.datalabeling.v1beta1.Vertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -406,39 +376,38 @@ public com.google.cloud.datalabeling.v1beta1.Vertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
-
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.setField(field, value);
     }
-
     @java.lang.Override
-    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(
+        com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
-
     @java.lang.Override
-    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(
+        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
-
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
-
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field,
+        java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
-
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.Vertex) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Vertex) other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Vertex)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -482,16 +451,13 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int x_;
+    private int x_ ;
     /**
-     *
-     *
      * 
      * X coordinate.
      * 
* * int32 x = 1; - * * @return The x. */ @java.lang.Override @@ -499,51 +465,42 @@ public int getX() { return x_; } /** - * - * *
      * X coordinate.
      * 
* * int32 x = 1; - * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(int value) { - + x_ = value; onChanged(); return this; } /** - * - * *
      * X coordinate.
      * 
* * int32 x = 1; - * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0; onChanged(); return this; } - private int y_; + private int y_ ; /** - * - * *
      * Y coordinate.
      * 
* * int32 y = 2; - * * @return The y. */ @java.lang.Override @@ -551,43 +508,37 @@ public int getY() { return y_; } /** - * - * *
      * Y coordinate.
      * 
* * int32 y = 2; - * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(int value) { - + y_ = value; onChanged(); return this; } /** - * - * *
      * Y coordinate.
      * 
* * int32 y = 2; - * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 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); } @@ -597,12 +548,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.Vertex) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Vertex) private static final com.google.cloud.datalabeling.v1beta1.Vertex DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.Vertex(); } @@ -611,16 +562,16 @@ public static com.google.cloud.datalabeling.v1beta1.Vertex getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Vertex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Vertex(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Vertex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Vertex(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -635,4 +586,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.Vertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VertexOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VertexOrBuilder.java new file mode 100644 index 00000000..b8f5a118 --- /dev/null +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VertexOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/annotation.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface VertexOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.Vertex) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * X coordinate.
+   * 
+ * + * int32 x = 1; + * @return The x. + */ + int getX(); + + /** + *
+   * Y coordinate.
+   * 
+ * + * int32 y = 2; + * @return The y. + */ + int getY(); +} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotation.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotation.java similarity index 68% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotation.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotation.java index 75e173ff..693567a8 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotation.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotation.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Video classification annotation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation} */ -public final class VideoClassificationAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VideoClassificationAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.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) { super(builder); } - - private VideoClassificationAnnotation() {} + private VideoClassificationAnnotation() { + } @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) @@ -68,47 +52,39 @@ private VideoClassificationAnnotation( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder subBuilder = null; - if (timeSegment_ != null) { - subBuilder = timeSegment_.toBuilder(); - } - timeSegment_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.TimeSegment.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeSegment_); - timeSegment_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder subBuilder = null; + if (timeSegment_ != null) { + subBuilder = timeSegment_.toBuilder(); + } + timeSegment_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.TimeSegment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeSegment_); + timeSegment_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; - if (annotationSpec_ != null) { - subBuilder = annotationSpec_.toBuilder(); - } - annotationSpec_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotationSpec_); - annotationSpec_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; + if (annotationSpec_ != null) { + subBuilder = annotationSpec_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + annotationSpec_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotationSpec_); + annotationSpec_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -116,39 +92,34 @@ private VideoClassificationAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.class, - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.class, com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder.class); } public static final int TIME_SEGMENT_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.TimeSegment timeSegment_; /** - * - * *
    * The time segment of the video to which the annotation applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 1; - * * @return Whether the timeSegment field is set. */ @java.lang.Override @@ -156,25 +127,18 @@ public boolean hasTimeSegment() { return timeSegment_ != null; } /** - * - * *
    * The time segment of the video to which the annotation applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 1; - * * @return The timeSegment. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TimeSegment getTimeSegment() { - return timeSegment_ == null - ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() - : timeSegment_; + return timeSegment_ == null ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() : timeSegment_; } /** - * - * *
    * The time segment of the video to which the annotation applies.
    * 
@@ -189,14 +153,11 @@ public com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegment public static final int ANNOTATION_SPEC_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; /** - * - * *
    * Label of the segment specified by time_segment.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 2; - * * @return Whether the annotationSpec field is set. */ @java.lang.Override @@ -204,25 +165,18 @@ public boolean hasAnnotationSpec() { return annotationSpec_ != null; } /** - * - * *
    * Label of the segment specified by time_segment.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 2; - * * @return The annotationSpec. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } /** - * - * *
    * Label of the segment specified by time_segment.
    * 
@@ -230,13 +184,11 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 2; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder - getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { return getAnnotationSpec(); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -248,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 (timeSegment_ != null) { output.writeMessage(1, getTimeSegment()); } @@ -265,10 +218,12 @@ public int getSerializedSize() { size = 0; if (timeSegment_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTimeSegment()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getTimeSegment()); } if (annotationSpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAnnotationSpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAnnotationSpec()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -278,21 +233,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.datalabeling.v1beta1.VideoClassificationAnnotation)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation other = - (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) obj; + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation other = (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) obj; if (hasTimeSegment() != other.hasTimeSegment()) return false; if (hasTimeSegment()) { - if (!getTimeSegment().equals(other.getTimeSegment())) return false; + if (!getTimeSegment() + .equals(other.getTimeSegment())) return false; } if (hasAnnotationSpec() != other.hasAnnotationSpec()) return false; if (hasAnnotationSpec()) { - if (!getAnnotationSpec().equals(other.getAnnotationSpec())) return false; + if (!getAnnotationSpec() + .equals(other.getAnnotationSpec())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -319,145 +275,134 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation 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.datalabeling.v1beta1.VideoClassificationAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.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.datalabeling.v1beta1.VideoClassificationAnnotation parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.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.datalabeling.v1beta1.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.datalabeling.v1beta1.VideoClassificationAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.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); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.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 - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Video classification annotation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.VideoClassificationAnnotation) com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.class, - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.class, com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.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(); @@ -477,16 +422,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.getDefaultInstance(); } @java.lang.Override @@ -500,8 +443,7 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation build @java.lang.Override public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation buildPartial() { - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation result = - new com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation(this); + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation result = new com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation(this); if (timeSegmentBuilder_ == null) { result.timeSegment_ = timeSegment_; } else { @@ -520,51 +462,46 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation 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.datalabeling.v1beta1.VideoClassificationAnnotation) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation other) { - if (other - == com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation other) { + if (other == com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.getDefaultInstance()) return this; if (other.hasTimeSegment()) { mergeTimeSegment(other.getTimeSegment()); } @@ -590,9 +527,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -604,47 +539,34 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.TimeSegment timeSegment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TimeSegment, - com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, - com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> - timeSegmentBuilder_; + com.google.cloud.datalabeling.v1beta1.TimeSegment, com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> timeSegmentBuilder_; /** - * - * *
      * The time segment of the video to which the annotation applies.
      * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 1; - * * @return Whether the timeSegment field is set. */ public boolean hasTimeSegment() { return timeSegmentBuilder_ != null || timeSegment_ != null; } /** - * - * *
      * The time segment of the video to which the annotation applies.
      * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 1; - * * @return The timeSegment. */ public com.google.cloud.datalabeling.v1beta1.TimeSegment getTimeSegment() { if (timeSegmentBuilder_ == null) { - return timeSegment_ == null - ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() - : timeSegment_; + return timeSegment_ == null ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() : timeSegment_; } else { return timeSegmentBuilder_.getMessage(); } } /** - * - * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -665,8 +587,6 @@ public Builder setTimeSegment(com.google.cloud.datalabeling.v1beta1.TimeSegment return this; } /** - * - * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -685,8 +605,6 @@ public Builder setTimeSegment( return this; } /** - * - * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -697,9 +615,7 @@ public Builder mergeTimeSegment(com.google.cloud.datalabeling.v1beta1.TimeSegmen if (timeSegmentBuilder_ == null) { if (timeSegment_ != null) { timeSegment_ = - com.google.cloud.datalabeling.v1beta1.TimeSegment.newBuilder(timeSegment_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.TimeSegment.newBuilder(timeSegment_).mergeFrom(value).buildPartial(); } else { timeSegment_ = value; } @@ -711,8 +627,6 @@ public Builder mergeTimeSegment(com.google.cloud.datalabeling.v1beta1.TimeSegmen return this; } /** - * - * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -731,8 +645,6 @@ public Builder clearTimeSegment() { return this; } /** - * - * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -740,13 +652,11 @@ public Builder clearTimeSegment() { * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 1; */ public com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder getTimeSegmentBuilder() { - + onChanged(); return getTimeSegmentFieldBuilder().getBuilder(); } /** - * - * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -757,14 +667,11 @@ public com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegment if (timeSegmentBuilder_ != null) { return timeSegmentBuilder_.getMessageOrBuilder(); } else { - return timeSegment_ == null - ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() - : timeSegment_; + return timeSegment_ == null ? + com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() : timeSegment_; } } /** - * - * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -772,17 +679,14 @@ public com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegment * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TimeSegment, - com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, - com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> + com.google.cloud.datalabeling.v1beta1.TimeSegment, com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> getTimeSegmentFieldBuilder() { if (timeSegmentBuilder_ == null) { - timeSegmentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TimeSegment, - com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, - com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder>( - getTimeSegment(), getParentForChildren(), isClean()); + timeSegmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TimeSegment, com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder>( + getTimeSegment(), + getParentForChildren(), + isClean()); timeSegment_ = null; } return timeSegmentBuilder_; @@ -790,47 +694,34 @@ public com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegment private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> - annotationSpecBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecBuilder_; /** - * - * *
      * Label of the segment specified by time_segment.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 2; - * * @return Whether the annotationSpec field is set. */ public boolean hasAnnotationSpec() { return annotationSpecBuilder_ != null || annotationSpec_ != null; } /** - * - * *
      * Label of the segment specified by time_segment.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 2; - * * @return The annotationSpec. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { if (annotationSpecBuilder_ == null) { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } else { return annotationSpecBuilder_.getMessage(); } } /** - * - * *
      * Label of the segment specified by time_segment.
      * 
@@ -851,8 +742,6 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio return this; } /** - * - * *
      * Label of the segment specified by time_segment.
      * 
@@ -871,8 +760,6 @@ public Builder setAnnotationSpec( return this; } /** - * - * *
      * Label of the segment specified by time_segment.
      * 
@@ -883,9 +770,7 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat if (annotationSpecBuilder_ == null) { if (annotationSpec_ != null) { annotationSpec_ = - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_).mergeFrom(value).buildPartial(); } else { annotationSpec_ = value; } @@ -897,8 +782,6 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat return this; } /** - * - * *
      * Label of the segment specified by time_segment.
      * 
@@ -917,8 +800,6 @@ public Builder clearAnnotationSpec() { return this; } /** - * - * *
      * Label of the segment specified by time_segment.
      * 
@@ -926,32 +807,26 @@ public Builder clearAnnotationSpec() { * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 2; */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotationSpecBuilder() { - + onChanged(); return getAnnotationSpecFieldBuilder().getBuilder(); } /** - * - * *
      * Label of the segment specified by time_segment.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 2; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder - getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { if (annotationSpecBuilder_ != null) { return annotationSpecBuilder_.getMessageOrBuilder(); } else { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } } /** - * - * *
      * Label of the segment specified by time_segment.
      * 
@@ -959,24 +834,21 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> getAnnotationSpecFieldBuilder() { if (annotationSpecBuilder_ == null) { - annotationSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( - getAnnotationSpec(), getParentForChildren(), isClean()); + annotationSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( + getAnnotationSpec(), + getParentForChildren(), + isClean()); annotationSpec_ = null; } return annotationSpecBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -986,32 +858,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) - private static final com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation(); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.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; @@ -1023,8 +893,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotationOrBuilder.java similarity index 72% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotationOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotationOrBuilder.java index d4251274..4de617a0 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotationOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotationOrBuilder.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface VideoClassificationAnnotationOrBuilder - extends +public interface VideoClassificationAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The time segment of the video to which the annotation applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 1; - * * @return Whether the timeSegment field is set. */ boolean hasTimeSegment(); /** - * - * *
    * The time segment of the video to which the annotation applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 1; - * * @return The timeSegment. */ com.google.cloud.datalabeling.v1beta1.TimeSegment getTimeSegment(); /** - * - * *
    * The time segment of the video to which the annotation applies.
    * 
@@ -59,32 +35,24 @@ public interface VideoClassificationAnnotationOrBuilder com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegmentOrBuilder(); /** - * - * *
    * Label of the segment specified by time_segment.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 2; - * * @return Whether the annotationSpec field is set. */ boolean hasAnnotationSpec(); /** - * - * *
    * Label of the segment specified by time_segment.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 2; - * * @return The annotationSpec. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec(); /** - * - * *
    * Label of the segment specified by time_segment.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfig.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfig.java similarity index 64% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfig.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfig.java index 963dd503..281a5efc 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfig.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Config for video classification human labeling task.
  * Currently two types of video classification are supported:
@@ -31,31 +14,31 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoClassificationConfig}
  */
-public final class VideoClassificationConfig extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class VideoClassificationConfig extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.VideoClassificationConfig)
     VideoClassificationConfigOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use VideoClassificationConfig.newBuilder() to construct.
   private VideoClassificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private VideoClassificationConfig() {
     annotationSpecSetConfigs_ = 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 VideoClassificationConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private VideoClassificationConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -75,34 +58,27 @@ private VideoClassificationConfig(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                annotationSpecSetConfigs_ =
-                    new java.util.ArrayList<
-                        com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig
-                            .AnnotationSpecSetConfig>();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              annotationSpecSetConfigs_.add(
-                  input.readMessage(
-                      com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig
-                          .AnnotationSpecSetConfig.parser(),
-                      extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              annotationSpecSetConfigs_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 16:
-            {
-              applyShotDetection_ = input.readBool();
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            annotationSpecSetConfigs_.add(
+                input.readMessage(com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.parser(), extensionRegistry));
+            break;
+          }
+          case 16: {
+
+            applyShotDetection_ = input.readBool();
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -110,111 +86,96 @@ private VideoClassificationConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } 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)) {
-        annotationSpecSetConfigs_ =
-            java.util.Collections.unmodifiableList(annotationSpecSetConfigs_);
+        annotationSpecSetConfigs_ = java.util.Collections.unmodifiableList(annotationSpecSetConfigs_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass
-        .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.class,
-            com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.class, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder.class);
   }
 
-  public interface AnnotationSpecSetConfigOrBuilder
-      extends
+  public interface AnnotationSpecSetConfigOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ java.lang.String getAnnotationSpecSet(); /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ - com.google.protobuf.ByteString getAnnotationSpecSetBytes(); + com.google.protobuf.ByteString + getAnnotationSpecSetBytes(); /** - * - * *
      * Optional. If allow_multi_label is true, contributors are able to
      * choose multiple labels from one annotation spec set.
      * 
* * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMultiLabel. */ boolean getAllowMultiLabel(); } /** - * - * *
    * Annotation spec set with the setting of allowing multi labels or not.
    * 
* - * Protobuf type {@code - * google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig} + * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig} */ - public static final class AnnotationSpecSetConfig extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class AnnotationSpecSetConfig extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig) AnnotationSpecSetConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnnotationSpecSetConfig.newBuilder() to construct. private AnnotationSpecSetConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnnotationSpecSetConfig() { annotationSpecSet_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new AnnotationSpecSetConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private AnnotationSpecSetConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -233,25 +194,24 @@ private AnnotationSpecSetConfig( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - annotationSpecSet_ = s; - break; - } - case 16: - { - allowMultiLabel_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + annotationSpecSet_ = s; + break; + } + case 16: { + + allowMultiLabel_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -259,41 +219,34 @@ private AnnotationSpecSetConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig.class, - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.class, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.Builder.class); } public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER = 1; private volatile java.lang.Object annotationSpecSet_; /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ @java.lang.Override @@ -302,29 +255,29 @@ public java.lang.String getAnnotationSpecSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; } } /** - * - * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ @java.lang.Override - public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -335,15 +288,12 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { public static final int ALLOW_MULTI_LABEL_FIELD_NUMBER = 2; private boolean allowMultiLabel_; /** - * - * *
      * Optional. If allow_multi_label is true, contributors are able to
      * choose multiple labels from one annotation spec set.
      * 
* * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMultiLabel. */ @java.lang.Override @@ -352,7 +302,6 @@ public boolean getAllowMultiLabel() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -364,7 +313,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(annotationSpecSet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecSet_); } @@ -384,7 +334,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, annotationSpecSet_); } if (allowMultiLabel_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowMultiLabel_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, allowMultiLabel_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -394,22 +345,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.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig)) { + if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - other = - (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig) - obj; + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig other = (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig) obj; - if (!getAnnotationSpecSet().equals(other.getAnnotationSpecSet())) return false; - if (getAllowMultiLabel() != other.getAllowMultiLabel()) return false; + if (!getAnnotationSpecSet() + .equals(other.getAnnotationSpecSet())) return false; + if (getAllowMultiLabel() + != other.getAllowMultiLabel()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -424,120 +370,95 @@ public int hashCode() { hash = (37 * hash) + ANNOTATION_SPEC_SET_FIELD_NUMBER; hash = (53 * hash) + getAnnotationSpecSet().hashCode(); hash = (37 * hash) + ALLOW_MULTI_LABEL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMultiLabel()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMultiLabel()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig 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.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig - 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.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig 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.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig - 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.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig 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.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig - 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.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig 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.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -547,53 +468,44 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * Annotation spec set with the setting of allowing multi labels or not.
      * 
* - * Protobuf type {@code - * google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig} + * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig) - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor; + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig.class, - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.class, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.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(); @@ -605,23 +517,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - build() { - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - result = buildPartial(); + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig build() { + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -629,12 +537,8 @@ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - buildPartial() { - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - result = - new com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig(this); + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig buildPartial() { + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig result = new com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig(this); result.annotationSpecSet_ = annotationSpecSet_; result.allowMultiLabel_ = allowMultiLabel_; onBuilt(); @@ -645,59 +549,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.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig) - other); + if (other instanceof com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig) { + return mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - other) { - if (other - == com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig other) { + if (other == com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.getDefaultInstance()) return this; if (!other.getAnnotationSpecSet().isEmpty()) { annotationSpecSet_ = other.annotationSpecSet_; onChanged(); @@ -720,15 +611,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - parsedMessage = null; + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -740,20 +627,18 @@ public Builder mergeFrom( private java.lang.Object annotationSpecSet_ = ""; /** - * - * *
        * Required. Annotation spec set resource name.
        * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The annotationSpecSet. */ public java.lang.String getAnnotationSpecSet() { java.lang.Object ref = annotationSpecSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; @@ -762,21 +647,20 @@ public java.lang.String getAnnotationSpecSet() { } } /** - * - * *
        * Required. Annotation spec set resource name.
        * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return The bytes for annotationSpecSet. */ - public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString + getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -784,77 +668,67 @@ public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { } } /** - * - * *
        * Required. Annotation spec set resource name.
        * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSet(java.lang.String value) { + public Builder setAnnotationSpecSet( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecSet_ = value; onChanged(); return this; } /** - * - * *
        * Required. Annotation spec set resource name.
        * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @return This builder for chaining. */ public Builder clearAnnotationSpecSet() { - + annotationSpecSet_ = getDefaultInstance().getAnnotationSpecSet(); onChanged(); return this; } /** - * - * *
        * Required. Annotation spec set resource name.
        * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecSetBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecSet_ = value; onChanged(); return this; } - private boolean allowMultiLabel_; + private boolean allowMultiLabel_ ; /** - * - * *
        * Optional. If allow_multi_label is true, contributors are able to
        * choose multiple labels from one annotation spec set.
        * 
* * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The allowMultiLabel. */ @java.lang.Override @@ -862,43 +736,36 @@ public boolean getAllowMultiLabel() { return allowMultiLabel_; } /** - * - * *
        * Optional. If allow_multi_label is true, contributors are able to
        * choose multiple labels from one annotation spec set.
        * 
* * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The allowMultiLabel to set. * @return This builder for chaining. */ public Builder setAllowMultiLabel(boolean value) { - + allowMultiLabel_ = value; onChanged(); return this; } /** - * - * *
        * Optional. If allow_multi_label is true, contributors are able to
        * choose multiple labels from one annotation spec set.
        * 
* * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearAllowMultiLabel() { - + allowMultiLabel_ = false; onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -911,36 +778,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig) - private static final com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig(); + DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig(); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotationSpecSetConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotationSpecSetConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotationSpecSetConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotationSpecSetConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -952,19 +813,15 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int ANNOTATION_SPEC_SET_CONFIGS_FIELD_NUMBER = 1; - private java.util.List< - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig> - annotationSpecSetConfigs_; + private java.util.List annotationSpecSetConfigs_; /** - * - * *
    * Required. The list of annotation spec set configs.
    * Since watching a video clip takes much longer time than an image, we
@@ -974,19 +831,13 @@ public com.google.protobuf.Parser getParserForType() {
    * label) from each group.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List< - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig> - getAnnotationSpecSetConfigsList() { + public java.util.List getAnnotationSpecSetConfigsList() { return annotationSpecSetConfigs_; } /** - * - * *
    * Required. The list of annotation spec set configs.
    * Since watching a video clip takes much longer time than an image, we
@@ -996,21 +847,14 @@ public com.google.protobuf.Parser getParserForType() {
    * label) from each group.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfigOrBuilder> + public java.util.List getAnnotationSpecSetConfigsOrBuilderList() { return annotationSpecSetConfigs_; } /** - * - * *
    * Required. The list of annotation spec set configs.
    * Since watching a video clip takes much longer time than an image, we
@@ -1020,17 +864,13 @@ public com.google.protobuf.Parser getParserForType() {
    * label) from each group.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public int getAnnotationSpecSetConfigsCount() { return annotationSpecSetConfigs_.size(); } /** - * - * *
    * Required. The list of annotation spec set configs.
    * Since watching a video clip takes much longer time than an image, we
@@ -1040,18 +880,13 @@ public int getAnnotationSpecSetConfigsCount() {
    * label) from each group.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - getAnnotationSpecSetConfigs(int index) { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig getAnnotationSpecSetConfigs(int index) { return annotationSpecSetConfigs_.get(index); } /** - * - * *
    * Required. The list of annotation spec set configs.
    * Since watching a video clip takes much longer time than an image, we
@@ -1061,28 +896,22 @@ public int getAnnotationSpecSetConfigsCount() {
    * label) from each group.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfigOrBuilder - getAnnotationSpecSetConfigsOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfigOrBuilder getAnnotationSpecSetConfigsOrBuilder( + int index) { return annotationSpecSetConfigs_.get(index); } public static final int APPLY_SHOT_DETECTION_FIELD_NUMBER = 2; private boolean applyShotDetection_; /** - * - * *
    * Optional. Option to apply shot detection on the video.
    * 
* * bool apply_shot_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The applyShotDetection. */ @java.lang.Override @@ -1091,7 +920,6 @@ public boolean getApplyShotDetection() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1103,7 +931,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 < annotationSpecSetConfigs_.size(); i++) { output.writeMessage(1, annotationSpecSetConfigs_.get(i)); } @@ -1120,12 +949,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < annotationSpecSetConfigs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, annotationSpecSetConfigs_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, annotationSpecSetConfigs_.get(i)); } if (applyShotDetection_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, applyShotDetection_); + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, applyShotDetection_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1135,17 +964,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.datalabeling.v1beta1.VideoClassificationConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig other = - (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) obj; + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig other = (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) obj; - if (!getAnnotationSpecSetConfigsList().equals(other.getAnnotationSpecSetConfigsList())) - return false; - if (getApplyShotDetection() != other.getApplyShotDetection()) return false; + if (!getAnnotationSpecSetConfigsList() + .equals(other.getAnnotationSpecSetConfigsList())) return false; + if (getApplyShotDetection() + != other.getApplyShotDetection()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1162,111 +991,104 @@ public int hashCode() { hash = (53 * hash) + getAnnotationSpecSetConfigsList().hashCode(); } hash = (37 * hash) + APPLY_SHOT_DETECTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getApplyShotDetection()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getApplyShotDetection()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig 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.datalabeling.v1beta1.VideoClassificationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Config for video classification human labeling task.
    * Currently two types of video classification are supported:
@@ -1277,23 +1099,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoClassificationConfig}
    */
-  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
-      implements
+  public static final class Builder extends
+      com.google.protobuf.GeneratedMessageV3.Builder implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.VideoClassificationConfig)
       com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.class,
-              com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.class, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.newBuilder()
@@ -1301,17 +1121,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) {
         getAnnotationSpecSetConfigsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1327,14 +1147,13 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass
-          .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig
-        getDefaultInstanceForType() {
+    public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig getDefaultInstanceForType() {
       return com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance();
     }
 
@@ -1349,13 +1168,11 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig result =
-          new com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig(this);
+      com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig result = new com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig(this);
       int from_bitField0_ = bitField0_;
       if (annotationSpecSetConfigsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          annotationSpecSetConfigs_ =
-              java.util.Collections.unmodifiableList(annotationSpecSetConfigs_);
+          annotationSpecSetConfigs_ = java.util.Collections.unmodifiableList(annotationSpecSetConfigs_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.annotationSpecSetConfigs_ = annotationSpecSetConfigs_;
@@ -1371,50 +1188,46 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig 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.datalabeling.v1beta1.VideoClassificationConfig) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig)other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(
-        com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig other) {
-      if (other
-          == com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance())
-        return this;
+    public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig other) {
+      if (other == com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance()) return this;
       if (annotationSpecSetConfigsBuilder_ == null) {
         if (!other.annotationSpecSetConfigs_.isEmpty()) {
           if (annotationSpecSetConfigs_.isEmpty()) {
@@ -1433,10 +1246,9 @@ public Builder mergeFrom(
             annotationSpecSetConfigsBuilder_ = null;
             annotationSpecSetConfigs_ = other.annotationSpecSetConfigs_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            annotationSpecSetConfigsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getAnnotationSpecSetConfigsFieldBuilder()
-                    : null;
+            annotationSpecSetConfigsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getAnnotationSpecSetConfigsFieldBuilder() : null;
           } else {
             annotationSpecSetConfigsBuilder_.addAllMessages(other.annotationSpecSetConfigs_);
           }
@@ -1464,9 +1276,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig)
-                e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1475,34 +1285,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
-    private java.util.List<
-            com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig>
-        annotationSpecSetConfigs_ = java.util.Collections.emptyList();
-
+    private java.util.List annotationSpecSetConfigs_ =
+      java.util.Collections.emptyList();
     private void ensureAnnotationSpecSetConfigsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        annotationSpecSetConfigs_ =
-            new java.util.ArrayList<
-                com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig
-                    .AnnotationSpecSetConfig>(annotationSpecSetConfigs_);
+        annotationSpecSetConfigs_ = new java.util.ArrayList(annotationSpecSetConfigs_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig,
-            com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig
-                .Builder,
-            com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig
-                .AnnotationSpecSetConfigOrBuilder>
-        annotationSpecSetConfigsBuilder_;
+        com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfigOrBuilder> annotationSpecSetConfigsBuilder_;
 
     /**
-     *
-     *
      * 
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1512,13 +1309,9 @@ private void ensureAnnotationSpecSetConfigsIsMutable() {
      * label) from each group.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List< - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig> - getAnnotationSpecSetConfigsList() { + public java.util.List getAnnotationSpecSetConfigsList() { if (annotationSpecSetConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(annotationSpecSetConfigs_); } else { @@ -1526,8 +1319,6 @@ private void ensureAnnotationSpecSetConfigsIsMutable() { } } /** - * - * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1537,9 +1328,7 @@ private void ensureAnnotationSpecSetConfigsIsMutable() {
      * label) from each group.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ public int getAnnotationSpecSetConfigsCount() { if (annotationSpecSetConfigsBuilder_ == null) { @@ -1549,8 +1338,6 @@ public int getAnnotationSpecSetConfigsCount() { } } /** - * - * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1560,12 +1347,9 @@ public int getAnnotationSpecSetConfigsCount() {
      * label) from each group.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - getAnnotationSpecSetConfigs(int index) { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig getAnnotationSpecSetConfigs(int index) { if (annotationSpecSetConfigsBuilder_ == null) { return annotationSpecSetConfigs_.get(index); } else { @@ -1573,8 +1357,6 @@ public int getAnnotationSpecSetConfigsCount() { } } /** - * - * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1584,14 +1366,10 @@ public int getAnnotationSpecSetConfigsCount() {
      * label) from each group.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAnnotationSpecSetConfigs( - int index, - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - value) { + int index, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig value) { if (annotationSpecSetConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1605,8 +1383,6 @@ public Builder setAnnotationSpecSetConfigs( return this; } /** - * - * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1616,15 +1392,10 @@ public Builder setAnnotationSpecSetConfigs(
      * label) from each group.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setAnnotationSpecSetConfigs( - int index, - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - .Builder - builderForValue) { + int index, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.Builder builderForValue) { if (annotationSpecSetConfigsBuilder_ == null) { ensureAnnotationSpecSetConfigsIsMutable(); annotationSpecSetConfigs_.set(index, builderForValue.build()); @@ -1635,8 +1406,6 @@ public Builder setAnnotationSpecSetConfigs( return this; } /** - * - * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1646,13 +1415,9 @@ public Builder setAnnotationSpecSetConfigs(
      * label) from each group.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public Builder addAnnotationSpecSetConfigs( - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - value) { + public Builder addAnnotationSpecSetConfigs(com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig value) { if (annotationSpecSetConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1666,8 +1431,6 @@ public Builder addAnnotationSpecSetConfigs( return this; } /** - * - * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1677,14 +1440,10 @@ public Builder addAnnotationSpecSetConfigs(
      * label) from each group.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAnnotationSpecSetConfigs( - int index, - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - value) { + int index, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig value) { if (annotationSpecSetConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1698,8 +1457,6 @@ public Builder addAnnotationSpecSetConfigs( return this; } /** - * - * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1709,14 +1466,10 @@ public Builder addAnnotationSpecSetConfigs(
      * label) from each group.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAnnotationSpecSetConfigs( - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - .Builder - builderForValue) { + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.Builder builderForValue) { if (annotationSpecSetConfigsBuilder_ == null) { ensureAnnotationSpecSetConfigsIsMutable(); annotationSpecSetConfigs_.add(builderForValue.build()); @@ -1727,8 +1480,6 @@ public Builder addAnnotationSpecSetConfigs( return this; } /** - * - * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1738,15 +1489,10 @@ public Builder addAnnotationSpecSetConfigs(
      * label) from each group.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAnnotationSpecSetConfigs( - int index, - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - .Builder - builderForValue) { + int index, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.Builder builderForValue) { if (annotationSpecSetConfigsBuilder_ == null) { ensureAnnotationSpecSetConfigsIsMutable(); annotationSpecSetConfigs_.add(index, builderForValue.build()); @@ -1757,8 +1503,6 @@ public Builder addAnnotationSpecSetConfigs( return this; } /** - * - * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1768,19 +1512,14 @@ public Builder addAnnotationSpecSetConfigs(
      * label) from each group.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder addAllAnnotationSpecSetConfigs( - java.lang.Iterable< - ? extends - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig> - values) { + java.lang.Iterable values) { if (annotationSpecSetConfigsBuilder_ == null) { ensureAnnotationSpecSetConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationSpecSetConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, annotationSpecSetConfigs_); onChanged(); } else { annotationSpecSetConfigsBuilder_.addAllMessages(values); @@ -1788,8 +1527,6 @@ public Builder addAllAnnotationSpecSetConfigs( return this; } /** - * - * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1799,9 +1536,7 @@ public Builder addAllAnnotationSpecSetConfigs(
      * label) from each group.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearAnnotationSpecSetConfigs() { if (annotationSpecSetConfigsBuilder_ == null) { @@ -1814,8 +1549,6 @@ public Builder clearAnnotationSpecSetConfigs() { return this; } /** - * - * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1825,9 +1558,7 @@ public Builder clearAnnotationSpecSetConfigs() {
      * label) from each group.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ public Builder removeAnnotationSpecSetConfigs(int index) { if (annotationSpecSetConfigsBuilder_ == null) { @@ -1840,8 +1571,6 @@ public Builder removeAnnotationSpecSetConfigs(int index) { return this; } /** - * - * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1851,18 +1580,13 @@ public Builder removeAnnotationSpecSetConfigs(int index) {
      * label) from each group.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - .Builder - getAnnotationSpecSetConfigsBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.Builder getAnnotationSpecSetConfigsBuilder( + int index) { return getAnnotationSpecSetConfigsFieldBuilder().getBuilder(index); } /** - * - * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1872,22 +1596,16 @@ public Builder removeAnnotationSpecSetConfigs(int index) {
      * label) from each group.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfigOrBuilder - getAnnotationSpecSetConfigsOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfigOrBuilder getAnnotationSpecSetConfigsOrBuilder( + int index) { if (annotationSpecSetConfigsBuilder_ == null) { - return annotationSpecSetConfigs_.get(index); - } else { + return annotationSpecSetConfigs_.get(index); } else { return annotationSpecSetConfigsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1897,15 +1615,10 @@ public Builder removeAnnotationSpecSetConfigs(int index) {
      * label) from each group.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List< - ? extends - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfigOrBuilder> - getAnnotationSpecSetConfigsOrBuilderList() { + public java.util.List + getAnnotationSpecSetConfigsOrBuilderList() { if (annotationSpecSetConfigsBuilder_ != null) { return annotationSpecSetConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -1913,8 +1626,6 @@ public Builder removeAnnotationSpecSetConfigs(int index) { } } /** - * - * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1924,21 +1635,13 @@ public Builder removeAnnotationSpecSetConfigs(int index) {
      * label) from each group.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - .Builder - addAnnotationSpecSetConfigsBuilder() { - return getAnnotationSpecSetConfigsFieldBuilder() - .addBuilder( - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.Builder addAnnotationSpecSetConfigsBuilder() { + return getAnnotationSpecSetConfigsFieldBuilder().addBuilder( + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.getDefaultInstance()); } /** - * - * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1948,22 +1651,14 @@ public Builder removeAnnotationSpecSetConfigs(int index) {
      * label) from each group.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - .Builder - addAnnotationSpecSetConfigsBuilder(int index) { - return getAnnotationSpecSetConfigsFieldBuilder() - .addBuilder( - index, - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.Builder addAnnotationSpecSetConfigsBuilder( + int index) { + return getAnnotationSpecSetConfigsFieldBuilder().addBuilder( + index, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.getDefaultInstance()); } /** - * - * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1973,33 +1668,18 @@ public Builder removeAnnotationSpecSetConfigs(int index) {
      * label) from each group.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ - public java.util.List< - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - .Builder> - getAnnotationSpecSetConfigsBuilderList() { + public java.util.List + getAnnotationSpecSetConfigsBuilderList() { return getAnnotationSpecSetConfigsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig, - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - .Builder, - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfigOrBuilder> getAnnotationSpecSetConfigsFieldBuilder() { if (annotationSpecSetConfigsBuilder_ == null) { - annotationSpecSetConfigsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig, - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfig.Builder, - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfigOrBuilder>( + annotationSpecSetConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfigOrBuilder>( annotationSpecSetConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2009,16 +1689,13 @@ public Builder removeAnnotationSpecSetConfigs(int index) { return annotationSpecSetConfigsBuilder_; } - private boolean applyShotDetection_; + private boolean applyShotDetection_ ; /** - * - * *
      * Optional. Option to apply shot detection on the video.
      * 
* * bool apply_shot_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The applyShotDetection. */ @java.lang.Override @@ -2026,43 +1703,37 @@ public boolean getApplyShotDetection() { return applyShotDetection_; } /** - * - * *
      * Optional. Option to apply shot detection on the video.
      * 
* * bool apply_shot_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The applyShotDetection to set. * @return This builder for chaining. */ public Builder setApplyShotDetection(boolean value) { - + applyShotDetection_ = value; onChanged(); return this; } /** - * - * *
      * Optional. Option to apply shot detection on the video.
      * 
* * bool apply_shot_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearApplyShotDetection() { - + applyShotDetection_ = 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); } @@ -2072,32 +1743,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.VideoClassificationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - private static final com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig(); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VideoClassificationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VideoClassificationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoClassificationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoClassificationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2109,8 +1778,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfigOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfigOrBuilder.java similarity index 58% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfigOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfigOrBuilder.java index 1e05fc83..abef4e9a 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfigOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfigOrBuilder.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface VideoClassificationConfigOrBuilder - extends +public interface VideoClassificationConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.VideoClassificationConfig) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The list of annotation spec set configs.
    * Since watching a video clip takes much longer time than an image, we
@@ -35,16 +17,11 @@ public interface VideoClassificationConfigOrBuilder
    * label) from each group.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List< - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig> + java.util.List getAnnotationSpecSetConfigsList(); /** - * - * *
    * Required. The list of annotation spec set configs.
    * Since watching a video clip takes much longer time than an image, we
@@ -54,15 +31,10 @@ public interface VideoClassificationConfigOrBuilder
    * label) from each group.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig - getAnnotationSpecSetConfigs(int index); + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig getAnnotationSpecSetConfigs(int index); /** - * - * *
    * Required. The list of annotation spec set configs.
    * Since watching a video clip takes much longer time than an image, we
@@ -72,14 +44,10 @@ public interface VideoClassificationConfigOrBuilder
    * label) from each group.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ int getAnnotationSpecSetConfigsCount(); /** - * - * *
    * Required. The list of annotation spec set configs.
    * Since watching a video clip takes much longer time than an image, we
@@ -89,18 +57,11 @@ public interface VideoClassificationConfigOrBuilder
    * label) from each group.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ - java.util.List< - ? extends - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig - .AnnotationSpecSetConfigOrBuilder> + java.util.List getAnnotationSpecSetConfigsOrBuilderList(); /** - * - * *
    * Required. The list of annotation spec set configs.
    * Since watching a video clip takes much longer time than an image, we
@@ -110,22 +71,17 @@ public interface VideoClassificationConfigOrBuilder
    * label) from each group.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; - * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; */ - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfigOrBuilder - getAnnotationSpecSetConfigsOrBuilder(int index); + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfigOrBuilder getAnnotationSpecSetConfigsOrBuilder( + int index); /** - * - * *
    * Optional. Option to apply shot detection on the video.
    * 
* * bool apply_shot_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The applyShotDetection. */ boolean getApplyShotDetection(); diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotation.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotation.java similarity index 70% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotation.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotation.java index 78c372e2..0b5a8a17 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotation.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotation.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Video event annotation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoEventAnnotation} */ -public final class VideoEventAnnotation extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VideoEventAnnotation extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.VideoEventAnnotation) VideoEventAnnotationOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VideoEventAnnotation.newBuilder() to construct. private VideoEventAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private VideoEventAnnotation() {} + private VideoEventAnnotation() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VideoEventAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VideoEventAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,47 +52,39 @@ private VideoEventAnnotation( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; - if (annotationSpec_ != null) { - subBuilder = annotationSpec_.toBuilder(); - } - annotationSpec_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotationSpec_); - annotationSpec_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; + if (annotationSpec_ != null) { + subBuilder = annotationSpec_.toBuilder(); + } + annotationSpec_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotationSpec_); + annotationSpec_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder subBuilder = null; + if (timeSegment_ != null) { + subBuilder = timeSegment_.toBuilder(); } - case 18: - { - com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder subBuilder = null; - if (timeSegment_ != null) { - subBuilder = timeSegment_.toBuilder(); - } - timeSegment_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.TimeSegment.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeSegment_); - timeSegment_ = subBuilder.buildPartial(); - } - - break; + timeSegment_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.TimeSegment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeSegment_); + timeSegment_ = 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) { @@ -116,39 +92,34 @@ private VideoEventAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.class, - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.class, com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder.class); } public static final int ANNOTATION_SPEC_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; /** - * - * *
    * Label of the event in this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ @java.lang.Override @@ -156,25 +127,18 @@ public boolean hasAnnotationSpec() { return annotationSpec_ != null; } /** - * - * *
    * Label of the event in this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } /** - * - * *
    * Label of the event in this annotation.
    * 
@@ -182,22 +146,18 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder - getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { return getAnnotationSpec(); } public static final int TIME_SEGMENT_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.TimeSegment timeSegment_; /** - * - * *
    * The time segment of the video to which the annotation applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; - * * @return Whether the timeSegment field is set. */ @java.lang.Override @@ -205,25 +165,18 @@ public boolean hasTimeSegment() { return timeSegment_ != null; } /** - * - * *
    * The time segment of the video to which the annotation applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; - * * @return The timeSegment. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TimeSegment getTimeSegment() { - return timeSegment_ == null - ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() - : timeSegment_; + return timeSegment_ == null ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() : timeSegment_; } /** - * - * *
    * The time segment of the video to which the annotation applies.
    * 
@@ -236,7 +189,6 @@ public com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegment } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -248,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 (annotationSpec_ != null) { output.writeMessage(1, getAnnotationSpec()); } @@ -265,10 +218,12 @@ public int getSerializedSize() { size = 0; if (annotationSpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnnotationSpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAnnotationSpec()); } if (timeSegment_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimeSegment()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTimeSegment()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -278,21 +233,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.datalabeling.v1beta1.VideoEventAnnotation)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation other = - (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) obj; + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation other = (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) obj; if (hasAnnotationSpec() != other.hasAnnotationSpec()) return false; if (hasAnnotationSpec()) { - if (!getAnnotationSpec().equals(other.getAnnotationSpec())) return false; + if (!getAnnotationSpec() + .equals(other.getAnnotationSpec())) 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; @@ -319,127 +275,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation 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.datalabeling.v1beta1.VideoEventAnnotation parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Video event annotation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoEventAnnotation} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.VideoEventAnnotation) com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.class, - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.class, com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.newBuilder() @@ -447,15 +393,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(); @@ -475,9 +422,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor; } @java.lang.Override @@ -496,8 +443,7 @@ public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation buildPartial() { - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation result = - new com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation(this); + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation result = new com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation(this); if (annotationSpecBuilder_ == null) { result.annotationSpec_ = annotationSpec_; } else { @@ -516,39 +462,38 @@ public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation)other); } else { super.mergeFrom(other); return this; @@ -556,8 +501,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation other) { - if (other == com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.getDefaultInstance()) return this; if (other.hasAnnotationSpec()) { mergeAnnotationSpec(other.getAnnotationSpec()); } @@ -583,8 +527,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -596,47 +539,34 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> - annotationSpecBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecBuilder_; /** - * - * *
      * Label of the event in this annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ public boolean hasAnnotationSpec() { return annotationSpecBuilder_ != null || annotationSpec_ != null; } /** - * - * *
      * Label of the event in this annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { if (annotationSpecBuilder_ == null) { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } else { return annotationSpecBuilder_.getMessage(); } } /** - * - * *
      * Label of the event in this annotation.
      * 
@@ -657,8 +587,6 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio return this; } /** - * - * *
      * Label of the event in this annotation.
      * 
@@ -677,8 +605,6 @@ public Builder setAnnotationSpec( return this; } /** - * - * *
      * Label of the event in this annotation.
      * 
@@ -689,9 +615,7 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat if (annotationSpecBuilder_ == null) { if (annotationSpec_ != null) { annotationSpec_ = - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_).mergeFrom(value).buildPartial(); } else { annotationSpec_ = value; } @@ -703,8 +627,6 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat return this; } /** - * - * *
      * Label of the event in this annotation.
      * 
@@ -723,8 +645,6 @@ public Builder clearAnnotationSpec() { return this; } /** - * - * *
      * Label of the event in this annotation.
      * 
@@ -732,32 +652,26 @@ public Builder clearAnnotationSpec() { * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotationSpecBuilder() { - + onChanged(); return getAnnotationSpecFieldBuilder().getBuilder(); } /** - * - * *
      * Label of the event in this annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder - getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { if (annotationSpecBuilder_ != null) { return annotationSpecBuilder_.getMessageOrBuilder(); } else { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } } /** - * - * *
      * Label of the event in this annotation.
      * 
@@ -765,17 +679,14 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> getAnnotationSpecFieldBuilder() { if (annotationSpecBuilder_ == null) { - annotationSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( - getAnnotationSpec(), getParentForChildren(), isClean()); + annotationSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( + getAnnotationSpec(), + getParentForChildren(), + isClean()); annotationSpec_ = null; } return annotationSpecBuilder_; @@ -783,47 +694,34 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio private com.google.cloud.datalabeling.v1beta1.TimeSegment timeSegment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TimeSegment, - com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, - com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> - timeSegmentBuilder_; + com.google.cloud.datalabeling.v1beta1.TimeSegment, com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> timeSegmentBuilder_; /** - * - * *
      * The time segment of the video to which the annotation applies.
      * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; - * * @return Whether the timeSegment field is set. */ public boolean hasTimeSegment() { return timeSegmentBuilder_ != null || timeSegment_ != null; } /** - * - * *
      * The time segment of the video to which the annotation applies.
      * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; - * * @return The timeSegment. */ public com.google.cloud.datalabeling.v1beta1.TimeSegment getTimeSegment() { if (timeSegmentBuilder_ == null) { - return timeSegment_ == null - ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() - : timeSegment_; + return timeSegment_ == null ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() : timeSegment_; } else { return timeSegmentBuilder_.getMessage(); } } /** - * - * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -844,8 +742,6 @@ public Builder setTimeSegment(com.google.cloud.datalabeling.v1beta1.TimeSegment return this; } /** - * - * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -864,8 +760,6 @@ public Builder setTimeSegment( return this; } /** - * - * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -876,9 +770,7 @@ public Builder mergeTimeSegment(com.google.cloud.datalabeling.v1beta1.TimeSegmen if (timeSegmentBuilder_ == null) { if (timeSegment_ != null) { timeSegment_ = - com.google.cloud.datalabeling.v1beta1.TimeSegment.newBuilder(timeSegment_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.TimeSegment.newBuilder(timeSegment_).mergeFrom(value).buildPartial(); } else { timeSegment_ = value; } @@ -890,8 +782,6 @@ public Builder mergeTimeSegment(com.google.cloud.datalabeling.v1beta1.TimeSegmen return this; } /** - * - * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -910,8 +800,6 @@ public Builder clearTimeSegment() { return this; } /** - * - * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -919,13 +807,11 @@ public Builder clearTimeSegment() { * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; */ public com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder getTimeSegmentBuilder() { - + onChanged(); return getTimeSegmentFieldBuilder().getBuilder(); } /** - * - * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -936,14 +822,11 @@ public com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegment if (timeSegmentBuilder_ != null) { return timeSegmentBuilder_.getMessageOrBuilder(); } else { - return timeSegment_ == null - ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() - : timeSegment_; + return timeSegment_ == null ? + com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() : timeSegment_; } } /** - * - * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -951,24 +834,21 @@ public com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegment * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TimeSegment, - com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, - com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> + com.google.cloud.datalabeling.v1beta1.TimeSegment, com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> getTimeSegmentFieldBuilder() { if (timeSegmentBuilder_ == null) { - timeSegmentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TimeSegment, - com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, - com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder>( - getTimeSegment(), getParentForChildren(), isClean()); + timeSegmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TimeSegment, com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder>( + getTimeSegment(), + getParentForChildren(), + isClean()); timeSegment_ = null; } return timeSegmentBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -978,12 +858,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.VideoEventAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.VideoEventAnnotation) private static final com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation(); } @@ -992,16 +872,16 @@ public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VideoEventAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VideoEventAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoEventAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoEventAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1016,4 +896,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotationOrBuilder.java similarity index 72% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotationOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotationOrBuilder.java index f00cf2b3..0828a065 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotationOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotationOrBuilder.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface VideoEventAnnotationOrBuilder - extends +public interface VideoEventAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.VideoEventAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Label of the event in this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ boolean hasAnnotationSpec(); /** - * - * *
    * Label of the event in this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec(); /** - * - * *
    * Label of the event in this annotation.
    * 
@@ -59,32 +35,24 @@ public interface VideoEventAnnotationOrBuilder com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder(); /** - * - * *
    * The time segment of the video to which the annotation applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; - * * @return Whether the timeSegment field is set. */ boolean hasTimeSegment(); /** - * - * *
    * The time segment of the video to which the annotation applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; - * * @return The timeSegment. */ com.google.cloud.datalabeling.v1beta1.TimeSegment getTimeSegment(); /** - * - * *
    * The time segment of the video to which the annotation applies.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotation.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotation.java similarity index 66% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotation.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotation.java index c59c870f..9ff98bbc 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotation.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Video object tracking annotation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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() { objectTrackingFrames_ = 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 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) @@ -71,61 +54,48 @@ private VideoObjectTrackingAnnotation( case 0: done = true; break; - case 10: - { - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; - if (annotationSpec_ != null) { - subBuilder = annotationSpec_.toBuilder(); - } - annotationSpec_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotationSpec_); - annotationSpec_ = subBuilder.buildPartial(); - } - - break; + case 10: { + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; + if (annotationSpec_ != null) { + subBuilder = annotationSpec_.toBuilder(); + } + annotationSpec_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotationSpec_); + annotationSpec_ = subBuilder.buildPartial(); } - case 18: - { - com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder subBuilder = null; - if (timeSegment_ != null) { - subBuilder = timeSegment_.toBuilder(); - } - timeSegment_ = - input.readMessage( - com.google.cloud.datalabeling.v1beta1.TimeSegment.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeSegment_); - timeSegment_ = subBuilder.buildPartial(); - } - break; + break; + } + case 18: { + com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder subBuilder = null; + if (timeSegment_ != null) { + subBuilder = timeSegment_.toBuilder(); } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - objectTrackingFrames_ = - new java.util.ArrayList< - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame>(); - mutable_bitField0_ |= 0x00000001; - } - objectTrackingFrames_.add( - input.readMessage( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.parser(), - extensionRegistry)); - break; + timeSegment_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.TimeSegment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeSegment_); + timeSegment_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + objectTrackingFrames_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + objectTrackingFrames_.add( + input.readMessage(com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -133,7 +103,8 @@ private VideoObjectTrackingAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { objectTrackingFrames_ = java.util.Collections.unmodifiableList(objectTrackingFrames_); @@ -142,33 +113,27 @@ private VideoObjectTrackingAnnotation( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.class, - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.class, com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder.class); } public static final int ANNOTATION_SPEC_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; /** - * - * *
    * Label of the object tracked in this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ @java.lang.Override @@ -176,25 +141,18 @@ public boolean hasAnnotationSpec() { return annotationSpec_ != null; } /** - * - * *
    * Label of the object tracked in this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } /** - * - * *
    * Label of the object tracked in this annotation.
    * 
@@ -202,22 +160,18 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder - getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { return getAnnotationSpec(); } public static final int TIME_SEGMENT_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.TimeSegment timeSegment_; /** - * - * *
    * The time segment of the video to which object tracking applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; - * * @return Whether the timeSegment field is set. */ @java.lang.Override @@ -225,25 +179,18 @@ public boolean hasTimeSegment() { return timeSegment_ != null; } /** - * - * *
    * The time segment of the video to which object tracking applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; - * * @return The timeSegment. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TimeSegment getTimeSegment() { - return timeSegment_ == null - ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() - : timeSegment_; + return timeSegment_ == null ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() : timeSegment_; } /** - * - * *
    * The time segment of the video to which object tracking applies.
    * 
@@ -256,91 +203,66 @@ public com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegment } public static final int OBJECT_TRACKING_FRAMES_FIELD_NUMBER = 3; - private java.util.List - objectTrackingFrames_; + private java.util.List objectTrackingFrames_; /** - * - * *
    * The list of frames where this object track appears.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ @java.lang.Override - public java.util.List - getObjectTrackingFramesList() { + public java.util.List getObjectTrackingFramesList() { return objectTrackingFrames_; } /** - * - * *
    * The list of frames where this object track appears.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ @java.lang.Override - public java.util.List< - ? extends com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder> + public java.util.List getObjectTrackingFramesOrBuilderList() { return objectTrackingFrames_; } /** - * - * *
    * The list of frames where this object track appears.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ @java.lang.Override public int getObjectTrackingFramesCount() { return objectTrackingFrames_.size(); } /** - * - * *
    * The list of frames where this object track appears.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame getObjectTrackingFrames( - int index) { + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame getObjectTrackingFrames(int index) { return objectTrackingFrames_.get(index); } /** - * - * *
    * The list of frames where this object track appears.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder - getObjectTrackingFramesOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder getObjectTrackingFramesOrBuilder( + int index) { return objectTrackingFrames_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -352,7 +274,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 (annotationSpec_ != null) { output.writeMessage(1, getAnnotationSpec()); } @@ -372,14 +295,16 @@ public int getSerializedSize() { size = 0; if (annotationSpec_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnnotationSpec()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAnnotationSpec()); } if (timeSegment_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimeSegment()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getTimeSegment()); } for (int i = 0; i < objectTrackingFrames_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, objectTrackingFrames_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, objectTrackingFrames_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -389,23 +314,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.datalabeling.v1beta1.VideoObjectTrackingAnnotation)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation other = - (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) obj; + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation other = (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) obj; if (hasAnnotationSpec() != other.hasAnnotationSpec()) return false; if (hasAnnotationSpec()) { - if (!getAnnotationSpec().equals(other.getAnnotationSpec())) return false; + if (!getAnnotationSpec() + .equals(other.getAnnotationSpec())) 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 (!getObjectTrackingFramesList().equals(other.getObjectTrackingFramesList())) return false; + if (!getObjectTrackingFramesList() + .equals(other.getObjectTrackingFramesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -435,147 +362,135 @@ public int hashCode() { } public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.VideoObjectTrackingAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.VideoObjectTrackingAnnotation parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.VideoObjectTrackingAnnotation parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.VideoObjectTrackingAnnotation - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation - 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.datalabeling.v1beta1.VideoObjectTrackingAnnotation 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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.VideoObjectTrackingAnnotation prototype) { + public static Builder newBuilder(com.google.cloud.datalabeling.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; } /** - * - * *
    * Video object tracking annotation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.VideoObjectTrackingAnnotation) com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.class, - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.class, com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder.class); } - // Construct using - // com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.newBuilder() + // Construct using com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.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) { getObjectTrackingFramesFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -601,16 +516,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass - .internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation - getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation - .getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); } @java.lang.Override @@ -624,8 +537,7 @@ public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation build @java.lang.Override public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation buildPartial() { - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation result = - new com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation(this); + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation result = new com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation(this); int from_bitField0_ = bitField0_; if (annotationSpecBuilder_ == null) { result.annotationSpec_ = annotationSpec_; @@ -654,51 +566,46 @@ public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation 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.datalabeling.v1beta1.VideoObjectTrackingAnnotation) { - return mergeFrom( - (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation other) { - if (other - == com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation other) { + if (other == com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance()) return this; if (other.hasAnnotationSpec()) { mergeAnnotationSpec(other.getAnnotationSpec()); } @@ -723,10 +630,9 @@ public Builder mergeFrom( objectTrackingFramesBuilder_ = null; objectTrackingFrames_ = other.objectTrackingFrames_; bitField0_ = (bitField0_ & ~0x00000001); - objectTrackingFramesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getObjectTrackingFramesFieldBuilder() - : null; + objectTrackingFramesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getObjectTrackingFramesFieldBuilder() : null; } else { objectTrackingFramesBuilder_.addAllMessages(other.objectTrackingFrames_); } @@ -751,9 +657,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -762,52 +666,38 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> - annotationSpecBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecBuilder_; /** - * - * *
      * Label of the object tracked in this annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ public boolean hasAnnotationSpec() { return annotationSpecBuilder_ != null || annotationSpec_ != null; } /** - * - * *
      * Label of the object tracked in this annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { if (annotationSpecBuilder_ == null) { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } else { return annotationSpecBuilder_.getMessage(); } } /** - * - * *
      * Label of the object tracked in this annotation.
      * 
@@ -828,8 +718,6 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio return this; } /** - * - * *
      * Label of the object tracked in this annotation.
      * 
@@ -848,8 +736,6 @@ public Builder setAnnotationSpec( return this; } /** - * - * *
      * Label of the object tracked in this annotation.
      * 
@@ -860,9 +746,7 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat if (annotationSpecBuilder_ == null) { if (annotationSpec_ != null) { annotationSpec_ = - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_).mergeFrom(value).buildPartial(); } else { annotationSpec_ = value; } @@ -874,8 +758,6 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat return this; } /** - * - * *
      * Label of the object tracked in this annotation.
      * 
@@ -894,8 +776,6 @@ public Builder clearAnnotationSpec() { return this; } /** - * - * *
      * Label of the object tracked in this annotation.
      * 
@@ -903,32 +783,26 @@ public Builder clearAnnotationSpec() { * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotationSpecBuilder() { - + onChanged(); return getAnnotationSpecFieldBuilder().getBuilder(); } /** - * - * *
      * Label of the object tracked in this annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder - getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { if (annotationSpecBuilder_ != null) { return annotationSpecBuilder_.getMessageOrBuilder(); } else { - return annotationSpec_ == null - ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() - : annotationSpec_; + return annotationSpec_ == null ? + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; } } /** - * - * *
      * Label of the object tracked in this annotation.
      * 
@@ -936,17 +810,14 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> getAnnotationSpecFieldBuilder() { if (annotationSpecBuilder_ == null) { - annotationSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( - getAnnotationSpec(), getParentForChildren(), isClean()); + annotationSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( + getAnnotationSpec(), + getParentForChildren(), + isClean()); annotationSpec_ = null; } return annotationSpecBuilder_; @@ -954,47 +825,34 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio private com.google.cloud.datalabeling.v1beta1.TimeSegment timeSegment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TimeSegment, - com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, - com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> - timeSegmentBuilder_; + com.google.cloud.datalabeling.v1beta1.TimeSegment, com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> timeSegmentBuilder_; /** - * - * *
      * The time segment of the video to which object tracking applies.
      * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; - * * @return Whether the timeSegment field is set. */ public boolean hasTimeSegment() { return timeSegmentBuilder_ != null || timeSegment_ != null; } /** - * - * *
      * The time segment of the video to which object tracking applies.
      * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; - * * @return The timeSegment. */ public com.google.cloud.datalabeling.v1beta1.TimeSegment getTimeSegment() { if (timeSegmentBuilder_ == null) { - return timeSegment_ == null - ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() - : timeSegment_; + return timeSegment_ == null ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() : timeSegment_; } else { return timeSegmentBuilder_.getMessage(); } } /** - * - * *
      * The time segment of the video to which object tracking applies.
      * 
@@ -1015,8 +873,6 @@ public Builder setTimeSegment(com.google.cloud.datalabeling.v1beta1.TimeSegment return this; } /** - * - * *
      * The time segment of the video to which object tracking applies.
      * 
@@ -1035,8 +891,6 @@ public Builder setTimeSegment( return this; } /** - * - * *
      * The time segment of the video to which object tracking applies.
      * 
@@ -1047,9 +901,7 @@ public Builder mergeTimeSegment(com.google.cloud.datalabeling.v1beta1.TimeSegmen if (timeSegmentBuilder_ == null) { if (timeSegment_ != null) { timeSegment_ = - com.google.cloud.datalabeling.v1beta1.TimeSegment.newBuilder(timeSegment_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.datalabeling.v1beta1.TimeSegment.newBuilder(timeSegment_).mergeFrom(value).buildPartial(); } else { timeSegment_ = value; } @@ -1061,8 +913,6 @@ public Builder mergeTimeSegment(com.google.cloud.datalabeling.v1beta1.TimeSegmen return this; } /** - * - * *
      * The time segment of the video to which object tracking applies.
      * 
@@ -1081,8 +931,6 @@ public Builder clearTimeSegment() { return this; } /** - * - * *
      * The time segment of the video to which object tracking applies.
      * 
@@ -1090,13 +938,11 @@ public Builder clearTimeSegment() { * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; */ public com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder getTimeSegmentBuilder() { - + onChanged(); return getTimeSegmentFieldBuilder().getBuilder(); } /** - * - * *
      * The time segment of the video to which object tracking applies.
      * 
@@ -1107,14 +953,11 @@ public com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegment if (timeSegmentBuilder_ != null) { return timeSegmentBuilder_.getMessageOrBuilder(); } else { - return timeSegment_ == null - ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() - : timeSegment_; + return timeSegment_ == null ? + com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() : timeSegment_; } } /** - * - * *
      * The time segment of the video to which object tracking applies.
      * 
@@ -1122,53 +965,39 @@ public com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegment * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TimeSegment, - com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, - com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> + com.google.cloud.datalabeling.v1beta1.TimeSegment, com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> getTimeSegmentFieldBuilder() { if (timeSegmentBuilder_ == null) { - timeSegmentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TimeSegment, - com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, - com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder>( - getTimeSegment(), getParentForChildren(), isClean()); + timeSegmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TimeSegment, com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder>( + getTimeSegment(), + getParentForChildren(), + isClean()); timeSegment_ = null; } return timeSegmentBuilder_; } - private java.util.List - objectTrackingFrames_ = java.util.Collections.emptyList(); - + private java.util.List objectTrackingFrames_ = + java.util.Collections.emptyList(); private void ensureObjectTrackingFramesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - objectTrackingFrames_ = - new java.util.ArrayList( - objectTrackingFrames_); + objectTrackingFrames_ = new java.util.ArrayList(objectTrackingFrames_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder> - objectTrackingFramesBuilder_; + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder> objectTrackingFramesBuilder_; /** - * - * *
      * The list of frames where this object track appears.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ - public java.util.List - getObjectTrackingFramesList() { + public java.util.List getObjectTrackingFramesList() { if (objectTrackingFramesBuilder_ == null) { return java.util.Collections.unmodifiableList(objectTrackingFrames_); } else { @@ -1176,15 +1005,11 @@ private void ensureObjectTrackingFramesIsMutable() { } } /** - * - * *
      * The list of frames where this object track appears.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ public int getObjectTrackingFramesCount() { if (objectTrackingFramesBuilder_ == null) { @@ -1194,18 +1019,13 @@ public int getObjectTrackingFramesCount() { } } /** - * - * *
      * The list of frames where this object track appears.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame getObjectTrackingFrames( - int index) { + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame getObjectTrackingFrames(int index) { if (objectTrackingFramesBuilder_ == null) { return objectTrackingFrames_.get(index); } else { @@ -1213,15 +1033,11 @@ public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame getObjectTracki } } /** - * - * *
      * The list of frames where this object track appears.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ public Builder setObjectTrackingFrames( int index, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame value) { @@ -1238,19 +1054,14 @@ public Builder setObjectTrackingFrames( return this; } /** - * - * *
      * The list of frames where this object track appears.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ public Builder setObjectTrackingFrames( - int index, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder builderForValue) { + int index, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder builderForValue) { if (objectTrackingFramesBuilder_ == null) { ensureObjectTrackingFramesIsMutable(); objectTrackingFrames_.set(index, builderForValue.build()); @@ -1261,18 +1072,13 @@ public Builder setObjectTrackingFrames( return this; } /** - * - * *
      * The list of frames where this object track appears.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ - public Builder addObjectTrackingFrames( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame value) { + public Builder addObjectTrackingFrames(com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame value) { if (objectTrackingFramesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1286,15 +1092,11 @@ public Builder addObjectTrackingFrames( return this; } /** - * - * *
      * The list of frames where this object track appears.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ public Builder addObjectTrackingFrames( int index, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame value) { @@ -1311,15 +1113,11 @@ public Builder addObjectTrackingFrames( return this; } /** - * - * *
      * The list of frames where this object track appears.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ public Builder addObjectTrackingFrames( com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder builderForValue) { @@ -1333,19 +1131,14 @@ public Builder addObjectTrackingFrames( return this; } /** - * - * *
      * The list of frames where this object track appears.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ public Builder addObjectTrackingFrames( - int index, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder builderForValue) { + int index, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder builderForValue) { if (objectTrackingFramesBuilder_ == null) { ensureObjectTrackingFramesIsMutable(); objectTrackingFrames_.add(index, builderForValue.build()); @@ -1356,22 +1149,18 @@ public Builder addObjectTrackingFrames( return this; } /** - * - * *
      * The list of frames where this object track appears.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ public Builder addAllObjectTrackingFrames( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (objectTrackingFramesBuilder_ == null) { ensureObjectTrackingFramesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objectTrackingFrames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, objectTrackingFrames_); onChanged(); } else { objectTrackingFramesBuilder_.addAllMessages(values); @@ -1379,15 +1168,11 @@ public Builder addAllObjectTrackingFrames( return this; } /** - * - * *
      * The list of frames where this object track appears.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ public Builder clearObjectTrackingFrames() { if (objectTrackingFramesBuilder_ == null) { @@ -1400,15 +1185,11 @@ public Builder clearObjectTrackingFrames() { return this; } /** - * - * *
      * The list of frames where this object track appears.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ public Builder removeObjectTrackingFrames(int index) { if (objectTrackingFramesBuilder_ == null) { @@ -1421,53 +1202,39 @@ public Builder removeObjectTrackingFrames(int index) { return this; } /** - * - * *
      * The list of frames where this object track appears.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder - getObjectTrackingFramesBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder getObjectTrackingFramesBuilder( + int index) { return getObjectTrackingFramesFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of frames where this object track appears.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder - getObjectTrackingFramesOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder getObjectTrackingFramesOrBuilder( + int index) { if (objectTrackingFramesBuilder_ == null) { - return objectTrackingFrames_.get(index); - } else { + return objectTrackingFrames_.get(index); } else { return objectTrackingFramesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of frames where this object track appears.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ - public java.util.List< - ? extends com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder> - getObjectTrackingFramesOrBuilderList() { + public java.util.List + getObjectTrackingFramesOrBuilderList() { if (objectTrackingFramesBuilder_ != null) { return objectTrackingFramesBuilder_.getMessageOrBuilderList(); } else { @@ -1475,67 +1242,45 @@ public Builder removeObjectTrackingFrames(int index) { } } /** - * - * *
      * The list of frames where this object track appears.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder - addObjectTrackingFramesBuilder() { - return getObjectTrackingFramesFieldBuilder() - .addBuilder( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder addObjectTrackingFramesBuilder() { + return getObjectTrackingFramesFieldBuilder().addBuilder( + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.getDefaultInstance()); } /** - * - * *
      * The list of frames where this object track appears.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder - addObjectTrackingFramesBuilder(int index) { - return getObjectTrackingFramesFieldBuilder() - .addBuilder( - index, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder addObjectTrackingFramesBuilder( + int index) { + return getObjectTrackingFramesFieldBuilder().addBuilder( + index, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.getDefaultInstance()); } /** - * - * *
      * The list of frames where this object track appears.
      * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ - public java.util.List - getObjectTrackingFramesBuilderList() { + public java.util.List + getObjectTrackingFramesBuilderList() { return getObjectTrackingFramesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder> + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder> getObjectTrackingFramesFieldBuilder() { if (objectTrackingFramesBuilder_ == null) { - objectTrackingFramesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder, - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder>( + objectTrackingFramesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder>( objectTrackingFrames_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1544,9 +1289,9 @@ public Builder removeObjectTrackingFrames(int index) { } return objectTrackingFramesBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1556,32 +1301,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) - private static final com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation - DEFAULT_INSTANCE; - + private static final com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation(); } - public static com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation - getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation getDefaultInstance() { 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; @@ -1593,8 +1336,9 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation - getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java similarity index 65% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java index 12beec7e..9749f971 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotationOrBuilder.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface VideoObjectTrackingAnnotationOrBuilder - extends +public interface VideoObjectTrackingAnnotationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Label of the object tracked in this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return Whether the annotationSpec field is set. */ boolean hasAnnotationSpec(); /** - * - * *
    * Label of the object tracked in this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; - * * @return The annotationSpec. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec(); /** - * - * *
    * Label of the object tracked in this annotation.
    * 
@@ -59,32 +35,24 @@ public interface VideoObjectTrackingAnnotationOrBuilder com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder(); /** - * - * *
    * The time segment of the video to which object tracking applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; - * * @return Whether the timeSegment field is set. */ boolean hasTimeSegment(); /** - * - * *
    * The time segment of the video to which object tracking applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; - * * @return The timeSegment. */ com.google.cloud.datalabeling.v1beta1.TimeSegment getTimeSegment(); /** - * - * *
    * The time segment of the video to which object tracking applies.
    * 
@@ -94,66 +62,46 @@ public interface VideoObjectTrackingAnnotationOrBuilder com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegmentOrBuilder(); /** - * - * *
    * The list of frames where this object track appears.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ - java.util.List + java.util.List getObjectTrackingFramesList(); /** - * - * *
    * The list of frames where this object track appears.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame getObjectTrackingFrames(int index); /** - * - * *
    * The list of frames where this object track appears.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ int getObjectTrackingFramesCount(); /** - * - * *
    * The list of frames where this object track appears.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ - java.util.List + java.util.List getObjectTrackingFramesOrBuilderList(); /** - * - * *
    * The list of frames where this object track appears.
    * 
* - * - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; - * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; */ - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder - getObjectTrackingFramesOrBuilder(int index); + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder getObjectTrackingFramesOrBuilder( + int index); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayload.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayload.java similarity index 74% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayload.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayload.java index bec5b9d7..ea34d7ed 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayload.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayload.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/datalabeling/v1beta1/data_payloads.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Container of information of a video.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoPayload} */ -public final class VideoPayload extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VideoPayload extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.VideoPayload) VideoPayloadOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VideoPayload.newBuilder() to construct. private VideoPayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VideoPayload() { mimeType_ = ""; videoUri_ = ""; @@ -46,15 +28,16 @@ private VideoPayload() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VideoPayload(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VideoPayload( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,52 +57,45 @@ private VideoPayload( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + mimeType_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - videoUri_ = s; - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - videoThumbnails_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - videoThumbnails_.add( - input.readMessage( - com.google.cloud.datalabeling.v1beta1.VideoThumbnail.parser(), - extensionRegistry)); - break; - } - case 37: - { - frameRate_ = input.readFloat(); - break; + videoUri_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + videoThumbnails_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + videoThumbnails_.add( + input.readMessage(com.google.cloud.datalabeling.v1beta1.VideoThumbnail.parser(), extensionRegistry)); + break; + } + case 37: { - signedUri_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + frameRate_ = input.readFloat(); + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + signedUri_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -127,7 +103,8 @@ private VideoPayload( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { videoThumbnails_ = java.util.Collections.unmodifiableList(videoThumbnails_); @@ -136,33 +113,27 @@ private VideoPayload( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads - .internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads - .internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoPayload.class, - com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoPayload.class, com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder.class); } public static final int MIME_TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object mimeType_; /** - * - * *
    * Video format.
    * 
* * string mime_type = 1; - * * @return The mimeType. */ @java.lang.Override @@ -171,29 +142,29 @@ 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; } } /** - * - * *
    * Video format.
    * 
* * string mime_type = 1; - * * @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 { @@ -204,14 +175,11 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { public static final int VIDEO_URI_FIELD_NUMBER = 2; private volatile java.lang.Object videoUri_; /** - * - * *
    * Video uri from the user bucket.
    * 
* * string video_uri = 2; - * * @return The videoUri. */ @java.lang.Override @@ -220,29 +188,29 @@ public java.lang.String getVideoUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); videoUri_ = s; return s; } } /** - * - * *
    * Video uri from the user bucket.
    * 
* * string video_uri = 2; - * * @return The bytes for videoUri. */ @java.lang.Override - public com.google.protobuf.ByteString getVideoUriBytes() { + public com.google.protobuf.ByteString + getVideoUriBytes() { java.lang.Object ref = videoUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); videoUri_ = b; return b; } else { @@ -253,8 +221,6 @@ public com.google.protobuf.ByteString getVideoUriBytes() { public static final int VIDEO_THUMBNAILS_FIELD_NUMBER = 3; private java.util.List videoThumbnails_; /** - * - * *
    * The list of video thumbnails.
    * 
@@ -262,13 +228,10 @@ public com.google.protobuf.ByteString getVideoUriBytes() { * repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3; */ @java.lang.Override - public java.util.List - getVideoThumbnailsList() { + public java.util.List getVideoThumbnailsList() { return videoThumbnails_; } /** - * - * *
    * The list of video thumbnails.
    * 
@@ -276,13 +239,11 @@ public com.google.protobuf.ByteString getVideoUriBytes() { * repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3; */ @java.lang.Override - public java.util.List + public java.util.List getVideoThumbnailsOrBuilderList() { return videoThumbnails_; } /** - * - * *
    * The list of video thumbnails.
    * 
@@ -294,8 +255,6 @@ public int getVideoThumbnailsCount() { return videoThumbnails_.size(); } /** - * - * *
    * The list of video thumbnails.
    * 
@@ -307,8 +266,6 @@ public com.google.cloud.datalabeling.v1beta1.VideoThumbnail getVideoThumbnails(i return videoThumbnails_.get(index); } /** - * - * *
    * The list of video thumbnails.
    * 
@@ -324,14 +281,11 @@ public com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder getVideoThu public static final int FRAME_RATE_FIELD_NUMBER = 4; private float frameRate_; /** - * - * *
    * FPS of the video.
    * 
* * float frame_rate = 4; - * * @return The frameRate. */ @java.lang.Override @@ -342,14 +296,11 @@ public float getFrameRate() { public static final int SIGNED_URI_FIELD_NUMBER = 5; private volatile java.lang.Object signedUri_; /** - * - * *
    * Signed uri of the video file in the service bucket.
    * 
* * string signed_uri = 5; - * * @return The signedUri. */ @java.lang.Override @@ -358,29 +309,29 @@ public java.lang.String getSignedUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); signedUri_ = s; return s; } } /** - * - * *
    * Signed uri of the video file in the service bucket.
    * 
* * string signed_uri = 5; - * * @return The bytes for signedUri. */ @java.lang.Override - public com.google.protobuf.ByteString getSignedUriBytes() { + public com.google.protobuf.ByteString + getSignedUriBytes() { java.lang.Object ref = signedUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); signedUri_ = b; return b; } else { @@ -389,7 +340,6 @@ public com.google.protobuf.ByteString getSignedUriBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -401,7 +351,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(mimeType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mimeType_); } @@ -433,10 +384,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, videoUri_); } for (int i = 0; i < videoThumbnails_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, videoThumbnails_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, videoThumbnails_.get(i)); } if (java.lang.Float.floatToRawIntBits(frameRate_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, frameRate_); + size += com.google.protobuf.CodedOutputStream + .computeFloatSize(4, frameRate_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signedUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, signedUri_); @@ -449,20 +402,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.datalabeling.v1beta1.VideoPayload)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.VideoPayload other = - (com.google.cloud.datalabeling.v1beta1.VideoPayload) obj; + com.google.cloud.datalabeling.v1beta1.VideoPayload other = (com.google.cloud.datalabeling.v1beta1.VideoPayload) obj; - if (!getMimeType().equals(other.getMimeType())) return false; - if (!getVideoUri().equals(other.getVideoUri())) return false; - if (!getVideoThumbnailsList().equals(other.getVideoThumbnailsList())) return false; + if (!getMimeType() + .equals(other.getMimeType())) return false; + if (!getVideoUri() + .equals(other.getVideoUri())) return false; + if (!getVideoThumbnailsList() + .equals(other.getVideoThumbnailsList())) return false; if (java.lang.Float.floatToIntBits(getFrameRate()) - != java.lang.Float.floatToIntBits(other.getFrameRate())) return false; - if (!getSignedUri().equals(other.getSignedUri())) return false; + != java.lang.Float.floatToIntBits( + other.getFrameRate())) return false; + if (!getSignedUri() + .equals(other.getSignedUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -483,7 +440,8 @@ public int hashCode() { hash = (53 * hash) + getVideoThumbnailsList().hashCode(); } hash = (37 * hash) + FRAME_RATE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getFrameRate()); + hash = (53 * hash) + java.lang.Float.floatToIntBits( + getFrameRate()); hash = (37 * hash) + SIGNED_URI_FIELD_NUMBER; hash = (53 * hash) + getSignedUri().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -492,126 +450,117 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.VideoPayload 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.datalabeling.v1beta1.VideoPayload parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.VideoPayload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Container of information of a video.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoPayload} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.VideoPayload) com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads - .internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads - .internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoPayload.class, - com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoPayload.class, com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.VideoPayload.newBuilder() @@ -619,17 +568,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) { getVideoThumbnailsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -651,9 +600,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads - .internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor; } @java.lang.Override @@ -672,8 +621,7 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayload build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.VideoPayload buildPartial() { - com.google.cloud.datalabeling.v1beta1.VideoPayload result = - new com.google.cloud.datalabeling.v1beta1.VideoPayload(this); + com.google.cloud.datalabeling.v1beta1.VideoPayload result = new com.google.cloud.datalabeling.v1beta1.VideoPayload(this); int from_bitField0_ = bitField0_; result.mimeType_ = mimeType_; result.videoUri_ = videoUri_; @@ -696,39 +644,38 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayload buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.VideoPayload) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoPayload) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoPayload)other); } else { super.mergeFrom(other); return this; @@ -736,8 +683,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.VideoPayload other) { - if (other == com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance()) return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; onChanged(); @@ -764,10 +710,9 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.VideoPayload othe videoThumbnailsBuilder_ = null; videoThumbnails_ = other.videoThumbnails_; bitField0_ = (bitField0_ & ~0x00000001); - videoThumbnailsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getVideoThumbnailsFieldBuilder() - : null; + videoThumbnailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVideoThumbnailsFieldBuilder() : null; } else { videoThumbnailsBuilder_.addAllMessages(other.videoThumbnails_); } @@ -799,8 +744,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.VideoPayload) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.VideoPayload) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -809,25 +753,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object mimeType_ = ""; /** - * - * *
      * Video format.
      * 
* * string mime_type = 1; - * * @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; @@ -836,21 +777,20 @@ public java.lang.String getMimeType() { } } /** - * - * *
      * Video format.
      * 
* * string mime_type = 1; - * * @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 { @@ -858,61 +798,54 @@ public com.google.protobuf.ByteString getMimeTypeBytes() { } } /** - * - * *
      * Video format.
      * 
* * string mime_type = 1; - * * @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; } /** - * - * *
      * Video format.
      * 
* * string mime_type = 1; - * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** - * - * *
      * Video format.
      * 
* * string mime_type = 1; - * * @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; @@ -920,20 +853,18 @@ public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { private java.lang.Object videoUri_ = ""; /** - * - * *
      * Video uri from the user bucket.
      * 
* * string video_uri = 2; - * * @return The videoUri. */ public java.lang.String getVideoUri() { java.lang.Object ref = videoUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); videoUri_ = s; return s; @@ -942,21 +873,20 @@ public java.lang.String getVideoUri() { } } /** - * - * *
      * Video uri from the user bucket.
      * 
* * string video_uri = 2; - * * @return The bytes for videoUri. */ - public com.google.protobuf.ByteString getVideoUriBytes() { + public com.google.protobuf.ByteString + getVideoUriBytes() { java.lang.Object ref = videoUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); videoUri_ = b; return b; } else { @@ -964,95 +894,79 @@ public com.google.protobuf.ByteString getVideoUriBytes() { } } /** - * - * *
      * Video uri from the user bucket.
      * 
* * string video_uri = 2; - * * @param value The videoUri to set. * @return This builder for chaining. */ - public Builder setVideoUri(java.lang.String value) { + public Builder setVideoUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + videoUri_ = value; onChanged(); return this; } /** - * - * *
      * Video uri from the user bucket.
      * 
* * string video_uri = 2; - * * @return This builder for chaining. */ public Builder clearVideoUri() { - + videoUri_ = getDefaultInstance().getVideoUri(); onChanged(); return this; } /** - * - * *
      * Video uri from the user bucket.
      * 
* * string video_uri = 2; - * * @param value The bytes for videoUri to set. * @return This builder for chaining. */ - public Builder setVideoUriBytes(com.google.protobuf.ByteString value) { + public Builder setVideoUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + videoUri_ = value; onChanged(); return this; } private java.util.List videoThumbnails_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureVideoThumbnailsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - videoThumbnails_ = - new java.util.ArrayList( - videoThumbnails_); + videoThumbnails_ = new java.util.ArrayList(videoThumbnails_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoThumbnail, - com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder, - com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder> - videoThumbnailsBuilder_; + com.google.cloud.datalabeling.v1beta1.VideoThumbnail, com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder, com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder> videoThumbnailsBuilder_; /** - * - * *
      * The list of video thumbnails.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3; */ - public java.util.List - getVideoThumbnailsList() { + public java.util.List getVideoThumbnailsList() { if (videoThumbnailsBuilder_ == null) { return java.util.Collections.unmodifiableList(videoThumbnails_); } else { @@ -1060,8 +974,6 @@ private void ensureVideoThumbnailsIsMutable() { } } /** - * - * *
      * The list of video thumbnails.
      * 
@@ -1076,8 +988,6 @@ public int getVideoThumbnailsCount() { } } /** - * - * *
      * The list of video thumbnails.
      * 
@@ -1092,8 +1002,6 @@ public com.google.cloud.datalabeling.v1beta1.VideoThumbnail getVideoThumbnails(i } } /** - * - * *
      * The list of video thumbnails.
      * 
@@ -1115,8 +1023,6 @@ public Builder setVideoThumbnails( return this; } /** - * - * *
      * The list of video thumbnails.
      * 
@@ -1135,8 +1041,6 @@ public Builder setVideoThumbnails( return this; } /** - * - * *
      * The list of video thumbnails.
      * 
@@ -1157,8 +1061,6 @@ public Builder addVideoThumbnails(com.google.cloud.datalabeling.v1beta1.VideoThu return this; } /** - * - * *
      * The list of video thumbnails.
      * 
@@ -1180,8 +1082,6 @@ public Builder addVideoThumbnails( return this; } /** - * - * *
      * The list of video thumbnails.
      * 
@@ -1200,8 +1100,6 @@ public Builder addVideoThumbnails( return this; } /** - * - * *
      * The list of video thumbnails.
      * 
@@ -1220,8 +1118,6 @@ public Builder addVideoThumbnails( return this; } /** - * - * *
      * The list of video thumbnails.
      * 
@@ -1232,7 +1128,8 @@ public Builder addAllVideoThumbnails( java.lang.Iterable values) { if (videoThumbnailsBuilder_ == null) { ensureVideoThumbnailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, videoThumbnails_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, videoThumbnails_); onChanged(); } else { videoThumbnailsBuilder_.addAllMessages(values); @@ -1240,8 +1137,6 @@ public Builder addAllVideoThumbnails( return this; } /** - * - * *
      * The list of video thumbnails.
      * 
@@ -1259,8 +1154,6 @@ public Builder clearVideoThumbnails() { return this; } /** - * - * *
      * The list of video thumbnails.
      * 
@@ -1278,8 +1171,6 @@ public Builder removeVideoThumbnails(int index) { return this; } /** - * - * *
      * The list of video thumbnails.
      * 
@@ -1291,33 +1182,28 @@ public com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder getVideoThum return getVideoThumbnailsFieldBuilder().getBuilder(index); } /** - * - * *
      * The list of video thumbnails.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3; */ - public com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder - getVideoThumbnailsOrBuilder(int index) { + public com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder getVideoThumbnailsOrBuilder( + int index) { if (videoThumbnailsBuilder_ == null) { - return videoThumbnails_.get(index); - } else { + return videoThumbnails_.get(index); } else { return videoThumbnailsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The list of video thumbnails.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3; */ - public java.util.List - getVideoThumbnailsOrBuilderList() { + public java.util.List + getVideoThumbnailsOrBuilderList() { if (videoThumbnailsBuilder_ != null) { return videoThumbnailsBuilder_.getMessageOrBuilderList(); } else { @@ -1325,22 +1211,17 @@ public com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder getVideoThum } } /** - * - * *
      * The list of video thumbnails.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3; */ - public com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder - addVideoThumbnailsBuilder() { - return getVideoThumbnailsFieldBuilder() - .addBuilder(com.google.cloud.datalabeling.v1beta1.VideoThumbnail.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder addVideoThumbnailsBuilder() { + return getVideoThumbnailsFieldBuilder().addBuilder( + com.google.cloud.datalabeling.v1beta1.VideoThumbnail.getDefaultInstance()); } /** - * - * *
      * The list of video thumbnails.
      * 
@@ -1349,35 +1230,26 @@ public com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder getVideoThum */ public com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder addVideoThumbnailsBuilder( int index) { - return getVideoThumbnailsFieldBuilder() - .addBuilder( - index, com.google.cloud.datalabeling.v1beta1.VideoThumbnail.getDefaultInstance()); + return getVideoThumbnailsFieldBuilder().addBuilder( + index, com.google.cloud.datalabeling.v1beta1.VideoThumbnail.getDefaultInstance()); } /** - * - * *
      * The list of video thumbnails.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3; */ - public java.util.List - getVideoThumbnailsBuilderList() { + public java.util.List + getVideoThumbnailsBuilderList() { return getVideoThumbnailsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoThumbnail, - com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder, - com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder> + com.google.cloud.datalabeling.v1beta1.VideoThumbnail, com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder, com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder> getVideoThumbnailsFieldBuilder() { if (videoThumbnailsBuilder_ == null) { - videoThumbnailsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoThumbnail, - com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder, - com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder>( + videoThumbnailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.VideoThumbnail, com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder, com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder>( videoThumbnails_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1387,16 +1259,13 @@ public com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder addVideoThum return videoThumbnailsBuilder_; } - private float frameRate_; + private float frameRate_ ; /** - * - * *
      * FPS of the video.
      * 
* * float frame_rate = 4; - * * @return The frameRate. */ @java.lang.Override @@ -1404,36 +1273,30 @@ public float getFrameRate() { return frameRate_; } /** - * - * *
      * FPS of the video.
      * 
* * float frame_rate = 4; - * * @param value The frameRate to set. * @return This builder for chaining. */ public Builder setFrameRate(float value) { - + frameRate_ = value; onChanged(); return this; } /** - * - * *
      * FPS of the video.
      * 
* * float frame_rate = 4; - * * @return This builder for chaining. */ public Builder clearFrameRate() { - + frameRate_ = 0F; onChanged(); return this; @@ -1441,20 +1304,18 @@ public Builder clearFrameRate() { private java.lang.Object signedUri_ = ""; /** - * - * *
      * Signed uri of the video file in the service bucket.
      * 
* * string signed_uri = 5; - * * @return The signedUri. */ public java.lang.String getSignedUri() { java.lang.Object ref = signedUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); signedUri_ = s; return s; @@ -1463,21 +1324,20 @@ public java.lang.String getSignedUri() { } } /** - * - * *
      * Signed uri of the video file in the service bucket.
      * 
* * string signed_uri = 5; - * * @return The bytes for signedUri. */ - public com.google.protobuf.ByteString getSignedUriBytes() { + public com.google.protobuf.ByteString + getSignedUriBytes() { java.lang.Object ref = signedUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); signedUri_ = b; return b; } else { @@ -1485,68 +1345,61 @@ public com.google.protobuf.ByteString getSignedUriBytes() { } } /** - * - * *
      * Signed uri of the video file in the service bucket.
      * 
* * string signed_uri = 5; - * * @param value The signedUri to set. * @return This builder for chaining. */ - public Builder setSignedUri(java.lang.String value) { + public Builder setSignedUri( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + signedUri_ = value; onChanged(); return this; } /** - * - * *
      * Signed uri of the video file in the service bucket.
      * 
* * string signed_uri = 5; - * * @return This builder for chaining. */ public Builder clearSignedUri() { - + signedUri_ = getDefaultInstance().getSignedUri(); onChanged(); return this; } /** - * - * *
      * Signed uri of the video file in the service bucket.
      * 
* * string signed_uri = 5; - * * @param value The bytes for signedUri to set. * @return This builder for chaining. */ - public Builder setSignedUriBytes(com.google.protobuf.ByteString value) { + public Builder setSignedUriBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + signedUri_ = 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); } @@ -1556,12 +1409,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.VideoPayload) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.VideoPayload) private static final com.google.cloud.datalabeling.v1beta1.VideoPayload DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.VideoPayload(); } @@ -1570,16 +1423,16 @@ public static com.google.cloud.datalabeling.v1beta1.VideoPayload getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VideoPayload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VideoPayload(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoPayload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoPayload(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1594,4 +1447,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.VideoPayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayloadOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayloadOrBuilder.java similarity index 72% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayloadOrBuilder.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayloadOrBuilder.java index 126d5387..35ec6521 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayloadOrBuilder.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayloadOrBuilder.java @@ -1,91 +1,62 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/data_payloads.proto package com.google.cloud.datalabeling.v1beta1; -public interface VideoPayloadOrBuilder - extends +public interface VideoPayloadOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.VideoPayload) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Video format.
    * 
* * string mime_type = 1; - * * @return The mimeType. */ java.lang.String getMimeType(); /** - * - * *
    * Video format.
    * 
* * string mime_type = 1; - * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString getMimeTypeBytes(); + com.google.protobuf.ByteString + getMimeTypeBytes(); /** - * - * *
    * Video uri from the user bucket.
    * 
* * string video_uri = 2; - * * @return The videoUri. */ java.lang.String getVideoUri(); /** - * - * *
    * Video uri from the user bucket.
    * 
* * string video_uri = 2; - * * @return The bytes for videoUri. */ - com.google.protobuf.ByteString getVideoUriBytes(); + com.google.protobuf.ByteString + getVideoUriBytes(); /** - * - * *
    * The list of video thumbnails.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3; */ - java.util.List getVideoThumbnailsList(); + java.util.List + getVideoThumbnailsList(); /** - * - * *
    * The list of video thumbnails.
    * 
@@ -94,8 +65,6 @@ public interface VideoPayloadOrBuilder */ com.google.cloud.datalabeling.v1beta1.VideoThumbnail getVideoThumbnails(int index); /** - * - * *
    * The list of video thumbnails.
    * 
@@ -104,19 +73,15 @@ public interface VideoPayloadOrBuilder */ int getVideoThumbnailsCount(); /** - * - * *
    * The list of video thumbnails.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3; */ - java.util.List + java.util.List getVideoThumbnailsOrBuilderList(); /** - * - * *
    * The list of video thumbnails.
    * 
@@ -127,40 +92,32 @@ com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder getVideoThumbnails int index); /** - * - * *
    * FPS of the video.
    * 
* * float frame_rate = 4; - * * @return The frameRate. */ float getFrameRate(); /** - * - * *
    * Signed uri of the video file in the service bucket.
    * 
* * string signed_uri = 5; - * * @return The signedUri. */ java.lang.String getSignedUri(); /** - * - * *
    * Signed uri of the video file in the service bucket.
    * 
* * string signed_uri = 5; - * * @return The bytes for signedUri. */ - com.google.protobuf.ByteString getSignedUriBytes(); + com.google.protobuf.ByteString + getSignedUriBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnail.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnail.java similarity index 71% rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnail.java rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnail.java index cbdaa56d..598d8daf 100644 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnail.java +++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnail.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/datalabeling/v1beta1/data_payloads.proto package com.google.cloud.datalabeling.v1beta1; /** - * - * *
  * Container of information of a video thumbnail.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoThumbnail} */ -public final class VideoThumbnail extends com.google.protobuf.GeneratedMessageV3 - implements +public final class VideoThumbnail extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.VideoThumbnail) VideoThumbnailOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use VideoThumbnail.newBuilder() to construct. private VideoThumbnail(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VideoThumbnail() { thumbnail_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new VideoThumbnail(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private VideoThumbnail( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,33 +53,31 @@ private VideoThumbnail( case 0: done = true; break; - case 10: - { - thumbnail_ = input.readBytes(); - break; + case 10: { + + thumbnail_ = input.readBytes(); + 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(); } - 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) { @@ -104,39 +85,34 @@ private VideoThumbnail( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads - .internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads - .internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoThumbnail.class, - com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoThumbnail.class, com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder.class); } public static final int THUMBNAIL_FIELD_NUMBER = 1; private com.google.protobuf.ByteString thumbnail_; /** - * - * *
    * A byte string of the video frame.
    * 
* * bytes thumbnail = 1; - * * @return The thumbnail. */ @java.lang.Override @@ -147,15 +123,12 @@ public com.google.protobuf.ByteString getThumbnail() { public static final int TIME_OFFSET_FIELD_NUMBER = 2; private com.google.protobuf.Duration timeOffset_; /** - * - * *
    * Time offset relative to the beginning of the video, corresponding to the
    * video frame where the thumbnail has been extracted from.
    * 
* * .google.protobuf.Duration time_offset = 2; - * * @return Whether the timeOffset field is set. */ @java.lang.Override @@ -163,15 +136,12 @@ public boolean hasTimeOffset() { return timeOffset_ != null; } /** - * - * *
    * Time offset relative to the beginning of the video, corresponding to the
    * video frame where the thumbnail has been extracted from.
    * 
* * .google.protobuf.Duration time_offset = 2; - * * @return The timeOffset. */ @java.lang.Override @@ -179,8 +149,6 @@ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; } /** - * - * *
    * Time offset relative to the beginning of the video, corresponding to the
    * video frame where the thumbnail has been extracted from.
@@ -194,7 +162,6 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -206,7 +173,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 (!thumbnail_.isEmpty()) {
       output.writeBytes(1, thumbnail_);
     }
@@ -223,10 +191,12 @@ public int getSerializedSize() {
 
     size = 0;
     if (!thumbnail_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, thumbnail_);
+      size += com.google.protobuf.CodedOutputStream
+        .computeBytesSize(1, thumbnail_);
     }
     if (timeOffset_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimeOffset());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, getTimeOffset());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -236,18 +206,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.datalabeling.v1beta1.VideoThumbnail)) {
       return super.equals(obj);
     }
-    com.google.cloud.datalabeling.v1beta1.VideoThumbnail other =
-        (com.google.cloud.datalabeling.v1beta1.VideoThumbnail) obj;
+    com.google.cloud.datalabeling.v1beta1.VideoThumbnail other = (com.google.cloud.datalabeling.v1beta1.VideoThumbnail) obj;
 
-    if (!getThumbnail().equals(other.getThumbnail())) return false;
+    if (!getThumbnail()
+        .equals(other.getThumbnail())) 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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -272,126 +243,117 @@ public int hashCode() {
   }
 
   public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail 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.datalabeling.v1beta1.VideoThumbnail parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
-  public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+  public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.VideoThumbnail prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * Container of information of a video thumbnail.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoThumbnail} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.VideoThumbnail) com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads - .internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads - .internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoThumbnail.class, - com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoThumbnail.class, com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.VideoThumbnail.newBuilder() @@ -399,15 +361,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 +386,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads - .internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor; } @java.lang.Override @@ -444,8 +407,7 @@ public com.google.cloud.datalabeling.v1beta1.VideoThumbnail build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.VideoThumbnail buildPartial() { - com.google.cloud.datalabeling.v1beta1.VideoThumbnail result = - new com.google.cloud.datalabeling.v1beta1.VideoThumbnail(this); + com.google.cloud.datalabeling.v1beta1.VideoThumbnail result = new com.google.cloud.datalabeling.v1beta1.VideoThumbnail(this); result.thumbnail_ = thumbnail_; if (timeOffsetBuilder_ == null) { result.timeOffset_ = timeOffset_; @@ -460,39 +422,38 @@ public com.google.cloud.datalabeling.v1beta1.VideoThumbnail buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.VideoThumbnail) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoThumbnail) other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoThumbnail)other); } else { super.mergeFrom(other); return this; @@ -500,8 +461,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.VideoThumbnail other) { - if (other == com.google.cloud.datalabeling.v1beta1.VideoThumbnail.getDefaultInstance()) - return this; + if (other == com.google.cloud.datalabeling.v1beta1.VideoThumbnail.getDefaultInstance()) return this; if (other.getThumbnail() != com.google.protobuf.ByteString.EMPTY) { setThumbnail(other.getThumbnail()); } @@ -527,8 +487,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.datalabeling.v1beta1.VideoThumbnail) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.datalabeling.v1beta1.VideoThumbnail) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -540,14 +499,11 @@ public Builder mergeFrom( private com.google.protobuf.ByteString thumbnail_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * A byte string of the video frame.
      * 
* * bytes thumbnail = 1; - * * @return The thumbnail. */ @java.lang.Override @@ -555,39 +511,33 @@ public com.google.protobuf.ByteString getThumbnail() { return thumbnail_; } /** - * - * *
      * A byte string of the video frame.
      * 
* * bytes thumbnail = 1; - * * @param value The thumbnail to set. * @return This builder for chaining. */ public Builder setThumbnail(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + thumbnail_ = value; onChanged(); return this; } /** - * - * *
      * A byte string of the video frame.
      * 
* * bytes thumbnail = 1; - * * @return This builder for chaining. */ public Builder clearThumbnail() { - + thumbnail_ = getDefaultInstance().getThumbnail(); onChanged(); return this; @@ -595,49 +545,36 @@ public Builder clearThumbnail() { 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_; /** - * - * *
      * Time offset relative to the beginning of the video, corresponding to the
      * video frame where the thumbnail has been extracted from.
      * 
* * .google.protobuf.Duration time_offset = 2; - * * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; } /** - * - * *
      * Time offset relative to the beginning of the video, corresponding to the
      * video frame where the thumbnail has been extracted from.
      * 
* * .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(); } } /** - * - * *
      * Time offset relative to the beginning of the video, corresponding to the
      * video frame where the thumbnail has been extracted from.
@@ -659,8 +596,6 @@ public Builder setTimeOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the video, corresponding to the
      * video frame where the thumbnail has been extracted from.
@@ -668,7 +603,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();
@@ -679,8 +615,6 @@ public Builder setTimeOffset(com.google.protobuf.Duration.Builder builderForValu
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the video, corresponding to the
      * video frame where the thumbnail has been extracted from.
@@ -692,7 +626,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;
         }
@@ -704,8 +638,6 @@ public Builder mergeTimeOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the video, corresponding to the
      * video frame where the thumbnail has been extracted from.
@@ -725,8 +657,6 @@ public Builder clearTimeOffset() {
       return this;
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the video, corresponding to the
      * video frame where the thumbnail has been extracted from.
@@ -735,13 +665,11 @@ public Builder clearTimeOffset() {
      * .google.protobuf.Duration time_offset = 2;
      */
     public com.google.protobuf.Duration.Builder getTimeOffsetBuilder() {
-
+      
       onChanged();
       return getTimeOffsetFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the video, corresponding to the
      * video frame where the thumbnail has been extracted from.
@@ -753,14 +681,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_;
       }
     }
     /**
-     *
-     *
      * 
      * Time offset relative to the beginning of the video, corresponding to the
      * video frame where the thumbnail has been extracted from.
@@ -769,24 +694,21 @@ 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_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -796,12 +718,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.VideoThumbnail)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.VideoThumbnail)
   private static final com.google.cloud.datalabeling.v1beta1.VideoThumbnail DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.VideoThumbnail();
   }
@@ -810,16 +732,16 @@ public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public VideoThumbnail parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new VideoThumbnail(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public VideoThumbnail parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new VideoThumbnail(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -834,4 +756,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datalabeling.v1beta1.VideoThumbnail getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnailOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnailOrBuilder.java
similarity index 67%
rename from proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnailOrBuilder.java
rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnailOrBuilder.java
index 7eb15b34..e753e526 100644
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnailOrBuilder.java
+++ b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnailOrBuilder.java
@@ -1,70 +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/datalabeling/v1beta1/data_payloads.proto
 
 package com.google.cloud.datalabeling.v1beta1;
 
-public interface VideoThumbnailOrBuilder
-    extends
+public interface VideoThumbnailOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.VideoThumbnail)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * A byte string of the video frame.
    * 
* * bytes thumbnail = 1; - * * @return The thumbnail. */ com.google.protobuf.ByteString getThumbnail(); /** - * - * *
    * Time offset relative to the beginning of the video, corresponding to the
    * video frame where the thumbnail has been extracted from.
    * 
* * .google.protobuf.Duration time_offset = 2; - * * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** - * - * *
    * Time offset relative to the beginning of the video, corresponding to the
    * video frame where the thumbnail has been extracted from.
    * 
* * .google.protobuf.Duration time_offset = 2; - * * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** - * - * *
    * Time offset relative to the beginning of the video, corresponding to the
    * video frame where the thumbnail has been extracted from.
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation.proto b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation.proto
similarity index 100%
rename from proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation.proto
rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation.proto
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation_spec_set.proto b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation_spec_set.proto
similarity index 100%
rename from proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation_spec_set.proto
rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation_spec_set.proto
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/data_labeling_service.proto b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/data_labeling_service.proto
similarity index 100%
rename from proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/data_labeling_service.proto
rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/data_labeling_service.proto
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/data_payloads.proto b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/data_payloads.proto
similarity index 100%
rename from proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/data_payloads.proto
rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/data_payloads.proto
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/dataset.proto b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/dataset.proto
similarity index 100%
rename from proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/dataset.proto
rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/dataset.proto
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation.proto b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation.proto
similarity index 100%
rename from proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation.proto
rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation.proto
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation_job.proto b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation_job.proto
similarity index 100%
rename from proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation_job.proto
rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation_job.proto
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/human_annotation_config.proto b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/human_annotation_config.proto
similarity index 100%
rename from proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/human_annotation_config.proto
rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/human_annotation_config.proto
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/instruction.proto b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/instruction.proto
similarity index 100%
rename from proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/instruction.proto
rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/instruction.proto
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/operations.proto b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/operations.proto
similarity index 100%
rename from proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/operations.proto
rename to owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/operations.proto
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOuterClass.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOuterClass.java
deleted file mode 100644
index 8f8efc12..00000000
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOuterClass.java
+++ /dev/null
@@ -1,484 +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/datalabeling/v1beta1/annotation.proto
-
-package com.google.cloud.datalabeling.v1beta1;
-
-public final class AnnotationOuterClass {
-  private AnnotationOuterClass() {}
-
-  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_datalabeling_v1beta1_Annotation_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_Annotation_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_Vertex_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_Polyline_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_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/datalabeling/v1beta1/anno"
-          + "tation.proto\022!google.cloud.datalabeling."
-          + "v1beta1\032\034google/api/annotations.proto\032\031g"
-          + "oogle/api/resource.proto\032;google/cloud/d"
-          + "atalabeling/v1beta1/annotation_spec_set."
-          + "proto\032\036google/protobuf/duration.proto\"\342\002"
-          + "\n\nAnnotation\022\014\n\004name\030\001 \001(\t\022N\n\021annotation"
-          + "_source\030\002 \001(\01623.google.cloud.datalabelin"
-          + "g.v1beta1.AnnotationSource\022L\n\020annotation"
-          + "_value\030\003 \001(\01322.google.cloud.datalabeling"
-          + ".v1beta1.AnnotationValue\022R\n\023annotation_m"
-          + "etadata\030\004 \001(\01325.google.cloud.datalabelin"
-          + "g.v1beta1.AnnotationMetadata\022T\n\024annotati"
-          + "on_sentiment\030\006 \001(\01626.google.cloud.datala"
-          + "beling.v1beta1.AnnotationSentiment\"\321\007\n\017A"
-          + "nnotationValue\022k\n\037image_classification_a"
-          + "nnotation\030\001 \001(\0132@.google.cloud.datalabel"
-          + "ing.v1beta1.ImageClassificationAnnotatio"
-          + "nH\000\022h\n\036image_bounding_poly_annotation\030\002 "
-          + "\001(\0132>.google.cloud.datalabeling.v1beta1."
-          + "ImageBoundingPolyAnnotationH\000\022_\n\031image_p"
-          + "olyline_annotation\030\010 \001(\0132:.google.cloud."
-          + "datalabeling.v1beta1.ImagePolylineAnnota"
-          + "tionH\000\022g\n\035image_segmentation_annotation\030"
-          + "\t \001(\0132>.google.cloud.datalabeling.v1beta"
-          + "1.ImageSegmentationAnnotationH\000\022i\n\036text_"
-          + "classification_annotation\030\003 \001(\0132?.google"
-          + ".cloud.datalabeling.v1beta1.TextClassifi"
-          + "cationAnnotationH\000\022n\n!text_entity_extrac"
-          + "tion_annotation\030\n \001(\0132A.google.cloud.dat"
-          + "alabeling.v1beta1.TextEntityExtractionAn"
-          + "notationH\000\022k\n\037video_classification_annot"
-          + "ation\030\004 \001(\0132@.google.cloud.datalabeling."
-          + "v1beta1.VideoClassificationAnnotationH\000\022"
-          + "l\n video_object_tracking_annotation\030\005 \001("
-          + "\0132@.google.cloud.datalabeling.v1beta1.Vi"
-          + "deoObjectTrackingAnnotationH\000\022Y\n\026video_e"
-          + "vent_annotation\030\006 \001(\01327.google.cloud.dat"
-          + "alabeling.v1beta1.VideoEventAnnotationH\000"
-          + "B\014\n\nvalue_type\"k\n\035ImageClassificationAnn"
-          + "otation\022J\n\017annotation_spec\030\001 \001(\01321.googl"
-          + "e.cloud.datalabeling.v1beta1.AnnotationS"
-          + "pec\"\036\n\006Vertex\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020N"
-          + "ormalizedVertex\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"K\n"
-          + "\014BoundingPoly\022;\n\010vertices\030\001 \003(\0132).google"
-          + ".cloud.datalabeling.v1beta1.Vertex\"j\n\026No"
-          + "rmalizedBoundingPoly\022P\n\023normalized_verti"
-          + "ces\030\001 \003(\01323.google.cloud.datalabeling.v1"
-          + "beta1.NormalizedVertex\"\242\002\n\033ImageBounding"
-          + "PolyAnnotation\022H\n\rbounding_poly\030\002 \001(\0132/."
-          + "google.cloud.datalabeling.v1beta1.Boundi"
-          + "ngPolyH\000\022]\n\030normalized_bounding_poly\030\003 \001"
-          + "(\01329.google.cloud.datalabeling.v1beta1.N"
-          + "ormalizedBoundingPolyH\000\022J\n\017annotation_sp"
-          + "ec\030\001 \001(\01321.google.cloud.datalabeling.v1b"
-          + "eta1.AnnotationSpecB\016\n\014bounded_area\"G\n\010P"
-          + "olyline\022;\n\010vertices\030\001 \003(\0132).google.cloud"
-          + ".datalabeling.v1beta1.Vertex\"f\n\022Normaliz"
-          + "edPolyline\022P\n\023normalized_vertices\030\001 \003(\0132"
-          + "3.google.cloud.datalabeling.v1beta1.Norm"
-          + "alizedVertex\"\204\002\n\027ImagePolylineAnnotation"
-          + "\022?\n\010polyline\030\002 \001(\0132+.google.cloud.datala"
-          + "beling.v1beta1.PolylineH\000\022T\n\023normalized_"
-          + "polyline\030\003 \001(\01325.google.cloud.datalabeli"
-          + "ng.v1beta1.NormalizedPolylineH\000\022J\n\017annot"
-          + "ation_spec\030\001 \001(\01321.google.cloud.datalabe"
-          + "ling.v1beta1.AnnotationSpecB\006\n\004poly\"\242\002\n\033"
-          + "ImageSegmentationAnnotation\022o\n\021annotatio"
-          + "n_colors\030\001 \003(\0132T.google.cloud.datalabeli"
-          + "ng.v1beta1.ImageSegmentationAnnotation.A"
-          + "nnotationColorsEntry\022\021\n\tmime_type\030\002 \001(\t\022"
-          + "\023\n\013image_bytes\030\003 \001(\014\032j\n\025AnnotationColors"
-          + "Entry\022\013\n\003key\030\001 \001(\t\022@\n\005value\030\002 \001(\01321.goog"
-          + "le.cloud.datalabeling.v1beta1.Annotation"
-          + "Spec:\0028\001\"j\n\034TextClassificationAnnotation"
-          + "\022J\n\017annotation_spec\030\001 \001(\01321.google.cloud"
-          + ".datalabeling.v1beta1.AnnotationSpec\"\276\001\n"
-          + "\036TextEntityExtractionAnnotation\022J\n\017annot"
-          + "ation_spec\030\001 \001(\01321.google.cloud.datalabe"
-          + "ling.v1beta1.AnnotationSpec\022P\n\022sequentia"
-          + "l_segment\030\002 \001(\01324.google.cloud.datalabel"
-          + "ing.v1beta1.SequentialSegment\"/\n\021Sequent"
-          + "ialSegment\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"w"
-          + "\n\013TimeSegment\0224\n\021start_time_offset\030\001 \001(\013"
-          + "2\031.google.protobuf.Duration\0222\n\017end_time_"
-          + "offset\030\002 \001(\0132\031.google.protobuf.Duration\""
-          + "\261\001\n\035VideoClassificationAnnotation\022D\n\014tim"
-          + "e_segment\030\001 \001(\0132..google.cloud.datalabel"
-          + "ing.v1beta1.TimeSegment\022J\n\017annotation_sp"
-          + "ec\030\002 \001(\01321.google.cloud.datalabeling.v1b"
-          + "eta1.AnnotationSpec\"\376\001\n\023ObjectTrackingFr"
-          + "ame\022H\n\rbounding_poly\030\001 \001(\0132/.google.clou"
-          + "d.datalabeling.v1beta1.BoundingPolyH\000\022]\n"
-          + "\030normalized_bounding_poly\030\002 \001(\01329.google"
-          + ".cloud.datalabeling.v1beta1.NormalizedBo"
-          + "undingPolyH\000\022.\n\013time_offset\030\003 \001(\0132\031.goog"
-          + "le.protobuf.DurationB\016\n\014bounded_area\"\211\002\n"
-          + "\035VideoObjectTrackingAnnotation\022J\n\017annota"
-          + "tion_spec\030\001 \001(\01321.google.cloud.datalabel"
-          + "ing.v1beta1.AnnotationSpec\022D\n\014time_segme"
-          + "nt\030\002 \001(\0132..google.cloud.datalabeling.v1b"
-          + "eta1.TimeSegment\022V\n\026object_tracking_fram"
-          + "es\030\003 \003(\01326.google.cloud.datalabeling.v1b"
-          + "eta1.ObjectTrackingFrame\"\250\001\n\024VideoEventA"
-          + "nnotation\022J\n\017annotation_spec\030\001 \001(\01321.goo"
-          + "gle.cloud.datalabeling.v1beta1.Annotatio"
-          + "nSpec\022D\n\014time_segment\030\002 \001(\0132..google.clo"
-          + "ud.datalabeling.v1beta1.TimeSegment\"d\n\022A"
-          + "nnotationMetadata\022N\n\021operator_metadata\030\002"
-          + " \001(\01323.google.cloud.datalabeling.v1beta1"
-          + ".OperatorMetadata\"]\n\020OperatorMetadata\022\r\n"
-          + "\005score\030\001 \001(\002\022\023\n\013total_votes\030\002 \001(\005\022\023\n\013lab"
-          + "el_votes\030\003 \001(\005\022\020\n\010comments\030\004 \003(\t*C\n\020Anno"
-          + "tationSource\022!\n\035ANNOTATION_SOURCE_UNSPEC"
-          + "IFIED\020\000\022\014\n\010OPERATOR\020\003*W\n\023AnnotationSenti"
-          + "ment\022$\n ANNOTATION_SENTIMENT_UNSPECIFIED"
-          + "\020\000\022\014\n\010NEGATIVE\020\001\022\014\n\010POSITIVE\020\002*\221\004\n\016Annot"
-          + "ationType\022\037\n\033ANNOTATION_TYPE_UNSPECIFIED"
-          + "\020\000\022#\n\037IMAGE_CLASSIFICATION_ANNOTATION\020\001\022"
-          + "!\n\035IMAGE_BOUNDING_BOX_ANNOTATION\020\002\022*\n&IM"
-          + "AGE_ORIENTED_BOUNDING_BOX_ANNOTATION\020\r\022\""
-          + "\n\036IMAGE_BOUNDING_POLY_ANNOTATION\020\n\022\035\n\031IM"
-          + "AGE_POLYLINE_ANNOTATION\020\013\022!\n\035IMAGE_SEGME"
-          + "NTATION_ANNOTATION\020\014\022)\n%VIDEO_SHOTS_CLAS"
-          + "SIFICATION_ANNOTATION\020\003\022$\n VIDEO_OBJECT_"
-          + "TRACKING_ANNOTATION\020\004\022%\n!VIDEO_OBJECT_DE"
-          + "TECTION_ANNOTATION\020\005\022\032\n\026VIDEO_EVENT_ANNO"
-          + "TATION\020\006\022\"\n\036TEXT_CLASSIFICATION_ANNOTATI"
-          + "ON\020\010\022%\n!TEXT_ENTITY_EXTRACTION_ANNOTATIO"
-          + "N\020\t\022%\n!GENERAL_CLASSIFICATION_ANNOTATION"
-          + "\020\016B\347\001\n%com.google.cloud.datalabeling.v1b"
-          + "eta1P\001ZMgoogle.golang.org/genproto/googl"
-          + "eapis/cloud/datalabeling/v1beta1;datalab"
-          + "eling\252\002!Google.Cloud.DataLabeling.V1Beta"
-          + "1\312\002!Google\\Cloud\\DataLabeling\\V1beta1\352\002$"
-          + "Google::Cloud::DataLabeling::V1beta1b\006pr"
-          + "oto3"
-    };
-    descriptor =
-        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
-            descriptorData,
-            new com.google.protobuf.Descriptors.FileDescriptor[] {
-              com.google.api.AnnotationsProto.getDescriptor(),
-              com.google.api.ResourceProto.getDescriptor(),
-              com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(),
-              com.google.protobuf.DurationProto.getDescriptor(),
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_Annotation_descriptor =
-        getDescriptor().getMessageTypes().get(0);
-    internal_static_google_cloud_datalabeling_v1beta1_Annotation_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_Annotation_descriptor,
-            new java.lang.String[] {
-              "Name",
-              "AnnotationSource",
-              "AnnotationValue",
-              "AnnotationMetadata",
-              "AnnotationSentiment",
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor =
-        getDescriptor().getMessageTypes().get(1);
-    internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor,
-            new java.lang.String[] {
-              "ImageClassificationAnnotation",
-              "ImageBoundingPolyAnnotation",
-              "ImagePolylineAnnotation",
-              "ImageSegmentationAnnotation",
-              "TextClassificationAnnotation",
-              "TextEntityExtractionAnnotation",
-              "VideoClassificationAnnotation",
-              "VideoObjectTrackingAnnotation",
-              "VideoEventAnnotation",
-              "ValueType",
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor =
-        getDescriptor().getMessageTypes().get(2);
-    internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor,
-            new java.lang.String[] {
-              "AnnotationSpec",
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor =
-        getDescriptor().getMessageTypes().get(3);
-    internal_static_google_cloud_datalabeling_v1beta1_Vertex_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor,
-            new java.lang.String[] {
-              "X", "Y",
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor =
-        getDescriptor().getMessageTypes().get(4);
-    internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor,
-            new java.lang.String[] {
-              "X", "Y",
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor =
-        getDescriptor().getMessageTypes().get(5);
-    internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor,
-            new java.lang.String[] {
-              "Vertices",
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor =
-        getDescriptor().getMessageTypes().get(6);
-    internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor,
-            new java.lang.String[] {
-              "NormalizedVertices",
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor =
-        getDescriptor().getMessageTypes().get(7);
-    internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor,
-            new java.lang.String[] {
-              "BoundingPoly", "NormalizedBoundingPoly", "AnnotationSpec", "BoundedArea",
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor =
-        getDescriptor().getMessageTypes().get(8);
-    internal_static_google_cloud_datalabeling_v1beta1_Polyline_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor,
-            new java.lang.String[] {
-              "Vertices",
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor =
-        getDescriptor().getMessageTypes().get(9);
-    internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor,
-            new java.lang.String[] {
-              "NormalizedVertices",
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor =
-        getDescriptor().getMessageTypes().get(10);
-    internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor,
-            new java.lang.String[] {
-              "Polyline", "NormalizedPolyline", "AnnotationSpec", "Poly",
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor =
-        getDescriptor().getMessageTypes().get(11);
-    internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor,
-            new java.lang.String[] {
-              "AnnotationColors", "MimeType", "ImageBytes",
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_descriptor =
-        internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor
-            .getNestedTypes()
-            .get(0);
-    internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_descriptor,
-            new java.lang.String[] {
-              "Key", "Value",
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor =
-        getDescriptor().getMessageTypes().get(12);
-    internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor,
-            new java.lang.String[] {
-              "AnnotationSpec",
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor =
-        getDescriptor().getMessageTypes().get(13);
-    internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor,
-            new java.lang.String[] {
-              "AnnotationSpec", "SequentialSegment",
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor =
-        getDescriptor().getMessageTypes().get(14);
-    internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor,
-            new java.lang.String[] {
-              "Start", "End",
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor =
-        getDescriptor().getMessageTypes().get(15);
-    internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor,
-            new java.lang.String[] {
-              "StartTimeOffset", "EndTimeOffset",
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor =
-        getDescriptor().getMessageTypes().get(16);
-    internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor,
-            new java.lang.String[] {
-              "TimeSegment", "AnnotationSpec",
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor =
-        getDescriptor().getMessageTypes().get(17);
-    internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor,
-            new java.lang.String[] {
-              "BoundingPoly", "NormalizedBoundingPoly", "TimeOffset", "BoundedArea",
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor =
-        getDescriptor().getMessageTypes().get(18);
-    internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor,
-            new java.lang.String[] {
-              "AnnotationSpec", "TimeSegment", "ObjectTrackingFrames",
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor =
-        getDescriptor().getMessageTypes().get(19);
-    internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor,
-            new java.lang.String[] {
-              "AnnotationSpec", "TimeSegment",
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor =
-        getDescriptor().getMessageTypes().get(20);
-    internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor,
-            new java.lang.String[] {
-              "OperatorMetadata",
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor =
-        getDescriptor().getMessageTypes().get(21);
-    internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor,
-            new java.lang.String[] {
-              "Score", "TotalVotes", "LabelVotes", "Comments",
-            });
-    com.google.api.AnnotationsProto.getDescriptor();
-    com.google.api.ResourceProto.getDescriptor();
-    com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor();
-    com.google.protobuf.DurationProto.getDescriptor();
-  }
-
-  // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOuterClass.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOuterClass.java
deleted file mode 100644
index 2ce28ac5..00000000
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOuterClass.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/datalabeling/v1beta1/annotation_spec_set.proto
-
-package com.google.cloud.datalabeling.v1beta1;
-
-public final class AnnotationSpecSetOuterClass {
-  private AnnotationSpecSetOuterClass() {}
-
-  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_datalabeling_v1beta1_AnnotationSpecSet_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_fieldAccessorTable;
-  static final com.google.protobuf.Descriptors.Descriptor
-      internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor;
-  static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_google_cloud_datalabeling_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 = {
-      "\n;google/cloud/datalabeling/v1beta1/anno"
-          + "tation_spec_set.proto\022!google.cloud.data"
-          + "labeling.v1beta1\032\034google/api/annotations"
-          + ".proto\032\031google/api/resource.proto\"\246\002\n\021An"
-          + "notationSpecSet\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\022K\n\020anno"
-          + "tation_specs\030\004 \003(\01321.google.cloud.datala"
-          + "beling.v1beta1.AnnotationSpec\022\032\n\022blockin"
-          + "g_resources\030\005 \003(\t:o\352Al\n-datalabeling.goo"
-          + "gleapis.com/AnnotationSpecSet\022;projects/"
-          + "{project}/annotationSpecSets/{annotation"
-          + "_spec_set}\";\n\016AnnotationSpec\022\024\n\014display_"
-          + "name\030\001 \001(\t\022\023\n\013description\030\002 \001(\tB\347\001\n%com."
-          + "google.cloud.datalabeling.v1beta1P\001ZMgoo"
-          + "gle.golang.org/genproto/googleapis/cloud"
-          + "/datalabeling/v1beta1;datalabeling\252\002!Goo"
-          + "gle.Cloud.DataLabeling.V1Beta1\312\002!Google\\"
-          + "Cloud\\DataLabeling\\V1beta1\352\002$Google::Clo"
-          + "ud::DataLabeling::V1beta1b\006proto3"
-    };
-    descriptor =
-        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
-            descriptorData,
-            new com.google.protobuf.Descriptors.FileDescriptor[] {
-              com.google.api.AnnotationsProto.getDescriptor(),
-              com.google.api.ResourceProto.getDescriptor(),
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_descriptor =
-        getDescriptor().getMessageTypes().get(0);
-    internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_descriptor,
-            new java.lang.String[] {
-              "Name", "DisplayName", "Description", "AnnotationSpecs", "BlockingResources",
-            });
-    internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor =
-        getDescriptor().getMessageTypes().get(1);
-    internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_fieldAccessorTable =
-        new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-            internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor,
-            new java.lang.String[] {
-              "DisplayName", "Description",
-            });
-    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.AnnotationsProto.getDescriptor();
-    com.google.api.ResourceProto.getDescriptor();
-  }
-
-  // @@protoc_insertion_point(outer_class_scope)
-}
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadataOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadataOrBuilder.java
deleted file mode 100644
index d4fbdeeb..00000000
--- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadataOrBuilder.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/datalabeling/v1beta1/dataset.proto
-
-package com.google.cloud.datalabeling.v1beta1;
-
-public interface ClassificationMetadataOrBuilder
-    extends
-    // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ClassificationMetadata)
-    com.google.protobuf.MessageOrBuilder {
-
-  /**
-   *
-   *
-   * 
-   * Whether the classification task is multi-label or not.
-   * 
- * - * bool is_multi_label = 1; - * - * @return The isMultiLabel. - */ - boolean getIsMultiLabel(); -} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrixOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrixOrBuilder.java deleted file mode 100644 index 04ee7017..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrixOrBuilder.java +++ /dev/null @@ -1,37 +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/datalabeling/v1beta1/evaluation.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface ConfusionMatrixOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ConfusionMatrix) - com.google.protobuf.MessageOrBuilder { - - /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */ - java.util.List getRowList(); - /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */ - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row getRow(int index); - /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */ - int getRowCount(); - /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */ - java.util.List - getRowOrBuilderList(); - /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */ - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder getRowOrBuilder(int index); -} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequestOrBuilder.java deleted file mode 100644 index a3f7ab25..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequestOrBuilder.java +++ /dev/null @@ -1,97 +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/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface CreateDatasetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.CreateDatasetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Dataset resource parent, format:
-   * projects/{project_id}
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. Dataset resource parent, format:
-   * projects/{project_id}
-   * 
- * - * - * 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 be created.
-   * 
- * - * - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the dataset field is set. - */ - boolean hasDataset(); - /** - * - * - *
-   * Required. The dataset to be created.
-   * 
- * - * - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The dataset. - */ - com.google.cloud.datalabeling.v1beta1.Dataset getDataset(); - /** - * - * - *
-   * Required. The dataset to be created.
-   * 
- * - * - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetOrBuilder(); -} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequestOrBuilder.java deleted file mode 100644 index fdfe981c..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequestOrBuilder.java +++ /dev/null @@ -1,97 +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/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface CreateEvaluationJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Evaluation job resource parent. Format:
-   * "projects/<var>{project_id}</var>"
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. Evaluation job resource parent. Format:
-   * "projects/<var>{project_id}</var>"
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The evaluation job to create.
-   * 
- * - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the job field is set. - */ - boolean hasJob(); - /** - * - * - *
-   * Required. The evaluation job to create.
-   * 
- * - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The job. - */ - com.google.cloud.datalabeling.v1beta1.EvaluationJob getJob(); - /** - * - * - *
-   * Required. The evaluation job to create.
-   * 
- * - * - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getJobOrBuilder(); -} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequestOrBuilder.java deleted file mode 100644 index 5292f185..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequestOrBuilder.java +++ /dev/null @@ -1,97 +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/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface CreateInstructionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.CreateInstructionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Instruction resource parent, format:
-   * projects/{project_id}
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. Instruction resource parent, format:
-   * projects/{project_id}
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. Instruction of how to perform the labeling task.
-   * 
- * - * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the instruction field is set. - */ - boolean hasInstruction(); - /** - * - * - *
-   * Required. Instruction of how to perform the labeling task.
-   * 
- * - * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The instruction. - */ - com.google.cloud.datalabeling.v1beta1.Instruction getInstruction(); - /** - * - * - *
-   * Required. Instruction of how to perform the labeling task.
-   * 
- * - * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstructionOrBuilder(); -} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstructionOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstructionOrBuilder.java deleted file mode 100644 index 670e7737..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstructionOrBuilder.java +++ /dev/null @@ -1,50 +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/datalabeling/v1beta1/instruction.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface CsvInstructionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.CsvInstruction) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * CSV file for the instruction. Only gcs path is allowed.
-   * 
- * - * string gcs_file_uri = 1; - * - * @return The gcsFileUri. - */ - java.lang.String getGcsFileUri(); - /** - * - * - *
-   * CSV file for the instruction. Only gcs path is allowed.
-   * 
- * - * string gcs_file_uri = 1; - * - * @return The bytes for gcsFileUri. - */ - com.google.protobuf.ByteString getGcsFileUriBytes(); -} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceOuterClass.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceOuterClass.java deleted file mode 100644 index 81835a36..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceOuterClass.java +++ /dev/null @@ -1,1027 +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/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public final class DataLabelingServiceOuterClass { - private DataLabelingServiceOuterClass() {} - - 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_datalabeling_v1beta1_CreateDatasetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_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/datalabeling/v1beta1/data" - + "_labeling_service.proto\022!google.cloud.da" - + "talabeling.v1beta1\032\034google/api/annotatio" - + "ns.proto\032\027google/api/client.proto\032\037googl" - + "e/api/field_behavior.proto\032\031google/api/r" - + "esource.proto\032;google/cloud/datalabeling" - + "/v1beta1/annotation_spec_set.proto\032/goog" - + "le/cloud/datalabeling/v1beta1/dataset.pr" - + "oto\0322google/cloud/datalabeling/v1beta1/e" - + "valuation.proto\0326google/cloud/datalabeli" - + "ng/v1beta1/evaluation_job.proto\032?google/" - + "cloud/datalabeling/v1beta1/human_annotat" - + "ion_config.proto\0323google/cloud/datalabel" - + "ing/v1beta1/instruction.proto\032#google/lo" - + "ngrunning/operations.proto\032\033google/proto" - + "buf/empty.proto\032 google/protobuf/field_m" - + "ask.proto\"\235\001\n\024CreateDatasetRequest\022C\n\006pa" - + "rent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager" - + ".googleapis.com/Project\022@\n\007dataset\030\002 \001(\013" - + "2*.google.cloud.datalabeling.v1beta1.Dat" - + "asetB\003\340A\002\"N\n\021GetDatasetRequest\0229\n\004name\030\001" - + " \001(\tB+\340A\002\372A%\n#datalabeling.googleapis.co" - + "m/Dataset\"\240\001\n\023ListDatasetsRequest\022C\n\006par" - + "ent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager." - + "googleapis.com/Project\022\023\n\006filter\030\002 \001(\tB\003" - + "\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_toke" - + "n\030\004 \001(\tB\003\340A\001\"m\n\024ListDatasetsResponse\022<\n\010" - + "datasets\030\001 \003(\0132*.google.cloud.datalabeli" - + "ng.v1beta1.Dataset\022\027\n\017next_page_token\030\002 " - + "\001(\t\"Q\n\024DeleteDatasetRequest\0229\n\004name\030\001 \001(" - + "\tB+\340A\002\372A%\n#datalabeling.googleapis.com/D" - + "ataset\"\265\001\n\021ImportDataRequest\0229\n\004name\030\001 \001" - + "(\tB+\340A\002\372A%\n#datalabeling.googleapis.com/" - + "Dataset\022I\n\014input_config\030\002 \001(\0132..google.c" - + "loud.datalabeling.v1beta1.InputConfigB\003\340" - + "A\002\022\032\n\022user_email_address\030\003 \001(\t\"\235\002\n\021Expor" - + "tDataRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#data" - + "labeling.googleapis.com/Dataset\022O\n\021annot" - + "ated_dataset\030\002 \001(\tB4\340A\002\372A.\n,datalabeling" - + ".googleapis.com/AnnotatedDataset\022\023\n\006filt" - + "er\030\003 \001(\tB\003\340A\001\022K\n\routput_config\030\004 \001(\0132/.g" - + "oogle.cloud.datalabeling.v1beta1.OutputC" - + "onfigB\003\340A\002\022\032\n\022user_email_address\030\005 \001(\t\"P" - + "\n\022GetDataItemRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372" - + "A&\n$datalabeling.googleapis.com/DataItem" - + "\"\231\001\n\024ListDataItemsRequest\022;\n\006parent\030\001 \001(" - + "\tB+\340A\002\372A%\n#datalabeling.googleapis.com/D" - + "ataset\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size" - + "\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\"q\n\025" - + "ListDataItemsResponse\022?\n\ndata_items\030\001 \003(" - + "\0132+.google.cloud.datalabeling.v1beta1.Da" - + "taItem\022\027\n\017next_page_token\030\002 \001(\t\"`\n\032GetAn" - + "notatedDatasetRequest\022B\n\004name\030\001 \001(\tB4\340A\002" - + "\372A.\n,datalabeling.googleapis.com/Annotat" - + "edDataset\"\241\001\n\034ListAnnotatedDatasetsReque" - + "st\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#datalabeling" - + ".googleapis.com/Dataset\022\023\n\006filter\030\002 \001(\tB" - + "\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_tok" - + "en\030\004 \001(\tB\003\340A\001\"\211\001\n\035ListAnnotatedDatasetsR" - + "esponse\022O\n\022annotated_datasets\030\001 \003(\01323.go" - + "ogle.cloud.datalabeling.v1beta1.Annotate" - + "dDataset\022\027\n\017next_page_token\030\002 \001(\t\"c\n\035Del" - + "eteAnnotatedDatasetRequest\022B\n\004name\030\001 \001(\t" - + "B4\340A\002\372A.\n,datalabeling.googleapis.com/An" - + "notatedDataset\"\204\006\n\021LabelImageRequest\022c\n\033" - + "image_classification_config\030\004 \001(\0132<.goog" - + "le.cloud.datalabeling.v1beta1.ImageClass" - + "ificationConfigH\000\022U\n\024bounding_poly_confi" - + "g\030\005 \001(\01325.google.cloud.datalabeling.v1be" - + "ta1.BoundingPolyConfigH\000\022L\n\017polyline_con" - + "fig\030\006 \001(\01321.google.cloud.datalabeling.v1" - + "beta1.PolylineConfigH\000\022T\n\023segmentation_c" - + "onfig\030\007 \001(\01325.google.cloud.datalabeling." - + "v1beta1.SegmentationConfigH\000\022;\n\006parent\030\001" - + " \001(\tB+\340A\002\372A%\n#datalabeling.googleapis.co" - + "m/Dataset\022S\n\014basic_config\030\002 \001(\01328.google" - + ".cloud.datalabeling.v1beta1.HumanAnnotat" - + "ionConfigB\003\340A\002\022R\n\007feature\030\003 \001(\0162<.google" - + ".cloud.datalabeling.v1beta1.LabelImageRe" - + "quest.FeatureB\003\340A\002\"\226\001\n\007Feature\022\027\n\023FEATUR" - + "E_UNSPECIFIED\020\000\022\022\n\016CLASSIFICATION\020\001\022\020\n\014B" - + "OUNDING_BOX\020\002\022\031\n\025ORIENTED_BOUNDING_BOX\020\006" - + "\022\021\n\rBOUNDING_POLY\020\003\022\014\n\010POLYLINE\020\004\022\020\n\014SEG" - + "MENTATION\020\005B\020\n\016request_config\"\336\005\n\021LabelV" - + "ideoRequest\022c\n\033video_classification_conf" - + "ig\030\004 \001(\0132<.google.cloud.datalabeling.v1b" - + "eta1.VideoClassificationConfigH\000\022[\n\027obje" - + "ct_detection_config\030\005 \001(\01328.google.cloud" - + ".datalabeling.v1beta1.ObjectDetectionCon" - + "figH\000\022Y\n\026object_tracking_config\030\006 \001(\01327." - + "google.cloud.datalabeling.v1beta1.Object" - + "TrackingConfigH\000\022F\n\014event_config\030\007 \001(\0132." - + ".google.cloud.datalabeling.v1beta1.Event" - + "ConfigH\000\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#datala" - + "beling.googleapis.com/Dataset\022S\n\014basic_c" - + "onfig\030\002 \001(\01328.google.cloud.datalabeling." - + "v1beta1.HumanAnnotationConfigB\003\340A\002\022R\n\007fe" - + "ature\030\003 \001(\0162<.google.cloud.datalabeling." - + "v1beta1.LabelVideoRequest.FeatureB\003\340A\002\"l" - + "\n\007Feature\022\027\n\023FEATURE_UNSPECIFIED\020\000\022\022\n\016CL" - + "ASSIFICATION\020\001\022\024\n\020OBJECT_DETECTION\020\002\022\023\n\017" - + "OBJECT_TRACKING\020\003\022\t\n\005EVENT\020\004B\020\n\016request_" - + "config\"\255\004\n\020LabelTextRequest\022a\n\032text_clas" - + "sification_config\030\004 \001(\0132;.google.cloud.d" - + "atalabeling.v1beta1.TextClassificationCo" - + "nfigH\000\022f\n\035text_entity_extraction_config\030" - + "\005 \001(\0132=.google.cloud.datalabeling.v1beta" - + "1.TextEntityExtractionConfigH\000\022;\n\006parent" - + "\030\001 \001(\tB+\340A\002\372A%\n#datalabeling.googleapis." - + "com/Dataset\022S\n\014basic_config\030\002 \001(\01328.goog" - + "le.cloud.datalabeling.v1beta1.HumanAnnot" - + "ationConfigB\003\340A\002\022Q\n\007feature\030\006 \001(\0162;.goog" - + "le.cloud.datalabeling.v1beta1.LabelTextR" - + "equest.FeatureB\003\340A\002\"W\n\007Feature\022\027\n\023FEATUR" - + "E_UNSPECIFIED\020\000\022\027\n\023TEXT_CLASSIFICATION\020\001" - + "\022\032\n\026TEXT_ENTITY_EXTRACTION\020\002B\020\n\016request_" - + "config\"c\n\021GetExampleRequest\0229\n\004name\030\001 \001(" - + "\tB+\340A\002\372A%\n#datalabeling.googleapis.com/E" - + "xample\022\023\n\006filter\030\002 \001(\tB\003\340A\001\"\241\001\n\023ListExam" - + "plesRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,dat" - + "alabeling.googleapis.com/AnnotatedDatase" - + "t\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(" - + "\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\"m\n\024ListE" - + "xamplesResponse\022<\n\010examples\030\001 \003(\0132*.goog" - + "le.cloud.datalabeling.v1beta1.Example\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\275\001\n\036CreateAnnotat" - + "ionSpecSetRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A" - + "-\n+cloudresourcemanager.googleapis.com/P" - + "roject\022V\n\023annotation_spec_set\030\002 \001(\01324.go" - + "ogle.cloud.datalabeling.v1beta1.Annotati" - + "onSpecSetB\003\340A\002\"b\n\033GetAnnotationSpecSetRe" - + "quest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-datalabelin" - + "g.googleapis.com/AnnotationSpecSet\"\252\001\n\035L" - + "istAnnotationSpecSetsRequest\022C\n\006parent\030\001" - + " \001(\tB3\340A\002\372A-\n+cloudresourcemanager.googl" - + "eapis.com/Project\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026" - + "\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001" - + "(\tB\003\340A\001\"\215\001\n\036ListAnnotationSpecSetsRespon" - + "se\022R\n\024annotation_spec_sets\030\001 \003(\01324.googl" - + "e.cloud.datalabeling.v1beta1.AnnotationS" - + "pecSet\022\027\n\017next_page_token\030\002 \001(\t\"e\n\036Delet" - + "eAnnotationSpecSetRequest\022C\n\004name\030\001 \001(\tB" - + "5\340A\002\372A/\n-datalabeling.googleapis.com/Ann" - + "otationSpecSet\"\251\001\n\030CreateInstructionRequ" - + "est\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresour" - + "cemanager.googleapis.com/Project\022H\n\013inst" - + "ruction\030\002 \001(\0132..google.cloud.datalabelin" - + "g.v1beta1.InstructionB\003\340A\002\"V\n\025GetInstruc" - + "tionRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'datal" - + "abeling.googleapis.com/Instruction\"Y\n\030De" - + "leteInstructionRequest\022=\n\004name\030\001 \001(\tB/\340A" - + "\002\372A)\n\'datalabeling.googleapis.com/Instru" - + "ction\"\244\001\n\027ListInstructionsRequest\022C\n\006par" - + "ent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager." - + "googleapis.com/Project\022\023\n\006filter\030\002 \001(\tB\003" - + "\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_toke" - + "n\030\004 \001(\tB\003\340A\001\"y\n\030ListInstructionsResponse" - + "\022D\n\014instructions\030\001 \003(\0132..google.cloud.da" - + "talabeling.v1beta1.Instruction\022\027\n\017next_p" - + "age_token\030\002 \001(\t\"T\n\024GetEvaluationRequest\022" - + "<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&datalabeling.goog" - + "leapis.com/Evaluation\"\240\001\n\030SearchEvaluati" - + "onsRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\n&data" - + "labeling.googleapis.com/Evaluation\022\023\n\006fi" - + "lter\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022" - + "\027\n\npage_token\030\004 \001(\tB\003\340A\001\"x\n\031SearchEvalua" - + "tionsResponse\022B\n\013evaluations\030\001 \003(\0132-.goo" - + "gle.cloud.datalabeling.v1beta1.Evaluatio" - + "n\022\027\n\017next_page_token\030\002 \001(\t\"\222\001\n\037SearchExa" - + "mpleComparisonsRequest\022>\n\006parent\030\001 \001(\tB." - + "\340A\002\372A(\n&datalabeling.googleapis.com/Eval" - + "uation\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_t" - + "oken\030\003 \001(\tB\003\340A\001\"\333\002\n SearchExampleCompari" - + "sonsResponse\022r\n\023example_comparisons\030\001 \003(" - + "\0132U.google.cloud.datalabeling.v1beta1.Se" - + "archExampleComparisonsResponse.ExampleCo" - + "mparison\022\027\n\017next_page_token\030\002 \001(\t\032\251\001\n\021Ex" - + "ampleComparison\022H\n\024ground_truth_example\030" - + "\001 \001(\0132*.google.cloud.datalabeling.v1beta" - + "1.Example\022J\n\026model_created_examples\030\002 \003(" - + "\0132*.google.cloud.datalabeling.v1beta1.Ex" - + "ample\"\245\001\n\032CreateEvaluationJobRequest\022C\n\006" - + "parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanag" - + "er.googleapis.com/Project\022B\n\003job\030\002 \001(\01320" - + ".google.cloud.datalabeling.v1beta1.Evalu" - + "ationJobB\003\340A\002\"\241\001\n\032UpdateEvaluationJobReq" - + "uest\022M\n\016evaluation_job\030\001 \001(\01320.google.cl" - + "oud.datalabeling.v1beta1.EvaluationJobB\003" - + "\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protob" - + "uf.FieldMaskB\003\340A\001\"Z\n\027GetEvaluationJobReq" - + "uest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)datalabeling" - + ".googleapis.com/EvaluationJob\"\\\n\031PauseEv" - + "aluationJobRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+" - + "\n)datalabeling.googleapis.com/Evaluation" - + "Job\"]\n\032ResumeEvaluationJobRequest\022?\n\004nam" - + "e\030\001 \001(\tB1\340A\002\372A+\n)datalabeling.googleapis" - + ".com/EvaluationJob\"]\n\032DeleteEvaluationJo" - + "bRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)datalabe" - + "ling.googleapis.com/EvaluationJob\"\246\001\n\031Li" - + "stEvaluationJobsRequest\022C\n\006parent\030\001 \001(\tB" - + "3\340A\002\372A-\n+cloudresourcemanager.googleapis" - + ".com/Project\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026\n\tpag" - + "e_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340" - + "A\001\"\200\001\n\032ListEvaluationJobsResponse\022I\n\017eva" - + "luation_jobs\030\001 \003(\01320.google.cloud.datala" - + "beling.v1beta1.EvaluationJob\022\027\n\017next_pag" - + "e_token\030\002 \001(\t2\2468\n\023DataLabelingService\022\267\001" - + "\n\rCreateDataset\0227.google.cloud.datalabel" - + "ing.v1beta1.CreateDatasetRequest\032*.googl" - + "e.cloud.datalabeling.v1beta1.Dataset\"A\202\323" - + "\344\223\002*\"%/v1beta1/{parent=projects/*}/datas" - + "ets:\001*\332A\016parent,dataset\022\244\001\n\nGetDataset\0224" - + ".google.cloud.datalabeling.v1beta1.GetDa" - + "tasetRequest\032*.google.cloud.datalabeling" - + ".v1beta1.Dataset\"4\202\323\344\223\002\'\022%/v1beta1/{name" - + "=projects/*/datasets/*}\332A\004name\022\276\001\n\014ListD" - + "atasets\0226.google.cloud.datalabeling.v1be" - + "ta1.ListDatasetsRequest\0327.google.cloud.d" - + "atalabeling.v1beta1.ListDatasetsResponse" - + "\"=\202\323\344\223\002\'\022%/v1beta1/{parent=projects/*}/d" - + "atasets\332A\rparent,filter\022\226\001\n\rDeleteDatase" - + "t\0227.google.cloud.datalabeling.v1beta1.De" - + "leteDatasetRequest\032\026.google.protobuf.Emp" - + "ty\"4\202\323\344\223\002\'*%/v1beta1/{name=projects/*/da" - + "tasets/*}\332A\004name\022\360\001\n\nImportData\0224.google" - + ".cloud.datalabeling.v1beta1.ImportDataRe" - + "quest\032\035.google.longrunning.Operation\"\214\001\202" - + "\323\344\223\0025\"0/v1beta1/{name=projects/*/dataset" - + "s/*}:importData:\001*\332A\021name,input_config\312A" - + ":\n\033ImportDataOperationResponse\022\033ImportDa" - + "taOperationMetadata\022\212\002\n\nExportData\0224.goo" - + "gle.cloud.datalabeling.v1beta1.ExportDat" - + "aRequest\032\035.google.longrunning.Operation\"" - + "\246\001\202\323\344\223\0025\"0/v1beta1/{name=projects/*/data" - + "sets/*}:exportData:\001*\332A+name,annotated_d" - + "ataset,filter,output_config\312A:\n\033ExportDa" - + "taOperationResponse\022\033ExportDataOperation" - + "Metadata\022\263\001\n\013GetDataItem\0225.google.cloud." - + "datalabeling.v1beta1.GetDataItemRequest\032" - + "+.google.cloud.datalabeling.v1beta1.Data" - + "Item\"@\202\323\344\223\0023\0221/v1beta1/{name=projects/*/" - + "datasets/*/dataItems/*}\332A\004name\022\315\001\n\rListD" - + "ataItems\0227.google.cloud.datalabeling.v1b" - + "eta1.ListDataItemsRequest\0328.google.cloud" - + ".datalabeling.v1beta1.ListDataItemsRespo" - + "nse\"I\202\323\344\223\0023\0221/v1beta1/{parent=projects/*" - + "/datasets/*}/dataItems\332A\rparent,filter\022\323" - + "\001\n\023GetAnnotatedDataset\022=.google.cloud.da" - + "talabeling.v1beta1.GetAnnotatedDatasetRe" - + "quest\0323.google.cloud.datalabeling.v1beta" - + "1.AnnotatedDataset\"H\202\323\344\223\002;\0229/v1beta1/{na" - + "me=projects/*/datasets/*/annotatedDatase" - + "ts/*}\332A\004name\022\355\001\n\025ListAnnotatedDatasets\022?" - + ".google.cloud.datalabeling.v1beta1.ListA" - + "nnotatedDatasetsRequest\032@.google.cloud.d" - + "atalabeling.v1beta1.ListAnnotatedDataset" - + "sResponse\"Q\202\323\344\223\002;\0229/v1beta1/{parent=proj" - + "ects/*/datasets/*}/annotatedDatasets\332A\rp" - + "arent,filter\022\265\001\n\026DeleteAnnotatedDataset\022" - + "@.google.cloud.datalabeling.v1beta1.Dele" - + "teAnnotatedDatasetRequest\032\026.google.proto" - + "buf.Empty\"A\202\323\344\223\002;*9/v1beta1/{name=projec" - + "ts/*/datasets/*/annotatedDatasets/*}\022\355\001\n" - + "\nLabelImage\0224.google.cloud.datalabeling." - + "v1beta1.LabelImageRequest\032\035.google.longr" - + "unning.Operation\"\211\001\202\323\344\223\0028\"3/v1beta1/{par" - + "ent=projects/*/datasets/*}/image:label:\001" - + "*\332A\033parent,basic_config,feature\312A*\n\020Anno" - + "tatedDataset\022\026LabelOperationMetadata\022\355\001\n" - + "\nLabelVideo\0224.google.cloud.datalabeling." - + "v1beta1.LabelVideoRequest\032\035.google.longr" - + "unning.Operation\"\211\001\202\323\344\223\0028\"3/v1beta1/{par" - + "ent=projects/*/datasets/*}/video:label:\001" - + "*\332A\033parent,basic_config,feature\312A*\n\020Anno" - + "tatedDataset\022\026LabelOperationMetadata\022\352\001\n" - + "\tLabelText\0223.google.cloud.datalabeling.v" - + "1beta1.LabelTextRequest\032\035.google.longrun" - + "ning.Operation\"\210\001\202\323\344\223\0027\"2/v1beta1/{paren" - + "t=projects/*/datasets/*}/text:label:\001*\332A" - + "\033parent,basic_config,feature\312A*\n\020Annotat" - + "edDataset\022\026LabelOperationMetadata\022\312\001\n\nGe" - + "tExample\0224.google.cloud.datalabeling.v1b" - + "eta1.GetExampleRequest\032*.google.cloud.da" - + "talabeling.v1beta1.Example\"Z\202\323\344\223\002F\022D/v1b" - + "eta1/{name=projects/*/datasets/*/annotat" - + "edDatasets/*/examples/*}\332A\013name,filter\022\335" - + "\001\n\014ListExamples\0226.google.cloud.datalabel" - + "ing.v1beta1.ListExamplesRequest\0327.google" - + ".cloud.datalabeling.v1beta1.ListExamples" - + "Response\"\\\202\323\344\223\002F\022D/v1beta1/{parent=proje" - + "cts/*/datasets/*/annotatedDatasets/*}/ex" - + "amples\332A\rparent,filter\022\353\001\n\027CreateAnnotat" - + "ionSpecSet\022A.google.cloud.datalabeling.v" - + "1beta1.CreateAnnotationSpecSetRequest\0324." - + "google.cloud.datalabeling.v1beta1.Annota" - + "tionSpecSet\"W\202\323\344\223\0024\"//v1beta1/{parent=pr" - + "ojects/*}/annotationSpecSets:\001*\332A\032parent" - + ",annotation_spec_set\022\314\001\n\024GetAnnotationSp" - + "ecSet\022>.google.cloud.datalabeling.v1beta" - + "1.GetAnnotationSpecSetRequest\0324.google.c" - + "loud.datalabeling.v1beta1.AnnotationSpec" - + "Set\">\202\323\344\223\0021\022//v1beta1/{name=projects/*/a" - + "nnotationSpecSets/*}\332A\004name\022\346\001\n\026ListAnno" - + "tationSpecSets\022@.google.cloud.datalabeli" - + "ng.v1beta1.ListAnnotationSpecSetsRequest" - + "\032A.google.cloud.datalabeling.v1beta1.Lis" - + "tAnnotationSpecSetsResponse\"G\202\323\344\223\0021\022//v1" - + "beta1/{parent=projects/*}/annotationSpec" - + "Sets\332A\rparent,filter\022\264\001\n\027DeleteAnnotatio" - + "nSpecSet\022A.google.cloud.datalabeling.v1b" - + "eta1.DeleteAnnotationSpecSetRequest\032\026.go" - + "ogle.protobuf.Empty\">\202\323\344\223\0021*//v1beta1/{n" - + "ame=projects/*/annotationSpecSets/*}\332A\004n" - + "ame\022\345\001\n\021CreateInstruction\022;.google.cloud" - + ".datalabeling.v1beta1.CreateInstructionR" - + "equest\032\035.google.longrunning.Operation\"t\202" - + "\323\344\223\002.\")/v1beta1/{parent=projects/*}/inst" - + "ructions:\001*\332A\022parent,instruction\312A(\n\013Ins" - + "truction\022\031CreateInstructionMetadata\022\264\001\n\016" - + "GetInstruction\0228.google.cloud.datalabeli" - + "ng.v1beta1.GetInstructionRequest\032..googl" - + "e.cloud.datalabeling.v1beta1.Instruction" - + "\"8\202\323\344\223\002+\022)/v1beta1/{name=projects/*/inst" - + "ructions/*}\332A\004name\022\316\001\n\020ListInstructions\022" - + ":.google.cloud.datalabeling.v1beta1.List" - + "InstructionsRequest\032;.google.cloud.datal" - + "abeling.v1beta1.ListInstructionsResponse" - + "\"A\202\323\344\223\002+\022)/v1beta1/{parent=projects/*}/i" - + "nstructions\332A\rparent,filter\022\242\001\n\021DeleteIn" - + "struction\022;.google.cloud.datalabeling.v1" - + "beta1.DeleteInstructionRequest\032\026.google." - + "protobuf.Empty\"8\202\323\344\223\002+*)/v1beta1/{name=p" - + "rojects/*/instructions/*}\332A\004name\022\273\001\n\rGet" - + "Evaluation\0227.google.cloud.datalabeling.v" - + "1beta1.GetEvaluationRequest\032-.google.clo" - + "ud.datalabeling.v1beta1.Evaluation\"B\202\323\344\223" - + "\0025\0223/v1beta1/{name=projects/*/datasets/*" - + "/evaluations/*}\332A\004name\022\327\001\n\021SearchEvaluat" - + "ions\022;.google.cloud.datalabeling.v1beta1" - + ".SearchEvaluationsRequest\032<.google.cloud" - + ".datalabeling.v1beta1.SearchEvaluationsR" - + "esponse\"G\202\323\344\223\0021\022//v1beta1/{parent=projec" - + "ts/*}/evaluations:search\332A\rparent,filter" - + "\022\210\002\n\030SearchExampleComparisons\022B.google.c" - + "loud.datalabeling.v1beta1.SearchExampleC" - + "omparisonsRequest\032C.google.cloud.datalab" - + "eling.v1beta1.SearchExampleComparisonsRe" - + "sponse\"c\202\323\344\223\002T\"O/v1beta1/{parent=project" - + "s/*/datasets/*/evaluations/*}/exampleCom" - + "parisons:search:\001*\332A\006parent\022\313\001\n\023CreateEv" - + "aluationJob\022=.google.cloud.datalabeling." - + "v1beta1.CreateEvaluationJobRequest\0320.goo" - + "gle.cloud.datalabeling.v1beta1.Evaluatio" - + "nJob\"C\202\323\344\223\0020\"+/v1beta1/{parent=projects/" - + "*}/evaluationJobs:\001*\332A\nparent,job\022\367\001\n\023Up" - + "dateEvaluationJob\022=.google.cloud.datalab" - + "eling.v1beta1.UpdateEvaluationJobRequest" - + "\0320.google.cloud.datalabeling.v1beta1.Eva" - + "luationJob\"o\202\323\344\223\002L2:/v1beta1/{evaluation" - + "_job.name=projects/*/evaluationJobs/*}:\016" - + "evaluation_job\332A\032evaluation_job,update_m" - + "ask\022\274\001\n\020GetEvaluationJob\022:.google.cloud." - + "datalabeling.v1beta1.GetEvaluationJobReq" - + "uest\0320.google.cloud.datalabeling.v1beta1" - + ".EvaluationJob\":\202\323\344\223\002-\022+/v1beta1/{name=p" - + "rojects/*/evaluationJobs/*}\332A\004name\022\257\001\n\022P" - + "auseEvaluationJob\022<.google.cloud.datalab" - + "eling.v1beta1.PauseEvaluationJobRequest\032" - + "\026.google.protobuf.Empty\"C\202\323\344\223\0026\"1/v1beta" - + "1/{name=projects/*/evaluationJobs/*}:pau" - + "se:\001*\332A\004name\022\262\001\n\023ResumeEvaluationJob\022=.g" - + "oogle.cloud.datalabeling.v1beta1.ResumeE" - + "valuationJobRequest\032\026.google.protobuf.Em" - + "pty\"D\202\323\344\223\0027\"2/v1beta1/{name=projects/*/e" - + "valuationJobs/*}:resume:\001*\332A\004name\022\250\001\n\023De" - + "leteEvaluationJob\022=.google.cloud.datalab" - + "eling.v1beta1.DeleteEvaluationJobRequest" - + "\032\026.google.protobuf.Empty\":\202\323\344\223\002-*+/v1bet" - + "a1/{name=projects/*/evaluationJobs/*}\332A\004" - + "name\022\326\001\n\022ListEvaluationJobs\022<.google.clo" - + "ud.datalabeling.v1beta1.ListEvaluationJo" - + "bsRequest\032=.google.cloud.datalabeling.v1" - + "beta1.ListEvaluationJobsResponse\"C\202\323\344\223\002-" - + "\022+/v1beta1/{parent=projects/*}/evaluatio" - + "nJobs\332A\rparent,filter\032O\312A\033datalabeling.g" - + "oogleapis.com\322A.https://www.googleapis.c" - + "om/auth/cloud-platformB\347\001\n%com.google.cl" - + "oud.datalabeling.v1beta1P\001ZMgoogle.golan" - + "g.org/genproto/googleapis/cloud/datalabe" - + "ling/v1beta1;datalabeling\252\002!Google.Cloud" - + ".DataLabeling.V1Beta1\312\002!Google\\Cloud\\Dat" - + "aLabeling\\V1beta1\352\002$Google::Cloud::DataL" - + "abeling::V1beta1b\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.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_descriptor, - new java.lang.String[] { - "Parent", "Dataset", - }); - internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "PageSize", "PageToken", - }); - internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor, - new java.lang.String[] { - "Datasets", "NextPageToken", - }); - internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor, - new java.lang.String[] { - "Name", "InputConfig", "UserEmailAddress", - }); - internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor, - new java.lang.String[] { - "Name", "AnnotatedDataset", "Filter", "OutputConfig", "UserEmailAddress", - }); - internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "PageSize", "PageToken", - }); - internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor, - new java.lang.String[] { - "DataItems", "NextPageToken", - }); - internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "PageSize", "PageToken", - }); - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor, - new java.lang.String[] { - "AnnotatedDatasets", "NextPageToken", - }); - internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor, - new java.lang.String[] { - "ImageClassificationConfig", - "BoundingPolyConfig", - "PolylineConfig", - "SegmentationConfig", - "Parent", - "BasicConfig", - "Feature", - "RequestConfig", - }); - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor, - new java.lang.String[] { - "VideoClassificationConfig", - "ObjectDetectionConfig", - "ObjectTrackingConfig", - "EventConfig", - "Parent", - "BasicConfig", - "Feature", - "RequestConfig", - }); - internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor, - new java.lang.String[] { - "TextClassificationConfig", - "TextEntityExtractionConfig", - "Parent", - "BasicConfig", - "Feature", - "RequestConfig", - }); - internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor, - new java.lang.String[] { - "Name", "Filter", - }); - internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "PageSize", "PageToken", - }); - internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor, - new java.lang.String[] { - "Examples", "NextPageToken", - }); - internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor, - new java.lang.String[] { - "Parent", "AnnotationSpecSet", - }); - internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "PageSize", "PageToken", - }); - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor, - new java.lang.String[] { - "AnnotationSpecSets", "NextPageToken", - }); - internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor, - new java.lang.String[] { - "Parent", "Instruction", - }); - internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "PageSize", "PageToken", - }); - internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor, - new java.lang.String[] { - "Instructions", "NextPageToken", - }); - internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "PageSize", "PageToken", - }); - internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor, - new java.lang.String[] { - "Evaluations", "NextPageToken", - }); - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor, - new java.lang.String[] { - "ExampleComparisons", "NextPageToken", - }); - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor = - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor, - new java.lang.String[] { - "GroundTruthExample", "ModelCreatedExamples", - }); - internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor, - new java.lang.String[] { - "Parent", "Job", - }); - internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor, - new java.lang.String[] { - "EvaluationJob", "UpdateMask", - }); - internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor, - new java.lang.String[] { - "Parent", "Filter", "PageSize", "PageToken", - }); - internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor, - new java.lang.String[] { - "EvaluationJobs", "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.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataPayloads.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataPayloads.java deleted file mode 100644 index f3c23f7e..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataPayloads.java +++ /dev/null @@ -1,123 +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/datalabeling/v1beta1/data_payloads.proto - -package com.google.cloud.datalabeling.v1beta1; - -public final class DataPayloads { - private DataPayloads() {} - - 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_datalabeling_v1beta1_ImagePayload_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_TextPayload_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n5google/cloud/datalabeling/v1beta1/data" - + "_payloads.proto\022!google.cloud.datalabeli" - + "ng.v1beta1\032\034google/api/annotations.proto" - + "\032\036google/protobuf/duration.proto\032\037google" - + "/protobuf/timestamp.proto\"a\n\014ImagePayloa" - + "d\022\021\n\tmime_type\030\001 \001(\t\022\027\n\017image_thumbnail\030" - + "\002 \001(\014\022\021\n\timage_uri\030\003 \001(\t\022\022\n\nsigned_uri\030\004" - + " \001(\t\"#\n\013TextPayload\022\024\n\014text_content\030\001 \001(" - + "\t\"S\n\016VideoThumbnail\022\021\n\tthumbnail\030\001 \001(\014\022." - + "\n\013time_offset\030\002 \001(\0132\031.google.protobuf.Du" - + "ration\"\251\001\n\014VideoPayload\022\021\n\tmime_type\030\001 \001" - + "(\t\022\021\n\tvideo_uri\030\002 \001(\t\022K\n\020video_thumbnail" - + "s\030\003 \003(\01321.google.cloud.datalabeling.v1be" - + "ta1.VideoThumbnail\022\022\n\nframe_rate\030\004 \001(\002\022\022" - + "\n\nsigned_uri\030\005 \001(\tB\347\001\n%com.google.cloud." - + "datalabeling.v1beta1P\001ZMgoogle.golang.or" - + "g/genproto/googleapis/cloud/datalabeling" - + "/v1beta1;datalabeling\252\002!Google.Cloud.Dat" - + "aLabeling.V1Beta1\312\002!Google\\Cloud\\DataLab" - + "eling\\V1beta1\352\002$Google::Cloud::DataLabel" - + "ing::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_descriptor, - new java.lang.String[] { - "MimeType", "ImageThumbnail", "ImageUri", "SignedUri", - }); - internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datalabeling_v1beta1_TextPayload_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor, - new java.lang.String[] { - "TextContent", - }); - internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor, - new java.lang.String[] { - "Thumbnail", "TimeOffset", - }); - internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor, - new java.lang.String[] { - "MimeType", "VideoUri", "VideoThumbnails", "FrameRate", "SignedUri", - }); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOuterClass.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOuterClass.java deleted file mode 100644 index aadb0018..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOuterClass.java +++ /dev/null @@ -1,402 +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/datalabeling/v1beta1/dataset.proto - -package com.google.cloud.datalabeling.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_datalabeling_v1beta1_Dataset_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_Dataset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_DataItem_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelStats_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_Example_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/datalabeling/v1beta1/data" - + "set.proto\022!google.cloud.datalabeling.v1b" - + "eta1\032\034google/api/annotations.proto\032\031goog" - + "le/api/resource.proto\0322google/cloud/data" - + "labeling/v1beta1/annotation.proto\032;googl" - + "e/cloud/datalabeling/v1beta1/annotation_" - + "spec_set.proto\0325google/cloud/datalabelin" - + "g/v1beta1/data_payloads.proto\032?google/cl" - + "oud/datalabeling/v1beta1/human_annotatio" - + "n_config.proto\032\037google/protobuf/timestam" - + "p.proto\"\300\002\n\007Dataset\022\014\n\004name\030\001 \001(\t\022\024\n\014dis" - + "play_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022/\n\013" - + "create_time\030\004 \001(\0132\032.google.protobuf.Time" - + "stamp\022E\n\rinput_configs\030\005 \003(\0132..google.cl" - + "oud.datalabeling.v1beta1.InputConfig\022\032\n\022" - + "blocking_resources\030\006 \003(\t\022\027\n\017data_item_co" - + "unt\030\007 \001(\003:O\352AL\n#datalabeling.googleapis." - + "com/Dataset\022%projects/{project}/datasets" - + "/{dataset}\"\361\003\n\013InputConfig\022H\n\rtext_metad" - + "ata\030\006 \001(\0132/.google.cloud.datalabeling.v1" - + "beta1.TextMetadataH\000\022B\n\ngcs_source\030\002 \001(\013" - + "2,.google.cloud.datalabeling.v1beta1.Gcs" - + "SourceH\001\022L\n\017bigquery_source\030\005 \001(\01321.goog" - + "le.cloud.datalabeling.v1beta1.BigQuerySo" - + "urceH\001\022>\n\tdata_type\030\001 \001(\0162+.google.cloud" - + ".datalabeling.v1beta1.DataType\022J\n\017annota" - + "tion_type\030\003 \001(\01621.google.cloud.datalabel" - + "ing.v1beta1.AnnotationType\022Z\n\027classifica" - + "tion_metadata\030\004 \001(\01329.google.cloud.datal" - + "abeling.v1beta1.ClassificationMetadataB\024" - + "\n\022data_type_metadataB\010\n\006source\"%\n\014TextMe" - + "tadata\022\025\n\rlanguage_code\030\001 \001(\t\"0\n\026Classif" - + "icationMetadata\022\026\n\016is_multi_label\030\001 \001(\010\"" - + "1\n\tGcsSource\022\021\n\tinput_uri\030\001 \001(\t\022\021\n\tmime_" - + "type\030\002 \001(\t\"#\n\016BigQuerySource\022\021\n\tinput_ur" - + "i\030\001 \001(\t\"\306\001\n\014OutputConfig\022L\n\017gcs_destinat" - + "ion\030\001 \001(\01321.google.cloud.datalabeling.v1" - + "beta1.GcsDestinationH\000\022Y\n\026gcs_folder_des" - + "tination\030\002 \001(\01327.google.cloud.datalabeli" - + "ng.v1beta1.GcsFolderDestinationH\000B\r\n\013des" - + "tination\"7\n\016GcsDestination\022\022\n\noutput_uri" - + "\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\t\"1\n\024GcsFolderDe" - + "stination\022\031\n\021output_folder_uri\030\001 \001(\t\"\347\002\n" - + "\010DataItem\022H\n\rimage_payload\030\002 \001(\0132/.googl" - + "e.cloud.datalabeling.v1beta1.ImagePayloa" - + "dH\000\022F\n\014text_payload\030\003 \001(\0132..google.cloud" - + ".datalabeling.v1beta1.TextPayloadH\000\022H\n\rv" - + "ideo_payload\030\004 \001(\0132/.google.cloud.datala" - + "beling.v1beta1.VideoPayloadH\000\022\014\n\004name\030\001 " - + "\001(\t:f\352Ac\n$datalabeling.googleapis.com/Da" - + "taItem\022;projects/{project}/datasets/{dat" - + "aset}/dataItems/{data_item}B\t\n\007payload\"\377" - + "\004\n\020AnnotatedDataset\022\014\n\004name\030\001 \001(\t\022\024\n\014dis" - + "play_name\030\002 \001(\t\022\023\n\013description\030\t \001(\t\022N\n\021" - + "annotation_source\030\003 \001(\01623.google.cloud.d" - + "atalabeling.v1beta1.AnnotationSource\022J\n\017" - + "annotation_type\030\010 \001(\01621.google.cloud.dat" - + "alabeling.v1beta1.AnnotationType\022\025\n\rexam" - + "ple_count\030\004 \001(\003\022\037\n\027completed_example_cou" - + "nt\030\005 \001(\003\022B\n\013label_stats\030\006 \001(\0132-.google.c" - + "loud.datalabeling.v1beta1.LabelStats\022/\n\013" - + "create_time\030\007 \001(\0132\032.google.protobuf.Time" - + "stamp\022M\n\010metadata\030\n \001(\0132;.google.cloud.d" - + "atalabeling.v1beta1.AnnotatedDatasetMeta" - + "data\022\032\n\022blocking_resources\030\013 \003(\t:~\352A{\n,d" - + "atalabeling.googleapis.com/AnnotatedData" - + "set\022Kprojects/{project}/datasets/{datase" - + "t}/annotatedDatasets/{annotated_dataset}" - + "\"\231\001\n\nLabelStats\022V\n\rexample_count\030\001 \003(\0132?" - + ".google.cloud.datalabeling.v1beta1.Label" - + "Stats.ExampleCountEntry\0323\n\021ExampleCountE" - + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\"\242\010\n" - + "\030AnnotatedDatasetMetadata\022c\n\033image_class" - + "ification_config\030\002 \001(\0132<.google.cloud.da" - + "talabeling.v1beta1.ImageClassificationCo" - + "nfigH\000\022U\n\024bounding_poly_config\030\003 \001(\01325.g" - + "oogle.cloud.datalabeling.v1beta1.Boundin" - + "gPolyConfigH\000\022L\n\017polyline_config\030\004 \001(\01321" - + ".google.cloud.datalabeling.v1beta1.Polyl" - + "ineConfigH\000\022T\n\023segmentation_config\030\005 \001(\013" - + "25.google.cloud.datalabeling.v1beta1.Seg" - + "mentationConfigH\000\022c\n\033video_classificatio" - + "n_config\030\006 \001(\0132<.google.cloud.datalabeli" - + "ng.v1beta1.VideoClassificationConfigH\000\022[" - + "\n\027object_detection_config\030\007 \001(\01328.google" - + ".cloud.datalabeling.v1beta1.ObjectDetect" - + "ionConfigH\000\022Y\n\026object_tracking_config\030\010 " - + "\001(\01327.google.cloud.datalabeling.v1beta1." - + "ObjectTrackingConfigH\000\022F\n\014event_config\030\t" - + " \001(\0132..google.cloud.datalabeling.v1beta1" - + ".EventConfigH\000\022a\n\032text_classification_co" - + "nfig\030\n \001(\0132;.google.cloud.datalabeling.v" - + "1beta1.TextClassificationConfigH\000\022f\n\035tex" - + "t_entity_extraction_config\030\013 \001(\0132=.googl" - + "e.cloud.datalabeling.v1beta1.TextEntityE" - + "xtractionConfigH\000\022Y\n\027human_annotation_co" - + "nfig\030\001 \001(\01328.google.cloud.datalabeling.v" - + "1beta1.HumanAnnotationConfigB\033\n\031annotati" - + "on_request_config\"\316\003\n\007Example\022H\n\rimage_p" - + "ayload\030\002 \001(\0132/.google.cloud.datalabeling" - + ".v1beta1.ImagePayloadH\000\022F\n\014text_payload\030" - + "\006 \001(\0132..google.cloud.datalabeling.v1beta" - + "1.TextPayloadH\000\022H\n\rvideo_payload\030\007 \001(\0132/" - + ".google.cloud.datalabeling.v1beta1.Video" - + "PayloadH\000\022\014\n\004name\030\001 \001(\t\022B\n\013annotations\030\005" - + " \003(\0132-.google.cloud.datalabeling.v1beta1" - + ".Annotation:\211\001\352A\205\001\n#datalabeling.googlea" - + "pis.com/Example\022^projects/{project}/data" - + "sets/{dataset}/annotatedDatasets/{annota" - + "ted_dataset}/examples/{example}B\t\n\007paylo" - + "ad*W\n\010DataType\022\031\n\025DATA_TYPE_UNSPECIFIED\020" - + "\000\022\t\n\005IMAGE\020\001\022\t\n\005VIDEO\020\002\022\010\n\004TEXT\020\004\022\020\n\014GEN" - + "ERAL_DATA\020\006B\347\001\n%com.google.cloud.datalab" - + "eling.v1beta1P\001ZMgoogle.golang.org/genpr" - + "oto/googleapis/cloud/datalabeling/v1beta" - + "1;datalabeling\252\002!Google.Cloud.DataLabeli" - + "ng.V1Beta1\312\002!Google\\Cloud\\DataLabeling\\V" - + "1beta1\352\002$Google::Cloud::DataLabeling::V1" - + "beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.DataPayloads.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datalabeling_v1beta1_Dataset_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_Dataset_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_Dataset_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Description", - "CreateTime", - "InputConfigs", - "BlockingResources", - "DataItemCount", - }); - internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datalabeling_v1beta1_InputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor, - new java.lang.String[] { - "TextMetadata", - "GcsSource", - "BigquerySource", - "DataType", - "AnnotationType", - "ClassificationMetadata", - "DataTypeMetadata", - "Source", - }); - internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor, - new java.lang.String[] { - "LanguageCode", - }); - internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor, - new java.lang.String[] { - "IsMultiLabel", - }); - internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_datalabeling_v1beta1_GcsSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor, - new java.lang.String[] { - "InputUri", "MimeType", - }); - internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor, - new java.lang.String[] { - "InputUri", - }); - internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor, - new java.lang.String[] { - "GcsDestination", "GcsFolderDestination", "Destination", - }); - internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor, - new java.lang.String[] { - "OutputUri", "MimeType", - }); - internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor, - new java.lang.String[] { - "OutputFolderUri", - }); - internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_datalabeling_v1beta1_DataItem_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor, - new java.lang.String[] { - "ImagePayload", "TextPayload", "VideoPayload", "Name", "Payload", - }); - internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Description", - "AnnotationSource", - "AnnotationType", - "ExampleCount", - "CompletedExampleCount", - "LabelStats", - "CreateTime", - "Metadata", - "BlockingResources", - }); - internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_datalabeling_v1beta1_LabelStats_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor, - new java.lang.String[] { - "ExampleCount", - }); - internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_descriptor = - internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor, - new java.lang.String[] { - "ImageClassificationConfig", - "BoundingPolyConfig", - "PolylineConfig", - "SegmentationConfig", - "VideoClassificationConfig", - "ObjectDetectionConfig", - "ObjectTrackingConfig", - "EventConfig", - "TextClassificationConfig", - "TextEntityExtractionConfig", - "HumanAnnotationConfig", - "AnnotationRequestConfig", - }); - internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_datalabeling_v1beta1_Example_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor, - new java.lang.String[] { - "ImagePayload", "TextPayload", "VideoPayload", "Name", "Annotations", "Payload", - }); - 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.AnnotationsProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.DataPayloads.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequestOrBuilder.java deleted file mode 100644 index c230b886..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequestOrBuilder.java +++ /dev/null @@ -1,58 +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/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface DeleteAnnotatedDatasetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the annotated dataset to delete, format:
-   * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
-   * {annotated_dataset_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the annotated dataset to delete, format:
-   * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
-   * {annotated_dataset_id}
-   * 
- * - * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequestOrBuilder.java deleted file mode 100644 index 7e1ebdc6..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface DeleteAnnotationSpecSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. AnnotationSpec resource name, format:
-   * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. AnnotationSpec resource name, format:
-   * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
-   * 
- * - * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequestOrBuilder.java deleted file mode 100644 index 71c7b616..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface DeleteDatasetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.DeleteDatasetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Dataset resource name, format:
-   * projects/{project_id}/datasets/{dataset_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Dataset resource name, format:
-   * projects/{project_id}/datasets/{dataset_id}
-   * 
- * - * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequestOrBuilder.java deleted file mode 100644 index 3a876238..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface DeleteEvaluationJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the evaluation job that is going to be deleted. Format:
-   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the evaluation job that is going to be deleted. Format:
-   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
-   * 
- * - * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequestOrBuilder.java deleted file mode 100644 index 12de08fc..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface DeleteInstructionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Instruction resource name, format:
-   * projects/{project_id}/instructions/{instruction_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Instruction resource name, format:
-   * projects/{project_id}/instructions/{instruction_id}
-   * 
- * - * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOuterClass.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOuterClass.java deleted file mode 100644 index cc0bb788..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOuterClass.java +++ /dev/null @@ -1,207 +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/datalabeling/v1beta1/evaluation_job.proto - -package com.google.cloud.datalabeling.v1beta1; - -public final class EvaluationJobOuterClass { - private EvaluationJobOuterClass() {} - - 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_datalabeling_v1beta1_EvaluationJob_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_Attempt_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/datalabeling/v1beta1/eval" - + "uation_job.proto\022!google.cloud.datalabel" - + "ing.v1beta1\032\034google/api/annotations.prot" - + "o\032\031google/api/resource.proto\032/google/clo" - + "ud/datalabeling/v1beta1/dataset.proto\0322g" - + "oogle/cloud/datalabeling/v1beta1/evaluat" - + "ion.proto\032?google/cloud/datalabeling/v1b" - + "eta1/human_annotation_config.proto\032\037goog" - + "le/protobuf/timestamp.proto\032\027google/rpc/" - + "status.proto\"\342\004\n\rEvaluationJob\022\014\n\004name\030\001" - + " \001(\t\022\023\n\013description\030\002 \001(\t\022E\n\005state\030\003 \001(\016" - + "26.google.cloud.datalabeling.v1beta1.Eva" - + "luationJob.State\022\020\n\010schedule\030\004 \001(\t\022\025\n\rmo" - + "del_version\030\005 \001(\t\022U\n\025evaluation_job_conf" - + "ig\030\006 \001(\01326.google.cloud.datalabeling.v1b" - + "eta1.EvaluationJobConfig\022\033\n\023annotation_s" - + "pec_set\030\007 \001(\t\022\"\n\032label_missing_ground_tr" - + "uth\030\010 \001(\010\022<\n\010attempts\030\t \003(\0132*.google.clo" - + "ud.datalabeling.v1beta1.Attempt\022/\n\013creat" - + "e_time\030\n \001(\0132\032.google.protobuf.Timestamp" - + "\"S\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\r\n\tSCHE" - + "DULED\020\001\022\013\n\007RUNNING\020\002\022\n\n\006PAUSED\020\003\022\013\n\007STOP" - + "PED\020\004:b\352A_\n)datalabeling.googleapis.com/" - + "EvaluationJob\0222projects/{project}/evalua" - + "tionJobs/{evaluation_job}\"\215\007\n\023Evaluation" - + "JobConfig\022c\n\033image_classification_config" - + "\030\004 \001(\0132<.google.cloud.datalabeling.v1bet" - + "a1.ImageClassificationConfigH\000\022U\n\024boundi" - + "ng_poly_config\030\005 \001(\01325.google.cloud.data" - + "labeling.v1beta1.BoundingPolyConfigH\000\022a\n" - + "\032text_classification_config\030\010 \001(\0132;.goog" - + "le.cloud.datalabeling.v1beta1.TextClassi" - + "ficationConfigH\000\022D\n\014input_config\030\001 \001(\0132." - + ".google.cloud.datalabeling.v1beta1.Input" - + "Config\022N\n\021evaluation_config\030\002 \001(\01323.goog" - + "le.cloud.datalabeling.v1beta1.Evaluation" - + "Config\022Y\n\027human_annotation_config\030\003 \001(\0132" - + "8.google.cloud.datalabeling.v1beta1.Huma" - + "nAnnotationConfig\022l\n\024bigquery_import_key" - + "s\030\t \003(\0132N.google.cloud.datalabeling.v1be" - + "ta1.EvaluationJobConfig.BigqueryImportKe" - + "ysEntry\022\025\n\rexample_count\030\n \001(\005\022!\n\031exampl" - + "e_sample_percentage\030\013 \001(\001\022`\n\033evaluation_" - + "job_alert_config\030\r \001(\0132;.google.cloud.da" - + "talabeling.v1beta1.EvaluationJobAlertCon" - + "fig\0329\n\027BigqueryImportKeysEntry\022\013\n\003key\030\001 " - + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B!\n\037human_annotati" - + "on_request_config\"X\n\030EvaluationJobAlertC" - + "onfig\022\r\n\005email\030\001 \001(\t\022-\n%min_acceptable_m" - + "ean_average_precision\030\002 \001(\001\"i\n\007Attempt\0220" - + "\n\014attempt_time\030\001 \001(\0132\032.google.protobuf.T" - + "imestamp\022,\n\020partial_failures\030\002 \003(\0132\022.goo" - + "gle.rpc.StatusB\347\001\n%com.google.cloud.data" - + "labeling.v1beta1P\001ZMgoogle.golang.org/ge" - + "nproto/googleapis/cloud/datalabeling/v1b" - + "eta1;datalabeling\252\002!Google.Cloud.DataLab" - + "eling.V1Beta1\312\002!Google\\Cloud\\DataLabelin" - + "g\\V1beta1\352\002$Google::Cloud::DataLabeling:" - + ":V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_descriptor, - new java.lang.String[] { - "Name", - "Description", - "State", - "Schedule", - "ModelVersion", - "EvaluationJobConfig", - "AnnotationSpecSet", - "LabelMissingGroundTruth", - "Attempts", - "CreateTime", - }); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor, - new java.lang.String[] { - "ImageClassificationConfig", - "BoundingPolyConfig", - "TextClassificationConfig", - "InputConfig", - "EvaluationConfig", - "HumanAnnotationConfig", - "BigqueryImportKeys", - "ExampleCount", - "ExampleSamplePercentage", - "EvaluationJobAlertConfig", - "HumanAnnotationRequestConfig", - }); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_descriptor = - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor, - new java.lang.String[] { - "Email", "MinAcceptableMeanAveragePrecision", - }); - internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datalabeling_v1beta1_Attempt_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor, - new java.lang.String[] { - "AttemptTime", "PartialFailures", - }); - 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.AnnotationsProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOuterClass.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOuterClass.java deleted file mode 100644 index 8c19bf96..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOuterClass.java +++ /dev/null @@ -1,284 +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/datalabeling/v1beta1/evaluation.proto - -package com.google.cloud.datalabeling.v1beta1; - -public final class EvaluationOuterClass { - private EvaluationOuterClass() {} - - 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_datalabeling_v1beta1_Evaluation_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_Evaluation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_PrCurve_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_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 = { - "\n2google/cloud/datalabeling/v1beta1/eval" - + "uation.proto\022!google.cloud.datalabeling." - + "v1beta1\032\034google/api/annotations.proto\032\031g" - + "oogle/api/resource.proto\0322google/cloud/d" - + "atalabeling/v1beta1/annotation.proto\032;go" - + "ogle/cloud/datalabeling/v1beta1/annotati" - + "on_spec_set.proto\032\037google/protobuf/times" - + "tamp.proto\"\366\003\n\nEvaluation\022\014\n\004name\030\001 \001(\t\022" - + "C\n\006config\030\002 \001(\01323.google.cloud.datalabel" - + "ing.v1beta1.EvaluationConfig\022;\n\027evaluati" - + "on_job_run_time\030\003 \001(\0132\032.google.protobuf." - + "Timestamp\022/\n\013create_time\030\004 \001(\0132\032.google." - + "protobuf.Timestamp\022P\n\022evaluation_metrics" - + "\030\005 \001(\01324.google.cloud.datalabeling.v1bet" - + "a1.EvaluationMetrics\022J\n\017annotation_type\030" - + "\006 \001(\01621.google.cloud.datalabeling.v1beta" - + "1.AnnotationType\022\034\n\024evaluated_item_count" - + "\030\007 \001(\003:k\352Ah\n&datalabeling.googleapis.com" - + "/Evaluation\022>projects/{project}/datasets" - + "/{dataset}/evaluations/{evaluation}\"\221\001\n\020" - + "EvaluationConfig\022j\n\037bounding_box_evaluat" - + "ion_options\030\001 \001(\0132?.google.cloud.datalab" - + "eling.v1beta1.BoundingBoxEvaluationOptio" - + "nsH\000B\021\n\017vertical_option\"5\n\034BoundingBoxEv" - + "aluationOptions\022\025\n\riou_threshold\030\001 \001(\002\"\331" - + "\001\n\021EvaluationMetrics\022Z\n\026classification_m" - + "etrics\030\001 \001(\01328.google.cloud.datalabeling" - + ".v1beta1.ClassificationMetricsH\000\022]\n\030obje" - + "ct_detection_metrics\030\002 \001(\01329.google.clou" - + "d.datalabeling.v1beta1.ObjectDetectionMe" - + "tricsH\000B\t\n\007metrics\"\243\001\n\025ClassificationMet" - + "rics\022<\n\010pr_curve\030\001 \001(\0132*.google.cloud.da" - + "talabeling.v1beta1.PrCurve\022L\n\020confusion_" - + "matrix\030\002 \001(\01322.google.cloud.datalabeling" - + ".v1beta1.ConfusionMatrix\"V\n\026ObjectDetect" - + "ionMetrics\022<\n\010pr_curve\030\001 \001(\0132*.google.cl" - + "oud.datalabeling.v1beta1.PrCurve\"\346\003\n\007PrC" - + "urve\022J\n\017annotation_spec\030\001 \001(\01321.google.c" - + "loud.datalabeling.v1beta1.AnnotationSpec" - + "\022\030\n\020area_under_curve\030\002 \001(\002\022e\n\032confidence" - + "_metrics_entries\030\003 \003(\0132A.google.cloud.da" - + "talabeling.v1beta1.PrCurve.ConfidenceMet" - + "ricsEntry\022\036\n\026mean_average_precision\030\004 \001(" - + "\002\032\355\001\n\026ConfidenceMetricsEntry\022\034\n\024confiden" - + "ce_threshold\030\001 \001(\002\022\016\n\006recall\030\002 \001(\002\022\021\n\tpr" - + "ecision\030\003 \001(\002\022\020\n\010f1_score\030\004 \001(\002\022\022\n\nrecal" - + "l_at1\030\005 \001(\002\022\025\n\rprecision_at1\030\006 \001(\002\022\024\n\014f1" - + "_score_at1\030\007 \001(\002\022\022\n\nrecall_at5\030\010 \001(\002\022\025\n\r" - + "precision_at5\030\t \001(\002\022\024\n\014f1_score_at5\030\n \001(" - + "\002\"\374\002\n\017ConfusionMatrix\022C\n\003row\030\001 \003(\01326.goo" - + "gle.cloud.datalabeling.v1beta1.Confusion" - + "Matrix.Row\032v\n\024ConfusionMatrixEntry\022J\n\017an" - + "notation_spec\030\001 \001(\01321.google.cloud.datal" - + "abeling.v1beta1.AnnotationSpec\022\022\n\nitem_c" - + "ount\030\002 \001(\005\032\253\001\n\003Row\022J\n\017annotation_spec\030\001 " - + "\001(\01321.google.cloud.datalabeling.v1beta1." - + "AnnotationSpec\022X\n\007entries\030\002 \003(\0132G.google" - + ".cloud.datalabeling.v1beta1.ConfusionMat" - + "rix.ConfusionMatrixEntryB\347\001\n%com.google." - + "cloud.datalabeling.v1beta1P\001ZMgoogle.gol" - + "ang.org/genproto/googleapis/cloud/datala" - + "beling/v1beta1;datalabeling\252\002!Google.Clo" - + "ud.DataLabeling.V1Beta1\312\002!Google\\Cloud\\D" - + "ataLabeling\\V1beta1\352\002$Google::Cloud::Dat" - + "aLabeling::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datalabeling_v1beta1_Evaluation_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_Evaluation_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_Evaluation_descriptor, - new java.lang.String[] { - "Name", - "Config", - "EvaluationJobRunTime", - "CreateTime", - "EvaluationMetrics", - "AnnotationType", - "EvaluatedItemCount", - }); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor, - new java.lang.String[] { - "BoundingBoxEvaluationOptions", "VerticalOption", - }); - internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor, - new java.lang.String[] { - "IouThreshold", - }); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor, - new java.lang.String[] { - "ClassificationMetrics", "ObjectDetectionMetrics", "Metrics", - }); - internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor, - new java.lang.String[] { - "PrCurve", "ConfusionMatrix", - }); - internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor, - new java.lang.String[] { - "PrCurve", - }); - internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_datalabeling_v1beta1_PrCurve_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor, - new java.lang.String[] { - "AnnotationSpec", - "AreaUnderCurve", - "ConfidenceMetricsEntries", - "MeanAveragePrecision", - }); - internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor = - internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor, - new java.lang.String[] { - "ConfidenceThreshold", - "Recall", - "Precision", - "F1Score", - "RecallAt1", - "PrecisionAt1", - "F1ScoreAt1", - "RecallAt5", - "PrecisionAt5", - "F1ScoreAt5", - }); - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor, - new java.lang.String[] { - "Row", - }); - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor = - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor, - new java.lang.String[] { - "AnnotationSpec", "ItemCount", - }); - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor = - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor - .getNestedTypes() - .get(1); - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor, - new java.lang.String[] { - "AnnotationSpec", "Entries", - }); - 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.AnnotationsProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestinationOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestinationOrBuilder.java deleted file mode 100644 index 25a2d04f..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestinationOrBuilder.java +++ /dev/null @@ -1,50 +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/datalabeling/v1beta1/dataset.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface GcsFolderDestinationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GcsFolderDestination) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Cloud Storage directory to export data to.
-   * 
- * - * string output_folder_uri = 1; - * - * @return The outputFolderUri. - */ - java.lang.String getOutputFolderUri(); - /** - * - * - *
-   * Required. Cloud Storage directory to export data to.
-   * 
- * - * string output_folder_uri = 1; - * - * @return The bytes for outputFolderUri. - */ - com.google.protobuf.ByteString getOutputFolderUriBytes(); -} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequestOrBuilder.java deleted file mode 100644 index c3a93ffd..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequestOrBuilder.java +++ /dev/null @@ -1,58 +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/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface GetAnnotatedDatasetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the annotated dataset to get, format:
-   * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
-   * {annotated_dataset_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the annotated dataset to get, format:
-   * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
-   * {annotated_dataset_id}
-   * 
- * - * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequestOrBuilder.java deleted file mode 100644 index 344c32f1..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface GetAnnotationSpecSetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. AnnotationSpecSet resource name, format:
-   * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. AnnotationSpecSet resource name, format:
-   * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
-   * 
- * - * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequestOrBuilder.java deleted file mode 100644 index d4abc0d2..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface GetDataItemRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetDataItemRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the data item to get, format:
-   * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the data item to get, format:
-   * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
-   * 
- * - * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequestOrBuilder.java deleted file mode 100644 index d52a1a6b..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface GetDatasetRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetDatasetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Dataset resource name, format:
-   * projects/{project_id}/datasets/{dataset_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Dataset resource name, format:
-   * projects/{project_id}/datasets/{dataset_id}
-   * 
- * - * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequestOrBuilder.java deleted file mode 100644 index f79c6b2a..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface GetEvaluationJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the evaluation job. Format:
-   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the evaluation job. Format:
-   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
-   * 
- * - * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequestOrBuilder.java deleted file mode 100644 index 1840f224..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface GetEvaluationRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetEvaluationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the evaluation. Format:
-   * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the evaluation. Format:
-   * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
-   * 
- * - * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequestOrBuilder.java deleted file mode 100644 index 9d629047..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface GetInstructionRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetInstructionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Instruction resource name, format:
-   * projects/{project_id}/instructions/{instruction_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Instruction resource name, format:
-   * projects/{project_id}/instructions/{instruction_id}
-   * 
- * - * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOuterClass.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOuterClass.java deleted file mode 100644 index 437f834d..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOuterClass.java +++ /dev/null @@ -1,279 +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/datalabeling/v1beta1/human_annotation_config.proto - -package com.google.cloud.datalabeling.v1beta1; - -public final class HumanAnnotationConfigOuterClass { - private HumanAnnotationConfigOuterClass() {} - - 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_datalabeling_v1beta1_HumanAnnotationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_EventConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_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/datalabeling/v1beta1/huma" - + "n_annotation_config.proto\022!google.cloud." - + "datalabeling.v1beta1\032\034google/api/annotat" - + "ions.proto\032\037google/api/field_behavior.pr" - + "oto\032\036google/protobuf/duration.proto\"\324\002\n\025" - + "HumanAnnotationConfig\022\030\n\013instruction\030\001 \001" - + "(\tB\003\340A\002\022+\n\036annotated_dataset_display_nam" - + "e\030\002 \001(\tB\003\340A\002\022*\n\035annotated_dataset_descri" - + "ption\030\003 \001(\tB\003\340A\001\022\030\n\013label_group\030\004 \001(\tB\003\340" - + "A\001\022\032\n\rlanguage_code\030\005 \001(\tB\003\340A\001\022\032\n\rreplic" - + "a_count\030\006 \001(\005B\003\340A\001\0229\n\021question_duration\030" - + "\007 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\037\n" - + "\022contributor_emails\030\t \003(\tB\003\340A\001\022\032\n\022user_e" - + "mail_address\030\n \001(\t\"\275\001\n\031ImageClassificati" - + "onConfig\022 \n\023annotation_spec_set\030\001 \001(\tB\003\340" - + "A\002\022\036\n\021allow_multi_label\030\002 \001(\010B\003\340A\001\022^\n\027an" - + "swer_aggregation_type\030\003 \001(\01628.google.clo" - + "ud.datalabeling.v1beta1.StringAggregatio" - + "nTypeB\003\340A\001\"X\n\022BoundingPolyConfig\022 \n\023anno" - + "tation_spec_set\030\001 \001(\tB\003\340A\002\022 \n\023instructio" - + "n_message\030\002 \001(\tB\003\340A\001\"T\n\016PolylineConfig\022 " - + "\n\023annotation_spec_set\030\001 \001(\tB\003\340A\002\022 \n\023inst" - + "ruction_message\030\002 \001(\tB\003\340A\001\"S\n\022Segmentati" - + "onConfig\022 \n\023annotation_spec_set\030\001 \001(\tB\003\340" - + "A\002\022\033\n\023instruction_message\030\002 \001(\t\"\233\002\n\031Vide" - + "oClassificationConfig\022~\n\033annotation_spec" - + "_set_configs\030\001 \003(\0132T.google.cloud.datala" - + "beling.v1beta1.VideoClassificationConfig" - + ".AnnotationSpecSetConfigB\003\340A\002\022!\n\024apply_s" - + "hot_detection\030\002 \001(\010B\003\340A\001\032[\n\027AnnotationSp" - + "ecSetConfig\022 \n\023annotation_spec_set\030\001 \001(\t" - + "B\003\340A\002\022\036\n\021allow_multi_label\030\002 \001(\010B\003\340A\001\"]\n" - + "\025ObjectDetectionConfig\022 \n\023annotation_spe" - + "c_set\030\001 \001(\tB\003\340A\002\022\"\n\025extraction_frame_rat" - + "e\030\003 \001(\001B\003\340A\002\"8\n\024ObjectTrackingConfig\022 \n\023" - + "annotation_spec_set\030\001 \001(\tB\003\340A\002\"0\n\013EventC" - + "onfig\022!\n\024annotation_spec_sets\030\001 \003(\tB\003\340A\002" - + "\"\257\001\n\030TextClassificationConfig\022\036\n\021allow_m" - + "ulti_label\030\001 \001(\010B\003\340A\001\022 \n\023annotation_spec" - + "_set\030\002 \001(\tB\003\340A\002\022Q\n\020sentiment_config\030\003 \001(" - + "\01322.google.cloud.datalabeling.v1beta1.Se" - + "ntimentConfigB\003\340A\001\";\n\017SentimentConfig\022(\n" - + " enable_label_sentiment_selection\030\001 \001(\010\"" - + ">\n\032TextEntityExtractionConfig\022 \n\023annotat" - + "ion_spec_set\030\001 \001(\tB\003\340A\002*{\n\025StringAggrega" - + "tionType\022\'\n#STRING_AGGREGATION_TYPE_UNSP" - + "ECIFIED\020\000\022\021\n\rMAJORITY_VOTE\020\001\022\022\n\016UNANIMOU" - + "S_VOTE\020\002\022\022\n\016NO_AGGREGATION\020\003B\347\001\n%com.goo" - + "gle.cloud.datalabeling.v1beta1P\001ZMgoogle" - + ".golang.org/genproto/googleapis/cloud/da" - + "talabeling/v1beta1;datalabeling\252\002!Google" - + ".Cloud.DataLabeling.V1Beta1\312\002!Google\\Clo" - + "ud\\DataLabeling\\V1beta1\352\002$Google::Cloud:" - + ":DataLabeling::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_descriptor, - new java.lang.String[] { - "Instruction", - "AnnotatedDatasetDisplayName", - "AnnotatedDatasetDescription", - "LabelGroup", - "LanguageCode", - "ReplicaCount", - "QuestionDuration", - "ContributorEmails", - "UserEmailAddress", - }); - internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor, - new java.lang.String[] { - "AnnotationSpecSet", "AllowMultiLabel", "AnswerAggregationType", - }); - internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor, - new java.lang.String[] { - "AnnotationSpecSet", "InstructionMessage", - }); - internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor, - new java.lang.String[] { - "AnnotationSpecSet", "InstructionMessage", - }); - internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor, - new java.lang.String[] { - "AnnotationSpecSet", "InstructionMessage", - }); - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor, - new java.lang.String[] { - "AnnotationSpecSetConfigs", "ApplyShotDetection", - }); - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor = - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor, - new java.lang.String[] { - "AnnotationSpecSet", "AllowMultiLabel", - }); - internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor, - new java.lang.String[] { - "AnnotationSpecSet", "ExtractionFrameRate", - }); - internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor, - new java.lang.String[] { - "AnnotationSpecSet", - }); - internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_datalabeling_v1beta1_EventConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor, - new java.lang.String[] { - "AnnotationSpecSets", - }); - internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor, - new java.lang.String[] { - "AllowMultiLabel", "AnnotationSpecSet", "SentimentConfig", - }); - internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor, - new java.lang.String[] { - "EnableLabelSentimentSelection", - }); - internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor, - new java.lang.String[] { - "AnnotationSpecSet", - }); - 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.AnnotationsProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOuterClass.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOuterClass.java deleted file mode 100644 index ce3bbad2..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOuterClass.java +++ /dev/null @@ -1,132 +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/datalabeling/v1beta1/instruction.proto - -package com.google.cloud.datalabeling.v1beta1; - -public final class InstructionOuterClass { - private InstructionOuterClass() {} - - 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_datalabeling_v1beta1_Instruction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_Instruction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/datalabeling/v1beta1/inst" - + "ruction.proto\022!google.cloud.datalabeling" - + ".v1beta1\032\034google/api/annotations.proto\032\031" - + "google/api/resource.proto\032/google/cloud/" - + "datalabeling/v1beta1/dataset.proto\032\037goog" - + "le/protobuf/timestamp.proto\"\375\003\n\013Instruct" - + "ion\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/\n\013create_time\030\004 \001(" - + "\0132\032.google.protobuf.Timestamp\022/\n\013update_" - + "time\030\005 \001(\0132\032.google.protobuf.Timestamp\022>" - + "\n\tdata_type\030\006 \001(\0162+.google.cloud.datalab" - + "eling.v1beta1.DataType\022N\n\017csv_instructio" - + "n\030\007 \001(\01321.google.cloud.datalabeling.v1be" - + "ta1.CsvInstructionB\002\030\001\022J\n\017pdf_instructio" - + "n\030\t \001(\01321.google.cloud.datalabeling.v1be" - + "ta1.PdfInstruction\022\032\n\022blocking_resources" - + "\030\n \003(\t:[\352AX\n\'datalabeling.googleapis.com" - + "/Instruction\022-projects/{project}/instruc" - + "tions/{instruction}\"&\n\016CsvInstruction\022\024\n" - + "\014gcs_file_uri\030\001 \001(\t\"&\n\016PdfInstruction\022\024\n" - + "\014gcs_file_uri\030\001 \001(\tB\347\001\n%com.google.cloud" - + ".datalabeling.v1beta1P\001ZMgoogle.golang.o" - + "rg/genproto/googleapis/cloud/datalabelin" - + "g/v1beta1;datalabeling\252\002!Google.Cloud.Da" - + "taLabeling.V1Beta1\312\002!Google\\Cloud\\DataLa" - + "beling\\V1beta1\352\002$Google::Cloud::DataLabe" - + "ling::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datalabeling_v1beta1_Instruction_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_Instruction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_Instruction_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Description", - "CreateTime", - "UpdateTime", - "DataType", - "CsvInstruction", - "PdfInstruction", - "BlockingResources", - }); - internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor, - new java.lang.String[] { - "GcsFileUri", - }); - internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor, - new java.lang.String[] { - "GcsFileUri", - }); - 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.AnnotationsProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertexOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertexOrBuilder.java deleted file mode 100644 index 52597279..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/annotation.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface NormalizedVertexOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.NormalizedVertex) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * X coordinate.
-   * 
- * - * float x = 1; - * - * @return The x. - */ - float getX(); - - /** - * - * - *
-   * Y coordinate.
-   * 
- * - * float y = 2; - * - * @return The y. - */ - float getY(); -} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Operations.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Operations.java deleted file mode 100644 index 6be6f4f6..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Operations.java +++ /dev/null @@ -1,400 +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/datalabeling/v1beta1/operations.proto - -package com.google.cloud.datalabeling.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_datalabeling_v1beta1_ImportDataOperationResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_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/datalabeling/v1beta1/oper" - + "ations.proto\022!google.cloud.datalabeling." - + "v1beta1\032\034google/api/annotations.proto\032\031g" - + "oogle/api/resource.proto\032/google/cloud/d" - + "atalabeling/v1beta1/dataset.proto\032?googl" - + "e/cloud/datalabeling/v1beta1/human_annot" - + "ation_config.proto\032\037google/protobuf/time" - + "stamp.proto\032\027google/rpc/status.proto\"Y\n\033" - + "ImportDataOperationResponse\022\017\n\007dataset\030\001" - + " \001(\t\022\023\n\013total_count\030\002 \001(\005\022\024\n\014import_coun" - + "t\030\003 \001(\005\"\345\001\n\033ExportDataOperationResponse\022" - + "\017\n\007dataset\030\001 \001(\t\022\023\n\013total_count\030\002 \001(\005\022\024\n" - + "\014export_count\030\003 \001(\005\022B\n\013label_stats\030\004 \001(\013" - + "2-.google.cloud.datalabeling.v1beta1.Lab" - + "elStats\022F\n\routput_config\030\005 \001(\0132/.google." - + "cloud.datalabeling.v1beta1.OutputConfig\"" - + "\215\001\n\033ImportDataOperationMetadata\022\017\n\007datas" - + "et\030\001 \001(\t\022,\n\020partial_failures\030\002 \003(\0132\022.goo" - + "gle.rpc.Status\022/\n\013create_time\030\003 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\"\215\001\n\033ExportDataOp" - + "erationMetadata\022\017\n\007dataset\030\001 \001(\t\022,\n\020part" - + "ial_failures\030\002 \003(\0132\022.google.rpc.Status\022/" - + "\n\013create_time\030\003 \001(\0132\032.google.protobuf.Ti" - + "mestamp\"\214\014\n\026LabelOperationMetadata\022t\n\034im" - + "age_classification_details\030\003 \001(\0132L.googl" - + "e.cloud.datalabeling.v1beta1.LabelImageC" - + "lassificationOperationMetadataH\000\022o\n\032imag" - + "e_bounding_box_details\030\004 \001(\0132I.google.cl" - + "oud.datalabeling.v1beta1.LabelImageBound" - + "ingBoxOperationMetadataH\000\022q\n\033image_bound" - + "ing_poly_details\030\013 \001(\0132J.google.cloud.da" - + "talabeling.v1beta1.LabelImageBoundingPol" - + "yOperationMetadataH\000\022\200\001\n#image_oriented_" - + "bounding_box_details\030\016 \001(\0132Q.google.clou" - + "d.datalabeling.v1beta1.LabelImageOriente" - + "dBoundingBoxOperationMetadataH\000\022h\n\026image" - + "_polyline_details\030\014 \001(\0132F.google.cloud.d" - + "atalabeling.v1beta1.LabelImagePolylineOp" - + "erationMetadataH\000\022p\n\032image_segmentation_" - + "details\030\017 \001(\0132J.google.cloud.datalabelin" - + "g.v1beta1.LabelImageSegmentationOperatio" - + "nMetadataH\000\022t\n\034video_classification_deta" - + "ils\030\005 \001(\0132L.google.cloud.datalabeling.v1" - + "beta1.LabelVideoClassificationOperationM" - + "etadataH\000\022w\n\036video_object_detection_deta" - + "ils\030\006 \001(\0132M.google.cloud.datalabeling.v1" - + "beta1.LabelVideoObjectDetectionOperation" - + "MetadataH\000\022u\n\035video_object_tracking_deta" - + "ils\030\007 \001(\0132L.google.cloud.datalabeling.v1" - + "beta1.LabelVideoObjectTrackingOperationM" - + "etadataH\000\022b\n\023video_event_details\030\010 \001(\0132C" - + ".google.cloud.datalabeling.v1beta1.Label" - + "VideoEventOperationMetadataH\000\022r\n\033text_cl" - + "assification_details\030\t \001(\0132K.google.clou" - + "d.datalabeling.v1beta1.LabelTextClassifi" - + "cationOperationMetadataH\000\022w\n\036text_entity" - + "_extraction_details\030\r \001(\0132M.google.cloud" - + ".datalabeling.v1beta1.LabelTextEntityExt" - + "ractionOperationMetadataH\000\022\030\n\020progress_p" - + "ercent\030\001 \001(\005\022,\n\020partial_failures\030\002 \003(\0132\022" - + ".google.rpc.Status\022/\n\013create_time\030\020 \001(\0132" - + "\032.google.protobuf.TimestampB\t\n\007details\"{" - + "\n)LabelImageClassificationOperationMetad" - + "ata\022N\n\014basic_config\030\001 \001(\01328.google.cloud" - + ".datalabeling.v1beta1.HumanAnnotationCon" - + "fig\"x\n&LabelImageBoundingBoxOperationMet" - + "adata\022N\n\014basic_config\030\001 \001(\01328.google.clo" - + "ud.datalabeling.v1beta1.HumanAnnotationC" - + "onfig\"\200\001\n.LabelImageOrientedBoundingBoxO" - + "perationMetadata\022N\n\014basic_config\030\001 \001(\01328" - + ".google.cloud.datalabeling.v1beta1.Human" - + "AnnotationConfig\"y\n\'LabelImageBoundingPo" - + "lyOperationMetadata\022N\n\014basic_config\030\001 \001(" - + "\01328.google.cloud.datalabeling.v1beta1.Hu" - + "manAnnotationConfig\"u\n#LabelImagePolylin" - + "eOperationMetadata\022N\n\014basic_config\030\001 \001(\013" - + "28.google.cloud.datalabeling.v1beta1.Hum" - + "anAnnotationConfig\"y\n\'LabelImageSegmenta" - + "tionOperationMetadata\022N\n\014basic_config\030\001 " - + "\001(\01328.google.cloud.datalabeling.v1beta1." - + "HumanAnnotationConfig\"{\n)LabelVideoClass" - + "ificationOperationMetadata\022N\n\014basic_conf" - + "ig\030\001 \001(\01328.google.cloud.datalabeling.v1b" - + "eta1.HumanAnnotationConfig\"|\n*LabelVideo" - + "ObjectDetectionOperationMetadata\022N\n\014basi" - + "c_config\030\001 \001(\01328.google.cloud.datalabeli" - + "ng.v1beta1.HumanAnnotationConfig\"{\n)Labe" - + "lVideoObjectTrackingOperationMetadata\022N\n" - + "\014basic_config\030\001 \001(\01328.google.cloud.datal" - + "abeling.v1beta1.HumanAnnotationConfig\"r\n" - + " LabelVideoEventOperationMetadata\022N\n\014bas" - + "ic_config\030\001 \001(\01328.google.cloud.datalabel" - + "ing.v1beta1.HumanAnnotationConfig\"z\n(Lab" - + "elTextClassificationOperationMetadata\022N\n" - + "\014basic_config\030\001 \001(\01328.google.cloud.datal" - + "abeling.v1beta1.HumanAnnotationConfig\"|\n" - + "*LabelTextEntityExtractionOperationMetad" - + "ata\022N\n\014basic_config\030\001 \001(\01328.google.cloud" - + ".datalabeling.v1beta1.HumanAnnotationCon" - + "fig\"\217\001\n\031CreateInstructionMetadata\022\023\n\013ins" - + "truction\030\001 \001(\t\022,\n\020partial_failures\030\002 \003(\013" - + "2\022.google.rpc.Status\022/\n\013create_time\030\003 \001(" - + "\0132\032.google.protobuf.TimestampB\347\001\n%com.go" - + "ogle.cloud.datalabeling.v1beta1P\001ZMgoogl" - + "e.golang.org/genproto/googleapis/cloud/d" - + "atalabeling/v1beta1;datalabeling\252\002!Googl" - + "e.Cloud.DataLabeling.V1Beta1\312\002!Google\\Cl" - + "oud\\DataLabeling\\V1beta1\352\002$Google::Cloud" - + "::DataLabeling::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_descriptor, - new java.lang.String[] { - "Dataset", "TotalCount", "ImportCount", - }); - internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor, - new java.lang.String[] { - "Dataset", "TotalCount", "ExportCount", "LabelStats", "OutputConfig", - }); - internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor, - new java.lang.String[] { - "Dataset", "PartialFailures", "CreateTime", - }); - internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor, - new java.lang.String[] { - "Dataset", "PartialFailures", "CreateTime", - }); - internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor, - new java.lang.String[] { - "ImageClassificationDetails", - "ImageBoundingBoxDetails", - "ImageBoundingPolyDetails", - "ImageOrientedBoundingBoxDetails", - "ImagePolylineDetails", - "ImageSegmentationDetails", - "VideoClassificationDetails", - "VideoObjectDetectionDetails", - "VideoObjectTrackingDetails", - "VideoEventDetails", - "TextClassificationDetails", - "TextEntityExtractionDetails", - "ProgressPercent", - "PartialFailures", - "CreateTime", - "Details", - }); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor, - new java.lang.String[] { - "BasicConfig", - }); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor, - new java.lang.String[] { - "BasicConfig", - }); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor, - new java.lang.String[] { - "BasicConfig", - }); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor, - new java.lang.String[] { - "BasicConfig", - }); - internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor, - new java.lang.String[] { - "BasicConfig", - }); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor, - new java.lang.String[] { - "BasicConfig", - }); - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor, - new java.lang.String[] { - "BasicConfig", - }); - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor, - new java.lang.String[] { - "BasicConfig", - }); - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor, - new java.lang.String[] { - "BasicConfig", - }); - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor, - new java.lang.String[] { - "BasicConfig", - }); - internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor, - new java.lang.String[] { - "BasicConfig", - }); - internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor, - new java.lang.String[] { - "BasicConfig", - }); - internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor, - new java.lang.String[] { - "Instruction", "PartialFailures", "CreateTime", - }); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequestOrBuilder.java deleted file mode 100644 index c51b18e4..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface PauseEvaluationJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the evaluation job that is going to be paused. Format:
-   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the evaluation job that is going to be paused. Format:
-   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
-   * 
- * - * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstructionOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstructionOrBuilder.java deleted file mode 100644 index 608f2f77..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstructionOrBuilder.java +++ /dev/null @@ -1,50 +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/datalabeling/v1beta1/instruction.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface PdfInstructionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.PdfInstruction) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * PDF file for the instruction. Only gcs path is allowed.
-   * 
- * - * string gcs_file_uri = 1; - * - * @return The gcsFileUri. - */ - java.lang.String getGcsFileUri(); - /** - * - * - *
-   * PDF file for the instruction. Only gcs path is allowed.
-   * 
- * - * string gcs_file_uri = 1; - * - * @return The bytes for gcsFileUri. - */ - com.google.protobuf.ByteString getGcsFileUriBytes(); -} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequestOrBuilder.java deleted file mode 100644 index 15aa6677..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequestOrBuilder.java +++ /dev/null @@ -1,56 +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/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface ResumeEvaluationJobRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the evaluation job that is going to be resumed. Format:
-   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. Name of the evaluation job that is going to be resumed. Format:
-   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
-   * 
- * - * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponseOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponseOrBuilder.java deleted file mode 100644 index fe596ebc..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponseOrBuilder.java +++ /dev/null @@ -1,119 +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/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface SearchExampleComparisonsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A list of example comparisons matching the search criteria.
-   * 
- * - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * - */ - java.util.List< - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison> - getExampleComparisonsList(); - /** - * - * - *
-   * A list of example comparisons matching the search criteria.
-   * 
- * - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * - */ - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison - getExampleComparisons(int index); - /** - * - * - *
-   * A list of example comparisons matching the search criteria.
-   * 
- * - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * - */ - int getExampleComparisonsCount(); - /** - * - * - *
-   * A list of example comparisons matching the search criteria.
-   * 
- * - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * - */ - java.util.List< - ? extends - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse - .ExampleComparisonOrBuilder> - getExampleComparisonsOrBuilderList(); - /** - * - * - *
-   * A list of example comparisons matching the search criteria.
-   * 
- * - * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - * - */ - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparisonOrBuilder - getExampleComparisonsOrBuilder(int index); - - /** - * - * - *
-   * A token to retrieve next page of results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - * - * - *
-   * A token to retrieve next page of results.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegmentOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegmentOrBuilder.java deleted file mode 100644 index 4b6e4cd2..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegmentOrBuilder.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/datalabeling/v1beta1/annotation.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface SequentialSegmentOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.SequentialSegment) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Start position (inclusive).
-   * 
- * - * int32 start = 1; - * - * @return The start. - */ - int getStart(); - - /** - * - * - *
-   * End position (exclusive).
-   * 
- * - * int32 end = 2; - * - * @return The end. - */ - int getEnd(); -} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayloadOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayloadOrBuilder.java deleted file mode 100644 index 0b5640b5..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayloadOrBuilder.java +++ /dev/null @@ -1,50 +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/datalabeling/v1beta1/data_payloads.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface TextPayloadOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.TextPayload) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Text content.
-   * 
- * - * string text_content = 1; - * - * @return The textContent. - */ - java.lang.String getTextContent(); - /** - * - * - *
-   * Text content.
-   * 
- * - * string text_content = 1; - * - * @return The bytes for textContent. - */ - com.google.protobuf.ByteString getTextContentBytes(); -} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VertexOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VertexOrBuilder.java deleted file mode 100644 index 620819bd..00000000 --- a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VertexOrBuilder.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/datalabeling/v1beta1/annotation.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface VertexOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.Vertex) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * X coordinate.
-   * 
- * - * int32 x = 1; - * - * @return The x. - */ - int getX(); - - /** - * - * - *
-   * Y coordinate.
-   * 
- * - * int32 y = 2; - * - * @return The y. - */ - int getY(); -} From 0949f86d00211afd0855b508ab8c13b5589bcf57 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 10 Jun 2022 03:03:59 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= 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 --- .../v1beta1/DataLabelingServiceClient.java | 170 +- .../v1beta1/DataLabelingServiceSettings.java | 25 +- .../datalabeling/v1beta1/gapic_metadata.json | 0 .../datalabeling/v1beta1/package-info.java | 0 .../v1beta1/stub/DataLabelingServiceStub.java | 0 .../stub/DataLabelingServiceStubSettings.java | 78 +- ...rpcDataLabelingServiceCallableFactory.java | 0 .../stub/GrpcDataLabelingServiceStub.java | 1 - .../DataLabelingServiceClientTest.java | 0 .../v1beta1/MockDataLabelingService.java | 0 .../v1beta1/MockDataLabelingServiceImpl.java | 0 .../v1beta1/DataLabelingServiceGrpc.java | 4406 +++++++++++++++++ .../v1beta1/DataLabelingServiceGrpc.java | 3217 ------------ .../v1beta1/AnnotationOuterClass.java | 432 -- .../v1beta1/AnnotationSpecSetOuterClass.java | 84 - .../ClassificationMetadataOrBuilder.java | 19 - .../v1beta1/ConfusionMatrixOrBuilder.java | 33 - .../CreateDatasetRequestOrBuilder.java | 58 - .../CreateEvaluationJobRequestOrBuilder.java | 58 - .../CreateInstructionRequestOrBuilder.java | 58 - .../v1beta1/CsvInstructionOrBuilder.java | 29 - .../DataLabelingServiceOuterClass.java | 948 ---- .../datalabeling/v1beta1/DataPayloads.java | 105 - .../v1beta1/DatasetOuterClass.java | 337 -- ...eleteAnnotatedDatasetRequestOrBuilder.java | 33 - ...leteAnnotationSpecSetRequestOrBuilder.java | 31 - .../DeleteDatasetRequestOrBuilder.java | 31 - .../DeleteEvaluationJobRequestOrBuilder.java | 31 - .../DeleteInstructionRequestOrBuilder.java | 31 - .../v1beta1/EvaluationJobOuterClass.java | 167 - .../v1beta1/EvaluationOuterClass.java | 235 - .../GcsFolderDestinationOrBuilder.java | 29 - .../GetAnnotatedDatasetRequestOrBuilder.java | 33 - .../GetAnnotationSpecSetRequestOrBuilder.java | 31 - .../v1beta1/GetDataItemRequestOrBuilder.java | 31 - .../v1beta1/GetDatasetRequestOrBuilder.java | 31 - .../GetEvaluationJobRequestOrBuilder.java | 31 - .../GetEvaluationRequestOrBuilder.java | 31 - .../GetInstructionRequestOrBuilder.java | 31 - .../HumanAnnotationConfigOuterClass.java | 242 - .../v1beta1/InstructionOuterClass.java | 107 - .../v1beta1/NormalizedVertexOrBuilder.java | 29 - .../datalabeling/v1beta1/Operations.java | 353 -- .../PauseEvaluationJobRequestOrBuilder.java | 31 - .../v1beta1/PdfInstructionOrBuilder.java | 29 - .../ResumeEvaluationJobRequestOrBuilder.java | 31 - ...chExampleComparisonsResponseOrBuilder.java | 73 - .../v1beta1/SequentialSegmentOrBuilder.java | 29 - .../v1beta1/TextPayloadOrBuilder.java | 29 - .../datalabeling/v1beta1/VertexOrBuilder.java | 29 - .../v1beta1/AnnotatedDataset.java | 1111 +++-- .../v1beta1/AnnotatedDatasetMetadata.java | 2216 ++++++--- .../AnnotatedDatasetMetadataOrBuilder.java | 211 +- .../v1beta1/AnnotatedDatasetName.java | 0 .../v1beta1/AnnotatedDatasetOrBuilder.java | 105 +- .../datalabeling/v1beta1/Annotation.java | 688 ++- .../v1beta1/AnnotationMetadata.java | 354 +- .../v1beta1/AnnotationMetadataOrBuilder.java | 26 +- .../v1beta1/AnnotationOrBuilder.java | 58 +- .../v1beta1/AnnotationOuterClass.java | 484 ++ .../v1beta1/AnnotationSentiment.java | 87 +- .../v1beta1/AnnotationSource.java | 83 +- .../datalabeling/v1beta1/AnnotationSpec.java | 390 +- .../v1beta1/AnnotationSpecOrBuilder.java | 36 +- .../v1beta1/AnnotationSpecSet.java | 727 +-- .../v1beta1/AnnotationSpecSetName.java | 0 .../v1beta1/AnnotationSpecSetOrBuilder.java | 78 +- .../v1beta1/AnnotationSpecSetOuterClass.java | 100 + .../datalabeling/v1beta1/AnnotationType.java | 167 +- .../datalabeling/v1beta1/AnnotationValue.java | 2112 +++++--- .../v1beta1/AnnotationValueOrBuilder.java | 240 +- .../cloud/datalabeling/v1beta1/Attempt.java | 472 +- .../v1beta1/AttemptOrBuilder.java | 43 +- .../datalabeling/v1beta1/BigQuerySource.java | 311 +- .../v1beta1/BigQuerySourceOrBuilder.java | 27 +- .../v1beta1/BoundingBoxEvaluationOptions.java | 308 +- ...BoundingBoxEvaluationOptionsOrBuilder.java | 21 +- .../datalabeling/v1beta1/BoundingPoly.java | 381 +- .../v1beta1/BoundingPolyConfig.java | 393 +- .../v1beta1/BoundingPolyConfigOrBuilder.java | 36 +- .../v1beta1/BoundingPolyOrBuilder.java | 36 +- .../v1beta1/ClassificationMetadata.java | 282 +- .../ClassificationMetadataOrBuilder.java | 38 + .../v1beta1/ClassificationMetrics.java | 449 +- .../ClassificationMetricsOrBuilder.java | 34 +- .../datalabeling/v1beta1/ConfusionMatrix.java | 1589 +++--- .../v1beta1/ConfusionMatrixOrBuilder.java | 37 + .../CreateAnnotationSpecSetRequest.java | 540 +- ...eateAnnotationSpecSetRequestOrBuilder.java | 55 +- .../v1beta1/CreateDatasetRequest.java | 488 +- .../CreateDatasetRequestOrBuilder.java | 97 + .../v1beta1/CreateEvaluationJobRequest.java | 510 +- .../CreateEvaluationJobRequestOrBuilder.java | 97 + .../v1beta1/CreateInstructionMetadata.java | 573 ++- .../CreateInstructionMetadataOrBuilder.java | 54 +- .../v1beta1/CreateInstructionRequest.java | 507 +- .../CreateInstructionRequestOrBuilder.java | 97 + .../datalabeling/v1beta1/CsvInstruction.java | 311 +- .../v1beta1/CsvInstructionOrBuilder.java | 50 + .../cloud/datalabeling/v1beta1/DataItem.java | 671 ++- .../datalabeling/v1beta1/DataItemName.java | 0 .../v1beta1/DataItemOrBuilder.java | 51 +- .../DataLabelingServiceOuterClass.java | 1027 ++++ .../datalabeling/v1beta1/DataPayloads.java | 123 + .../cloud/datalabeling/v1beta1/DataType.java | 110 +- .../cloud/datalabeling/v1beta1/Dataset.java | 837 ++-- .../datalabeling/v1beta1/DatasetName.java | 0 .../v1beta1/DatasetOrBuilder.java | 92 +- .../v1beta1/DatasetOuterClass.java | 402 ++ .../DeleteAnnotatedDatasetRequest.java | 375 +- ...eleteAnnotatedDatasetRequestOrBuilder.java | 58 + .../DeleteAnnotationSpecSetRequest.java | 378 +- ...leteAnnotationSpecSetRequestOrBuilder.java | 56 + .../v1beta1/DeleteDatasetRequest.java | 342 +- .../DeleteDatasetRequestOrBuilder.java | 56 + .../v1beta1/DeleteEvaluationJobRequest.java | 363 +- .../DeleteEvaluationJobRequestOrBuilder.java | 56 + .../v1beta1/DeleteInstructionRequest.java | 360 +- .../DeleteInstructionRequestOrBuilder.java | 56 + .../datalabeling/v1beta1/Evaluation.java | 827 ++-- .../v1beta1/EvaluationConfig.java | 491 +- .../v1beta1/EvaluationConfigOrBuilder.java | 47 +- .../datalabeling/v1beta1/EvaluationJob.java | 1216 +++-- .../v1beta1/EvaluationJobAlertConfig.java | 375 +- .../EvaluationJobAlertConfigOrBuilder.java | 30 +- .../v1beta1/EvaluationJobConfig.java | 1711 ++++--- .../v1beta1/EvaluationJobConfigOrBuilder.java | 174 +- .../v1beta1/EvaluationJobName.java | 0 .../v1beta1/EvaluationJobOrBuilder.java | 109 +- .../v1beta1/EvaluationJobOuterClass.java | 207 + .../v1beta1/EvaluationMetrics.java | 578 ++- .../v1beta1/EvaluationMetricsOrBuilder.java | 46 +- .../datalabeling/v1beta1/EvaluationName.java | 0 .../v1beta1/EvaluationOrBuilder.java | 68 +- .../v1beta1/EvaluationOuterClass.java | 284 ++ .../datalabeling/v1beta1/EventConfig.java | 382 +- .../v1beta1/EventConfigOrBuilder.java | 48 +- .../cloud/datalabeling/v1beta1/Example.java | 802 +-- .../datalabeling/v1beta1/ExampleName.java | 0 .../v1beta1/ExampleOrBuilder.java | 69 +- .../v1beta1/ExportDataOperationMetadata.java | 581 ++- .../ExportDataOperationMetadataOrBuilder.java | 54 +- .../v1beta1/ExportDataOperationResponse.java | 608 ++- .../ExportDataOperationResponseOrBuilder.java | 49 +- .../v1beta1/ExportDataRequest.java | 754 +-- .../v1beta1/ExportDataRequestOrBuilder.java | 90 +- .../datalabeling/v1beta1/GcsDestination.java | 390 +- .../v1beta1/GcsDestinationOrBuilder.java | 36 +- .../v1beta1/GcsFolderDestination.java | 314 +- .../GcsFolderDestinationOrBuilder.java | 50 + .../cloud/datalabeling/v1beta1/GcsSource.java | 383 +- .../v1beta1/GcsSourceOrBuilder.java | 36 +- .../v1beta1/GetAnnotatedDatasetRequest.java | 363 +- .../GetAnnotatedDatasetRequestOrBuilder.java | 58 + .../v1beta1/GetAnnotationSpecSetRequest.java | 371 +- .../GetAnnotationSpecSetRequestOrBuilder.java | 56 + .../v1beta1/GetDataItemRequest.java | 342 +- .../v1beta1/GetDataItemRequestOrBuilder.java | 56 + .../v1beta1/GetDatasetRequest.java | 342 +- .../v1beta1/GetDatasetRequestOrBuilder.java | 56 + .../v1beta1/GetEvaluationJobRequest.java | 350 +- .../GetEvaluationJobRequestOrBuilder.java | 56 + .../v1beta1/GetEvaluationRequest.java | 342 +- .../GetEvaluationRequestOrBuilder.java | 56 + .../v1beta1/GetExampleRequest.java | 421 +- .../v1beta1/GetExampleRequestOrBuilder.java | 44 +- .../v1beta1/GetInstructionRequest.java | 342 +- .../GetInstructionRequestOrBuilder.java | 56 + .../v1beta1/HumanAnnotationConfig.java | 1081 ++-- .../HumanAnnotationConfigOrBuilder.java | 125 +- .../HumanAnnotationConfigOuterClass.java | 279 ++ .../v1beta1/ImageBoundingPolyAnnotation.java | 681 ++- .../ImageBoundingPolyAnnotationOrBuilder.java | 49 +- .../ImageClassificationAnnotation.java | 378 +- ...mageClassificationAnnotationOrBuilder.java | 26 +- .../v1beta1/ImageClassificationConfig.java | 478 +- .../ImageClassificationConfigOrBuilder.java | 44 +- .../datalabeling/v1beta1/ImagePayload.java | 505 +- .../v1beta1/ImagePayloadOrBuilder.java | 48 +- .../v1beta1/ImagePolylineAnnotation.java | 612 ++- .../ImagePolylineAnnotationOrBuilder.java | 41 +- .../v1beta1/ImageSegmentationAnnotation.java | 687 +-- .../ImageSegmentationAnnotationOrBuilder.java | 76 +- .../v1beta1/ImportDataOperationMetadata.java | 581 ++- .../ImportDataOperationMetadataOrBuilder.java | 54 +- .../v1beta1/ImportDataOperationResponse.java | 411 +- .../ImportDataOperationResponseOrBuilder.java | 33 +- .../v1beta1/ImportDataRequest.java | 568 ++- .../v1beta1/ImportDataRequestOrBuilder.java | 64 +- .../datalabeling/v1beta1/InputConfig.java | 938 ++-- .../v1beta1/InputConfigOrBuilder.java | 77 +- .../datalabeling/v1beta1/Instruction.java | 1137 +++-- .../datalabeling/v1beta1/InstructionName.java | 0 .../v1beta1/InstructionOrBuilder.java | 130 +- .../v1beta1/InstructionOuterClass.java | 132 + ...abelImageBoundingBoxOperationMetadata.java | 454 +- ...BoundingBoxOperationMetadataOrBuilder.java | 26 +- ...belImageBoundingPolyOperationMetadata.java | 455 +- ...oundingPolyOperationMetadataOrBuilder.java | 26 +- ...lImageClassificationOperationMetadata.java | 460 +- ...ssificationOperationMetadataOrBuilder.java | 26 +- ...eOrientedBoundingBoxOperationMetadata.java | 480 +- ...BoundingBoxOperationMetadataOrBuilder.java | 26 +- .../LabelImagePolylineOperationMetadata.java | 411 +- ...agePolylineOperationMetadataOrBuilder.java | 26 +- .../v1beta1/LabelImageRequest.java | 1331 +++-- .../v1beta1/LabelImageRequestOrBuilder.java | 125 +- ...belImageSegmentationOperationMetadata.java | 455 +- ...egmentationOperationMetadataOrBuilder.java | 26 +- .../v1beta1/LabelOperationMetadata.java | 3397 +++++++++---- .../LabelOperationMetadataOrBuilder.java | 357 +- .../datalabeling/v1beta1/LabelStats.java | 491 +- .../v1beta1/LabelStatsOrBuilder.java | 50 +- ...elTextClassificationOperationMetadata.java | 460 +- ...ssificationOperationMetadataOrBuilder.java | 26 +- ...TextEntityExtractionOperationMetadata.java | 468 +- ...yExtractionOperationMetadataOrBuilder.java | 26 +- .../v1beta1/LabelTextRequest.java | 1114 +++-- .../v1beta1/LabelTextRequestOrBuilder.java | 118 +- ...lVideoClassificationOperationMetadata.java | 460 +- ...ssificationOperationMetadataOrBuilder.java | 26 +- .../LabelVideoEventOperationMetadata.java | 393 +- ...lVideoEventOperationMetadataOrBuilder.java | 26 +- ...VideoObjectDetectionOperationMetadata.java | 468 +- ...ctDetectionOperationMetadataOrBuilder.java | 26 +- ...lVideoObjectTrackingOperationMetadata.java | 460 +- ...ectTrackingOperationMetadataOrBuilder.java | 26 +- .../v1beta1/LabelVideoRequest.java | 1382 ++++-- .../v1beta1/LabelVideoRequestOrBuilder.java | 143 +- .../v1beta1/ListAnnotatedDatasetsRequest.java | 569 ++- ...ListAnnotatedDatasetsRequestOrBuilder.java | 56 +- .../ListAnnotatedDatasetsResponse.java | 581 ++- ...istAnnotatedDatasetsResponseOrBuilder.java | 57 +- .../ListAnnotationSpecSetsRequest.java | 569 ++- ...istAnnotationSpecSetsRequestOrBuilder.java | 56 +- .../ListAnnotationSpecSetsResponse.java | 597 ++- ...stAnnotationSpecSetsResponseOrBuilder.java | 56 +- .../v1beta1/ListDataItemsRequest.java | 536 +- .../ListDataItemsRequestOrBuilder.java | 56 +- .../v1beta1/ListDataItemsResponse.java | 461 +- .../ListDataItemsResponseOrBuilder.java | 45 +- .../v1beta1/ListDatasetsRequest.java | 536 +- .../v1beta1/ListDatasetsRequestOrBuilder.java | 56 +- .../v1beta1/ListDatasetsResponse.java | 464 +- .../ListDatasetsResponseOrBuilder.java | 45 +- .../v1beta1/ListEvaluationJobsRequest.java | 557 ++- .../ListEvaluationJobsRequestOrBuilder.java | 56 +- .../v1beta1/ListEvaluationJobsResponse.java | 471 +- .../ListEvaluationJobsResponseOrBuilder.java | 42 +- .../v1beta1/ListExamplesRequest.java | 536 +- .../v1beta1/ListExamplesRequestOrBuilder.java | 56 +- .../v1beta1/ListExamplesResponse.java | 464 +- .../ListExamplesResponseOrBuilder.java | 45 +- .../v1beta1/ListInstructionsRequest.java | 544 +- .../ListInstructionsRequestOrBuilder.java | 56 +- .../v1beta1/ListInstructionsResponse.java | 467 +- .../ListInstructionsResponseOrBuilder.java | 45 +- .../v1beta1/NormalizedBoundingPoly.java | 479 +- .../NormalizedBoundingPolyOrBuilder.java | 47 +- .../v1beta1/NormalizedPolyline.java | 472 +- .../v1beta1/NormalizedPolylineOrBuilder.java | 47 +- .../v1beta1/NormalizedVertex.java | 316 +- .../v1beta1/NormalizedVertexOrBuilder.java | 51 + .../v1beta1/ObjectDetectionConfig.java | 354 +- .../ObjectDetectionConfigOrBuilder.java | 30 +- .../v1beta1/ObjectDetectionMetrics.java | 345 +- .../ObjectDetectionMetricsOrBuilder.java | 26 +- .../v1beta1/ObjectTrackingConfig.java | 314 +- .../ObjectTrackingConfigOrBuilder.java | 27 +- .../v1beta1/ObjectTrackingFrame.java | 643 ++- .../v1beta1/ObjectTrackingFrameOrBuilder.java | 49 +- .../datalabeling/v1beta1/Operations.java | 400 ++ .../v1beta1/OperatorMetadata.java | 451 +- .../v1beta1/OperatorMetadataOrBuilder.java | 45 +- .../datalabeling/v1beta1/OutputConfig.java | 563 ++- .../v1beta1/OutputConfigOrBuilder.java | 46 +- .../v1beta1/PauseEvaluationJobRequest.java | 363 +- .../PauseEvaluationJobRequestOrBuilder.java | 56 + .../datalabeling/v1beta1/PdfInstruction.java | 311 +- .../v1beta1/PdfInstructionOrBuilder.java | 50 + .../cloud/datalabeling/v1beta1/Polyline.java | 371 +- .../datalabeling/v1beta1/PolylineConfig.java | 390 +- .../v1beta1/PolylineConfigOrBuilder.java | 36 +- .../v1beta1/PolylineOrBuilder.java | 36 +- .../cloud/datalabeling/v1beta1/PrCurve.java | 1359 +++-- .../v1beta1/PrCurveOrBuilder.java | 74 +- .../datalabeling/v1beta1/ProjectName.java | 0 .../v1beta1/ResumeEvaluationJobRequest.java | 363 +- .../ResumeEvaluationJobRequestOrBuilder.java | 56 + .../v1beta1/SearchEvaluationsRequest.java | 554 ++- .../SearchEvaluationsRequestOrBuilder.java | 56 +- .../v1beta1/SearchEvaluationsResponse.java | 468 +- .../SearchEvaluationsResponseOrBuilder.java | 45 +- .../SearchExampleComparisonsRequest.java | 491 +- ...rchExampleComparisonsRequestOrBuilder.java | 47 +- .../SearchExampleComparisonsResponse.java | 1363 +++-- ...chExampleComparisonsResponseOrBuilder.java | 119 + .../v1beta1/SegmentationConfig.java | 393 +- .../v1beta1/SegmentationConfigOrBuilder.java | 36 +- .../datalabeling/v1beta1/SentimentConfig.java | 278 +- .../v1beta1/SentimentConfigOrBuilder.java | 21 +- .../v1beta1/SequentialSegment.java | 306 +- .../v1beta1/SequentialSegmentOrBuilder.java | 51 + .../v1beta1/StringAggregationType.java | 94 +- .../v1beta1/TextClassificationAnnotation.java | 378 +- ...TextClassificationAnnotationOrBuilder.java | 26 +- .../v1beta1/TextClassificationConfig.java | 528 +- .../TextClassificationConfigOrBuilder.java | 50 +- .../TextEntityExtractionAnnotation.java | 495 +- ...xtEntityExtractionAnnotationOrBuilder.java | 34 +- .../v1beta1/TextEntityExtractionConfig.java | 335 +- .../TextEntityExtractionConfigOrBuilder.java | 27 +- .../datalabeling/v1beta1/TextMetadata.java | 311 +- .../v1beta1/TextMetadataOrBuilder.java | 27 +- .../datalabeling/v1beta1/TextPayload.java | 311 +- .../v1beta1/TextPayloadOrBuilder.java | 50 + .../datalabeling/v1beta1/TimeSegment.java | 437 +- .../v1beta1/TimeSegmentOrBuilder.java | 34 +- .../v1beta1/UpdateEvaluationJobRequest.java | 541 +- .../UpdateEvaluationJobRequestOrBuilder.java | 55 +- .../cloud/datalabeling/v1beta1/Vertex.java | 293 +- .../datalabeling/v1beta1/VertexOrBuilder.java | 51 + .../VideoClassificationAnnotation.java | 477 +- ...ideoClassificationAnnotationOrBuilder.java | 34 +- .../v1beta1/VideoClassificationConfig.java | 1108 +++-- .../VideoClassificationConfigOrBuilder.java | 66 +- .../v1beta1/VideoEventAnnotation.java | 446 +- .../VideoEventAnnotationOrBuilder.java | 34 +- .../VideoObjectTrackingAnnotation.java | 750 ++- ...ideoObjectTrackingAnnotationOrBuilder.java | 72 +- .../datalabeling/v1beta1/VideoPayload.java | 649 ++- .../v1beta1/VideoPayloadOrBuilder.java | 63 +- .../datalabeling/v1beta1/VideoThumbnail.java | 362 +- .../v1beta1/VideoThumbnailOrBuilder.java | 29 +- .../datalabeling/v1beta1/annotation.proto | 0 .../v1beta1/annotation_spec_set.proto | 0 .../v1beta1/data_labeling_service.proto | 0 .../datalabeling/v1beta1/data_payloads.proto | 0 .../cloud/datalabeling/v1beta1/dataset.proto | 0 .../datalabeling/v1beta1/evaluation.proto | 0 .../datalabeling/v1beta1/evaluation_job.proto | 0 .../v1beta1/human_annotation_config.proto | 0 .../datalabeling/v1beta1/instruction.proto | 0 .../datalabeling/v1beta1/operations.proto | 0 344 files changed, 63384 insertions(+), 37228 deletions(-) rename {owl-bot-staging/v1beta1/google-cloud-datalabeling => google-cloud-datalabeling}/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClient.java (97%) rename {owl-bot-staging/v1beta1/google-cloud-datalabeling => google-cloud-datalabeling}/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceSettings.java (97%) rename {owl-bot-staging/v1beta1/google-cloud-datalabeling => google-cloud-datalabeling}/src/main/java/com/google/cloud/datalabeling/v1beta1/gapic_metadata.json (100%) rename {owl-bot-staging/v1beta1/google-cloud-datalabeling => google-cloud-datalabeling}/src/main/java/com/google/cloud/datalabeling/v1beta1/package-info.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-datalabeling => google-cloud-datalabeling}/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStub.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-datalabeling => google-cloud-datalabeling}/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java (97%) rename {owl-bot-staging/v1beta1/google-cloud-datalabeling => google-cloud-datalabeling}/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceCallableFactory.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-datalabeling => google-cloud-datalabeling}/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceStub.java (99%) rename {owl-bot-staging/v1beta1/google-cloud-datalabeling => google-cloud-datalabeling}/src/test/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClientTest.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-datalabeling => google-cloud-datalabeling}/src/test/java/com/google/cloud/datalabeling/v1beta1/MockDataLabelingService.java (100%) rename {owl-bot-staging/v1beta1/google-cloud-datalabeling => google-cloud-datalabeling}/src/test/java/com/google/cloud/datalabeling/v1beta1/MockDataLabelingServiceImpl.java (100%) create mode 100644 grpc-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceGrpc.java delete mode 100644 owl-bot-staging/v1beta1/grpc-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceGrpc.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadataOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrixOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstructionOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataPayloads.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestinationOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOuterClass.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertexOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Operations.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstructionOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegmentOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayloadOrBuilder.java delete mode 100644 owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VertexOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDataset.java (74%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadata.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadataOrBuilder.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetOrBuilder.java (84%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/Annotation.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadata.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadataOrBuilder.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOrBuilder.java (82%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOuterClass.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSentiment.java (63%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSource.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpec.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecOrBuilder.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSet.java (77%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOrBuilder.java (81%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOuterClass.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationType.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValue.java (57%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValueOrBuilder.java (57%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/Attempt.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/AttemptOrBuilder.java (60%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySource.java (75%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySourceOrBuilder.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptions.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptionsOrBuilder.java (50%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPoly.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfig.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfigOrBuilder.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyOrBuilder.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadata.java (68%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadataOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetrics.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetricsOrBuilder.java (74%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrix.java (65%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrixOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequest.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequestOrBuilder.java (52%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequest.java (63%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequest.java (61%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadata.java (74%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadataOrBuilder.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequest.java (62%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstruction.java (70%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstructionOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItem.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemOrBuilder.java (79%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceOuterClass.java create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataPayloads.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/DataType.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/Dataset.java (77%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOrBuilder.java (81%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOuterClass.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequest.java (63%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequest.java (62%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequest.java (66%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequest.java (64%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequest.java (64%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/Evaluation.java (74%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfig.java (63%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfigOrBuilder.java (51%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJob.java (78%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfig.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfigOrBuilder.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig.java (74%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfigOrBuilder.java (86%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOrBuilder.java (87%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOuterClass.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetrics.java (64%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetricsOrBuilder.java (58%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOrBuilder.java (86%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOuterClass.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfig.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfigOrBuilder.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/Example.java (75%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleOrBuilder.java (83%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadata.java (74%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadataOrBuilder.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponse.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponseOrBuilder.java (76%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequest.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequestOrBuilder.java (59%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestination.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestinationOrBuilder.java (58%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestination.java (69%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestinationOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSource.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSourceOrBuilder.java (59%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequest.java (64%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequest.java (63%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequest.java (66%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequest.java (65%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequest.java (65%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequest.java (67%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequest.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequestOrBuilder.java (58%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequest.java (66%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfig.java (74%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOrBuilder.java (79%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOuterClass.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotation.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotationOrBuilder.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotation.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotationOrBuilder.java (60%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfig.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfigOrBuilder.java (58%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayload.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayloadOrBuilder.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotation.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotationOrBuilder.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotation.java (60%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotationOrBuilder.java (56%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadata.java (74%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadataOrBuilder.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponse.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponseOrBuilder.java (58%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequest.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequestOrBuilder.java (53%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfig.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfigOrBuilder.java (84%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/Instruction.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOrBuilder.java (77%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOuterClass.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadata.java (58%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadataOrBuilder.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadata.java (58%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadataOrBuilder.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadata.java (57%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadataOrBuilder.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadata.java (55%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadataOrBuilder.java (64%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadata.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadataOrBuilder.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequest.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequestOrBuilder.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadata.java (57%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadataOrBuilder.java (64%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadata.java (54%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadataOrBuilder.java (54%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStats.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStatsOrBuilder.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadata.java (57%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadataOrBuilder.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadata.java (56%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadataOrBuilder.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequest.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequestOrBuilder.java (55%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadata.java (57%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadataOrBuilder.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadata.java (63%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadataOrBuilder.java (63%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadata.java (56%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadataOrBuilder.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadata.java (57%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadataOrBuilder.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequest.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequestOrBuilder.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequest.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequestOrBuilder.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponse.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponseOrBuilder.java (63%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequest.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequestOrBuilder.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponse.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponseOrBuilder.java (63%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequest.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequestOrBuilder.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponse.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponseOrBuilder.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequest.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequestOrBuilder.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponse.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponseOrBuilder.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequest.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequestOrBuilder.java (75%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponse.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponseOrBuilder.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequest.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequestOrBuilder.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponse.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponseOrBuilder.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequest.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequestOrBuilder.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponse.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponseOrBuilder.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPoly.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPolyOrBuilder.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolyline.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolylineOrBuilder.java (60%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertex.java (68%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertexOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfig.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfigOrBuilder.java (59%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetrics.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetricsOrBuilder.java (58%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfig.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfigOrBuilder.java (52%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrame.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrameOrBuilder.java (67%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Operations.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadata.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadataOrBuilder.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfig.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfigOrBuilder.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequest.java (64%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstruction.java (70%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstructionOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/Polyline.java (74%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfig.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfigOrBuilder.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineOrBuilder.java (61%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurve.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurveOrBuilder.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ProjectName.java (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequest.java (64%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequestOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequest.java (78%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequestOrBuilder.java (84%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponse.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponseOrBuilder.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequest.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequestOrBuilder.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponse.java (64%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponseOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfig.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfigOrBuilder.java (62%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfig.java (69%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfigOrBuilder.java (51%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegment.java (69%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegmentOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/StringAggregationType.java (64%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotation.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotationOrBuilder.java (60%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfig.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfigOrBuilder.java (57%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotation.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotationOrBuilder.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfig.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfigOrBuilder.java (52%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadata.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadataOrBuilder.java (53%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayload.java (67%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayloadOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegment.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegmentOrBuilder.java (73%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequest.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequestOrBuilder.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/Vertex.java (70%) create mode 100644 proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VertexOrBuilder.java rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotation.java (68%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotationOrBuilder.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfig.java (64%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfigOrBuilder.java (58%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotation.java (70%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotationOrBuilder.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotation.java (66%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java (65%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayload.java (74%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayloadOrBuilder.java (72%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnail.java (71%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnailOrBuilder.java (67%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/proto/google/cloud/datalabeling/v1beta1/annotation.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/proto/google/cloud/datalabeling/v1beta1/annotation_spec_set.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/proto/google/cloud/datalabeling/v1beta1/data_labeling_service.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/proto/google/cloud/datalabeling/v1beta1/data_payloads.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/proto/google/cloud/datalabeling/v1beta1/dataset.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation_job.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/proto/google/cloud/datalabeling/v1beta1/human_annotation_config.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/proto/google/cloud/datalabeling/v1beta1/instruction.proto (100%) rename {owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1 => proto-google-cloud-datalabeling-v1beta1}/src/main/proto/google/cloud/datalabeling/v1beta1/operations.proto (100%) diff --git a/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClient.java b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClient.java similarity index 97% rename from owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClient.java rename to google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClient.java index 7ab09cb9..3ba23346 100644 --- a/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClient.java +++ b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClient.java @@ -64,13 +64,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. *
* @@ -3541,22 +3541,22 @@ public final UnaryCallable getEvaluationCallab * "projects/<var>{project_id}</var>" * @param filter Optional. To search evaluations, you can filter by the following: *
    - *
  • evaluation<span>_</span>job.evaluation_job_id (the last part of + *
  • evaluation<span>_</span>job.evaluation_job_id (the last part of * [EvaluationJob.name][google.cloud.datalabeling.v1beta1.EvaluationJob.name]) - *
  • evaluation<span>_</span>job.model_id (the + *
  • evaluation<span>_</span>job.model_id (the * <var>{model_name}</var> portion of * [EvaluationJob.modelVersion][google.cloud.datalabeling.v1beta1.EvaluationJob.model_version]) - *
  • evaluation<span>_</span>job.evaluation_job_run_time_start (Minimum + *
  • evaluation<span>_</span>job.evaluation_job_run_time_start (Minimum * threshold for the * [evaluationJobRunTime][google.cloud.datalabeling.v1beta1.Evaluation.evaluation_job_run_time] * that created the evaluation) - *
  • evaluation<span>_</span>job.evaluation_job_run_time_end (Maximum + *
  • evaluation<span>_</span>job.evaluation_job_run_time_end (Maximum * threshold for the * [evaluationJobRunTime][google.cloud.datalabeling.v1beta1.Evaluation.evaluation_job_run_time] * that created the evaluation) - *
  • evaluation<span>_</span>job.job_state + *
  • evaluation<span>_</span>job.job_state * ([EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state]) - *
  • annotation<span>_</span>spec.display_name (the Evaluation contains a + *
  • annotation<span>_</span>spec.display_name (the Evaluation contains a * metric for the annotation spec with this * [displayName][google.cloud.datalabeling.v1beta1.AnnotationSpec.display_name]) *
@@ -3606,22 +3606,22 @@ public final SearchEvaluationsPagedResponse searchEvaluations( * "projects/<var>{project_id}</var>" * @param filter Optional. To search evaluations, you can filter by the following: *
    - *
  • evaluation<span>_</span>job.evaluation_job_id (the last part of + *
  • evaluation<span>_</span>job.evaluation_job_id (the last part of * [EvaluationJob.name][google.cloud.datalabeling.v1beta1.EvaluationJob.name]) - *
  • evaluation<span>_</span>job.model_id (the + *
  • evaluation<span>_</span>job.model_id (the * <var>{model_name}</var> portion of * [EvaluationJob.modelVersion][google.cloud.datalabeling.v1beta1.EvaluationJob.model_version]) - *
  • evaluation<span>_</span>job.evaluation_job_run_time_start (Minimum + *
  • evaluation<span>_</span>job.evaluation_job_run_time_start (Minimum * threshold for the * [evaluationJobRunTime][google.cloud.datalabeling.v1beta1.Evaluation.evaluation_job_run_time] * that created the evaluation) - *
  • evaluation<span>_</span>job.evaluation_job_run_time_end (Maximum + *
  • evaluation<span>_</span>job.evaluation_job_run_time_end (Maximum * threshold for the * [evaluationJobRunTime][google.cloud.datalabeling.v1beta1.Evaluation.evaluation_job_run_time] * that created the evaluation) - *
  • evaluation<span>_</span>job.job_state + *
  • evaluation<span>_</span>job.job_state * ([EvaluationJob.state][google.cloud.datalabeling.v1beta1.EvaluationJob.state]) - *
  • annotation<span>_</span>spec.display_name (the Evaluation contains a + *
  • annotation<span>_</span>spec.display_name (the Evaluation contains a * metric for the annotation spec with this * [displayName][google.cloud.datalabeling.v1beta1.AnnotationSpec.display_name]) *
@@ -4049,9 +4049,9 @@ public final EvaluationJob createEvaluationJob(CreateEvaluationJobRequest reques * @param updateMask Optional. Mask for which fields to update. You can only provide the following * fields: *
    - *
  • `evaluationJobConfig.humanAnnotationConfig.instruction` - *
  • `evaluationJobConfig.exampleCount` - *
  • `evaluationJobConfig.exampleSamplePercentage` + *
  • `evaluationJobConfig.humanAnnotationConfig.instruction` + *
  • `evaluationJobConfig.exampleCount` + *
  • `evaluationJobConfig.exampleSamplePercentage` *
*

You can provide more than one of these fields by separating them with commas. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -4755,7 +4755,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( @@ -4804,7 +4807,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) { @@ -4824,7 +4830,10 @@ protected ListDatasetsFixedSizeCollection createCollection( public static class ListDataItemsPagedResponse extends AbstractPagedListResponse< - ListDataItemsRequest, ListDataItemsResponse, DataItem, ListDataItemsPage, + ListDataItemsRequest, + ListDataItemsResponse, + DataItem, + ListDataItemsPage, ListDataItemsFixedSizeCollection> { public static ApiFuture createAsync( @@ -4874,7 +4883,10 @@ public ApiFuture createPageAsync( public static class ListDataItemsFixedSizeCollection extends AbstractFixedSizeCollection< - ListDataItemsRequest, ListDataItemsResponse, DataItem, ListDataItemsPage, + ListDataItemsRequest, + ListDataItemsResponse, + DataItem, + ListDataItemsPage, ListDataItemsFixedSizeCollection> { private ListDataItemsFixedSizeCollection(List pages, int collectionSize) { @@ -4894,8 +4906,11 @@ protected ListDataItemsFixedSizeCollection createCollection( public static class ListAnnotatedDatasetsPagedResponse extends AbstractPagedListResponse< - ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, AnnotatedDataset, - ListAnnotatedDatasetsPage, ListAnnotatedDatasetsFixedSizeCollection> { + ListAnnotatedDatasetsRequest, + ListAnnotatedDatasetsResponse, + AnnotatedDataset, + ListAnnotatedDatasetsPage, + ListAnnotatedDatasetsFixedSizeCollection> { public static ApiFuture createAsync( PageContext @@ -4916,7 +4931,9 @@ private ListAnnotatedDatasetsPagedResponse(ListAnnotatedDatasetsPage page) { public static class ListAnnotatedDatasetsPage extends AbstractPage< - ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, AnnotatedDataset, + ListAnnotatedDatasetsRequest, + ListAnnotatedDatasetsResponse, + AnnotatedDataset, ListAnnotatedDatasetsPage> { private ListAnnotatedDatasetsPage( @@ -4949,8 +4966,11 @@ public ApiFuture createPageAsync( public static class ListAnnotatedDatasetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, AnnotatedDataset, - ListAnnotatedDatasetsPage, ListAnnotatedDatasetsFixedSizeCollection> { + ListAnnotatedDatasetsRequest, + ListAnnotatedDatasetsResponse, + AnnotatedDataset, + ListAnnotatedDatasetsPage, + ListAnnotatedDatasetsFixedSizeCollection> { private ListAnnotatedDatasetsFixedSizeCollection( List pages, int collectionSize) { @@ -4970,7 +4990,10 @@ protected ListAnnotatedDatasetsFixedSizeCollection createCollection( public static class ListExamplesPagedResponse extends AbstractPagedListResponse< - ListExamplesRequest, ListExamplesResponse, Example, ListExamplesPage, + ListExamplesRequest, + ListExamplesResponse, + Example, + ListExamplesPage, ListExamplesFixedSizeCollection> { public static ApiFuture createAsync( @@ -5019,7 +5042,10 @@ public ApiFuture createPageAsync( public static class ListExamplesFixedSizeCollection extends AbstractFixedSizeCollection< - ListExamplesRequest, ListExamplesResponse, Example, ListExamplesPage, + ListExamplesRequest, + ListExamplesResponse, + Example, + ListExamplesPage, ListExamplesFixedSizeCollection> { private ListExamplesFixedSizeCollection(List pages, int collectionSize) { @@ -5039,8 +5065,11 @@ protected ListExamplesFixedSizeCollection createCollection( public static class ListAnnotationSpecSetsPagedResponse extends AbstractPagedListResponse< - ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, AnnotationSpecSet, - ListAnnotationSpecSetsPage, ListAnnotationSpecSetsFixedSizeCollection> { + ListAnnotationSpecSetsRequest, + ListAnnotationSpecSetsResponse, + AnnotationSpecSet, + ListAnnotationSpecSetsPage, + ListAnnotationSpecSetsFixedSizeCollection> { public static ApiFuture createAsync( PageContext< @@ -5062,7 +5091,9 @@ private ListAnnotationSpecSetsPagedResponse(ListAnnotationSpecSetsPage page) { public static class ListAnnotationSpecSetsPage extends AbstractPage< - ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, AnnotationSpecSet, + ListAnnotationSpecSetsRequest, + ListAnnotationSpecSetsResponse, + AnnotationSpecSet, ListAnnotationSpecSetsPage> { private ListAnnotationSpecSetsPage( @@ -5098,8 +5129,11 @@ public ApiFuture createPageAsync( public static class ListAnnotationSpecSetsFixedSizeCollection extends AbstractFixedSizeCollection< - ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, AnnotationSpecSet, - ListAnnotationSpecSetsPage, ListAnnotationSpecSetsFixedSizeCollection> { + ListAnnotationSpecSetsRequest, + ListAnnotationSpecSetsResponse, + AnnotationSpecSet, + ListAnnotationSpecSetsPage, + ListAnnotationSpecSetsFixedSizeCollection> { private ListAnnotationSpecSetsFixedSizeCollection( List pages, int collectionSize) { @@ -5119,7 +5153,10 @@ protected ListAnnotationSpecSetsFixedSizeCollection createCollection( public static class ListInstructionsPagedResponse extends AbstractPagedListResponse< - ListInstructionsRequest, ListInstructionsResponse, Instruction, ListInstructionsPage, + ListInstructionsRequest, + ListInstructionsResponse, + Instruction, + ListInstructionsPage, ListInstructionsFixedSizeCollection> { public static ApiFuture createAsync( @@ -5169,7 +5206,10 @@ public ApiFuture createPageAsync( public static class ListInstructionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListInstructionsRequest, ListInstructionsResponse, Instruction, ListInstructionsPage, + ListInstructionsRequest, + ListInstructionsResponse, + Instruction, + ListInstructionsPage, ListInstructionsFixedSizeCollection> { private ListInstructionsFixedSizeCollection( @@ -5190,7 +5230,10 @@ protected ListInstructionsFixedSizeCollection createCollection( public static class SearchEvaluationsPagedResponse extends AbstractPagedListResponse< - SearchEvaluationsRequest, SearchEvaluationsResponse, Evaluation, SearchEvaluationsPage, + SearchEvaluationsRequest, + SearchEvaluationsResponse, + Evaluation, + SearchEvaluationsPage, SearchEvaluationsFixedSizeCollection> { public static ApiFuture createAsync( @@ -5240,7 +5283,10 @@ public ApiFuture createPageAsync( public static class SearchEvaluationsFixedSizeCollection extends AbstractFixedSizeCollection< - SearchEvaluationsRequest, SearchEvaluationsResponse, Evaluation, SearchEvaluationsPage, + SearchEvaluationsRequest, + SearchEvaluationsResponse, + Evaluation, + SearchEvaluationsPage, SearchEvaluationsFixedSizeCollection> { private SearchEvaluationsFixedSizeCollection( @@ -5261,13 +5307,16 @@ protected SearchEvaluationsFixedSizeCollection createCollection( public static class SearchExampleComparisonsPagedResponse extends AbstractPagedListResponse< - SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, - SearchExampleComparisonsResponse.ExampleComparison, SearchExampleComparisonsPage, + SearchExampleComparisonsRequest, + SearchExampleComparisonsResponse, + SearchExampleComparisonsResponse.ExampleComparison, + SearchExampleComparisonsPage, SearchExampleComparisonsFixedSizeCollection> { public static ApiFuture createAsync( PageContext< - SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, + SearchExampleComparisonsResponse, SearchExampleComparisonsResponse.ExampleComparison> context, ApiFuture futureResponse) { @@ -5286,12 +5335,15 @@ private SearchExampleComparisonsPagedResponse(SearchExampleComparisonsPage page) public static class SearchExampleComparisonsPage extends AbstractPage< - SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, - SearchExampleComparisonsResponse.ExampleComparison, SearchExampleComparisonsPage> { + SearchExampleComparisonsRequest, + SearchExampleComparisonsResponse, + SearchExampleComparisonsResponse.ExampleComparison, + SearchExampleComparisonsPage> { private SearchExampleComparisonsPage( PageContext< - SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, + SearchExampleComparisonsResponse, SearchExampleComparisonsResponse.ExampleComparison> context, SearchExampleComparisonsResponse response) { @@ -5305,7 +5357,8 @@ private static SearchExampleComparisonsPage createEmptyPage() { @Override protected SearchExampleComparisonsPage createPage( PageContext< - SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, + SearchExampleComparisonsResponse, SearchExampleComparisonsResponse.ExampleComparison> context, SearchExampleComparisonsResponse response) { @@ -5315,7 +5368,8 @@ protected SearchExampleComparisonsPage createPage( @Override public ApiFuture createPageAsync( PageContext< - SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, + SearchExampleComparisonsResponse, SearchExampleComparisonsResponse.ExampleComparison> context, ApiFuture futureResponse) { @@ -5325,8 +5379,10 @@ public ApiFuture createPageAsync( public static class SearchExampleComparisonsFixedSizeCollection extends AbstractFixedSizeCollection< - SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, - SearchExampleComparisonsResponse.ExampleComparison, SearchExampleComparisonsPage, + SearchExampleComparisonsRequest, + SearchExampleComparisonsResponse, + SearchExampleComparisonsResponse.ExampleComparison, + SearchExampleComparisonsPage, SearchExampleComparisonsFixedSizeCollection> { private SearchExampleComparisonsFixedSizeCollection( @@ -5347,8 +5403,11 @@ protected SearchExampleComparisonsFixedSizeCollection createCollection( public static class ListEvaluationJobsPagedResponse extends AbstractPagedListResponse< - ListEvaluationJobsRequest, ListEvaluationJobsResponse, EvaluationJob, - ListEvaluationJobsPage, ListEvaluationJobsFixedSizeCollection> { + ListEvaluationJobsRequest, + ListEvaluationJobsResponse, + EvaluationJob, + ListEvaluationJobsPage, + ListEvaluationJobsFixedSizeCollection> { public static ApiFuture createAsync( PageContext context, @@ -5368,7 +5427,9 @@ private ListEvaluationJobsPagedResponse(ListEvaluationJobsPage page) { public static class ListEvaluationJobsPage extends AbstractPage< - ListEvaluationJobsRequest, ListEvaluationJobsResponse, EvaluationJob, + ListEvaluationJobsRequest, + ListEvaluationJobsResponse, + EvaluationJob, ListEvaluationJobsPage> { private ListEvaluationJobsPage( @@ -5398,8 +5459,11 @@ public ApiFuture createPageAsync( public static class ListEvaluationJobsFixedSizeCollection extends AbstractFixedSizeCollection< - ListEvaluationJobsRequest, ListEvaluationJobsResponse, EvaluationJob, - ListEvaluationJobsPage, ListEvaluationJobsFixedSizeCollection> { + ListEvaluationJobsRequest, + ListEvaluationJobsResponse, + EvaluationJob, + ListEvaluationJobsPage, + ListEvaluationJobsFixedSizeCollection> { private ListEvaluationJobsFixedSizeCollection( List pages, int collectionSize) { diff --git a/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceSettings.java b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceSettings.java similarity index 97% rename from owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceSettings.java rename to google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceSettings.java index cac0366e..195e96a7 100644 --- a/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceSettings.java +++ b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceSettings.java @@ -36,7 +36,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.datalabeling.v1beta1.stub.DataLabelingServiceStubSettings; @@ -53,9 +52,9 @@ *

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

    - *
  • The default service address (datalabeling.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 (datalabeling.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 @@ -149,7 +148,8 @@ public UnaryCallSettings getDataItemSettings() { /** Returns the object with the settings used for calls to listAnnotatedDatasets. */ public PagedCallSettings< - ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, + ListAnnotatedDatasetsRequest, + ListAnnotatedDatasetsResponse, ListAnnotatedDatasetsPagedResponse> listAnnotatedDatasetsSettings() { return ((DataLabelingServiceStubSettings) getStubSettings()).listAnnotatedDatasetsSettings(); @@ -218,7 +218,8 @@ public UnaryCallSettings getExampleSettings() { /** Returns the object with the settings used for calls to listAnnotationSpecSets. */ public PagedCallSettings< - ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, + ListAnnotationSpecSetsRequest, + ListAnnotationSpecSetsResponse, ListAnnotationSpecSetsPagedResponse> listAnnotationSpecSetsSettings() { return ((DataLabelingServiceStubSettings) getStubSettings()).listAnnotationSpecSetsSettings(); @@ -273,7 +274,8 @@ public UnaryCallSettings getEvaluationSettings /** Returns the object with the settings used for calls to searchExampleComparisons. */ public PagedCallSettings< - SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, + SearchExampleComparisonsResponse, SearchExampleComparisonsPagedResponse> searchExampleComparisonsSettings() { return ((DataLabelingServiceStubSettings) getStubSettings()).searchExampleComparisonsSettings(); @@ -481,7 +483,8 @@ public UnaryCallSettings.Builder getDataItemSettin /** Returns the builder for the settings used for calls to listAnnotatedDatasets. */ public PagedCallSettings.Builder< - ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, + ListAnnotatedDatasetsRequest, + ListAnnotatedDatasetsResponse, ListAnnotatedDatasetsPagedResponse> listAnnotatedDatasetsSettings() { return getStubSettingsBuilder().listAnnotatedDatasetsSettings(); @@ -554,7 +557,8 @@ public UnaryCallSettings.Builder getExampleSettings( /** Returns the builder for the settings used for calls to listAnnotationSpecSets. */ public PagedCallSettings.Builder< - ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, + ListAnnotationSpecSetsRequest, + ListAnnotationSpecSetsResponse, ListAnnotationSpecSetsPagedResponse> listAnnotationSpecSetsSettings() { return getStubSettingsBuilder().listAnnotationSpecSetsSettings(); @@ -610,7 +614,8 @@ public UnaryCallSettings.Builder getEvaluation /** Returns the builder for the settings used for calls to searchExampleComparisons. */ public PagedCallSettings.Builder< - SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, + SearchExampleComparisonsResponse, SearchExampleComparisonsPagedResponse> searchExampleComparisonsSettings() { return getStubSettingsBuilder().searchExampleComparisonsSettings(); diff --git a/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/gapic_metadata.json b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/gapic_metadata.json rename to google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/gapic_metadata.json diff --git a/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/package-info.java b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/package-info.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/package-info.java rename to google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/package-info.java diff --git a/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStub.java b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStub.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStub.java rename to google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStub.java diff --git a/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java similarity index 97% rename from owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java rename to google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java index 73ee8561..07b6caa0 100644 --- a/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java +++ b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/DataLabelingServiceStubSettings.java @@ -127,9 +127,9 @@ *

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

    - *
  • The default service address (datalabeling.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 (datalabeling.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 @@ -183,7 +183,8 @@ public class DataLabelingServiceStubSettings extends StubSettings getAnnotatedDatasetSettings; private final PagedCallSettings< - ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, + ListAnnotatedDatasetsRequest, + ListAnnotatedDatasetsResponse, ListAnnotatedDatasetsPagedResponse> listAnnotatedDatasetsSettings; private final UnaryCallSettings @@ -206,7 +207,8 @@ public class DataLabelingServiceStubSettings extends StubSettings getAnnotationSpecSetSettings; private final PagedCallSettings< - ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, + ListAnnotationSpecSetsRequest, + ListAnnotationSpecSetsResponse, ListAnnotationSpecSetsPagedResponse> listAnnotationSpecSetsSettings; private final UnaryCallSettings @@ -225,7 +227,8 @@ public class DataLabelingServiceStubSettings extends StubSettings searchEvaluationsSettings; private final PagedCallSettings< - SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, + SearchExampleComparisonsResponse, SearchExampleComparisonsPagedResponse> searchExampleComparisonsSettings; private final UnaryCallSettings @@ -513,11 +516,13 @@ public Iterable extractResources(SearchEvaluationsResponse payload) }; private static final PagedListDescriptor< - SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, + SearchExampleComparisonsResponse, SearchExampleComparisonsResponse.ExampleComparison> SEARCH_EXAMPLE_COMPARISONS_PAGE_STR_DESC = new PagedListDescriptor< - SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, + SearchExampleComparisonsResponse, SearchExampleComparisonsResponse.ExampleComparison>() { @Override public String emptyToken() { @@ -634,11 +639,13 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, + ListAnnotatedDatasetsRequest, + ListAnnotatedDatasetsResponse, ListAnnotatedDatasetsPagedResponse> LIST_ANNOTATED_DATASETS_PAGE_STR_FACT = new PagedListResponseFactory< - ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, + ListAnnotatedDatasetsRequest, + ListAnnotatedDatasetsResponse, ListAnnotatedDatasetsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -673,11 +680,13 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, + ListAnnotationSpecSetsRequest, + ListAnnotationSpecSetsResponse, ListAnnotationSpecSetsPagedResponse> LIST_ANNOTATION_SPEC_SETS_PAGE_STR_FACT = new PagedListResponseFactory< - ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, + ListAnnotationSpecSetsRequest, + ListAnnotationSpecSetsResponse, ListAnnotationSpecSetsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -687,7 +696,8 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, + ListAnnotationSpecSetsRequest, + ListAnnotationSpecSetsResponse, AnnotationSpecSet> pageContext = PageContext.create( @@ -719,7 +729,8 @@ public ApiFuture getFuturePagedResponse( SearchEvaluationsRequest, SearchEvaluationsResponse, SearchEvaluationsPagedResponse> SEARCH_EVALUATIONS_PAGE_STR_FACT = new PagedListResponseFactory< - SearchEvaluationsRequest, SearchEvaluationsResponse, + SearchEvaluationsRequest, + SearchEvaluationsResponse, SearchEvaluationsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -736,11 +747,13 @@ public ApiFuture getFuturePagedResponse( }; private static final PagedListResponseFactory< - SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, + SearchExampleComparisonsResponse, SearchExampleComparisonsPagedResponse> SEARCH_EXAMPLE_COMPARISONS_PAGE_STR_FACT = new PagedListResponseFactory< - SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, + SearchExampleComparisonsResponse, SearchExampleComparisonsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -750,7 +763,8 @@ public ApiFuture getFuturePagedResponse( ApiCallContext context, ApiFuture futureResponse) { PageContext< - SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, + SearchExampleComparisonsResponse, SearchExampleComparisonsResponse.ExampleComparison> pageContext = PageContext.create( @@ -763,7 +777,8 @@ public ApiFuture getFuturePagedResponse( ListEvaluationJobsRequest, ListEvaluationJobsResponse, ListEvaluationJobsPagedResponse> LIST_EVALUATION_JOBS_PAGE_STR_FACT = new PagedListResponseFactory< - ListEvaluationJobsRequest, ListEvaluationJobsResponse, + ListEvaluationJobsRequest, + ListEvaluationJobsResponse, ListEvaluationJobsPagedResponse>() { @Override public ApiFuture getFuturePagedResponse( @@ -843,7 +858,8 @@ public UnaryCallSettings getDataItemSettings() { /** Returns the object with the settings used for calls to listAnnotatedDatasets. */ public PagedCallSettings< - ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, + ListAnnotatedDatasetsRequest, + ListAnnotatedDatasetsResponse, ListAnnotatedDatasetsPagedResponse> listAnnotatedDatasetsSettings() { return listAnnotatedDatasetsSettings; @@ -912,7 +928,8 @@ public UnaryCallSettings getExampleSettings() { /** Returns the object with the settings used for calls to listAnnotationSpecSets. */ public PagedCallSettings< - ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, + ListAnnotationSpecSetsRequest, + ListAnnotationSpecSetsResponse, ListAnnotationSpecSetsPagedResponse> listAnnotationSpecSetsSettings() { return listAnnotationSpecSetsSettings; @@ -966,7 +983,8 @@ public UnaryCallSettings getEvaluationSettings /** Returns the object with the settings used for calls to searchExampleComparisons. */ public PagedCallSettings< - SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, + SearchExampleComparisonsResponse, SearchExampleComparisonsPagedResponse> searchExampleComparisonsSettings() { return searchExampleComparisonsSettings; @@ -1154,7 +1172,8 @@ public static class Builder private final UnaryCallSettings.Builder getAnnotatedDatasetSettings; private final PagedCallSettings.Builder< - ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, + ListAnnotatedDatasetsRequest, + ListAnnotatedDatasetsResponse, ListAnnotatedDatasetsPagedResponse> listAnnotatedDatasetsSettings; private final UnaryCallSettings.Builder @@ -1180,7 +1199,8 @@ public static class Builder private final UnaryCallSettings.Builder getAnnotationSpecSetSettings; private final PagedCallSettings.Builder< - ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, + ListAnnotationSpecSetsRequest, + ListAnnotationSpecSetsResponse, ListAnnotationSpecSetsPagedResponse> listAnnotationSpecSetsSettings; private final UnaryCallSettings.Builder @@ -1202,7 +1222,8 @@ public static class Builder SearchEvaluationsRequest, SearchEvaluationsResponse, SearchEvaluationsPagedResponse> searchEvaluationsSettings; private final PagedCallSettings.Builder< - SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, + SearchExampleComparisonsResponse, SearchExampleComparisonsPagedResponse> searchExampleComparisonsSettings; private final UnaryCallSettings.Builder @@ -1854,7 +1875,8 @@ public UnaryCallSettings.Builder getDataItemSettin /** Returns the builder for the settings used for calls to listAnnotatedDatasets. */ public PagedCallSettings.Builder< - ListAnnotatedDatasetsRequest, ListAnnotatedDatasetsResponse, + ListAnnotatedDatasetsRequest, + ListAnnotatedDatasetsResponse, ListAnnotatedDatasetsPagedResponse> listAnnotatedDatasetsSettings() { return listAnnotatedDatasetsSettings; @@ -1933,7 +1955,8 @@ public UnaryCallSettings.Builder getExampleSettings( /** Returns the builder for the settings used for calls to listAnnotationSpecSets. */ public PagedCallSettings.Builder< - ListAnnotationSpecSetsRequest, ListAnnotationSpecSetsResponse, + ListAnnotationSpecSetsRequest, + ListAnnotationSpecSetsResponse, ListAnnotationSpecSetsPagedResponse> listAnnotationSpecSetsSettings() { return listAnnotationSpecSetsSettings; @@ -1991,7 +2014,8 @@ public UnaryCallSettings.Builder getEvaluation /** Returns the builder for the settings used for calls to searchExampleComparisons. */ public PagedCallSettings.Builder< - SearchExampleComparisonsRequest, SearchExampleComparisonsResponse, + SearchExampleComparisonsRequest, + SearchExampleComparisonsResponse, SearchExampleComparisonsPagedResponse> searchExampleComparisonsSettings() { return searchExampleComparisonsSettings; diff --git a/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceCallableFactory.java b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceCallableFactory.java rename to google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceCallableFactory.java diff --git a/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceStub.java b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceStub.java similarity index 99% rename from owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceStub.java rename to google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceStub.java index 36e0537f..c3c82916 100644 --- a/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceStub.java +++ b/google-cloud-datalabeling/src/main/java/com/google/cloud/datalabeling/v1beta1/stub/GrpcDataLabelingServiceStub.java @@ -98,7 +98,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-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClientTest.java b/google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClientTest.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClientTest.java rename to google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceClientTest.java diff --git a/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/MockDataLabelingService.java b/google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/MockDataLabelingService.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/MockDataLabelingService.java rename to google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/MockDataLabelingService.java diff --git a/owl-bot-staging/v1beta1/google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/MockDataLabelingServiceImpl.java b/google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/MockDataLabelingServiceImpl.java similarity index 100% rename from owl-bot-staging/v1beta1/google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/MockDataLabelingServiceImpl.java rename to google-cloud-datalabeling/src/test/java/com/google/cloud/datalabeling/v1beta1/MockDataLabelingServiceImpl.java diff --git a/grpc-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceGrpc.java b/grpc-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceGrpc.java new file mode 100644 index 00000000..23de8229 --- /dev/null +++ b/grpc-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceGrpc.java @@ -0,0 +1,4406 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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.datalabeling.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * Service for the AI Platform Data Labeling API.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DataLabelingServiceGrpc { + + private DataLabelingServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.datalabeling.v1beta1.DataLabelingService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest, + com.google.cloud.datalabeling.v1beta1.Dataset> + getCreateDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDataset", + requestType = com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.Dataset.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest, + com.google.cloud.datalabeling.v1beta1.Dataset> + getCreateDatasetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest, + com.google.cloud.datalabeling.v1beta1.Dataset> + getCreateDatasetMethod; + if ((getCreateDatasetMethod = DataLabelingServiceGrpc.getCreateDatasetMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getCreateDatasetMethod = DataLabelingServiceGrpc.getCreateDatasetMethod) == null) { + DataLabelingServiceGrpc.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.datalabeling.v1beta1.CreateDatasetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("CreateDataset")) + .build(); + } + } + } + return getCreateDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetDatasetRequest, + com.google.cloud.datalabeling.v1beta1.Dataset> + getGetDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataset", + requestType = com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.Dataset.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetDatasetRequest, + com.google.cloud.datalabeling.v1beta1.Dataset> + getGetDatasetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetDatasetRequest, + com.google.cloud.datalabeling.v1beta1.Dataset> + getGetDatasetMethod; + if ((getGetDatasetMethod = DataLabelingServiceGrpc.getGetDatasetMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getGetDatasetMethod = DataLabelingServiceGrpc.getGetDatasetMethod) == null) { + DataLabelingServiceGrpc.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.datalabeling.v1beta1.GetDatasetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("GetDataset")) + .build(); + } + } + } + return getGetDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest, + com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse> + getListDatasetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDatasets", + requestType = com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest, + com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse> + getListDatasetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest, + com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse> + getListDatasetsMethod; + if ((getListDatasetsMethod = DataLabelingServiceGrpc.getListDatasetsMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getListDatasetsMethod = DataLabelingServiceGrpc.getListDatasetsMethod) == null) { + DataLabelingServiceGrpc.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.datalabeling.v1beta1.ListDatasetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("ListDatasets")) + .build(); + } + } + } + return getListDatasetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest, com.google.protobuf.Empty> + getDeleteDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDataset", + requestType = com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest, com.google.protobuf.Empty> + getDeleteDatasetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest, com.google.protobuf.Empty> + getDeleteDatasetMethod; + if ((getDeleteDatasetMethod = DataLabelingServiceGrpc.getDeleteDatasetMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getDeleteDatasetMethod = DataLabelingServiceGrpc.getDeleteDatasetMethod) == null) { + DataLabelingServiceGrpc.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.datalabeling.v1beta1.DeleteDatasetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("DeleteDataset")) + .build(); + } + } + } + return getDeleteDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ImportDataRequest, com.google.longrunning.Operation> + getImportDataMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ImportData", + requestType = com.google.cloud.datalabeling.v1beta1.ImportDataRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ImportDataRequest, com.google.longrunning.Operation> + getImportDataMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ImportDataRequest, + com.google.longrunning.Operation> + getImportDataMethod; + if ((getImportDataMethod = DataLabelingServiceGrpc.getImportDataMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getImportDataMethod = DataLabelingServiceGrpc.getImportDataMethod) == null) { + DataLabelingServiceGrpc.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.datalabeling.v1beta1.ImportDataRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("ImportData")) + .build(); + } + } + } + return getImportDataMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ExportDataRequest, com.google.longrunning.Operation> + getExportDataMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportData", + requestType = com.google.cloud.datalabeling.v1beta1.ExportDataRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ExportDataRequest, com.google.longrunning.Operation> + getExportDataMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ExportDataRequest, + com.google.longrunning.Operation> + getExportDataMethod; + if ((getExportDataMethod = DataLabelingServiceGrpc.getExportDataMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getExportDataMethod = DataLabelingServiceGrpc.getExportDataMethod) == null) { + DataLabelingServiceGrpc.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.datalabeling.v1beta1.ExportDataRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("ExportData")) + .build(); + } + } + } + return getExportDataMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetDataItemRequest, + com.google.cloud.datalabeling.v1beta1.DataItem> + getGetDataItemMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataItem", + requestType = com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.DataItem.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetDataItemRequest, + com.google.cloud.datalabeling.v1beta1.DataItem> + getGetDataItemMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetDataItemRequest, + com.google.cloud.datalabeling.v1beta1.DataItem> + getGetDataItemMethod; + if ((getGetDataItemMethod = DataLabelingServiceGrpc.getGetDataItemMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getGetDataItemMethod = DataLabelingServiceGrpc.getGetDataItemMethod) == null) { + DataLabelingServiceGrpc.getGetDataItemMethod = + getGetDataItemMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataItem")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.GetDataItemRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.DataItem.getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("GetDataItem")) + .build(); + } + } + } + return getGetDataItemMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest, + com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse> + getListDataItemsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDataItems", + requestType = com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest, + com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse> + getListDataItemsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest, + com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse> + getListDataItemsMethod; + if ((getListDataItemsMethod = DataLabelingServiceGrpc.getListDataItemsMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getListDataItemsMethod = DataLabelingServiceGrpc.getListDataItemsMethod) == null) { + DataLabelingServiceGrpc.getListDataItemsMethod = + getListDataItemsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDataItems")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("ListDataItems")) + .build(); + } + } + } + return getListDataItemsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest, + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset> + getGetAnnotatedDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAnnotatedDataset", + requestType = com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest, + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset> + getGetAnnotatedDatasetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest, + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset> + getGetAnnotatedDatasetMethod; + if ((getGetAnnotatedDatasetMethod = DataLabelingServiceGrpc.getGetAnnotatedDatasetMethod) + == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getGetAnnotatedDatasetMethod = DataLabelingServiceGrpc.getGetAnnotatedDatasetMethod) + == null) { + DataLabelingServiceGrpc.getGetAnnotatedDatasetMethod = + getGetAnnotatedDatasetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetAnnotatedDataset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset + .getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("GetAnnotatedDataset")) + .build(); + } + } + } + return getGetAnnotatedDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest, + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse> + getListAnnotatedDatasetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAnnotatedDatasets", + requestType = com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest, + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse> + getListAnnotatedDatasetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest, + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse> + getListAnnotatedDatasetsMethod; + if ((getListAnnotatedDatasetsMethod = DataLabelingServiceGrpc.getListAnnotatedDatasetsMethod) + == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getListAnnotatedDatasetsMethod = + DataLabelingServiceGrpc.getListAnnotatedDatasetsMethod) + == null) { + DataLabelingServiceGrpc.getListAnnotatedDatasetsMethod = + getListAnnotatedDatasetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAnnotatedDatasets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("ListAnnotatedDatasets")) + .build(); + } + } + } + return getListAnnotatedDatasetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest, + com.google.protobuf.Empty> + getDeleteAnnotatedDatasetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAnnotatedDataset", + requestType = com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest, + com.google.protobuf.Empty> + getDeleteAnnotatedDatasetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest, + com.google.protobuf.Empty> + getDeleteAnnotatedDatasetMethod; + if ((getDeleteAnnotatedDatasetMethod = DataLabelingServiceGrpc.getDeleteAnnotatedDatasetMethod) + == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getDeleteAnnotatedDatasetMethod = + DataLabelingServiceGrpc.getDeleteAnnotatedDatasetMethod) + == null) { + DataLabelingServiceGrpc.getDeleteAnnotatedDatasetMethod = + getDeleteAnnotatedDatasetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteAnnotatedDataset")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("DeleteAnnotatedDataset")) + .build(); + } + } + } + return getDeleteAnnotatedDatasetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.LabelImageRequest, com.google.longrunning.Operation> + getLabelImageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LabelImage", + requestType = com.google.cloud.datalabeling.v1beta1.LabelImageRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.LabelImageRequest, com.google.longrunning.Operation> + getLabelImageMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.LabelImageRequest, + com.google.longrunning.Operation> + getLabelImageMethod; + if ((getLabelImageMethod = DataLabelingServiceGrpc.getLabelImageMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getLabelImageMethod = DataLabelingServiceGrpc.getLabelImageMethod) == null) { + DataLabelingServiceGrpc.getLabelImageMethod = + getLabelImageMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LabelImage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.LabelImageRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("LabelImage")) + .build(); + } + } + } + return getLabelImageMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest, com.google.longrunning.Operation> + getLabelVideoMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LabelVideo", + requestType = com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest, com.google.longrunning.Operation> + getLabelVideoMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest, + com.google.longrunning.Operation> + getLabelVideoMethod; + if ((getLabelVideoMethod = DataLabelingServiceGrpc.getLabelVideoMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getLabelVideoMethod = DataLabelingServiceGrpc.getLabelVideoMethod) == null) { + DataLabelingServiceGrpc.getLabelVideoMethod = + getLabelVideoMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LabelVideo")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("LabelVideo")) + .build(); + } + } + } + return getLabelVideoMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.LabelTextRequest, com.google.longrunning.Operation> + getLabelTextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "LabelText", + requestType = com.google.cloud.datalabeling.v1beta1.LabelTextRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.LabelTextRequest, com.google.longrunning.Operation> + getLabelTextMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.LabelTextRequest, + com.google.longrunning.Operation> + getLabelTextMethod; + if ((getLabelTextMethod = DataLabelingServiceGrpc.getLabelTextMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getLabelTextMethod = DataLabelingServiceGrpc.getLabelTextMethod) == null) { + DataLabelingServiceGrpc.getLabelTextMethod = + getLabelTextMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LabelText")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.LabelTextRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("LabelText")) + .build(); + } + } + } + return getLabelTextMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetExampleRequest, + com.google.cloud.datalabeling.v1beta1.Example> + getGetExampleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetExample", + requestType = com.google.cloud.datalabeling.v1beta1.GetExampleRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.Example.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetExampleRequest, + com.google.cloud.datalabeling.v1beta1.Example> + getGetExampleMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetExampleRequest, + com.google.cloud.datalabeling.v1beta1.Example> + getGetExampleMethod; + if ((getGetExampleMethod = DataLabelingServiceGrpc.getGetExampleMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getGetExampleMethod = DataLabelingServiceGrpc.getGetExampleMethod) == null) { + DataLabelingServiceGrpc.getGetExampleMethod = + getGetExampleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExample")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.GetExampleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("GetExample")) + .build(); + } + } + } + return getGetExampleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ListExamplesRequest, + com.google.cloud.datalabeling.v1beta1.ListExamplesResponse> + getListExamplesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListExamples", + requestType = com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ListExamplesRequest, + com.google.cloud.datalabeling.v1beta1.ListExamplesResponse> + getListExamplesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ListExamplesRequest, + com.google.cloud.datalabeling.v1beta1.ListExamplesResponse> + getListExamplesMethod; + if ((getListExamplesMethod = DataLabelingServiceGrpc.getListExamplesMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getListExamplesMethod = DataLabelingServiceGrpc.getListExamplesMethod) == null) { + DataLabelingServiceGrpc.getListExamplesMethod = + getListExamplesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExamples")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListExamplesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListExamplesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("ListExamples")) + .build(); + } + } + } + return getListExamplesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet> + getCreateAnnotationSpecSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAnnotationSpecSet", + requestType = com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet> + getCreateAnnotationSpecSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet> + getCreateAnnotationSpecSetMethod; + if ((getCreateAnnotationSpecSetMethod = + DataLabelingServiceGrpc.getCreateAnnotationSpecSetMethod) + == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getCreateAnnotationSpecSetMethod = + DataLabelingServiceGrpc.getCreateAnnotationSpecSetMethod) + == null) { + DataLabelingServiceGrpc.getCreateAnnotationSpecSetMethod = + getCreateAnnotationSpecSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateAnnotationSpecSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet + .getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier( + "CreateAnnotationSpecSet")) + .build(); + } + } + } + return getCreateAnnotationSpecSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet> + getGetAnnotationSpecSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAnnotationSpecSet", + requestType = com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet> + getGetAnnotationSpecSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet> + getGetAnnotationSpecSetMethod; + if ((getGetAnnotationSpecSetMethod = DataLabelingServiceGrpc.getGetAnnotationSpecSetMethod) + == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getGetAnnotationSpecSetMethod = DataLabelingServiceGrpc.getGetAnnotationSpecSetMethod) + == null) { + DataLabelingServiceGrpc.getGetAnnotationSpecSetMethod = + getGetAnnotationSpecSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetAnnotationSpecSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet + .getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("GetAnnotationSpecSet")) + .build(); + } + } + } + return getGetAnnotationSpecSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest, + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse> + getListAnnotationSpecSetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAnnotationSpecSets", + requestType = com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest, + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse> + getListAnnotationSpecSetsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest, + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse> + getListAnnotationSpecSetsMethod; + if ((getListAnnotationSpecSetsMethod = DataLabelingServiceGrpc.getListAnnotationSpecSetsMethod) + == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getListAnnotationSpecSetsMethod = + DataLabelingServiceGrpc.getListAnnotationSpecSetsMethod) + == null) { + DataLabelingServiceGrpc.getListAnnotationSpecSetsMethod = + getListAnnotationSpecSetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAnnotationSpecSets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("ListAnnotationSpecSets")) + .build(); + } + } + } + return getListAnnotationSpecSetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest, + com.google.protobuf.Empty> + getDeleteAnnotationSpecSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAnnotationSpecSet", + requestType = com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest, + com.google.protobuf.Empty> + getDeleteAnnotationSpecSetMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest, + com.google.protobuf.Empty> + getDeleteAnnotationSpecSetMethod; + if ((getDeleteAnnotationSpecSetMethod = + DataLabelingServiceGrpc.getDeleteAnnotationSpecSetMethod) + == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getDeleteAnnotationSpecSetMethod = + DataLabelingServiceGrpc.getDeleteAnnotationSpecSetMethod) + == null) { + DataLabelingServiceGrpc.getDeleteAnnotationSpecSetMethod = + getDeleteAnnotationSpecSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteAnnotationSpecSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier( + "DeleteAnnotationSpecSet")) + .build(); + } + } + } + return getDeleteAnnotationSpecSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest, + com.google.longrunning.Operation> + getCreateInstructionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateInstruction", + requestType = com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest, + com.google.longrunning.Operation> + getCreateInstructionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest, + com.google.longrunning.Operation> + getCreateInstructionMethod; + if ((getCreateInstructionMethod = DataLabelingServiceGrpc.getCreateInstructionMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getCreateInstructionMethod = DataLabelingServiceGrpc.getCreateInstructionMethod) + == null) { + DataLabelingServiceGrpc.getCreateInstructionMethod = + getCreateInstructionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstruction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("CreateInstruction")) + .build(); + } + } + } + return getCreateInstructionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetInstructionRequest, + com.google.cloud.datalabeling.v1beta1.Instruction> + getGetInstructionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetInstruction", + requestType = com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.Instruction.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetInstructionRequest, + com.google.cloud.datalabeling.v1beta1.Instruction> + getGetInstructionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetInstructionRequest, + com.google.cloud.datalabeling.v1beta1.Instruction> + getGetInstructionMethod; + if ((getGetInstructionMethod = DataLabelingServiceGrpc.getGetInstructionMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getGetInstructionMethod = DataLabelingServiceGrpc.getGetInstructionMethod) == null) { + DataLabelingServiceGrpc.getGetInstructionMethod = + getGetInstructionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstruction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.GetInstructionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.Instruction + .getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("GetInstruction")) + .build(); + } + } + } + return getGetInstructionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest, + com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse> + getListInstructionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListInstructions", + requestType = com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest, + com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse> + getListInstructionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest, + com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse> + getListInstructionsMethod; + if ((getListInstructionsMethod = DataLabelingServiceGrpc.getListInstructionsMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getListInstructionsMethod = DataLabelingServiceGrpc.getListInstructionsMethod) + == null) { + DataLabelingServiceGrpc.getListInstructionsMethod = + getListInstructionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstructions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("ListInstructions")) + .build(); + } + } + } + return getListInstructionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest, com.google.protobuf.Empty> + getDeleteInstructionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteInstruction", + requestType = com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest, com.google.protobuf.Empty> + getDeleteInstructionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest, + com.google.protobuf.Empty> + getDeleteInstructionMethod; + if ((getDeleteInstructionMethod = DataLabelingServiceGrpc.getDeleteInstructionMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getDeleteInstructionMethod = DataLabelingServiceGrpc.getDeleteInstructionMethod) + == null) { + DataLabelingServiceGrpc.getDeleteInstructionMethod = + getDeleteInstructionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstruction")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("DeleteInstruction")) + .build(); + } + } + } + return getDeleteInstructionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest, + com.google.cloud.datalabeling.v1beta1.Evaluation> + getGetEvaluationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEvaluation", + requestType = com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.Evaluation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest, + com.google.cloud.datalabeling.v1beta1.Evaluation> + getGetEvaluationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest, + com.google.cloud.datalabeling.v1beta1.Evaluation> + getGetEvaluationMethod; + if ((getGetEvaluationMethod = DataLabelingServiceGrpc.getGetEvaluationMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getGetEvaluationMethod = DataLabelingServiceGrpc.getGetEvaluationMethod) == null) { + DataLabelingServiceGrpc.getGetEvaluationMethod = + getGetEvaluationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEvaluation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.Evaluation + .getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("GetEvaluation")) + .build(); + } + } + } + return getGetEvaluationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest, + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse> + getSearchEvaluationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchEvaluations", + requestType = com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest, + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse> + getSearchEvaluationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest, + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse> + getSearchEvaluationsMethod; + if ((getSearchEvaluationsMethod = DataLabelingServiceGrpc.getSearchEvaluationsMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getSearchEvaluationsMethod = DataLabelingServiceGrpc.getSearchEvaluationsMethod) + == null) { + DataLabelingServiceGrpc.getSearchEvaluationsMethod = + getSearchEvaluationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchEvaluations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("SearchEvaluations")) + .build(); + } + } + } + return getSearchEvaluationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest, + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse> + getSearchExampleComparisonsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchExampleComparisons", + requestType = com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest, + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse> + getSearchExampleComparisonsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest, + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse> + getSearchExampleComparisonsMethod; + if ((getSearchExampleComparisonsMethod = + DataLabelingServiceGrpc.getSearchExampleComparisonsMethod) + == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getSearchExampleComparisonsMethod = + DataLabelingServiceGrpc.getSearchExampleComparisonsMethod) + == null) { + DataLabelingServiceGrpc.getSearchExampleComparisonsMethod = + getSearchExampleComparisonsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SearchExampleComparisons")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier( + "SearchExampleComparisons")) + .build(); + } + } + } + return getSearchExampleComparisonsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest, + com.google.cloud.datalabeling.v1beta1.EvaluationJob> + getCreateEvaluationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateEvaluationJob", + requestType = com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.EvaluationJob.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest, + com.google.cloud.datalabeling.v1beta1.EvaluationJob> + getCreateEvaluationJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest, + com.google.cloud.datalabeling.v1beta1.EvaluationJob> + getCreateEvaluationJobMethod; + if ((getCreateEvaluationJobMethod = DataLabelingServiceGrpc.getCreateEvaluationJobMethod) + == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getCreateEvaluationJobMethod = DataLabelingServiceGrpc.getCreateEvaluationJobMethod) + == null) { + DataLabelingServiceGrpc.getCreateEvaluationJobMethod = + getCreateEvaluationJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateEvaluationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.EvaluationJob + .getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("CreateEvaluationJob")) + .build(); + } + } + } + return getCreateEvaluationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest, + com.google.cloud.datalabeling.v1beta1.EvaluationJob> + getUpdateEvaluationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateEvaluationJob", + requestType = com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.EvaluationJob.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest, + com.google.cloud.datalabeling.v1beta1.EvaluationJob> + getUpdateEvaluationJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest, + com.google.cloud.datalabeling.v1beta1.EvaluationJob> + getUpdateEvaluationJobMethod; + if ((getUpdateEvaluationJobMethod = DataLabelingServiceGrpc.getUpdateEvaluationJobMethod) + == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getUpdateEvaluationJobMethod = DataLabelingServiceGrpc.getUpdateEvaluationJobMethod) + == null) { + DataLabelingServiceGrpc.getUpdateEvaluationJobMethod = + getUpdateEvaluationJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateEvaluationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.EvaluationJob + .getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("UpdateEvaluationJob")) + .build(); + } + } + } + return getUpdateEvaluationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest, + com.google.cloud.datalabeling.v1beta1.EvaluationJob> + getGetEvaluationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEvaluationJob", + requestType = com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.EvaluationJob.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest, + com.google.cloud.datalabeling.v1beta1.EvaluationJob> + getGetEvaluationJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest, + com.google.cloud.datalabeling.v1beta1.EvaluationJob> + getGetEvaluationJobMethod; + if ((getGetEvaluationJobMethod = DataLabelingServiceGrpc.getGetEvaluationJobMethod) == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getGetEvaluationJobMethod = DataLabelingServiceGrpc.getGetEvaluationJobMethod) + == null) { + DataLabelingServiceGrpc.getGetEvaluationJobMethod = + getGetEvaluationJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEvaluationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.EvaluationJob + .getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("GetEvaluationJob")) + .build(); + } + } + } + return getGetEvaluationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest, + com.google.protobuf.Empty> + getPauseEvaluationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PauseEvaluationJob", + requestType = com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest, + com.google.protobuf.Empty> + getPauseEvaluationJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest, + com.google.protobuf.Empty> + getPauseEvaluationJobMethod; + if ((getPauseEvaluationJobMethod = DataLabelingServiceGrpc.getPauseEvaluationJobMethod) + == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getPauseEvaluationJobMethod = DataLabelingServiceGrpc.getPauseEvaluationJobMethod) + == null) { + DataLabelingServiceGrpc.getPauseEvaluationJobMethod = + getPauseEvaluationJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PauseEvaluationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("PauseEvaluationJob")) + .build(); + } + } + } + return getPauseEvaluationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest, + com.google.protobuf.Empty> + getResumeEvaluationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ResumeEvaluationJob", + requestType = com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest, + com.google.protobuf.Empty> + getResumeEvaluationJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest, + com.google.protobuf.Empty> + getResumeEvaluationJobMethod; + if ((getResumeEvaluationJobMethod = DataLabelingServiceGrpc.getResumeEvaluationJobMethod) + == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getResumeEvaluationJobMethod = DataLabelingServiceGrpc.getResumeEvaluationJobMethod) + == null) { + DataLabelingServiceGrpc.getResumeEvaluationJobMethod = + getResumeEvaluationJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ResumeEvaluationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("ResumeEvaluationJob")) + .build(); + } + } + } + return getResumeEvaluationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest, + com.google.protobuf.Empty> + getDeleteEvaluationJobMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteEvaluationJob", + requestType = com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest, + com.google.protobuf.Empty> + getDeleteEvaluationJobMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest, + com.google.protobuf.Empty> + getDeleteEvaluationJobMethod; + if ((getDeleteEvaluationJobMethod = DataLabelingServiceGrpc.getDeleteEvaluationJobMethod) + == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getDeleteEvaluationJobMethod = DataLabelingServiceGrpc.getDeleteEvaluationJobMethod) + == null) { + DataLabelingServiceGrpc.getDeleteEvaluationJobMethod = + getDeleteEvaluationJobMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteEvaluationJob")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("DeleteEvaluationJob")) + .build(); + } + } + } + return getDeleteEvaluationJobMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest, + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse> + getListEvaluationJobsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEvaluationJobs", + requestType = com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.class, + responseType = com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest, + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse> + getListEvaluationJobsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest, + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse> + getListEvaluationJobsMethod; + if ((getListEvaluationJobsMethod = DataLabelingServiceGrpc.getListEvaluationJobsMethod) + == null) { + synchronized (DataLabelingServiceGrpc.class) { + if ((getListEvaluationJobsMethod = DataLabelingServiceGrpc.getListEvaluationJobsMethod) + == null) { + DataLabelingServiceGrpc.getListEvaluationJobsMethod = + getListEvaluationJobsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEvaluationJobs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new DataLabelingServiceMethodDescriptorSupplier("ListEvaluationJobs")) + .build(); + } + } + } + return getListEvaluationJobsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static DataLabelingServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataLabelingServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataLabelingServiceStub(channel, callOptions); + } + }; + return DataLabelingServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DataLabelingServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataLabelingServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataLabelingServiceBlockingStub(channel, callOptions); + } + }; + return DataLabelingServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static DataLabelingServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DataLabelingServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataLabelingServiceFutureStub(channel, callOptions); + } + }; + return DataLabelingServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service for the AI Platform Data Labeling API.
+   * 
+ */ + public abstract static class DataLabelingServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Creates dataset. If success return a Dataset resource.
+     * 
+ */ + public void createDataset( + com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDatasetMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets dataset by resource name.
+     * 
+ */ + public void getDataset( + com.google.cloud.datalabeling.v1beta1.GetDatasetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDatasetMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists datasets under a project. Pagination is supported.
+     * 
+ */ + public void listDatasets( + com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDatasetsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a dataset by resource name.
+     * 
+ */ + public void deleteDataset( + com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDatasetMethod(), responseObserver); + } + + /** + * + * + *
+     * Imports data into dataset based on source locations defined in request.
+     * It can be called multiple times for the same dataset. Each dataset can
+     * only have one long running operation running on it. For example, no
+     * labeling task (also long running operation) can be started while
+     * importing is still ongoing. Vice versa.
+     * 
+ */ + public void importData( + com.google.cloud.datalabeling.v1beta1.ImportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportDataMethod(), responseObserver); + } + + /** + * + * + *
+     * Exports data and annotations from dataset.
+     * 
+ */ + public void exportData( + com.google.cloud.datalabeling.v1beta1.ExportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a data item in a dataset by resource name. This API can be
+     * called after data are imported into dataset.
+     * 
+ */ + public void getDataItem( + com.google.cloud.datalabeling.v1beta1.GetDataItemRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataItemMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists data items in a dataset. This API can be called after data
+     * are imported into dataset. Pagination is supported.
+     * 
+ */ + public void listDataItems( + com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDataItemsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets an annotated dataset by resource name.
+     * 
+ */ + public void getAnnotatedDataset( + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAnnotatedDatasetMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists annotated datasets for a dataset. Pagination is supported.
+     * 
+ */ + public void listAnnotatedDatasets( + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAnnotatedDatasetsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an annotated dataset by resource name.
+     * 
+ */ + public void deleteAnnotatedDataset( + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAnnotatedDatasetMethod(), responseObserver); + } + + /** + * + * + *
+     * Starts a labeling task for image. The type of image labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public void labelImage( + com.google.cloud.datalabeling.v1beta1.LabelImageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLabelImageMethod(), responseObserver); + } + + /** + * + * + *
+     * Starts a labeling task for video. The type of video labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public void labelVideo( + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLabelVideoMethod(), responseObserver); + } + + /** + * + * + *
+     * Starts a labeling task for text. The type of text labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public void labelText( + com.google.cloud.datalabeling.v1beta1.LabelTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLabelTextMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets an example by resource name, including both data and annotation.
+     * 
+ */ + public void getExample( + com.google.cloud.datalabeling.v1beta1.GetExampleRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetExampleMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists examples in an annotated dataset. Pagination is supported.
+     * 
+ */ + public void listExamples( + com.google.cloud.datalabeling.v1beta1.ListExamplesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListExamplesMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates an annotation spec set by providing a set of labels.
+     * 
+ */ + public void createAnnotationSpecSet( + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAnnotationSpecSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets an annotation spec set by resource name.
+     * 
+ */ + public void getAnnotationSpecSet( + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAnnotationSpecSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists annotation spec sets for a project. Pagination is supported.
+     * 
+ */ + public void listAnnotationSpecSets( + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAnnotationSpecSetsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an annotation spec set by resource name.
+     * 
+ */ + public void deleteAnnotationSpecSet( + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAnnotationSpecSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates an instruction for how data should be labeled.
+     * 
+ */ + public void createInstruction( + com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateInstructionMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets an instruction by resource name.
+     * 
+ */ + public void getInstruction( + com.google.cloud.datalabeling.v1beta1.GetInstructionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetInstructionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists instructions for a project. Pagination is supported.
+     * 
+ */ + public void listInstructions( + com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListInstructionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an instruction object by resource name.
+     * 
+ */ + public void deleteInstruction( + com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteInstructionMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets an evaluation by resource name (to search, use
+     * [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
+     * 
+ */ + public void getEvaluation( + com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEvaluationMethod(), responseObserver); + } + + /** + * + * + *
+     * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
+     * 
+ */ + public void searchEvaluations( + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchEvaluationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Searches example comparisons from an evaluation. The return format is a
+     * list of example comparisons that show ground truth and prediction(s) for
+     * a single input. Search by providing an evaluation ID.
+     * 
+ */ + public void searchExampleComparisons( + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchExampleComparisonsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates an evaluation job.
+     * 
+ */ + public void createEvaluationJob( + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateEvaluationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an evaluation job. You can only update certain fields of the job's
+     * [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: `humanAnnotationConfig.instruction`,
+     * `exampleCount`, and `exampleSamplePercentage`.
+     * If you want to change any other aspect of the evaluation job, you must
+     * delete the job and create a new one.
+     * 
+ */ + public void updateEvaluationJob( + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateEvaluationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets an evaluation job by resource name.
+     * 
+ */ + public void getEvaluationJob( + com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEvaluationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Pauses an evaluation job. Pausing an evaluation job that is already in a
+     * `PAUSED` state is a no-op.
+     * 
+ */ + public void pauseEvaluationJob( + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPauseEvaluationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Resumes a paused evaluation job. A deleted evaluation job can't be resumed.
+     * Resuming a running or scheduled evaluation job is a no-op.
+     * 
+ */ + public void resumeEvaluationJob( + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getResumeEvaluationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Stops and deletes an evaluation job.
+     * 
+ */ + public void deleteEvaluationJob( + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteEvaluationJobMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all evaluation jobs within a project with possible filters.
+     * Pagination is supported.
+     * 
+ */ + public void listEvaluationJobs( + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEvaluationJobsMethod(), 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.datalabeling.v1beta1.CreateDatasetRequest, + com.google.cloud.datalabeling.v1beta1.Dataset>( + this, METHODID_CREATE_DATASET))) + .addMethod( + getGetDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.GetDatasetRequest, + com.google.cloud.datalabeling.v1beta1.Dataset>(this, METHODID_GET_DATASET))) + .addMethod( + getListDatasetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest, + com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse>( + this, METHODID_LIST_DATASETS))) + .addMethod( + getDeleteDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_DATASET))) + .addMethod( + getImportDataMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.ImportDataRequest, + com.google.longrunning.Operation>(this, METHODID_IMPORT_DATA))) + .addMethod( + getExportDataMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.ExportDataRequest, + com.google.longrunning.Operation>(this, METHODID_EXPORT_DATA))) + .addMethod( + getGetDataItemMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.GetDataItemRequest, + com.google.cloud.datalabeling.v1beta1.DataItem>( + this, METHODID_GET_DATA_ITEM))) + .addMethod( + getListDataItemsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest, + com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse>( + this, METHODID_LIST_DATA_ITEMS))) + .addMethod( + getGetAnnotatedDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest, + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset>( + this, METHODID_GET_ANNOTATED_DATASET))) + .addMethod( + getListAnnotatedDatasetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest, + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse>( + this, METHODID_LIST_ANNOTATED_DATASETS))) + .addMethod( + getDeleteAnnotatedDatasetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_ANNOTATED_DATASET))) + .addMethod( + getLabelImageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.LabelImageRequest, + com.google.longrunning.Operation>(this, METHODID_LABEL_IMAGE))) + .addMethod( + getLabelVideoMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest, + com.google.longrunning.Operation>(this, METHODID_LABEL_VIDEO))) + .addMethod( + getLabelTextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.LabelTextRequest, + com.google.longrunning.Operation>(this, METHODID_LABEL_TEXT))) + .addMethod( + getGetExampleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.GetExampleRequest, + com.google.cloud.datalabeling.v1beta1.Example>(this, METHODID_GET_EXAMPLE))) + .addMethod( + getListExamplesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.ListExamplesRequest, + com.google.cloud.datalabeling.v1beta1.ListExamplesResponse>( + this, METHODID_LIST_EXAMPLES))) + .addMethod( + getCreateAnnotationSpecSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet>( + this, METHODID_CREATE_ANNOTATION_SPEC_SET))) + .addMethod( + getGetAnnotationSpecSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet>( + this, METHODID_GET_ANNOTATION_SPEC_SET))) + .addMethod( + getListAnnotationSpecSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest, + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse>( + this, METHODID_LIST_ANNOTATION_SPEC_SETS))) + .addMethod( + getDeleteAnnotationSpecSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_ANNOTATION_SPEC_SET))) + .addMethod( + getCreateInstructionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest, + com.google.longrunning.Operation>(this, METHODID_CREATE_INSTRUCTION))) + .addMethod( + getGetInstructionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.GetInstructionRequest, + com.google.cloud.datalabeling.v1beta1.Instruction>( + this, METHODID_GET_INSTRUCTION))) + .addMethod( + getListInstructionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest, + com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse>( + this, METHODID_LIST_INSTRUCTIONS))) + .addMethod( + getDeleteInstructionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_INSTRUCTION))) + .addMethod( + getGetEvaluationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest, + com.google.cloud.datalabeling.v1beta1.Evaluation>( + this, METHODID_GET_EVALUATION))) + .addMethod( + getSearchEvaluationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest, + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse>( + this, METHODID_SEARCH_EVALUATIONS))) + .addMethod( + getSearchExampleComparisonsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest, + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse>( + this, METHODID_SEARCH_EXAMPLE_COMPARISONS))) + .addMethod( + getCreateEvaluationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest, + com.google.cloud.datalabeling.v1beta1.EvaluationJob>( + this, METHODID_CREATE_EVALUATION_JOB))) + .addMethod( + getUpdateEvaluationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest, + com.google.cloud.datalabeling.v1beta1.EvaluationJob>( + this, METHODID_UPDATE_EVALUATION_JOB))) + .addMethod( + getGetEvaluationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest, + com.google.cloud.datalabeling.v1beta1.EvaluationJob>( + this, METHODID_GET_EVALUATION_JOB))) + .addMethod( + getPauseEvaluationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest, + com.google.protobuf.Empty>(this, METHODID_PAUSE_EVALUATION_JOB))) + .addMethod( + getResumeEvaluationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest, + com.google.protobuf.Empty>(this, METHODID_RESUME_EVALUATION_JOB))) + .addMethod( + getDeleteEvaluationJobMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_EVALUATION_JOB))) + .addMethod( + getListEvaluationJobsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest, + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse>( + this, METHODID_LIST_EVALUATION_JOBS))) + .build(); + } + } + + /** + * + * + *
+   * Service for the AI Platform Data Labeling API.
+   * 
+ */ + public static final class DataLabelingServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private DataLabelingServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataLabelingServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataLabelingServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates dataset. If success return a Dataset resource.
+     * 
+ */ + public void createDataset( + com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets dataset by resource name.
+     * 
+ */ + public void getDataset( + com.google.cloud.datalabeling.v1beta1.GetDatasetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists datasets under a project. Pagination is supported.
+     * 
+ */ + public void listDatasets( + com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDatasetsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a dataset by resource name.
+     * 
+ */ + public void deleteDataset( + com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Imports data into dataset based on source locations defined in request.
+     * It can be called multiple times for the same dataset. Each dataset can
+     * only have one long running operation running on it. For example, no
+     * labeling task (also long running operation) can be started while
+     * importing is still ongoing. Vice versa.
+     * 
+ */ + public void importData( + com.google.cloud.datalabeling.v1beta1.ImportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getImportDataMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Exports data and annotations from dataset.
+     * 
+ */ + public void exportData( + com.google.cloud.datalabeling.v1beta1.ExportDataRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportDataMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets a data item in a dataset by resource name. This API can be
+     * called after data are imported into dataset.
+     * 
+ */ + public void getDataItem( + com.google.cloud.datalabeling.v1beta1.GetDataItemRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataItemMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists data items in a dataset. This API can be called after data
+     * are imported into dataset. Pagination is supported.
+     * 
+ */ + public void listDataItems( + com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDataItemsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets an annotated dataset by resource name.
+     * 
+ */ + public void getAnnotatedDataset( + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAnnotatedDatasetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists annotated datasets for a dataset. Pagination is supported.
+     * 
+ */ + public void listAnnotatedDatasets( + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAnnotatedDatasetsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an annotated dataset by resource name.
+     * 
+ */ + public void deleteAnnotatedDataset( + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAnnotatedDatasetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Starts a labeling task for image. The type of image labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public void labelImage( + com.google.cloud.datalabeling.v1beta1.LabelImageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLabelImageMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Starts a labeling task for video. The type of video labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public void labelVideo( + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLabelVideoMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Starts a labeling task for text. The type of text labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public void labelText( + com.google.cloud.datalabeling.v1beta1.LabelTextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getLabelTextMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Gets an example by resource name, including both data and annotation.
+     * 
+ */ + public void getExample( + com.google.cloud.datalabeling.v1beta1.GetExampleRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetExampleMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Lists examples in an annotated dataset. Pagination is supported.
+     * 
+ */ + public void listExamples( + com.google.cloud.datalabeling.v1beta1.ListExamplesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListExamplesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an annotation spec set by providing a set of labels.
+     * 
+ */ + public void createAnnotationSpecSet( + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAnnotationSpecSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets an annotation spec set by resource name.
+     * 
+ */ + public void getAnnotationSpecSet( + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAnnotationSpecSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists annotation spec sets for a project. Pagination is supported.
+     * 
+ */ + public void listAnnotationSpecSets( + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAnnotationSpecSetsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an annotation spec set by resource name.
+     * 
+ */ + public void deleteAnnotationSpecSet( + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAnnotationSpecSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an instruction for how data should be labeled.
+     * 
+ */ + public void createInstruction( + com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateInstructionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets an instruction by resource name.
+     * 
+ */ + public void getInstruction( + com.google.cloud.datalabeling.v1beta1.GetInstructionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetInstructionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists instructions for a project. Pagination is supported.
+     * 
+ */ + public void listInstructions( + com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListInstructionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an instruction object by resource name.
+     * 
+ */ + public void deleteInstruction( + com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteInstructionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets an evaluation by resource name (to search, use
+     * [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
+     * 
+ */ + public void getEvaluation( + com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEvaluationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
+     * 
+ */ + public void searchEvaluations( + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchEvaluationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Searches example comparisons from an evaluation. The return format is a
+     * list of example comparisons that show ground truth and prediction(s) for
+     * a single input. Search by providing an evaluation ID.
+     * 
+ */ + public void searchExampleComparisons( + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchExampleComparisonsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an evaluation job.
+     * 
+ */ + public void createEvaluationJob( + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateEvaluationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an evaluation job. You can only update certain fields of the job's
+     * [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: `humanAnnotationConfig.instruction`,
+     * `exampleCount`, and `exampleSamplePercentage`.
+     * If you want to change any other aspect of the evaluation job, you must
+     * delete the job and create a new one.
+     * 
+ */ + public void updateEvaluationJob( + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateEvaluationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets an evaluation job by resource name.
+     * 
+ */ + public void getEvaluationJob( + com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEvaluationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Pauses an evaluation job. Pausing an evaluation job that is already in a
+     * `PAUSED` state is a no-op.
+     * 
+ */ + public void pauseEvaluationJob( + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPauseEvaluationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Resumes a paused evaluation job. A deleted evaluation job can't be resumed.
+     * Resuming a running or scheduled evaluation job is a no-op.
+     * 
+ */ + public void resumeEvaluationJob( + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getResumeEvaluationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Stops and deletes an evaluation job.
+     * 
+ */ + public void deleteEvaluationJob( + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteEvaluationJobMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all evaluation jobs within a project with possible filters.
+     * Pagination is supported.
+     * 
+ */ + public void listEvaluationJobs( + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEvaluationJobsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Service for the AI Platform Data Labeling API.
+   * 
+ */ + public static final class DataLabelingServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DataLabelingServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataLabelingServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataLabelingServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates dataset. If success return a Dataset resource.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.Dataset createDataset( + com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDatasetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets dataset by resource name.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.Dataset getDataset( + com.google.cloud.datalabeling.v1beta1.GetDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDatasetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists datasets under a project. Pagination is supported.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse listDatasets( + com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDatasetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a dataset by resource name.
+     * 
+ */ + public com.google.protobuf.Empty deleteDataset( + com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Imports data into dataset based on source locations defined in request.
+     * It can be called multiple times for the same dataset. Each dataset can
+     * only have one long running operation running on it. For example, no
+     * labeling task (also long running operation) can be started while
+     * importing is still ongoing. Vice versa.
+     * 
+ */ + public com.google.longrunning.Operation importData( + com.google.cloud.datalabeling.v1beta1.ImportDataRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getImportDataMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Exports data and annotations from dataset.
+     * 
+ */ + public com.google.longrunning.Operation exportData( + com.google.cloud.datalabeling.v1beta1.ExportDataRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportDataMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a data item in a dataset by resource name. This API can be
+     * called after data are imported into dataset.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.DataItem getDataItem( + com.google.cloud.datalabeling.v1beta1.GetDataItemRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataItemMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists data items in a dataset. This API can be called after data
+     * are imported into dataset. Pagination is supported.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse listDataItems( + com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDataItemsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets an annotated dataset by resource name.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset getAnnotatedDataset( + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAnnotatedDatasetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists annotated datasets for a dataset. Pagination is supported.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse + listAnnotatedDatasets( + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAnnotatedDatasetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an annotated dataset by resource name.
+     * 
+ */ + public com.google.protobuf.Empty deleteAnnotatedDataset( + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAnnotatedDatasetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Starts a labeling task for image. The type of image labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public com.google.longrunning.Operation labelImage( + com.google.cloud.datalabeling.v1beta1.LabelImageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLabelImageMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Starts a labeling task for video. The type of video labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public com.google.longrunning.Operation labelVideo( + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLabelVideoMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Starts a labeling task for text. The type of text labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public com.google.longrunning.Operation labelText( + com.google.cloud.datalabeling.v1beta1.LabelTextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getLabelTextMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets an example by resource name, including both data and annotation.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.Example getExample( + com.google.cloud.datalabeling.v1beta1.GetExampleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetExampleMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists examples in an annotated dataset. Pagination is supported.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.ListExamplesResponse listExamples( + com.google.cloud.datalabeling.v1beta1.ListExamplesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListExamplesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an annotation spec set by providing a set of labels.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet createAnnotationSpecSet( + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAnnotationSpecSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets an annotation spec set by resource name.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpecSet( + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAnnotationSpecSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists annotation spec sets for a project. Pagination is supported.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse + listAnnotationSpecSets( + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAnnotationSpecSetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an annotation spec set by resource name.
+     * 
+ */ + public com.google.protobuf.Empty deleteAnnotationSpecSet( + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAnnotationSpecSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an instruction for how data should be labeled.
+     * 
+ */ + public com.google.longrunning.Operation createInstruction( + com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateInstructionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets an instruction by resource name.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.Instruction getInstruction( + com.google.cloud.datalabeling.v1beta1.GetInstructionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstructionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists instructions for a project. Pagination is supported.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse listInstructions( + com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListInstructionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an instruction object by resource name.
+     * 
+ */ + public com.google.protobuf.Empty deleteInstruction( + com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteInstructionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets an evaluation by resource name (to search, use
+     * [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.Evaluation getEvaluation( + com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEvaluationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse searchEvaluations( + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchEvaluationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Searches example comparisons from an evaluation. The return format is a
+     * list of example comparisons that show ground truth and prediction(s) for
+     * a single input. Search by providing an evaluation ID.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + searchExampleComparisons( + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchExampleComparisonsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an evaluation job.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.EvaluationJob createEvaluationJob( + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateEvaluationJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an evaluation job. You can only update certain fields of the job's
+     * [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: `humanAnnotationConfig.instruction`,
+     * `exampleCount`, and `exampleSamplePercentage`.
+     * If you want to change any other aspect of the evaluation job, you must
+     * delete the job and create a new one.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.EvaluationJob updateEvaluationJob( + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateEvaluationJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets an evaluation job by resource name.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.EvaluationJob getEvaluationJob( + com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEvaluationJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Pauses an evaluation job. Pausing an evaluation job that is already in a
+     * `PAUSED` state is a no-op.
+     * 
+ */ + public com.google.protobuf.Empty pauseEvaluationJob( + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPauseEvaluationJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Resumes a paused evaluation job. A deleted evaluation job can't be resumed.
+     * Resuming a running or scheduled evaluation job is a no-op.
+     * 
+ */ + public com.google.protobuf.Empty resumeEvaluationJob( + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getResumeEvaluationJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Stops and deletes an evaluation job.
+     * 
+ */ + public com.google.protobuf.Empty deleteEvaluationJob( + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteEvaluationJobMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all evaluation jobs within a project with possible filters.
+     * Pagination is supported.
+     * 
+ */ + public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse listEvaluationJobs( + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEvaluationJobsMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service for the AI Platform Data Labeling API.
+   * 
+ */ + public static final class DataLabelingServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DataLabelingServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DataLabelingServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DataLabelingServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Creates dataset. If success return a Dataset resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datalabeling.v1beta1.Dataset> + createDataset(com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets dataset by resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datalabeling.v1beta1.Dataset> + getDataset(com.google.cloud.datalabeling.v1beta1.GetDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists datasets under a project. Pagination is supported.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse> + listDatasets(com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a dataset by resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDataset(com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Imports data into dataset based on source locations defined in request.
+     * It can be called multiple times for the same dataset. Each dataset can
+     * only have one long running operation running on it. For example, no
+     * labeling task (also long running operation) can be started while
+     * importing is still ongoing. Vice versa.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + importData(com.google.cloud.datalabeling.v1beta1.ImportDataRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getImportDataMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Exports data and annotations from dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + exportData(com.google.cloud.datalabeling.v1beta1.ExportDataRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportDataMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a data item in a dataset by resource name. This API can be
+     * called after data are imported into dataset.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datalabeling.v1beta1.DataItem> + getDataItem(com.google.cloud.datalabeling.v1beta1.GetDataItemRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDataItemMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists data items in a dataset. This API can be called after data
+     * are imported into dataset. Pagination is supported.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse> + listDataItems(com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDataItemsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets an annotated dataset by resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset> + getAnnotatedDataset( + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAnnotatedDatasetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists annotated datasets for a dataset. Pagination is supported.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse> + listAnnotatedDatasets( + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAnnotatedDatasetsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an annotated dataset by resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteAnnotatedDataset( + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAnnotatedDatasetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Starts a labeling task for image. The type of image labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + labelImage(com.google.cloud.datalabeling.v1beta1.LabelImageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLabelImageMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Starts a labeling task for video. The type of video labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + labelVideo(com.google.cloud.datalabeling.v1beta1.LabelVideoRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLabelVideoMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Starts a labeling task for text. The type of text labeling task is
+     * configured by feature in the request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + labelText(com.google.cloud.datalabeling.v1beta1.LabelTextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getLabelTextMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets an example by resource name, including both data and annotation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datalabeling.v1beta1.Example> + getExample(com.google.cloud.datalabeling.v1beta1.GetExampleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetExampleMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists examples in an annotated dataset. Pagination is supported.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datalabeling.v1beta1.ListExamplesResponse> + listExamples(com.google.cloud.datalabeling.v1beta1.ListExamplesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListExamplesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates an annotation spec set by providing a set of labels.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet> + createAnnotationSpecSet( + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAnnotationSpecSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets an annotation spec set by resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet> + getAnnotationSpecSet( + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAnnotationSpecSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists annotation spec sets for a project. Pagination is supported.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse> + listAnnotationSpecSets( + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAnnotationSpecSetsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an annotation spec set by resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteAnnotationSpecSet( + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAnnotationSpecSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates an instruction for how data should be labeled.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + createInstruction(com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateInstructionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets an instruction by resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datalabeling.v1beta1.Instruction> + getInstruction(com.google.cloud.datalabeling.v1beta1.GetInstructionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInstructionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists instructions for a project. Pagination is supported.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse> + listInstructions(com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListInstructionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an instruction object by resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteInstruction(com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteInstructionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets an evaluation by resource name (to search, use
+     * [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datalabeling.v1beta1.Evaluation> + getEvaluation(com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEvaluationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse> + searchEvaluations(com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchEvaluationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Searches example comparisons from an evaluation. The return format is a
+     * list of example comparisons that show ground truth and prediction(s) for
+     * a single input. Search by providing an evaluation ID.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse> + searchExampleComparisons( + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchExampleComparisonsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates an evaluation job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datalabeling.v1beta1.EvaluationJob> + createEvaluationJob( + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateEvaluationJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an evaluation job. You can only update certain fields of the job's
+     * [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: `humanAnnotationConfig.instruction`,
+     * `exampleCount`, and `exampleSamplePercentage`.
+     * If you want to change any other aspect of the evaluation job, you must
+     * delete the job and create a new one.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datalabeling.v1beta1.EvaluationJob> + updateEvaluationJob( + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateEvaluationJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets an evaluation job by resource name.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datalabeling.v1beta1.EvaluationJob> + getEvaluationJob(com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEvaluationJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Pauses an evaluation job. Pausing an evaluation job that is already in a
+     * `PAUSED` state is a no-op.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + pauseEvaluationJob( + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPauseEvaluationJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Resumes a paused evaluation job. A deleted evaluation job can't be resumed.
+     * Resuming a running or scheduled evaluation job is a no-op.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + resumeEvaluationJob( + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getResumeEvaluationJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Stops and deletes an evaluation job.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteEvaluationJob( + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteEvaluationJobMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all evaluation jobs within a project with possible filters.
+     * Pagination is supported.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse> + listEvaluationJobs( + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEvaluationJobsMethod(), 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_DELETE_DATASET = 3; + private static final int METHODID_IMPORT_DATA = 4; + private static final int METHODID_EXPORT_DATA = 5; + private static final int METHODID_GET_DATA_ITEM = 6; + private static final int METHODID_LIST_DATA_ITEMS = 7; + private static final int METHODID_GET_ANNOTATED_DATASET = 8; + private static final int METHODID_LIST_ANNOTATED_DATASETS = 9; + private static final int METHODID_DELETE_ANNOTATED_DATASET = 10; + private static final int METHODID_LABEL_IMAGE = 11; + private static final int METHODID_LABEL_VIDEO = 12; + private static final int METHODID_LABEL_TEXT = 13; + private static final int METHODID_GET_EXAMPLE = 14; + private static final int METHODID_LIST_EXAMPLES = 15; + private static final int METHODID_CREATE_ANNOTATION_SPEC_SET = 16; + private static final int METHODID_GET_ANNOTATION_SPEC_SET = 17; + private static final int METHODID_LIST_ANNOTATION_SPEC_SETS = 18; + private static final int METHODID_DELETE_ANNOTATION_SPEC_SET = 19; + private static final int METHODID_CREATE_INSTRUCTION = 20; + private static final int METHODID_GET_INSTRUCTION = 21; + private static final int METHODID_LIST_INSTRUCTIONS = 22; + private static final int METHODID_DELETE_INSTRUCTION = 23; + private static final int METHODID_GET_EVALUATION = 24; + private static final int METHODID_SEARCH_EVALUATIONS = 25; + private static final int METHODID_SEARCH_EXAMPLE_COMPARISONS = 26; + private static final int METHODID_CREATE_EVALUATION_JOB = 27; + private static final int METHODID_UPDATE_EVALUATION_JOB = 28; + private static final int METHODID_GET_EVALUATION_JOB = 29; + private static final int METHODID_PAUSE_EVALUATION_JOB = 30; + private static final int METHODID_RESUME_EVALUATION_JOB = 31; + private static final int METHODID_DELETE_EVALUATION_JOB = 32; + private static final int METHODID_LIST_EVALUATION_JOBS = 33; + + 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 DataLabelingServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DataLabelingServiceImplBase 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.datalabeling.v1beta1.CreateDatasetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_DATASET: + serviceImpl.getDataset( + (com.google.cloud.datalabeling.v1beta1.GetDatasetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_DATASETS: + serviceImpl.listDatasets( + (com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse>) + responseObserver); + break; + case METHODID_DELETE_DATASET: + serviceImpl.deleteDataset( + (com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_IMPORT_DATA: + serviceImpl.importData( + (com.google.cloud.datalabeling.v1beta1.ImportDataRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_EXPORT_DATA: + serviceImpl.exportData( + (com.google.cloud.datalabeling.v1beta1.ExportDataRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_DATA_ITEM: + serviceImpl.getDataItem( + (com.google.cloud.datalabeling.v1beta1.GetDataItemRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_DATA_ITEMS: + serviceImpl.listDataItems( + (com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse>) + responseObserver); + break; + case METHODID_GET_ANNOTATED_DATASET: + serviceImpl.getAnnotatedDataset( + (com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_ANNOTATED_DATASETS: + serviceImpl.listAnnotatedDatasets( + (com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse>) + responseObserver); + break; + case METHODID_DELETE_ANNOTATED_DATASET: + serviceImpl.deleteAnnotatedDataset( + (com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LABEL_IMAGE: + serviceImpl.labelImage( + (com.google.cloud.datalabeling.v1beta1.LabelImageRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LABEL_VIDEO: + serviceImpl.labelVideo( + (com.google.cloud.datalabeling.v1beta1.LabelVideoRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LABEL_TEXT: + serviceImpl.labelText( + (com.google.cloud.datalabeling.v1beta1.LabelTextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_EXAMPLE: + serviceImpl.getExample( + (com.google.cloud.datalabeling.v1beta1.GetExampleRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_EXAMPLES: + serviceImpl.listExamples( + (com.google.cloud.datalabeling.v1beta1.ListExamplesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.datalabeling.v1beta1.ListExamplesResponse>) + responseObserver); + break; + case METHODID_CREATE_ANNOTATION_SPEC_SET: + serviceImpl.createAnnotationSpecSet( + (com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_ANNOTATION_SPEC_SET: + serviceImpl.getAnnotationSpecSet( + (com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_ANNOTATION_SPEC_SETS: + serviceImpl.listAnnotationSpecSets( + (com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse>) + responseObserver); + break; + case METHODID_DELETE_ANNOTATION_SPEC_SET: + serviceImpl.deleteAnnotationSpecSet( + (com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_INSTRUCTION: + serviceImpl.createInstruction( + (com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_INSTRUCTION: + serviceImpl.getInstruction( + (com.google.cloud.datalabeling.v1beta1.GetInstructionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_INSTRUCTIONS: + serviceImpl.listInstructions( + (com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse>) + responseObserver); + break; + case METHODID_DELETE_INSTRUCTION: + serviceImpl.deleteInstruction( + (com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_EVALUATION: + serviceImpl.getEvaluation( + (com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SEARCH_EVALUATIONS: + serviceImpl.searchEvaluations( + (com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse>) + responseObserver); + break; + case METHODID_SEARCH_EXAMPLE_COMPARISONS: + serviceImpl.searchExampleComparisons( + (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse>) + responseObserver); + break; + case METHODID_CREATE_EVALUATION_JOB: + serviceImpl.createEvaluationJob( + (com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_EVALUATION_JOB: + serviceImpl.updateEvaluationJob( + (com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_EVALUATION_JOB: + serviceImpl.getEvaluationJob( + (com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_PAUSE_EVALUATION_JOB: + serviceImpl.pauseEvaluationJob( + (com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RESUME_EVALUATION_JOB: + serviceImpl.resumeEvaluationJob( + (com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_EVALUATION_JOB: + serviceImpl.deleteEvaluationJob( + (com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_EVALUATION_JOBS: + serviceImpl.listEvaluationJobs( + (com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse>) + 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 DataLabelingServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DataLabelingServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DataLabelingService"); + } + } + + private static final class DataLabelingServiceFileDescriptorSupplier + extends DataLabelingServiceBaseDescriptorSupplier { + DataLabelingServiceFileDescriptorSupplier() {} + } + + private static final class DataLabelingServiceMethodDescriptorSupplier + extends DataLabelingServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DataLabelingServiceMethodDescriptorSupplier(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 (DataLabelingServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DataLabelingServiceFileDescriptorSupplier()) + .addMethod(getCreateDatasetMethod()) + .addMethod(getGetDatasetMethod()) + .addMethod(getListDatasetsMethod()) + .addMethod(getDeleteDatasetMethod()) + .addMethod(getImportDataMethod()) + .addMethod(getExportDataMethod()) + .addMethod(getGetDataItemMethod()) + .addMethod(getListDataItemsMethod()) + .addMethod(getGetAnnotatedDatasetMethod()) + .addMethod(getListAnnotatedDatasetsMethod()) + .addMethod(getDeleteAnnotatedDatasetMethod()) + .addMethod(getLabelImageMethod()) + .addMethod(getLabelVideoMethod()) + .addMethod(getLabelTextMethod()) + .addMethod(getGetExampleMethod()) + .addMethod(getListExamplesMethod()) + .addMethod(getCreateAnnotationSpecSetMethod()) + .addMethod(getGetAnnotationSpecSetMethod()) + .addMethod(getListAnnotationSpecSetsMethod()) + .addMethod(getDeleteAnnotationSpecSetMethod()) + .addMethod(getCreateInstructionMethod()) + .addMethod(getGetInstructionMethod()) + .addMethod(getListInstructionsMethod()) + .addMethod(getDeleteInstructionMethod()) + .addMethod(getGetEvaluationMethod()) + .addMethod(getSearchEvaluationsMethod()) + .addMethod(getSearchExampleComparisonsMethod()) + .addMethod(getCreateEvaluationJobMethod()) + .addMethod(getUpdateEvaluationJobMethod()) + .addMethod(getGetEvaluationJobMethod()) + .addMethod(getPauseEvaluationJobMethod()) + .addMethod(getResumeEvaluationJobMethod()) + .addMethod(getDeleteEvaluationJobMethod()) + .addMethod(getListEvaluationJobsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1beta1/grpc-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceGrpc.java b/owl-bot-staging/v1beta1/grpc-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceGrpc.java deleted file mode 100644 index c4cba344..00000000 --- a/owl-bot-staging/v1beta1/grpc-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceGrpc.java +++ /dev/null @@ -1,3217 +0,0 @@ -package com.google.cloud.datalabeling.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service for the AI Platform Data Labeling API.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class DataLabelingServiceGrpc { - - private DataLabelingServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.datalabeling.v1beta1.DataLabelingService"; - - // 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.datalabeling.v1beta1.CreateDatasetRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.Dataset.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateDatasetMethod() { - io.grpc.MethodDescriptor getCreateDatasetMethod; - if ((getCreateDatasetMethod = DataLabelingServiceGrpc.getCreateDatasetMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getCreateDatasetMethod = DataLabelingServiceGrpc.getCreateDatasetMethod) == null) { - DataLabelingServiceGrpc.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.datalabeling.v1beta1.CreateDatasetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("CreateDataset")) - .build(); - } - } - } - return getCreateDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDataset", - requestType = com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.Dataset.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDatasetMethod() { - io.grpc.MethodDescriptor getGetDatasetMethod; - if ((getGetDatasetMethod = DataLabelingServiceGrpc.getGetDatasetMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getGetDatasetMethod = DataLabelingServiceGrpc.getGetDatasetMethod) == null) { - DataLabelingServiceGrpc.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.datalabeling.v1beta1.GetDatasetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("GetDataset")) - .build(); - } - } - } - return getGetDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor getListDatasetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDatasets", - requestType = com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListDatasetsMethod() { - io.grpc.MethodDescriptor getListDatasetsMethod; - if ((getListDatasetsMethod = DataLabelingServiceGrpc.getListDatasetsMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getListDatasetsMethod = DataLabelingServiceGrpc.getListDatasetsMethod) == null) { - DataLabelingServiceGrpc.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.datalabeling.v1beta1.ListDatasetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("ListDatasets")) - .build(); - } - } - } - return getListDatasetsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDataset", - requestType = com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteDatasetMethod() { - io.grpc.MethodDescriptor getDeleteDatasetMethod; - if ((getDeleteDatasetMethod = DataLabelingServiceGrpc.getDeleteDatasetMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getDeleteDatasetMethod = DataLabelingServiceGrpc.getDeleteDatasetMethod) == null) { - DataLabelingServiceGrpc.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.datalabeling.v1beta1.DeleteDatasetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("DeleteDataset")) - .build(); - } - } - } - return getDeleteDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor getImportDataMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ImportData", - requestType = com.google.cloud.datalabeling.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 = DataLabelingServiceGrpc.getImportDataMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getImportDataMethod = DataLabelingServiceGrpc.getImportDataMethod) == null) { - DataLabelingServiceGrpc.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.datalabeling.v1beta1.ImportDataRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("ImportData")) - .build(); - } - } - } - return getImportDataMethod; - } - - private static volatile io.grpc.MethodDescriptor getExportDataMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExportData", - requestType = com.google.cloud.datalabeling.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 = DataLabelingServiceGrpc.getExportDataMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getExportDataMethod = DataLabelingServiceGrpc.getExportDataMethod) == null) { - DataLabelingServiceGrpc.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.datalabeling.v1beta1.ExportDataRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("ExportData")) - .build(); - } - } - } - return getExportDataMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetDataItemMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDataItem", - requestType = com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.DataItem.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDataItemMethod() { - io.grpc.MethodDescriptor getGetDataItemMethod; - if ((getGetDataItemMethod = DataLabelingServiceGrpc.getGetDataItemMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getGetDataItemMethod = DataLabelingServiceGrpc.getGetDataItemMethod) == null) { - DataLabelingServiceGrpc.getGetDataItemMethod = getGetDataItemMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataItem")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.DataItem.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("GetDataItem")) - .build(); - } - } - } - return getGetDataItemMethod; - } - - private static volatile io.grpc.MethodDescriptor getListDataItemsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDataItems", - requestType = com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListDataItemsMethod() { - io.grpc.MethodDescriptor getListDataItemsMethod; - if ((getListDataItemsMethod = DataLabelingServiceGrpc.getListDataItemsMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getListDataItemsMethod = DataLabelingServiceGrpc.getListDataItemsMethod) == null) { - DataLabelingServiceGrpc.getListDataItemsMethod = getListDataItemsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDataItems")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("ListDataItems")) - .build(); - } - } - } - return getListDataItemsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetAnnotatedDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAnnotatedDataset", - requestType = com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAnnotatedDatasetMethod() { - io.grpc.MethodDescriptor getGetAnnotatedDatasetMethod; - if ((getGetAnnotatedDatasetMethod = DataLabelingServiceGrpc.getGetAnnotatedDatasetMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getGetAnnotatedDatasetMethod = DataLabelingServiceGrpc.getGetAnnotatedDatasetMethod) == null) { - DataLabelingServiceGrpc.getGetAnnotatedDatasetMethod = getGetAnnotatedDatasetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAnnotatedDataset")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("GetAnnotatedDataset")) - .build(); - } - } - } - return getGetAnnotatedDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor getListAnnotatedDatasetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAnnotatedDatasets", - requestType = com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListAnnotatedDatasetsMethod() { - io.grpc.MethodDescriptor getListAnnotatedDatasetsMethod; - if ((getListAnnotatedDatasetsMethod = DataLabelingServiceGrpc.getListAnnotatedDatasetsMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getListAnnotatedDatasetsMethod = DataLabelingServiceGrpc.getListAnnotatedDatasetsMethod) == null) { - DataLabelingServiceGrpc.getListAnnotatedDatasetsMethod = getListAnnotatedDatasetsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAnnotatedDatasets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("ListAnnotatedDatasets")) - .build(); - } - } - } - return getListAnnotatedDatasetsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteAnnotatedDatasetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteAnnotatedDataset", - requestType = com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteAnnotatedDatasetMethod() { - io.grpc.MethodDescriptor getDeleteAnnotatedDatasetMethod; - if ((getDeleteAnnotatedDatasetMethod = DataLabelingServiceGrpc.getDeleteAnnotatedDatasetMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getDeleteAnnotatedDatasetMethod = DataLabelingServiceGrpc.getDeleteAnnotatedDatasetMethod) == null) { - DataLabelingServiceGrpc.getDeleteAnnotatedDatasetMethod = getDeleteAnnotatedDatasetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAnnotatedDataset")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("DeleteAnnotatedDataset")) - .build(); - } - } - } - return getDeleteAnnotatedDatasetMethod; - } - - private static volatile io.grpc.MethodDescriptor getLabelImageMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LabelImage", - requestType = com.google.cloud.datalabeling.v1beta1.LabelImageRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getLabelImageMethod() { - io.grpc.MethodDescriptor getLabelImageMethod; - if ((getLabelImageMethod = DataLabelingServiceGrpc.getLabelImageMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getLabelImageMethod = DataLabelingServiceGrpc.getLabelImageMethod) == null) { - DataLabelingServiceGrpc.getLabelImageMethod = getLabelImageMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LabelImage")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.LabelImageRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("LabelImage")) - .build(); - } - } - } - return getLabelImageMethod; - } - - private static volatile io.grpc.MethodDescriptor getLabelVideoMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LabelVideo", - requestType = com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getLabelVideoMethod() { - io.grpc.MethodDescriptor getLabelVideoMethod; - if ((getLabelVideoMethod = DataLabelingServiceGrpc.getLabelVideoMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getLabelVideoMethod = DataLabelingServiceGrpc.getLabelVideoMethod) == null) { - DataLabelingServiceGrpc.getLabelVideoMethod = getLabelVideoMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LabelVideo")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("LabelVideo")) - .build(); - } - } - } - return getLabelVideoMethod; - } - - private static volatile io.grpc.MethodDescriptor getLabelTextMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LabelText", - requestType = com.google.cloud.datalabeling.v1beta1.LabelTextRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getLabelTextMethod() { - io.grpc.MethodDescriptor getLabelTextMethod; - if ((getLabelTextMethod = DataLabelingServiceGrpc.getLabelTextMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getLabelTextMethod = DataLabelingServiceGrpc.getLabelTextMethod) == null) { - DataLabelingServiceGrpc.getLabelTextMethod = getLabelTextMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LabelText")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.LabelTextRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("LabelText")) - .build(); - } - } - } - return getLabelTextMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetExampleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetExample", - requestType = com.google.cloud.datalabeling.v1beta1.GetExampleRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.Example.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetExampleMethod() { - io.grpc.MethodDescriptor getGetExampleMethod; - if ((getGetExampleMethod = DataLabelingServiceGrpc.getGetExampleMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getGetExampleMethod = DataLabelingServiceGrpc.getGetExampleMethod) == null) { - DataLabelingServiceGrpc.getGetExampleMethod = getGetExampleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExample")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.GetExampleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("GetExample")) - .build(); - } - } - } - return getGetExampleMethod; - } - - private static volatile io.grpc.MethodDescriptor getListExamplesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListExamples", - requestType = com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListExamplesMethod() { - io.grpc.MethodDescriptor getListExamplesMethod; - if ((getListExamplesMethod = DataLabelingServiceGrpc.getListExamplesMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getListExamplesMethod = DataLabelingServiceGrpc.getListExamplesMethod) == null) { - DataLabelingServiceGrpc.getListExamplesMethod = getListExamplesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExamples")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("ListExamples")) - .build(); - } - } - } - return getListExamplesMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateAnnotationSpecSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateAnnotationSpecSet", - requestType = com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateAnnotationSpecSetMethod() { - io.grpc.MethodDescriptor getCreateAnnotationSpecSetMethod; - if ((getCreateAnnotationSpecSetMethod = DataLabelingServiceGrpc.getCreateAnnotationSpecSetMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getCreateAnnotationSpecSetMethod = DataLabelingServiceGrpc.getCreateAnnotationSpecSetMethod) == null) { - DataLabelingServiceGrpc.getCreateAnnotationSpecSetMethod = getCreateAnnotationSpecSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAnnotationSpecSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("CreateAnnotationSpecSet")) - .build(); - } - } - } - return getCreateAnnotationSpecSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetAnnotationSpecSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAnnotationSpecSet", - requestType = com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAnnotationSpecSetMethod() { - io.grpc.MethodDescriptor getGetAnnotationSpecSetMethod; - if ((getGetAnnotationSpecSetMethod = DataLabelingServiceGrpc.getGetAnnotationSpecSetMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getGetAnnotationSpecSetMethod = DataLabelingServiceGrpc.getGetAnnotationSpecSetMethod) == null) { - DataLabelingServiceGrpc.getGetAnnotationSpecSetMethod = getGetAnnotationSpecSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAnnotationSpecSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("GetAnnotationSpecSet")) - .build(); - } - } - } - return getGetAnnotationSpecSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getListAnnotationSpecSetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAnnotationSpecSets", - requestType = com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListAnnotationSpecSetsMethod() { - io.grpc.MethodDescriptor getListAnnotationSpecSetsMethod; - if ((getListAnnotationSpecSetsMethod = DataLabelingServiceGrpc.getListAnnotationSpecSetsMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getListAnnotationSpecSetsMethod = DataLabelingServiceGrpc.getListAnnotationSpecSetsMethod) == null) { - DataLabelingServiceGrpc.getListAnnotationSpecSetsMethod = getListAnnotationSpecSetsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAnnotationSpecSets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("ListAnnotationSpecSets")) - .build(); - } - } - } - return getListAnnotationSpecSetsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteAnnotationSpecSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteAnnotationSpecSet", - requestType = com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteAnnotationSpecSetMethod() { - io.grpc.MethodDescriptor getDeleteAnnotationSpecSetMethod; - if ((getDeleteAnnotationSpecSetMethod = DataLabelingServiceGrpc.getDeleteAnnotationSpecSetMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getDeleteAnnotationSpecSetMethod = DataLabelingServiceGrpc.getDeleteAnnotationSpecSetMethod) == null) { - DataLabelingServiceGrpc.getDeleteAnnotationSpecSetMethod = getDeleteAnnotationSpecSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAnnotationSpecSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("DeleteAnnotationSpecSet")) - .build(); - } - } - } - return getDeleteAnnotationSpecSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateInstructionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateInstruction", - requestType = com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateInstructionMethod() { - io.grpc.MethodDescriptor getCreateInstructionMethod; - if ((getCreateInstructionMethod = DataLabelingServiceGrpc.getCreateInstructionMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getCreateInstructionMethod = DataLabelingServiceGrpc.getCreateInstructionMethod) == null) { - DataLabelingServiceGrpc.getCreateInstructionMethod = getCreateInstructionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateInstruction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("CreateInstruction")) - .build(); - } - } - } - return getCreateInstructionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetInstructionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetInstruction", - requestType = com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.Instruction.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetInstructionMethod() { - io.grpc.MethodDescriptor getGetInstructionMethod; - if ((getGetInstructionMethod = DataLabelingServiceGrpc.getGetInstructionMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getGetInstructionMethod = DataLabelingServiceGrpc.getGetInstructionMethod) == null) { - DataLabelingServiceGrpc.getGetInstructionMethod = getGetInstructionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetInstruction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("GetInstruction")) - .build(); - } - } - } - return getGetInstructionMethod; - } - - private static volatile io.grpc.MethodDescriptor getListInstructionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListInstructions", - requestType = com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListInstructionsMethod() { - io.grpc.MethodDescriptor getListInstructionsMethod; - if ((getListInstructionsMethod = DataLabelingServiceGrpc.getListInstructionsMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getListInstructionsMethod = DataLabelingServiceGrpc.getListInstructionsMethod) == null) { - DataLabelingServiceGrpc.getListInstructionsMethod = getListInstructionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInstructions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("ListInstructions")) - .build(); - } - } - } - return getListInstructionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteInstructionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteInstruction", - requestType = com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteInstructionMethod() { - io.grpc.MethodDescriptor getDeleteInstructionMethod; - if ((getDeleteInstructionMethod = DataLabelingServiceGrpc.getDeleteInstructionMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getDeleteInstructionMethod = DataLabelingServiceGrpc.getDeleteInstructionMethod) == null) { - DataLabelingServiceGrpc.getDeleteInstructionMethod = getDeleteInstructionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteInstruction")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("DeleteInstruction")) - .build(); - } - } - } - return getDeleteInstructionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetEvaluationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEvaluation", - requestType = com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.Evaluation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetEvaluationMethod() { - io.grpc.MethodDescriptor getGetEvaluationMethod; - if ((getGetEvaluationMethod = DataLabelingServiceGrpc.getGetEvaluationMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getGetEvaluationMethod = DataLabelingServiceGrpc.getGetEvaluationMethod) == null) { - DataLabelingServiceGrpc.getGetEvaluationMethod = getGetEvaluationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEvaluation")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.Evaluation.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("GetEvaluation")) - .build(); - } - } - } - return getGetEvaluationMethod; - } - - private static volatile io.grpc.MethodDescriptor getSearchEvaluationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchEvaluations", - requestType = com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSearchEvaluationsMethod() { - io.grpc.MethodDescriptor getSearchEvaluationsMethod; - if ((getSearchEvaluationsMethod = DataLabelingServiceGrpc.getSearchEvaluationsMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getSearchEvaluationsMethod = DataLabelingServiceGrpc.getSearchEvaluationsMethod) == null) { - DataLabelingServiceGrpc.getSearchEvaluationsMethod = getSearchEvaluationsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchEvaluations")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("SearchEvaluations")) - .build(); - } - } - } - return getSearchEvaluationsMethod; - } - - private static volatile io.grpc.MethodDescriptor getSearchExampleComparisonsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchExampleComparisons", - requestType = com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSearchExampleComparisonsMethod() { - io.grpc.MethodDescriptor getSearchExampleComparisonsMethod; - if ((getSearchExampleComparisonsMethod = DataLabelingServiceGrpc.getSearchExampleComparisonsMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getSearchExampleComparisonsMethod = DataLabelingServiceGrpc.getSearchExampleComparisonsMethod) == null) { - DataLabelingServiceGrpc.getSearchExampleComparisonsMethod = getSearchExampleComparisonsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchExampleComparisons")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("SearchExampleComparisons")) - .build(); - } - } - } - return getSearchExampleComparisonsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateEvaluationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateEvaluationJob", - requestType = com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.EvaluationJob.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateEvaluationJobMethod() { - io.grpc.MethodDescriptor getCreateEvaluationJobMethod; - if ((getCreateEvaluationJobMethod = DataLabelingServiceGrpc.getCreateEvaluationJobMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getCreateEvaluationJobMethod = DataLabelingServiceGrpc.getCreateEvaluationJobMethod) == null) { - DataLabelingServiceGrpc.getCreateEvaluationJobMethod = getCreateEvaluationJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEvaluationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("CreateEvaluationJob")) - .build(); - } - } - } - return getCreateEvaluationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateEvaluationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateEvaluationJob", - requestType = com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.EvaluationJob.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateEvaluationJobMethod() { - io.grpc.MethodDescriptor getUpdateEvaluationJobMethod; - if ((getUpdateEvaluationJobMethod = DataLabelingServiceGrpc.getUpdateEvaluationJobMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getUpdateEvaluationJobMethod = DataLabelingServiceGrpc.getUpdateEvaluationJobMethod) == null) { - DataLabelingServiceGrpc.getUpdateEvaluationJobMethod = getUpdateEvaluationJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateEvaluationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("UpdateEvaluationJob")) - .build(); - } - } - } - return getUpdateEvaluationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetEvaluationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEvaluationJob", - requestType = com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.EvaluationJob.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetEvaluationJobMethod() { - io.grpc.MethodDescriptor getGetEvaluationJobMethod; - if ((getGetEvaluationJobMethod = DataLabelingServiceGrpc.getGetEvaluationJobMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getGetEvaluationJobMethod = DataLabelingServiceGrpc.getGetEvaluationJobMethod) == null) { - DataLabelingServiceGrpc.getGetEvaluationJobMethod = getGetEvaluationJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEvaluationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("GetEvaluationJob")) - .build(); - } - } - } - return getGetEvaluationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getPauseEvaluationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PauseEvaluationJob", - requestType = com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPauseEvaluationJobMethod() { - io.grpc.MethodDescriptor getPauseEvaluationJobMethod; - if ((getPauseEvaluationJobMethod = DataLabelingServiceGrpc.getPauseEvaluationJobMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getPauseEvaluationJobMethod = DataLabelingServiceGrpc.getPauseEvaluationJobMethod) == null) { - DataLabelingServiceGrpc.getPauseEvaluationJobMethod = getPauseEvaluationJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PauseEvaluationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("PauseEvaluationJob")) - .build(); - } - } - } - return getPauseEvaluationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getResumeEvaluationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ResumeEvaluationJob", - requestType = com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getResumeEvaluationJobMethod() { - io.grpc.MethodDescriptor getResumeEvaluationJobMethod; - if ((getResumeEvaluationJobMethod = DataLabelingServiceGrpc.getResumeEvaluationJobMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getResumeEvaluationJobMethod = DataLabelingServiceGrpc.getResumeEvaluationJobMethod) == null) { - DataLabelingServiceGrpc.getResumeEvaluationJobMethod = getResumeEvaluationJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResumeEvaluationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("ResumeEvaluationJob")) - .build(); - } - } - } - return getResumeEvaluationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteEvaluationJobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteEvaluationJob", - requestType = com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteEvaluationJobMethod() { - io.grpc.MethodDescriptor getDeleteEvaluationJobMethod; - if ((getDeleteEvaluationJobMethod = DataLabelingServiceGrpc.getDeleteEvaluationJobMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getDeleteEvaluationJobMethod = DataLabelingServiceGrpc.getDeleteEvaluationJobMethod) == null) { - DataLabelingServiceGrpc.getDeleteEvaluationJobMethod = getDeleteEvaluationJobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEvaluationJob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("DeleteEvaluationJob")) - .build(); - } - } - } - return getDeleteEvaluationJobMethod; - } - - private static volatile io.grpc.MethodDescriptor getListEvaluationJobsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListEvaluationJobs", - requestType = com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.class, - responseType = com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListEvaluationJobsMethod() { - io.grpc.MethodDescriptor getListEvaluationJobsMethod; - if ((getListEvaluationJobsMethod = DataLabelingServiceGrpc.getListEvaluationJobsMethod) == null) { - synchronized (DataLabelingServiceGrpc.class) { - if ((getListEvaluationJobsMethod = DataLabelingServiceGrpc.getListEvaluationJobsMethod) == null) { - DataLabelingServiceGrpc.getListEvaluationJobsMethod = getListEvaluationJobsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEvaluationJobs")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.getDefaultInstance())) - .setSchemaDescriptor(new DataLabelingServiceMethodDescriptorSupplier("ListEvaluationJobs")) - .build(); - } - } - } - return getListEvaluationJobsMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static DataLabelingServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataLabelingServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataLabelingServiceStub(channel, callOptions); - } - }; - return DataLabelingServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DataLabelingServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataLabelingServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataLabelingServiceBlockingStub(channel, callOptions); - } - }; - return DataLabelingServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static DataLabelingServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataLabelingServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataLabelingServiceFutureStub(channel, callOptions); - } - }; - return DataLabelingServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service for the AI Platform Data Labeling API.
-   * 
- */ - public static abstract class DataLabelingServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Creates dataset. If success return a Dataset resource.
-     * 
- */ - public void createDataset(com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDatasetMethod(), responseObserver); - } - - /** - *
-     * Gets dataset by resource name.
-     * 
- */ - public void getDataset(com.google.cloud.datalabeling.v1beta1.GetDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDatasetMethod(), responseObserver); - } - - /** - *
-     * Lists datasets under a project. Pagination is supported.
-     * 
- */ - public void listDatasets(com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDatasetsMethod(), responseObserver); - } - - /** - *
-     * Deletes a dataset by resource name.
-     * 
- */ - public void deleteDataset(com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDatasetMethod(), responseObserver); - } - - /** - *
-     * Imports data into dataset based on source locations defined in request.
-     * It can be called multiple times for the same dataset. Each dataset can
-     * only have one long running operation running on it. For example, no
-     * labeling task (also long running operation) can be started while
-     * importing is still ongoing. Vice versa.
-     * 
- */ - public void importData(com.google.cloud.datalabeling.v1beta1.ImportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getImportDataMethod(), responseObserver); - } - - /** - *
-     * Exports data and annotations from dataset.
-     * 
- */ - public void exportData(com.google.cloud.datalabeling.v1beta1.ExportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExportDataMethod(), responseObserver); - } - - /** - *
-     * Gets a data item in a dataset by resource name. This API can be
-     * called after data are imported into dataset.
-     * 
- */ - public void getDataItem(com.google.cloud.datalabeling.v1beta1.GetDataItemRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDataItemMethod(), responseObserver); - } - - /** - *
-     * Lists data items in a dataset. This API can be called after data
-     * are imported into dataset. Pagination is supported.
-     * 
- */ - public void listDataItems(com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDataItemsMethod(), responseObserver); - } - - /** - *
-     * Gets an annotated dataset by resource name.
-     * 
- */ - public void getAnnotatedDataset(com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAnnotatedDatasetMethod(), responseObserver); - } - - /** - *
-     * Lists annotated datasets for a dataset. Pagination is supported.
-     * 
- */ - public void listAnnotatedDatasets(com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAnnotatedDatasetsMethod(), responseObserver); - } - - /** - *
-     * Deletes an annotated dataset by resource name.
-     * 
- */ - public void deleteAnnotatedDataset(com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAnnotatedDatasetMethod(), responseObserver); - } - - /** - *
-     * Starts a labeling task for image. The type of image labeling task is
-     * configured by feature in the request.
-     * 
- */ - public void labelImage(com.google.cloud.datalabeling.v1beta1.LabelImageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLabelImageMethod(), responseObserver); - } - - /** - *
-     * Starts a labeling task for video. The type of video labeling task is
-     * configured by feature in the request.
-     * 
- */ - public void labelVideo(com.google.cloud.datalabeling.v1beta1.LabelVideoRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLabelVideoMethod(), responseObserver); - } - - /** - *
-     * Starts a labeling task for text. The type of text labeling task is
-     * configured by feature in the request.
-     * 
- */ - public void labelText(com.google.cloud.datalabeling.v1beta1.LabelTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLabelTextMethod(), responseObserver); - } - - /** - *
-     * Gets an example by resource name, including both data and annotation.
-     * 
- */ - public void getExample(com.google.cloud.datalabeling.v1beta1.GetExampleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetExampleMethod(), responseObserver); - } - - /** - *
-     * Lists examples in an annotated dataset. Pagination is supported.
-     * 
- */ - public void listExamples(com.google.cloud.datalabeling.v1beta1.ListExamplesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListExamplesMethod(), responseObserver); - } - - /** - *
-     * Creates an annotation spec set by providing a set of labels.
-     * 
- */ - public void createAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAnnotationSpecSetMethod(), responseObserver); - } - - /** - *
-     * Gets an annotation spec set by resource name.
-     * 
- */ - public void getAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAnnotationSpecSetMethod(), responseObserver); - } - - /** - *
-     * Lists annotation spec sets for a project. Pagination is supported.
-     * 
- */ - public void listAnnotationSpecSets(com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAnnotationSpecSetsMethod(), responseObserver); - } - - /** - *
-     * Deletes an annotation spec set by resource name.
-     * 
- */ - public void deleteAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAnnotationSpecSetMethod(), responseObserver); - } - - /** - *
-     * Creates an instruction for how data should be labeled.
-     * 
- */ - public void createInstruction(com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateInstructionMethod(), responseObserver); - } - - /** - *
-     * Gets an instruction by resource name.
-     * 
- */ - public void getInstruction(com.google.cloud.datalabeling.v1beta1.GetInstructionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetInstructionMethod(), responseObserver); - } - - /** - *
-     * Lists instructions for a project. Pagination is supported.
-     * 
- */ - public void listInstructions(com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListInstructionsMethod(), responseObserver); - } - - /** - *
-     * Deletes an instruction object by resource name.
-     * 
- */ - public void deleteInstruction(com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteInstructionMethod(), responseObserver); - } - - /** - *
-     * Gets an evaluation by resource name (to search, use
-     * [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
-     * 
- */ - public void getEvaluation(com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEvaluationMethod(), responseObserver); - } - - /** - *
-     * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
-     * 
- */ - public void searchEvaluations(com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchEvaluationsMethod(), responseObserver); - } - - /** - *
-     * Searches example comparisons from an evaluation. The return format is a
-     * list of example comparisons that show ground truth and prediction(s) for
-     * a single input. Search by providing an evaluation ID.
-     * 
- */ - public void searchExampleComparisons(com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchExampleComparisonsMethod(), responseObserver); - } - - /** - *
-     * Creates an evaluation job.
-     * 
- */ - public void createEvaluationJob(com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateEvaluationJobMethod(), responseObserver); - } - - /** - *
-     * Updates an evaluation job. You can only update certain fields of the job's
-     * [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: `humanAnnotationConfig.instruction`,
-     * `exampleCount`, and `exampleSamplePercentage`.
-     * If you want to change any other aspect of the evaluation job, you must
-     * delete the job and create a new one.
-     * 
- */ - public void updateEvaluationJob(com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateEvaluationJobMethod(), responseObserver); - } - - /** - *
-     * Gets an evaluation job by resource name.
-     * 
- */ - public void getEvaluationJob(com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEvaluationJobMethod(), responseObserver); - } - - /** - *
-     * Pauses an evaluation job. Pausing an evaluation job that is already in a
-     * `PAUSED` state is a no-op.
-     * 
- */ - public void pauseEvaluationJob(com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPauseEvaluationJobMethod(), responseObserver); - } - - /** - *
-     * Resumes a paused evaluation job. A deleted evaluation job can't be resumed.
-     * Resuming a running or scheduled evaluation job is a no-op.
-     * 
- */ - public void resumeEvaluationJob(com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResumeEvaluationJobMethod(), responseObserver); - } - - /** - *
-     * Stops and deletes an evaluation job.
-     * 
- */ - public void deleteEvaluationJob(com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteEvaluationJobMethod(), responseObserver); - } - - /** - *
-     * Lists all evaluation jobs within a project with possible filters.
-     * Pagination is supported.
-     * 
- */ - public void listEvaluationJobs(com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEvaluationJobsMethod(), 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.datalabeling.v1beta1.CreateDatasetRequest, - com.google.cloud.datalabeling.v1beta1.Dataset>( - this, METHODID_CREATE_DATASET))) - .addMethod( - getGetDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.GetDatasetRequest, - com.google.cloud.datalabeling.v1beta1.Dataset>( - this, METHODID_GET_DATASET))) - .addMethod( - getListDatasetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest, - com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse>( - this, METHODID_LIST_DATASETS))) - .addMethod( - getDeleteDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_DATASET))) - .addMethod( - getImportDataMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.ImportDataRequest, - com.google.longrunning.Operation>( - this, METHODID_IMPORT_DATA))) - .addMethod( - getExportDataMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.ExportDataRequest, - com.google.longrunning.Operation>( - this, METHODID_EXPORT_DATA))) - .addMethod( - getGetDataItemMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.GetDataItemRequest, - com.google.cloud.datalabeling.v1beta1.DataItem>( - this, METHODID_GET_DATA_ITEM))) - .addMethod( - getListDataItemsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest, - com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse>( - this, METHODID_LIST_DATA_ITEMS))) - .addMethod( - getGetAnnotatedDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest, - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset>( - this, METHODID_GET_ANNOTATED_DATASET))) - .addMethod( - getListAnnotatedDatasetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest, - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse>( - this, METHODID_LIST_ANNOTATED_DATASETS))) - .addMethod( - getDeleteAnnotatedDatasetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_ANNOTATED_DATASET))) - .addMethod( - getLabelImageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.LabelImageRequest, - com.google.longrunning.Operation>( - this, METHODID_LABEL_IMAGE))) - .addMethod( - getLabelVideoMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest, - com.google.longrunning.Operation>( - this, METHODID_LABEL_VIDEO))) - .addMethod( - getLabelTextMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.LabelTextRequest, - com.google.longrunning.Operation>( - this, METHODID_LABEL_TEXT))) - .addMethod( - getGetExampleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.GetExampleRequest, - com.google.cloud.datalabeling.v1beta1.Example>( - this, METHODID_GET_EXAMPLE))) - .addMethod( - getListExamplesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.ListExamplesRequest, - com.google.cloud.datalabeling.v1beta1.ListExamplesResponse>( - this, METHODID_LIST_EXAMPLES))) - .addMethod( - getCreateAnnotationSpecSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet>( - this, METHODID_CREATE_ANNOTATION_SPEC_SET))) - .addMethod( - getGetAnnotationSpecSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest, - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet>( - this, METHODID_GET_ANNOTATION_SPEC_SET))) - .addMethod( - getListAnnotationSpecSetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest, - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse>( - this, METHODID_LIST_ANNOTATION_SPEC_SETS))) - .addMethod( - getDeleteAnnotationSpecSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_ANNOTATION_SPEC_SET))) - .addMethod( - getCreateInstructionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest, - com.google.longrunning.Operation>( - this, METHODID_CREATE_INSTRUCTION))) - .addMethod( - getGetInstructionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.GetInstructionRequest, - com.google.cloud.datalabeling.v1beta1.Instruction>( - this, METHODID_GET_INSTRUCTION))) - .addMethod( - getListInstructionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest, - com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse>( - this, METHODID_LIST_INSTRUCTIONS))) - .addMethod( - getDeleteInstructionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_INSTRUCTION))) - .addMethod( - getGetEvaluationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest, - com.google.cloud.datalabeling.v1beta1.Evaluation>( - this, METHODID_GET_EVALUATION))) - .addMethod( - getSearchEvaluationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest, - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse>( - this, METHODID_SEARCH_EVALUATIONS))) - .addMethod( - getSearchExampleComparisonsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest, - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse>( - this, METHODID_SEARCH_EXAMPLE_COMPARISONS))) - .addMethod( - getCreateEvaluationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest, - com.google.cloud.datalabeling.v1beta1.EvaluationJob>( - this, METHODID_CREATE_EVALUATION_JOB))) - .addMethod( - getUpdateEvaluationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest, - com.google.cloud.datalabeling.v1beta1.EvaluationJob>( - this, METHODID_UPDATE_EVALUATION_JOB))) - .addMethod( - getGetEvaluationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest, - com.google.cloud.datalabeling.v1beta1.EvaluationJob>( - this, METHODID_GET_EVALUATION_JOB))) - .addMethod( - getPauseEvaluationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest, - com.google.protobuf.Empty>( - this, METHODID_PAUSE_EVALUATION_JOB))) - .addMethod( - getResumeEvaluationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest, - com.google.protobuf.Empty>( - this, METHODID_RESUME_EVALUATION_JOB))) - .addMethod( - getDeleteEvaluationJobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_EVALUATION_JOB))) - .addMethod( - getListEvaluationJobsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest, - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse>( - this, METHODID_LIST_EVALUATION_JOBS))) - .build(); - } - } - - /** - *
-   * Service for the AI Platform Data Labeling API.
-   * 
- */ - public static final class DataLabelingServiceStub extends io.grpc.stub.AbstractAsyncStub { - private DataLabelingServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataLabelingServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataLabelingServiceStub(channel, callOptions); - } - - /** - *
-     * Creates dataset. If success return a Dataset resource.
-     * 
- */ - public void createDataset(com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets dataset by resource name.
-     * 
- */ - public void getDataset(com.google.cloud.datalabeling.v1beta1.GetDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists datasets under a project. Pagination is supported.
-     * 
- */ - public void listDatasets(com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a dataset by resource name.
-     * 
- */ - public void deleteDataset(com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Imports data into dataset based on source locations defined in request.
-     * It can be called multiple times for the same dataset. Each dataset can
-     * only have one long running operation running on it. For example, no
-     * labeling task (also long running operation) can be started while
-     * importing is still ongoing. Vice versa.
-     * 
- */ - public void importData(com.google.cloud.datalabeling.v1beta1.ImportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportDataMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Exports data and annotations from dataset.
-     * 
- */ - public void exportData(com.google.cloud.datalabeling.v1beta1.ExportDataRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportDataMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a data item in a dataset by resource name. This API can be
-     * called after data are imported into dataset.
-     * 
- */ - public void getDataItem(com.google.cloud.datalabeling.v1beta1.GetDataItemRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDataItemMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists data items in a dataset. This API can be called after data
-     * are imported into dataset. Pagination is supported.
-     * 
- */ - public void listDataItems(com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDataItemsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets an annotated dataset by resource name.
-     * 
- */ - public void getAnnotatedDataset(com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAnnotatedDatasetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists annotated datasets for a dataset. Pagination is supported.
-     * 
- */ - public void listAnnotatedDatasets(com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAnnotatedDatasetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes an annotated dataset by resource name.
-     * 
- */ - public void deleteAnnotatedDataset(com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAnnotatedDatasetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Starts a labeling task for image. The type of image labeling task is
-     * configured by feature in the request.
-     * 
- */ - public void labelImage(com.google.cloud.datalabeling.v1beta1.LabelImageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLabelImageMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Starts a labeling task for video. The type of video labeling task is
-     * configured by feature in the request.
-     * 
- */ - public void labelVideo(com.google.cloud.datalabeling.v1beta1.LabelVideoRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLabelVideoMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Starts a labeling task for text. The type of text labeling task is
-     * configured by feature in the request.
-     * 
- */ - public void labelText(com.google.cloud.datalabeling.v1beta1.LabelTextRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLabelTextMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets an example by resource name, including both data and annotation.
-     * 
- */ - public void getExample(com.google.cloud.datalabeling.v1beta1.GetExampleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetExampleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists examples in an annotated dataset. Pagination is supported.
-     * 
- */ - public void listExamples(com.google.cloud.datalabeling.v1beta1.ListExamplesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListExamplesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates an annotation spec set by providing a set of labels.
-     * 
- */ - public void createAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAnnotationSpecSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets an annotation spec set by resource name.
-     * 
- */ - public void getAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAnnotationSpecSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists annotation spec sets for a project. Pagination is supported.
-     * 
- */ - public void listAnnotationSpecSets(com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAnnotationSpecSetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes an annotation spec set by resource name.
-     * 
- */ - public void deleteAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAnnotationSpecSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates an instruction for how data should be labeled.
-     * 
- */ - public void createInstruction(com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateInstructionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets an instruction by resource name.
-     * 
- */ - public void getInstruction(com.google.cloud.datalabeling.v1beta1.GetInstructionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetInstructionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists instructions for a project. Pagination is supported.
-     * 
- */ - public void listInstructions(com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListInstructionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes an instruction object by resource name.
-     * 
- */ - public void deleteInstruction(com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteInstructionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets an evaluation by resource name (to search, use
-     * [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
-     * 
- */ - public void getEvaluation(com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEvaluationMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
-     * 
- */ - public void searchEvaluations(com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchEvaluationsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Searches example comparisons from an evaluation. The return format is a
-     * list of example comparisons that show ground truth and prediction(s) for
-     * a single input. Search by providing an evaluation ID.
-     * 
- */ - public void searchExampleComparisons(com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchExampleComparisonsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates an evaluation job.
-     * 
- */ - public void createEvaluationJob(com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateEvaluationJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an evaluation job. You can only update certain fields of the job's
-     * [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: `humanAnnotationConfig.instruction`,
-     * `exampleCount`, and `exampleSamplePercentage`.
-     * If you want to change any other aspect of the evaluation job, you must
-     * delete the job and create a new one.
-     * 
- */ - public void updateEvaluationJob(com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateEvaluationJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets an evaluation job by resource name.
-     * 
- */ - public void getEvaluationJob(com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEvaluationJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Pauses an evaluation job. Pausing an evaluation job that is already in a
-     * `PAUSED` state is a no-op.
-     * 
- */ - public void pauseEvaluationJob(com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPauseEvaluationJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Resumes a paused evaluation job. A deleted evaluation job can't be resumed.
-     * Resuming a running or scheduled evaluation job is a no-op.
-     * 
- */ - public void resumeEvaluationJob(com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getResumeEvaluationJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Stops and deletes an evaluation job.
-     * 
- */ - public void deleteEvaluationJob(com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteEvaluationJobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists all evaluation jobs within a project with possible filters.
-     * Pagination is supported.
-     * 
- */ - public void listEvaluationJobs(com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListEvaluationJobsMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Service for the AI Platform Data Labeling API.
-   * 
- */ - public static final class DataLabelingServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private DataLabelingServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataLabelingServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataLabelingServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Creates dataset. If success return a Dataset resource.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.Dataset createDataset(com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDatasetMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets dataset by resource name.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.Dataset getDataset(com.google.cloud.datalabeling.v1beta1.GetDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDatasetMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists datasets under a project. Pagination is supported.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse listDatasets(com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDatasetsMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a dataset by resource name.
-     * 
- */ - public com.google.protobuf.Empty deleteDataset(com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDatasetMethod(), getCallOptions(), request); - } - - /** - *
-     * Imports data into dataset based on source locations defined in request.
-     * It can be called multiple times for the same dataset. Each dataset can
-     * only have one long running operation running on it. For example, no
-     * labeling task (also long running operation) can be started while
-     * importing is still ongoing. Vice versa.
-     * 
- */ - public com.google.longrunning.Operation importData(com.google.cloud.datalabeling.v1beta1.ImportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getImportDataMethod(), getCallOptions(), request); - } - - /** - *
-     * Exports data and annotations from dataset.
-     * 
- */ - public com.google.longrunning.Operation exportData(com.google.cloud.datalabeling.v1beta1.ExportDataRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportDataMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a data item in a dataset by resource name. This API can be
-     * called after data are imported into dataset.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.DataItem getDataItem(com.google.cloud.datalabeling.v1beta1.GetDataItemRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDataItemMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists data items in a dataset. This API can be called after data
-     * are imported into dataset. Pagination is supported.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse listDataItems(com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDataItemsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets an annotated dataset by resource name.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset getAnnotatedDataset(com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAnnotatedDatasetMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists annotated datasets for a dataset. Pagination is supported.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse listAnnotatedDatasets(com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAnnotatedDatasetsMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes an annotated dataset by resource name.
-     * 
- */ - public com.google.protobuf.Empty deleteAnnotatedDataset(com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAnnotatedDatasetMethod(), getCallOptions(), request); - } - - /** - *
-     * Starts a labeling task for image. The type of image labeling task is
-     * configured by feature in the request.
-     * 
- */ - public com.google.longrunning.Operation labelImage(com.google.cloud.datalabeling.v1beta1.LabelImageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLabelImageMethod(), getCallOptions(), request); - } - - /** - *
-     * Starts a labeling task for video. The type of video labeling task is
-     * configured by feature in the request.
-     * 
- */ - public com.google.longrunning.Operation labelVideo(com.google.cloud.datalabeling.v1beta1.LabelVideoRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLabelVideoMethod(), getCallOptions(), request); - } - - /** - *
-     * Starts a labeling task for text. The type of text labeling task is
-     * configured by feature in the request.
-     * 
- */ - public com.google.longrunning.Operation labelText(com.google.cloud.datalabeling.v1beta1.LabelTextRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLabelTextMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets an example by resource name, including both data and annotation.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.Example getExample(com.google.cloud.datalabeling.v1beta1.GetExampleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetExampleMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists examples in an annotated dataset. Pagination is supported.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.ListExamplesResponse listExamples(com.google.cloud.datalabeling.v1beta1.ListExamplesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListExamplesMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates an annotation spec set by providing a set of labels.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet createAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateAnnotationSpecSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets an annotation spec set by resource name.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAnnotationSpecSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists annotation spec sets for a project. Pagination is supported.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse listAnnotationSpecSets(com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAnnotationSpecSetsMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes an annotation spec set by resource name.
-     * 
- */ - public com.google.protobuf.Empty deleteAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAnnotationSpecSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates an instruction for how data should be labeled.
-     * 
- */ - public com.google.longrunning.Operation createInstruction(com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateInstructionMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets an instruction by resource name.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.Instruction getInstruction(com.google.cloud.datalabeling.v1beta1.GetInstructionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetInstructionMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists instructions for a project. Pagination is supported.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse listInstructions(com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListInstructionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes an instruction object by resource name.
-     * 
- */ - public com.google.protobuf.Empty deleteInstruction(com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteInstructionMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets an evaluation by resource name (to search, use
-     * [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.Evaluation getEvaluation(com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEvaluationMethod(), getCallOptions(), request); - } - - /** - *
-     * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse searchEvaluations(com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchEvaluationsMethod(), getCallOptions(), request); - } - - /** - *
-     * Searches example comparisons from an evaluation. The return format is a
-     * list of example comparisons that show ground truth and prediction(s) for
-     * a single input. Search by providing an evaluation ID.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse searchExampleComparisons(com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchExampleComparisonsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates an evaluation job.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.EvaluationJob createEvaluationJob(com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateEvaluationJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an evaluation job. You can only update certain fields of the job's
-     * [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: `humanAnnotationConfig.instruction`,
-     * `exampleCount`, and `exampleSamplePercentage`.
-     * If you want to change any other aspect of the evaluation job, you must
-     * delete the job and create a new one.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.EvaluationJob updateEvaluationJob(com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateEvaluationJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets an evaluation job by resource name.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.EvaluationJob getEvaluationJob(com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEvaluationJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Pauses an evaluation job. Pausing an evaluation job that is already in a
-     * `PAUSED` state is a no-op.
-     * 
- */ - public com.google.protobuf.Empty pauseEvaluationJob(com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPauseEvaluationJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Resumes a paused evaluation job. A deleted evaluation job can't be resumed.
-     * Resuming a running or scheduled evaluation job is a no-op.
-     * 
- */ - public com.google.protobuf.Empty resumeEvaluationJob(com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getResumeEvaluationJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Stops and deletes an evaluation job.
-     * 
- */ - public com.google.protobuf.Empty deleteEvaluationJob(com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteEvaluationJobMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists all evaluation jobs within a project with possible filters.
-     * Pagination is supported.
-     * 
- */ - public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse listEvaluationJobs(com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEvaluationJobsMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Service for the AI Platform Data Labeling API.
-   * 
- */ - public static final class DataLabelingServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private DataLabelingServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataLabelingServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataLabelingServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Creates dataset. If success return a Dataset resource.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createDataset( - com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDatasetMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets dataset by resource name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getDataset( - com.google.cloud.datalabeling.v1beta1.GetDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDatasetMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists datasets under a project. Pagination is supported.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listDatasets( - com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDatasetsMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a dataset by resource name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteDataset( - com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDatasetMethod(), getCallOptions()), request); - } - - /** - *
-     * Imports data into dataset based on source locations defined in request.
-     * It can be called multiple times for the same dataset. Each dataset can
-     * only have one long running operation running on it. For example, no
-     * labeling task (also long running operation) can be started while
-     * importing is still ongoing. Vice versa.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture importData( - com.google.cloud.datalabeling.v1beta1.ImportDataRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getImportDataMethod(), getCallOptions()), request); - } - - /** - *
-     * Exports data and annotations from dataset.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture exportData( - com.google.cloud.datalabeling.v1beta1.ExportDataRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getExportDataMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a data item in a dataset by resource name. This API can be
-     * called after data are imported into dataset.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getDataItem( - com.google.cloud.datalabeling.v1beta1.GetDataItemRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDataItemMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists data items in a dataset. This API can be called after data
-     * are imported into dataset. Pagination is supported.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listDataItems( - com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDataItemsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets an annotated dataset by resource name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getAnnotatedDataset( - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAnnotatedDatasetMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists annotated datasets for a dataset. Pagination is supported.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listAnnotatedDatasets( - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAnnotatedDatasetsMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes an annotated dataset by resource name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteAnnotatedDataset( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAnnotatedDatasetMethod(), getCallOptions()), request); - } - - /** - *
-     * Starts a labeling task for image. The type of image labeling task is
-     * configured by feature in the request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture labelImage( - com.google.cloud.datalabeling.v1beta1.LabelImageRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLabelImageMethod(), getCallOptions()), request); - } - - /** - *
-     * Starts a labeling task for video. The type of video labeling task is
-     * configured by feature in the request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture labelVideo( - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLabelVideoMethod(), getCallOptions()), request); - } - - /** - *
-     * Starts a labeling task for text. The type of text labeling task is
-     * configured by feature in the request.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture labelText( - com.google.cloud.datalabeling.v1beta1.LabelTextRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLabelTextMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets an example by resource name, including both data and annotation.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getExample( - com.google.cloud.datalabeling.v1beta1.GetExampleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetExampleMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists examples in an annotated dataset. Pagination is supported.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listExamples( - com.google.cloud.datalabeling.v1beta1.ListExamplesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListExamplesMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates an annotation spec set by providing a set of labels.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createAnnotationSpecSet( - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateAnnotationSpecSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets an annotation spec set by resource name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getAnnotationSpecSet( - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAnnotationSpecSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists annotation spec sets for a project. Pagination is supported.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listAnnotationSpecSets( - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAnnotationSpecSetsMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes an annotation spec set by resource name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteAnnotationSpecSet( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAnnotationSpecSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates an instruction for how data should be labeled.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createInstruction( - com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateInstructionMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets an instruction by resource name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getInstruction( - com.google.cloud.datalabeling.v1beta1.GetInstructionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetInstructionMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists instructions for a project. Pagination is supported.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listInstructions( - com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListInstructionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes an instruction object by resource name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteInstruction( - com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteInstructionMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets an evaluation by resource name (to search, use
-     * [projects.evaluations.search][google.cloud.datalabeling.v1beta1.DataLabelingService.SearchEvaluations]).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getEvaluation( - com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEvaluationMethod(), getCallOptions()), request); - } - - /** - *
-     * Searches [evaluations][google.cloud.datalabeling.v1beta1.Evaluation] within a project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture searchEvaluations( - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchEvaluationsMethod(), getCallOptions()), request); - } - - /** - *
-     * Searches example comparisons from an evaluation. The return format is a
-     * list of example comparisons that show ground truth and prediction(s) for
-     * a single input. Search by providing an evaluation ID.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture searchExampleComparisons( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchExampleComparisonsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates an evaluation job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createEvaluationJob( - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateEvaluationJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an evaluation job. You can only update certain fields of the job's
-     * [EvaluationJobConfig][google.cloud.datalabeling.v1beta1.EvaluationJobConfig]: `humanAnnotationConfig.instruction`,
-     * `exampleCount`, and `exampleSamplePercentage`.
-     * If you want to change any other aspect of the evaluation job, you must
-     * delete the job and create a new one.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateEvaluationJob( - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateEvaluationJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets an evaluation job by resource name.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getEvaluationJob( - com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEvaluationJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Pauses an evaluation job. Pausing an evaluation job that is already in a
-     * `PAUSED` state is a no-op.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture pauseEvaluationJob( - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPauseEvaluationJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Resumes a paused evaluation job. A deleted evaluation job can't be resumed.
-     * Resuming a running or scheduled evaluation job is a no-op.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture resumeEvaluationJob( - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getResumeEvaluationJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Stops and deletes an evaluation job.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteEvaluationJob( - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteEvaluationJobMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists all evaluation jobs within a project with possible filters.
-     * Pagination is supported.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listEvaluationJobs( - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEvaluationJobsMethod(), 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_DELETE_DATASET = 3; - private static final int METHODID_IMPORT_DATA = 4; - private static final int METHODID_EXPORT_DATA = 5; - private static final int METHODID_GET_DATA_ITEM = 6; - private static final int METHODID_LIST_DATA_ITEMS = 7; - private static final int METHODID_GET_ANNOTATED_DATASET = 8; - private static final int METHODID_LIST_ANNOTATED_DATASETS = 9; - private static final int METHODID_DELETE_ANNOTATED_DATASET = 10; - private static final int METHODID_LABEL_IMAGE = 11; - private static final int METHODID_LABEL_VIDEO = 12; - private static final int METHODID_LABEL_TEXT = 13; - private static final int METHODID_GET_EXAMPLE = 14; - private static final int METHODID_LIST_EXAMPLES = 15; - private static final int METHODID_CREATE_ANNOTATION_SPEC_SET = 16; - private static final int METHODID_GET_ANNOTATION_SPEC_SET = 17; - private static final int METHODID_LIST_ANNOTATION_SPEC_SETS = 18; - private static final int METHODID_DELETE_ANNOTATION_SPEC_SET = 19; - private static final int METHODID_CREATE_INSTRUCTION = 20; - private static final int METHODID_GET_INSTRUCTION = 21; - private static final int METHODID_LIST_INSTRUCTIONS = 22; - private static final int METHODID_DELETE_INSTRUCTION = 23; - private static final int METHODID_GET_EVALUATION = 24; - private static final int METHODID_SEARCH_EVALUATIONS = 25; - private static final int METHODID_SEARCH_EXAMPLE_COMPARISONS = 26; - private static final int METHODID_CREATE_EVALUATION_JOB = 27; - private static final int METHODID_UPDATE_EVALUATION_JOB = 28; - private static final int METHODID_GET_EVALUATION_JOB = 29; - private static final int METHODID_PAUSE_EVALUATION_JOB = 30; - private static final int METHODID_RESUME_EVALUATION_JOB = 31; - private static final int METHODID_DELETE_EVALUATION_JOB = 32; - private static final int METHODID_LIST_EVALUATION_JOBS = 33; - - 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 DataLabelingServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(DataLabelingServiceImplBase 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.datalabeling.v1beta1.CreateDatasetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_DATASET: - serviceImpl.getDataset((com.google.cloud.datalabeling.v1beta1.GetDatasetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_DATASETS: - serviceImpl.listDatasets((com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_DATASET: - serviceImpl.deleteDataset((com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_IMPORT_DATA: - serviceImpl.importData((com.google.cloud.datalabeling.v1beta1.ImportDataRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_EXPORT_DATA: - serviceImpl.exportData((com.google.cloud.datalabeling.v1beta1.ExportDataRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_DATA_ITEM: - serviceImpl.getDataItem((com.google.cloud.datalabeling.v1beta1.GetDataItemRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_DATA_ITEMS: - serviceImpl.listDataItems((com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ANNOTATED_DATASET: - serviceImpl.getAnnotatedDataset((com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ANNOTATED_DATASETS: - serviceImpl.listAnnotatedDatasets((com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_ANNOTATED_DATASET: - serviceImpl.deleteAnnotatedDataset((com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LABEL_IMAGE: - serviceImpl.labelImage((com.google.cloud.datalabeling.v1beta1.LabelImageRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LABEL_VIDEO: - serviceImpl.labelVideo((com.google.cloud.datalabeling.v1beta1.LabelVideoRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LABEL_TEXT: - serviceImpl.labelText((com.google.cloud.datalabeling.v1beta1.LabelTextRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_EXAMPLE: - serviceImpl.getExample((com.google.cloud.datalabeling.v1beta1.GetExampleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_EXAMPLES: - serviceImpl.listExamples((com.google.cloud.datalabeling.v1beta1.ListExamplesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_ANNOTATION_SPEC_SET: - serviceImpl.createAnnotationSpecSet((com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ANNOTATION_SPEC_SET: - serviceImpl.getAnnotationSpecSet((com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ANNOTATION_SPEC_SETS: - serviceImpl.listAnnotationSpecSets((com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_ANNOTATION_SPEC_SET: - serviceImpl.deleteAnnotationSpecSet((com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_INSTRUCTION: - serviceImpl.createInstruction((com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_INSTRUCTION: - serviceImpl.getInstruction((com.google.cloud.datalabeling.v1beta1.GetInstructionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_INSTRUCTIONS: - serviceImpl.listInstructions((com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_INSTRUCTION: - serviceImpl.deleteInstruction((com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_EVALUATION: - serviceImpl.getEvaluation((com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEARCH_EVALUATIONS: - serviceImpl.searchEvaluations((com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEARCH_EXAMPLE_COMPARISONS: - serviceImpl.searchExampleComparisons((com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_EVALUATION_JOB: - serviceImpl.createEvaluationJob((com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_EVALUATION_JOB: - serviceImpl.updateEvaluationJob((com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_EVALUATION_JOB: - serviceImpl.getEvaluationJob((com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PAUSE_EVALUATION_JOB: - serviceImpl.pauseEvaluationJob((com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RESUME_EVALUATION_JOB: - serviceImpl.resumeEvaluationJob((com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_EVALUATION_JOB: - serviceImpl.deleteEvaluationJob((com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_EVALUATION_JOBS: - serviceImpl.listEvaluationJobs((com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) 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 DataLabelingServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DataLabelingServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("DataLabelingService"); - } - } - - private static final class DataLabelingServiceFileDescriptorSupplier - extends DataLabelingServiceBaseDescriptorSupplier { - DataLabelingServiceFileDescriptorSupplier() {} - } - - private static final class DataLabelingServiceMethodDescriptorSupplier - extends DataLabelingServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - DataLabelingServiceMethodDescriptorSupplier(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 (DataLabelingServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DataLabelingServiceFileDescriptorSupplier()) - .addMethod(getCreateDatasetMethod()) - .addMethod(getGetDatasetMethod()) - .addMethod(getListDatasetsMethod()) - .addMethod(getDeleteDatasetMethod()) - .addMethod(getImportDataMethod()) - .addMethod(getExportDataMethod()) - .addMethod(getGetDataItemMethod()) - .addMethod(getListDataItemsMethod()) - .addMethod(getGetAnnotatedDatasetMethod()) - .addMethod(getListAnnotatedDatasetsMethod()) - .addMethod(getDeleteAnnotatedDatasetMethod()) - .addMethod(getLabelImageMethod()) - .addMethod(getLabelVideoMethod()) - .addMethod(getLabelTextMethod()) - .addMethod(getGetExampleMethod()) - .addMethod(getListExamplesMethod()) - .addMethod(getCreateAnnotationSpecSetMethod()) - .addMethod(getGetAnnotationSpecSetMethod()) - .addMethod(getListAnnotationSpecSetsMethod()) - .addMethod(getDeleteAnnotationSpecSetMethod()) - .addMethod(getCreateInstructionMethod()) - .addMethod(getGetInstructionMethod()) - .addMethod(getListInstructionsMethod()) - .addMethod(getDeleteInstructionMethod()) - .addMethod(getGetEvaluationMethod()) - .addMethod(getSearchEvaluationsMethod()) - .addMethod(getSearchExampleComparisonsMethod()) - .addMethod(getCreateEvaluationJobMethod()) - .addMethod(getUpdateEvaluationJobMethod()) - .addMethod(getGetEvaluationJobMethod()) - .addMethod(getPauseEvaluationJobMethod()) - .addMethod(getResumeEvaluationJobMethod()) - .addMethod(getDeleteEvaluationJobMethod()) - .addMethod(getListEvaluationJobsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOuterClass.java deleted file mode 100644 index 310f4365..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOuterClass.java +++ /dev/null @@ -1,432 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/annotation.proto - -package com.google.cloud.datalabeling.v1beta1; - -public final class AnnotationOuterClass { - private AnnotationOuterClass() {} - 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_datalabeling_v1beta1_Annotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_Annotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_Vertex_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_Polyline_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_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/datalabeling/v1beta1/anno" + - "tation.proto\022!google.cloud.datalabeling." + - "v1beta1\032\034google/api/annotations.proto\032\031g" + - "oogle/api/resource.proto\032;google/cloud/d" + - "atalabeling/v1beta1/annotation_spec_set." + - "proto\032\036google/protobuf/duration.proto\"\342\002" + - "\n\nAnnotation\022\014\n\004name\030\001 \001(\t\022N\n\021annotation" + - "_source\030\002 \001(\01623.google.cloud.datalabelin" + - "g.v1beta1.AnnotationSource\022L\n\020annotation" + - "_value\030\003 \001(\01322.google.cloud.datalabeling" + - ".v1beta1.AnnotationValue\022R\n\023annotation_m" + - "etadata\030\004 \001(\01325.google.cloud.datalabelin" + - "g.v1beta1.AnnotationMetadata\022T\n\024annotati" + - "on_sentiment\030\006 \001(\01626.google.cloud.datala" + - "beling.v1beta1.AnnotationSentiment\"\321\007\n\017A" + - "nnotationValue\022k\n\037image_classification_a" + - "nnotation\030\001 \001(\0132@.google.cloud.datalabel" + - "ing.v1beta1.ImageClassificationAnnotatio" + - "nH\000\022h\n\036image_bounding_poly_annotation\030\002 " + - "\001(\0132>.google.cloud.datalabeling.v1beta1." + - "ImageBoundingPolyAnnotationH\000\022_\n\031image_p" + - "olyline_annotation\030\010 \001(\0132:.google.cloud." + - "datalabeling.v1beta1.ImagePolylineAnnota" + - "tionH\000\022g\n\035image_segmentation_annotation\030" + - "\t \001(\0132>.google.cloud.datalabeling.v1beta" + - "1.ImageSegmentationAnnotationH\000\022i\n\036text_" + - "classification_annotation\030\003 \001(\0132?.google" + - ".cloud.datalabeling.v1beta1.TextClassifi" + - "cationAnnotationH\000\022n\n!text_entity_extrac" + - "tion_annotation\030\n \001(\0132A.google.cloud.dat" + - "alabeling.v1beta1.TextEntityExtractionAn" + - "notationH\000\022k\n\037video_classification_annot" + - "ation\030\004 \001(\0132@.google.cloud.datalabeling." + - "v1beta1.VideoClassificationAnnotationH\000\022" + - "l\n video_object_tracking_annotation\030\005 \001(" + - "\0132@.google.cloud.datalabeling.v1beta1.Vi" + - "deoObjectTrackingAnnotationH\000\022Y\n\026video_e" + - "vent_annotation\030\006 \001(\01327.google.cloud.dat" + - "alabeling.v1beta1.VideoEventAnnotationH\000" + - "B\014\n\nvalue_type\"k\n\035ImageClassificationAnn" + - "otation\022J\n\017annotation_spec\030\001 \001(\01321.googl" + - "e.cloud.datalabeling.v1beta1.AnnotationS" + - "pec\"\036\n\006Vertex\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020N" + - "ormalizedVertex\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"K\n" + - "\014BoundingPoly\022;\n\010vertices\030\001 \003(\0132).google" + - ".cloud.datalabeling.v1beta1.Vertex\"j\n\026No" + - "rmalizedBoundingPoly\022P\n\023normalized_verti" + - "ces\030\001 \003(\01323.google.cloud.datalabeling.v1" + - "beta1.NormalizedVertex\"\242\002\n\033ImageBounding" + - "PolyAnnotation\022H\n\rbounding_poly\030\002 \001(\0132/." + - "google.cloud.datalabeling.v1beta1.Boundi" + - "ngPolyH\000\022]\n\030normalized_bounding_poly\030\003 \001" + - "(\01329.google.cloud.datalabeling.v1beta1.N" + - "ormalizedBoundingPolyH\000\022J\n\017annotation_sp" + - "ec\030\001 \001(\01321.google.cloud.datalabeling.v1b" + - "eta1.AnnotationSpecB\016\n\014bounded_area\"G\n\010P" + - "olyline\022;\n\010vertices\030\001 \003(\0132).google.cloud" + - ".datalabeling.v1beta1.Vertex\"f\n\022Normaliz" + - "edPolyline\022P\n\023normalized_vertices\030\001 \003(\0132" + - "3.google.cloud.datalabeling.v1beta1.Norm" + - "alizedVertex\"\204\002\n\027ImagePolylineAnnotation" + - "\022?\n\010polyline\030\002 \001(\0132+.google.cloud.datala" + - "beling.v1beta1.PolylineH\000\022T\n\023normalized_" + - "polyline\030\003 \001(\01325.google.cloud.datalabeli" + - "ng.v1beta1.NormalizedPolylineH\000\022J\n\017annot" + - "ation_spec\030\001 \001(\01321.google.cloud.datalabe" + - "ling.v1beta1.AnnotationSpecB\006\n\004poly\"\242\002\n\033" + - "ImageSegmentationAnnotation\022o\n\021annotatio" + - "n_colors\030\001 \003(\0132T.google.cloud.datalabeli" + - "ng.v1beta1.ImageSegmentationAnnotation.A" + - "nnotationColorsEntry\022\021\n\tmime_type\030\002 \001(\t\022" + - "\023\n\013image_bytes\030\003 \001(\014\032j\n\025AnnotationColors" + - "Entry\022\013\n\003key\030\001 \001(\t\022@\n\005value\030\002 \001(\01321.goog" + - "le.cloud.datalabeling.v1beta1.Annotation" + - "Spec:\0028\001\"j\n\034TextClassificationAnnotation" + - "\022J\n\017annotation_spec\030\001 \001(\01321.google.cloud" + - ".datalabeling.v1beta1.AnnotationSpec\"\276\001\n" + - "\036TextEntityExtractionAnnotation\022J\n\017annot" + - "ation_spec\030\001 \001(\01321.google.cloud.datalabe" + - "ling.v1beta1.AnnotationSpec\022P\n\022sequentia" + - "l_segment\030\002 \001(\01324.google.cloud.datalabel" + - "ing.v1beta1.SequentialSegment\"/\n\021Sequent" + - "ialSegment\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"w" + - "\n\013TimeSegment\0224\n\021start_time_offset\030\001 \001(\013" + - "2\031.google.protobuf.Duration\0222\n\017end_time_" + - "offset\030\002 \001(\0132\031.google.protobuf.Duration\"" + - "\261\001\n\035VideoClassificationAnnotation\022D\n\014tim" + - "e_segment\030\001 \001(\0132..google.cloud.datalabel" + - "ing.v1beta1.TimeSegment\022J\n\017annotation_sp" + - "ec\030\002 \001(\01321.google.cloud.datalabeling.v1b" + - "eta1.AnnotationSpec\"\376\001\n\023ObjectTrackingFr" + - "ame\022H\n\rbounding_poly\030\001 \001(\0132/.google.clou" + - "d.datalabeling.v1beta1.BoundingPolyH\000\022]\n" + - "\030normalized_bounding_poly\030\002 \001(\01329.google" + - ".cloud.datalabeling.v1beta1.NormalizedBo" + - "undingPolyH\000\022.\n\013time_offset\030\003 \001(\0132\031.goog" + - "le.protobuf.DurationB\016\n\014bounded_area\"\211\002\n" + - "\035VideoObjectTrackingAnnotation\022J\n\017annota" + - "tion_spec\030\001 \001(\01321.google.cloud.datalabel" + - "ing.v1beta1.AnnotationSpec\022D\n\014time_segme" + - "nt\030\002 \001(\0132..google.cloud.datalabeling.v1b" + - "eta1.TimeSegment\022V\n\026object_tracking_fram" + - "es\030\003 \003(\01326.google.cloud.datalabeling.v1b" + - "eta1.ObjectTrackingFrame\"\250\001\n\024VideoEventA" + - "nnotation\022J\n\017annotation_spec\030\001 \001(\01321.goo" + - "gle.cloud.datalabeling.v1beta1.Annotatio" + - "nSpec\022D\n\014time_segment\030\002 \001(\0132..google.clo" + - "ud.datalabeling.v1beta1.TimeSegment\"d\n\022A" + - "nnotationMetadata\022N\n\021operator_metadata\030\002" + - " \001(\01323.google.cloud.datalabeling.v1beta1" + - ".OperatorMetadata\"]\n\020OperatorMetadata\022\r\n" + - "\005score\030\001 \001(\002\022\023\n\013total_votes\030\002 \001(\005\022\023\n\013lab" + - "el_votes\030\003 \001(\005\022\020\n\010comments\030\004 \003(\t*C\n\020Anno" + - "tationSource\022!\n\035ANNOTATION_SOURCE_UNSPEC" + - "IFIED\020\000\022\014\n\010OPERATOR\020\003*W\n\023AnnotationSenti" + - "ment\022$\n ANNOTATION_SENTIMENT_UNSPECIFIED" + - "\020\000\022\014\n\010NEGATIVE\020\001\022\014\n\010POSITIVE\020\002*\221\004\n\016Annot" + - "ationType\022\037\n\033ANNOTATION_TYPE_UNSPECIFIED" + - "\020\000\022#\n\037IMAGE_CLASSIFICATION_ANNOTATION\020\001\022" + - "!\n\035IMAGE_BOUNDING_BOX_ANNOTATION\020\002\022*\n&IM" + - "AGE_ORIENTED_BOUNDING_BOX_ANNOTATION\020\r\022\"" + - "\n\036IMAGE_BOUNDING_POLY_ANNOTATION\020\n\022\035\n\031IM" + - "AGE_POLYLINE_ANNOTATION\020\013\022!\n\035IMAGE_SEGME" + - "NTATION_ANNOTATION\020\014\022)\n%VIDEO_SHOTS_CLAS" + - "SIFICATION_ANNOTATION\020\003\022$\n VIDEO_OBJECT_" + - "TRACKING_ANNOTATION\020\004\022%\n!VIDEO_OBJECT_DE" + - "TECTION_ANNOTATION\020\005\022\032\n\026VIDEO_EVENT_ANNO" + - "TATION\020\006\022\"\n\036TEXT_CLASSIFICATION_ANNOTATI" + - "ON\020\010\022%\n!TEXT_ENTITY_EXTRACTION_ANNOTATIO" + - "N\020\t\022%\n!GENERAL_CLASSIFICATION_ANNOTATION" + - "\020\016B\347\001\n%com.google.cloud.datalabeling.v1b" + - "eta1P\001ZMgoogle.golang.org/genproto/googl" + - "eapis/cloud/datalabeling/v1beta1;datalab" + - "eling\252\002!Google.Cloud.DataLabeling.V1Beta" + - "1\312\002!Google\\Cloud\\DataLabeling\\V1beta1\352\002$" + - "Google::Cloud::DataLabeling::V1beta1b\006pr" + - "oto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_google_cloud_datalabeling_v1beta1_Annotation_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_Annotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_Annotation_descriptor, - new java.lang.String[] { "Name", "AnnotationSource", "AnnotationValue", "AnnotationMetadata", "AnnotationSentiment", }); - internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor, - new java.lang.String[] { "ImageClassificationAnnotation", "ImageBoundingPolyAnnotation", "ImagePolylineAnnotation", "ImageSegmentationAnnotation", "TextClassificationAnnotation", "TextEntityExtractionAnnotation", "VideoClassificationAnnotation", "VideoObjectTrackingAnnotation", "VideoEventAnnotation", "ValueType", }); - internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor, - new java.lang.String[] { "AnnotationSpec", }); - internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datalabeling_v1beta1_Vertex_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor, - new java.lang.String[] { "X", "Y", }); - internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor, - new java.lang.String[] { "X", "Y", }); - internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor, - new java.lang.String[] { "Vertices", }); - internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor, - new java.lang.String[] { "NormalizedVertices", }); - internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor, - new java.lang.String[] { "BoundingPoly", "NormalizedBoundingPoly", "AnnotationSpec", "BoundedArea", }); - internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_datalabeling_v1beta1_Polyline_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor, - new java.lang.String[] { "Vertices", }); - internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor, - new java.lang.String[] { "NormalizedVertices", }); - internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor, - new java.lang.String[] { "Polyline", "NormalizedPolyline", "AnnotationSpec", "Poly", }); - internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor, - new java.lang.String[] { "AnnotationColors", "MimeType", "ImageBytes", }); - internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_descriptor = - internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor, - new java.lang.String[] { "AnnotationSpec", }); - internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor, - new java.lang.String[] { "AnnotationSpec", "SequentialSegment", }); - internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor, - new java.lang.String[] { "Start", "End", }); - internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor, - new java.lang.String[] { "StartTimeOffset", "EndTimeOffset", }); - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor, - new java.lang.String[] { "TimeSegment", "AnnotationSpec", }); - internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor, - new java.lang.String[] { "BoundingPoly", "NormalizedBoundingPoly", "TimeOffset", "BoundedArea", }); - internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor, - new java.lang.String[] { "AnnotationSpec", "TimeSegment", "ObjectTrackingFrames", }); - internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor, - new java.lang.String[] { "AnnotationSpec", "TimeSegment", }); - internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor, - new java.lang.String[] { "OperatorMetadata", }); - internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor, - new java.lang.String[] { "Score", "TotalVotes", "LabelVotes", "Comments", }); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOuterClass.java deleted file mode 100644 index 5eafd3b2..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOuterClass.java +++ /dev/null @@ -1,84 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/annotation_spec_set.proto - -package com.google.cloud.datalabeling.v1beta1; - -public final class AnnotationSpecSetOuterClass { - private AnnotationSpecSetOuterClass() {} - 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_datalabeling_v1beta1_AnnotationSpecSet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_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 = { - "\n;google/cloud/datalabeling/v1beta1/anno" + - "tation_spec_set.proto\022!google.cloud.data" + - "labeling.v1beta1\032\034google/api/annotations" + - ".proto\032\031google/api/resource.proto\"\246\002\n\021An" + - "notationSpecSet\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\022K\n\020anno" + - "tation_specs\030\004 \003(\01321.google.cloud.datala" + - "beling.v1beta1.AnnotationSpec\022\032\n\022blockin" + - "g_resources\030\005 \003(\t:o\352Al\n-datalabeling.goo" + - "gleapis.com/AnnotationSpecSet\022;projects/" + - "{project}/annotationSpecSets/{annotation" + - "_spec_set}\";\n\016AnnotationSpec\022\024\n\014display_" + - "name\030\001 \001(\t\022\023\n\013description\030\002 \001(\tB\347\001\n%com." + - "google.cloud.datalabeling.v1beta1P\001ZMgoo" + - "gle.golang.org/genproto/googleapis/cloud" + - "/datalabeling/v1beta1;datalabeling\252\002!Goo" + - "gle.Cloud.DataLabeling.V1Beta1\312\002!Google\\" + - "Cloud\\DataLabeling\\V1beta1\352\002$Google::Clo" + - "ud::DataLabeling::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Description", "AnnotationSpecs", "BlockingResources", }); - internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor, - new java.lang.String[] { "DisplayName", "Description", }); - 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.AnnotationsProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadataOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadataOrBuilder.java deleted file mode 100644 index e7c63ed1..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadataOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/dataset.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface ClassificationMetadataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ClassificationMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Whether the classification task is multi-label or not.
-   * 
- * - * bool is_multi_label = 1; - * @return The isMultiLabel. - */ - boolean getIsMultiLabel(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrixOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrixOrBuilder.java deleted file mode 100644 index 50cce9cc..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrixOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/evaluation.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface ConfusionMatrixOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ConfusionMatrix) - com.google.protobuf.MessageOrBuilder { - - /** - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; - */ - java.util.List - getRowList(); - /** - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; - */ - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row getRow(int index); - /** - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; - */ - int getRowCount(); - /** - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; - */ - java.util.List - getRowOrBuilderList(); - /** - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; - */ - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder getRowOrBuilder( - int index); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequestOrBuilder.java deleted file mode 100644 index 76f500aa..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface CreateDatasetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.CreateDatasetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Dataset resource parent, format:
-   * projects/{project_id}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Dataset resource parent, format:
-   * projects/{project_id}
-   * 
- * - * 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 be created.
-   * 
- * - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the dataset field is set. - */ - boolean hasDataset(); - /** - *
-   * Required. The dataset to be created.
-   * 
- * - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The dataset. - */ - com.google.cloud.datalabeling.v1beta1.Dataset getDataset(); - /** - *
-   * Required. The dataset to be created.
-   * 
- * - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetOrBuilder(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequestOrBuilder.java deleted file mode 100644 index 831810ae..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface CreateEvaluationJobRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Evaluation job resource parent. Format:
-   * "projects/<var>{project_id}</var>"
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Evaluation job resource parent. Format:
-   * "projects/<var>{project_id}</var>"
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The evaluation job to create.
-   * 
- * - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the job field is set. - */ - boolean hasJob(); - /** - *
-   * Required. The evaluation job to create.
-   * 
- * - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The job. - */ - com.google.cloud.datalabeling.v1beta1.EvaluationJob getJob(); - /** - *
-   * Required. The evaluation job to create.
-   * 
- * - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getJobOrBuilder(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequestOrBuilder.java deleted file mode 100644 index 33c8076e..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface CreateInstructionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.CreateInstructionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Instruction resource parent, format:
-   * projects/{project_id}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Instruction resource parent, format:
-   * projects/{project_id}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. Instruction of how to perform the labeling task.
-   * 
- * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the instruction field is set. - */ - boolean hasInstruction(); - /** - *
-   * Required. Instruction of how to perform the labeling task.
-   * 
- * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The instruction. - */ - com.google.cloud.datalabeling.v1beta1.Instruction getInstruction(); - /** - *
-   * Required. Instruction of how to perform the labeling task.
-   * 
- * - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstructionOrBuilder(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstructionOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstructionOrBuilder.java deleted file mode 100644 index 8110a725..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstructionOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/instruction.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface CsvInstructionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.CsvInstruction) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * CSV file for the instruction. Only gcs path is allowed.
-   * 
- * - * string gcs_file_uri = 1; - * @return The gcsFileUri. - */ - java.lang.String getGcsFileUri(); - /** - *
-   * CSV file for the instruction. Only gcs path is allowed.
-   * 
- * - * string gcs_file_uri = 1; - * @return The bytes for gcsFileUri. - */ - com.google.protobuf.ByteString - getGcsFileUriBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceOuterClass.java deleted file mode 100644 index af5ae428..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceOuterClass.java +++ /dev/null @@ -1,948 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public final class DataLabelingServiceOuterClass { - private DataLabelingServiceOuterClass() {} - 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_datalabeling_v1beta1_CreateDatasetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_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/datalabeling/v1beta1/data" + - "_labeling_service.proto\022!google.cloud.da" + - "talabeling.v1beta1\032\034google/api/annotatio" + - "ns.proto\032\027google/api/client.proto\032\037googl" + - "e/api/field_behavior.proto\032\031google/api/r" + - "esource.proto\032;google/cloud/datalabeling" + - "/v1beta1/annotation_spec_set.proto\032/goog" + - "le/cloud/datalabeling/v1beta1/dataset.pr" + - "oto\0322google/cloud/datalabeling/v1beta1/e" + - "valuation.proto\0326google/cloud/datalabeli" + - "ng/v1beta1/evaluation_job.proto\032?google/" + - "cloud/datalabeling/v1beta1/human_annotat" + - "ion_config.proto\0323google/cloud/datalabel" + - "ing/v1beta1/instruction.proto\032#google/lo" + - "ngrunning/operations.proto\032\033google/proto" + - "buf/empty.proto\032 google/protobuf/field_m" + - "ask.proto\"\235\001\n\024CreateDatasetRequest\022C\n\006pa" + - "rent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager" + - ".googleapis.com/Project\022@\n\007dataset\030\002 \001(\013" + - "2*.google.cloud.datalabeling.v1beta1.Dat" + - "asetB\003\340A\002\"N\n\021GetDatasetRequest\0229\n\004name\030\001" + - " \001(\tB+\340A\002\372A%\n#datalabeling.googleapis.co" + - "m/Dataset\"\240\001\n\023ListDatasetsRequest\022C\n\006par" + - "ent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager." + - "googleapis.com/Project\022\023\n\006filter\030\002 \001(\tB\003" + - "\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_toke" + - "n\030\004 \001(\tB\003\340A\001\"m\n\024ListDatasetsResponse\022<\n\010" + - "datasets\030\001 \003(\0132*.google.cloud.datalabeli" + - "ng.v1beta1.Dataset\022\027\n\017next_page_token\030\002 " + - "\001(\t\"Q\n\024DeleteDatasetRequest\0229\n\004name\030\001 \001(" + - "\tB+\340A\002\372A%\n#datalabeling.googleapis.com/D" + - "ataset\"\265\001\n\021ImportDataRequest\0229\n\004name\030\001 \001" + - "(\tB+\340A\002\372A%\n#datalabeling.googleapis.com/" + - "Dataset\022I\n\014input_config\030\002 \001(\0132..google.c" + - "loud.datalabeling.v1beta1.InputConfigB\003\340" + - "A\002\022\032\n\022user_email_address\030\003 \001(\t\"\235\002\n\021Expor" + - "tDataRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#data" + - "labeling.googleapis.com/Dataset\022O\n\021annot" + - "ated_dataset\030\002 \001(\tB4\340A\002\372A.\n,datalabeling" + - ".googleapis.com/AnnotatedDataset\022\023\n\006filt" + - "er\030\003 \001(\tB\003\340A\001\022K\n\routput_config\030\004 \001(\0132/.g" + - "oogle.cloud.datalabeling.v1beta1.OutputC" + - "onfigB\003\340A\002\022\032\n\022user_email_address\030\005 \001(\t\"P" + - "\n\022GetDataItemRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372" + - "A&\n$datalabeling.googleapis.com/DataItem" + - "\"\231\001\n\024ListDataItemsRequest\022;\n\006parent\030\001 \001(" + - "\tB+\340A\002\372A%\n#datalabeling.googleapis.com/D" + - "ataset\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size" + - "\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\"q\n\025" + - "ListDataItemsResponse\022?\n\ndata_items\030\001 \003(" + - "\0132+.google.cloud.datalabeling.v1beta1.Da" + - "taItem\022\027\n\017next_page_token\030\002 \001(\t\"`\n\032GetAn" + - "notatedDatasetRequest\022B\n\004name\030\001 \001(\tB4\340A\002" + - "\372A.\n,datalabeling.googleapis.com/Annotat" + - "edDataset\"\241\001\n\034ListAnnotatedDatasetsReque" + - "st\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#datalabeling" + - ".googleapis.com/Dataset\022\023\n\006filter\030\002 \001(\tB" + - "\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_tok" + - "en\030\004 \001(\tB\003\340A\001\"\211\001\n\035ListAnnotatedDatasetsR" + - "esponse\022O\n\022annotated_datasets\030\001 \003(\01323.go" + - "ogle.cloud.datalabeling.v1beta1.Annotate" + - "dDataset\022\027\n\017next_page_token\030\002 \001(\t\"c\n\035Del" + - "eteAnnotatedDatasetRequest\022B\n\004name\030\001 \001(\t" + - "B4\340A\002\372A.\n,datalabeling.googleapis.com/An" + - "notatedDataset\"\204\006\n\021LabelImageRequest\022c\n\033" + - "image_classification_config\030\004 \001(\0132<.goog" + - "le.cloud.datalabeling.v1beta1.ImageClass" + - "ificationConfigH\000\022U\n\024bounding_poly_confi" + - "g\030\005 \001(\01325.google.cloud.datalabeling.v1be" + - "ta1.BoundingPolyConfigH\000\022L\n\017polyline_con" + - "fig\030\006 \001(\01321.google.cloud.datalabeling.v1" + - "beta1.PolylineConfigH\000\022T\n\023segmentation_c" + - "onfig\030\007 \001(\01325.google.cloud.datalabeling." + - "v1beta1.SegmentationConfigH\000\022;\n\006parent\030\001" + - " \001(\tB+\340A\002\372A%\n#datalabeling.googleapis.co" + - "m/Dataset\022S\n\014basic_config\030\002 \001(\01328.google" + - ".cloud.datalabeling.v1beta1.HumanAnnotat" + - "ionConfigB\003\340A\002\022R\n\007feature\030\003 \001(\0162<.google" + - ".cloud.datalabeling.v1beta1.LabelImageRe" + - "quest.FeatureB\003\340A\002\"\226\001\n\007Feature\022\027\n\023FEATUR" + - "E_UNSPECIFIED\020\000\022\022\n\016CLASSIFICATION\020\001\022\020\n\014B" + - "OUNDING_BOX\020\002\022\031\n\025ORIENTED_BOUNDING_BOX\020\006" + - "\022\021\n\rBOUNDING_POLY\020\003\022\014\n\010POLYLINE\020\004\022\020\n\014SEG" + - "MENTATION\020\005B\020\n\016request_config\"\336\005\n\021LabelV" + - "ideoRequest\022c\n\033video_classification_conf" + - "ig\030\004 \001(\0132<.google.cloud.datalabeling.v1b" + - "eta1.VideoClassificationConfigH\000\022[\n\027obje" + - "ct_detection_config\030\005 \001(\01328.google.cloud" + - ".datalabeling.v1beta1.ObjectDetectionCon" + - "figH\000\022Y\n\026object_tracking_config\030\006 \001(\01327." + - "google.cloud.datalabeling.v1beta1.Object" + - "TrackingConfigH\000\022F\n\014event_config\030\007 \001(\0132." + - ".google.cloud.datalabeling.v1beta1.Event" + - "ConfigH\000\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#datala" + - "beling.googleapis.com/Dataset\022S\n\014basic_c" + - "onfig\030\002 \001(\01328.google.cloud.datalabeling." + - "v1beta1.HumanAnnotationConfigB\003\340A\002\022R\n\007fe" + - "ature\030\003 \001(\0162<.google.cloud.datalabeling." + - "v1beta1.LabelVideoRequest.FeatureB\003\340A\002\"l" + - "\n\007Feature\022\027\n\023FEATURE_UNSPECIFIED\020\000\022\022\n\016CL" + - "ASSIFICATION\020\001\022\024\n\020OBJECT_DETECTION\020\002\022\023\n\017" + - "OBJECT_TRACKING\020\003\022\t\n\005EVENT\020\004B\020\n\016request_" + - "config\"\255\004\n\020LabelTextRequest\022a\n\032text_clas" + - "sification_config\030\004 \001(\0132;.google.cloud.d" + - "atalabeling.v1beta1.TextClassificationCo" + - "nfigH\000\022f\n\035text_entity_extraction_config\030" + - "\005 \001(\0132=.google.cloud.datalabeling.v1beta" + - "1.TextEntityExtractionConfigH\000\022;\n\006parent" + - "\030\001 \001(\tB+\340A\002\372A%\n#datalabeling.googleapis." + - "com/Dataset\022S\n\014basic_config\030\002 \001(\01328.goog" + - "le.cloud.datalabeling.v1beta1.HumanAnnot" + - "ationConfigB\003\340A\002\022Q\n\007feature\030\006 \001(\0162;.goog" + - "le.cloud.datalabeling.v1beta1.LabelTextR" + - "equest.FeatureB\003\340A\002\"W\n\007Feature\022\027\n\023FEATUR" + - "E_UNSPECIFIED\020\000\022\027\n\023TEXT_CLASSIFICATION\020\001" + - "\022\032\n\026TEXT_ENTITY_EXTRACTION\020\002B\020\n\016request_" + - "config\"c\n\021GetExampleRequest\0229\n\004name\030\001 \001(" + - "\tB+\340A\002\372A%\n#datalabeling.googleapis.com/E" + - "xample\022\023\n\006filter\030\002 \001(\tB\003\340A\001\"\241\001\n\023ListExam" + - "plesRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,dat" + - "alabeling.googleapis.com/AnnotatedDatase" + - "t\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(" + - "\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\"m\n\024ListE" + - "xamplesResponse\022<\n\010examples\030\001 \003(\0132*.goog" + - "le.cloud.datalabeling.v1beta1.Example\022\027\n" + - "\017next_page_token\030\002 \001(\t\"\275\001\n\036CreateAnnotat" + - "ionSpecSetRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A" + - "-\n+cloudresourcemanager.googleapis.com/P" + - "roject\022V\n\023annotation_spec_set\030\002 \001(\01324.go" + - "ogle.cloud.datalabeling.v1beta1.Annotati" + - "onSpecSetB\003\340A\002\"b\n\033GetAnnotationSpecSetRe" + - "quest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-datalabelin" + - "g.googleapis.com/AnnotationSpecSet\"\252\001\n\035L" + - "istAnnotationSpecSetsRequest\022C\n\006parent\030\001" + - " \001(\tB3\340A\002\372A-\n+cloudresourcemanager.googl" + - "eapis.com/Project\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026" + - "\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001" + - "(\tB\003\340A\001\"\215\001\n\036ListAnnotationSpecSetsRespon" + - "se\022R\n\024annotation_spec_sets\030\001 \003(\01324.googl" + - "e.cloud.datalabeling.v1beta1.AnnotationS" + - "pecSet\022\027\n\017next_page_token\030\002 \001(\t\"e\n\036Delet" + - "eAnnotationSpecSetRequest\022C\n\004name\030\001 \001(\tB" + - "5\340A\002\372A/\n-datalabeling.googleapis.com/Ann" + - "otationSpecSet\"\251\001\n\030CreateInstructionRequ" + - "est\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresour" + - "cemanager.googleapis.com/Project\022H\n\013inst" + - "ruction\030\002 \001(\0132..google.cloud.datalabelin" + - "g.v1beta1.InstructionB\003\340A\002\"V\n\025GetInstruc" + - "tionRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'datal" + - "abeling.googleapis.com/Instruction\"Y\n\030De" + - "leteInstructionRequest\022=\n\004name\030\001 \001(\tB/\340A" + - "\002\372A)\n\'datalabeling.googleapis.com/Instru" + - "ction\"\244\001\n\027ListInstructionsRequest\022C\n\006par" + - "ent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager." + - "googleapis.com/Project\022\023\n\006filter\030\002 \001(\tB\003" + - "\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_toke" + - "n\030\004 \001(\tB\003\340A\001\"y\n\030ListInstructionsResponse" + - "\022D\n\014instructions\030\001 \003(\0132..google.cloud.da" + - "talabeling.v1beta1.Instruction\022\027\n\017next_p" + - "age_token\030\002 \001(\t\"T\n\024GetEvaluationRequest\022" + - "<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&datalabeling.goog" + - "leapis.com/Evaluation\"\240\001\n\030SearchEvaluati" + - "onsRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\n&data" + - "labeling.googleapis.com/Evaluation\022\023\n\006fi" + - "lter\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022" + - "\027\n\npage_token\030\004 \001(\tB\003\340A\001\"x\n\031SearchEvalua" + - "tionsResponse\022B\n\013evaluations\030\001 \003(\0132-.goo" + - "gle.cloud.datalabeling.v1beta1.Evaluatio" + - "n\022\027\n\017next_page_token\030\002 \001(\t\"\222\001\n\037SearchExa" + - "mpleComparisonsRequest\022>\n\006parent\030\001 \001(\tB." + - "\340A\002\372A(\n&datalabeling.googleapis.com/Eval" + - "uation\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_t" + - "oken\030\003 \001(\tB\003\340A\001\"\333\002\n SearchExampleCompari" + - "sonsResponse\022r\n\023example_comparisons\030\001 \003(" + - "\0132U.google.cloud.datalabeling.v1beta1.Se" + - "archExampleComparisonsResponse.ExampleCo" + - "mparison\022\027\n\017next_page_token\030\002 \001(\t\032\251\001\n\021Ex" + - "ampleComparison\022H\n\024ground_truth_example\030" + - "\001 \001(\0132*.google.cloud.datalabeling.v1beta" + - "1.Example\022J\n\026model_created_examples\030\002 \003(" + - "\0132*.google.cloud.datalabeling.v1beta1.Ex" + - "ample\"\245\001\n\032CreateEvaluationJobRequest\022C\n\006" + - "parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanag" + - "er.googleapis.com/Project\022B\n\003job\030\002 \001(\01320" + - ".google.cloud.datalabeling.v1beta1.Evalu" + - "ationJobB\003\340A\002\"\241\001\n\032UpdateEvaluationJobReq" + - "uest\022M\n\016evaluation_job\030\001 \001(\01320.google.cl" + - "oud.datalabeling.v1beta1.EvaluationJobB\003" + - "\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protob" + - "uf.FieldMaskB\003\340A\001\"Z\n\027GetEvaluationJobReq" + - "uest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)datalabeling" + - ".googleapis.com/EvaluationJob\"\\\n\031PauseEv" + - "aluationJobRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+" + - "\n)datalabeling.googleapis.com/Evaluation" + - "Job\"]\n\032ResumeEvaluationJobRequest\022?\n\004nam" + - "e\030\001 \001(\tB1\340A\002\372A+\n)datalabeling.googleapis" + - ".com/EvaluationJob\"]\n\032DeleteEvaluationJo" + - "bRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)datalabe" + - "ling.googleapis.com/EvaluationJob\"\246\001\n\031Li" + - "stEvaluationJobsRequest\022C\n\006parent\030\001 \001(\tB" + - "3\340A\002\372A-\n+cloudresourcemanager.googleapis" + - ".com/Project\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026\n\tpag" + - "e_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340" + - "A\001\"\200\001\n\032ListEvaluationJobsResponse\022I\n\017eva" + - "luation_jobs\030\001 \003(\01320.google.cloud.datala" + - "beling.v1beta1.EvaluationJob\022\027\n\017next_pag" + - "e_token\030\002 \001(\t2\2468\n\023DataLabelingService\022\267\001" + - "\n\rCreateDataset\0227.google.cloud.datalabel" + - "ing.v1beta1.CreateDatasetRequest\032*.googl" + - "e.cloud.datalabeling.v1beta1.Dataset\"A\202\323" + - "\344\223\002*\"%/v1beta1/{parent=projects/*}/datas" + - "ets:\001*\332A\016parent,dataset\022\244\001\n\nGetDataset\0224" + - ".google.cloud.datalabeling.v1beta1.GetDa" + - "tasetRequest\032*.google.cloud.datalabeling" + - ".v1beta1.Dataset\"4\202\323\344\223\002\'\022%/v1beta1/{name" + - "=projects/*/datasets/*}\332A\004name\022\276\001\n\014ListD" + - "atasets\0226.google.cloud.datalabeling.v1be" + - "ta1.ListDatasetsRequest\0327.google.cloud.d" + - "atalabeling.v1beta1.ListDatasetsResponse" + - "\"=\202\323\344\223\002\'\022%/v1beta1/{parent=projects/*}/d" + - "atasets\332A\rparent,filter\022\226\001\n\rDeleteDatase" + - "t\0227.google.cloud.datalabeling.v1beta1.De" + - "leteDatasetRequest\032\026.google.protobuf.Emp" + - "ty\"4\202\323\344\223\002\'*%/v1beta1/{name=projects/*/da" + - "tasets/*}\332A\004name\022\360\001\n\nImportData\0224.google" + - ".cloud.datalabeling.v1beta1.ImportDataRe" + - "quest\032\035.google.longrunning.Operation\"\214\001\202" + - "\323\344\223\0025\"0/v1beta1/{name=projects/*/dataset" + - "s/*}:importData:\001*\332A\021name,input_config\312A" + - ":\n\033ImportDataOperationResponse\022\033ImportDa" + - "taOperationMetadata\022\212\002\n\nExportData\0224.goo" + - "gle.cloud.datalabeling.v1beta1.ExportDat" + - "aRequest\032\035.google.longrunning.Operation\"" + - "\246\001\202\323\344\223\0025\"0/v1beta1/{name=projects/*/data" + - "sets/*}:exportData:\001*\332A+name,annotated_d" + - "ataset,filter,output_config\312A:\n\033ExportDa" + - "taOperationResponse\022\033ExportDataOperation" + - "Metadata\022\263\001\n\013GetDataItem\0225.google.cloud." + - "datalabeling.v1beta1.GetDataItemRequest\032" + - "+.google.cloud.datalabeling.v1beta1.Data" + - "Item\"@\202\323\344\223\0023\0221/v1beta1/{name=projects/*/" + - "datasets/*/dataItems/*}\332A\004name\022\315\001\n\rListD" + - "ataItems\0227.google.cloud.datalabeling.v1b" + - "eta1.ListDataItemsRequest\0328.google.cloud" + - ".datalabeling.v1beta1.ListDataItemsRespo" + - "nse\"I\202\323\344\223\0023\0221/v1beta1/{parent=projects/*" + - "/datasets/*}/dataItems\332A\rparent,filter\022\323" + - "\001\n\023GetAnnotatedDataset\022=.google.cloud.da" + - "talabeling.v1beta1.GetAnnotatedDatasetRe" + - "quest\0323.google.cloud.datalabeling.v1beta" + - "1.AnnotatedDataset\"H\202\323\344\223\002;\0229/v1beta1/{na" + - "me=projects/*/datasets/*/annotatedDatase" + - "ts/*}\332A\004name\022\355\001\n\025ListAnnotatedDatasets\022?" + - ".google.cloud.datalabeling.v1beta1.ListA" + - "nnotatedDatasetsRequest\032@.google.cloud.d" + - "atalabeling.v1beta1.ListAnnotatedDataset" + - "sResponse\"Q\202\323\344\223\002;\0229/v1beta1/{parent=proj" + - "ects/*/datasets/*}/annotatedDatasets\332A\rp" + - "arent,filter\022\265\001\n\026DeleteAnnotatedDataset\022" + - "@.google.cloud.datalabeling.v1beta1.Dele" + - "teAnnotatedDatasetRequest\032\026.google.proto" + - "buf.Empty\"A\202\323\344\223\002;*9/v1beta1/{name=projec" + - "ts/*/datasets/*/annotatedDatasets/*}\022\355\001\n" + - "\nLabelImage\0224.google.cloud.datalabeling." + - "v1beta1.LabelImageRequest\032\035.google.longr" + - "unning.Operation\"\211\001\202\323\344\223\0028\"3/v1beta1/{par" + - "ent=projects/*/datasets/*}/image:label:\001" + - "*\332A\033parent,basic_config,feature\312A*\n\020Anno" + - "tatedDataset\022\026LabelOperationMetadata\022\355\001\n" + - "\nLabelVideo\0224.google.cloud.datalabeling." + - "v1beta1.LabelVideoRequest\032\035.google.longr" + - "unning.Operation\"\211\001\202\323\344\223\0028\"3/v1beta1/{par" + - "ent=projects/*/datasets/*}/video:label:\001" + - "*\332A\033parent,basic_config,feature\312A*\n\020Anno" + - "tatedDataset\022\026LabelOperationMetadata\022\352\001\n" + - "\tLabelText\0223.google.cloud.datalabeling.v" + - "1beta1.LabelTextRequest\032\035.google.longrun" + - "ning.Operation\"\210\001\202\323\344\223\0027\"2/v1beta1/{paren" + - "t=projects/*/datasets/*}/text:label:\001*\332A" + - "\033parent,basic_config,feature\312A*\n\020Annotat" + - "edDataset\022\026LabelOperationMetadata\022\312\001\n\nGe" + - "tExample\0224.google.cloud.datalabeling.v1b" + - "eta1.GetExampleRequest\032*.google.cloud.da" + - "talabeling.v1beta1.Example\"Z\202\323\344\223\002F\022D/v1b" + - "eta1/{name=projects/*/datasets/*/annotat" + - "edDatasets/*/examples/*}\332A\013name,filter\022\335" + - "\001\n\014ListExamples\0226.google.cloud.datalabel" + - "ing.v1beta1.ListExamplesRequest\0327.google" + - ".cloud.datalabeling.v1beta1.ListExamples" + - "Response\"\\\202\323\344\223\002F\022D/v1beta1/{parent=proje" + - "cts/*/datasets/*/annotatedDatasets/*}/ex" + - "amples\332A\rparent,filter\022\353\001\n\027CreateAnnotat" + - "ionSpecSet\022A.google.cloud.datalabeling.v" + - "1beta1.CreateAnnotationSpecSetRequest\0324." + - "google.cloud.datalabeling.v1beta1.Annota" + - "tionSpecSet\"W\202\323\344\223\0024\"//v1beta1/{parent=pr" + - "ojects/*}/annotationSpecSets:\001*\332A\032parent" + - ",annotation_spec_set\022\314\001\n\024GetAnnotationSp" + - "ecSet\022>.google.cloud.datalabeling.v1beta" + - "1.GetAnnotationSpecSetRequest\0324.google.c" + - "loud.datalabeling.v1beta1.AnnotationSpec" + - "Set\">\202\323\344\223\0021\022//v1beta1/{name=projects/*/a" + - "nnotationSpecSets/*}\332A\004name\022\346\001\n\026ListAnno" + - "tationSpecSets\022@.google.cloud.datalabeli" + - "ng.v1beta1.ListAnnotationSpecSetsRequest" + - "\032A.google.cloud.datalabeling.v1beta1.Lis" + - "tAnnotationSpecSetsResponse\"G\202\323\344\223\0021\022//v1" + - "beta1/{parent=projects/*}/annotationSpec" + - "Sets\332A\rparent,filter\022\264\001\n\027DeleteAnnotatio" + - "nSpecSet\022A.google.cloud.datalabeling.v1b" + - "eta1.DeleteAnnotationSpecSetRequest\032\026.go" + - "ogle.protobuf.Empty\">\202\323\344\223\0021*//v1beta1/{n" + - "ame=projects/*/annotationSpecSets/*}\332A\004n" + - "ame\022\345\001\n\021CreateInstruction\022;.google.cloud" + - ".datalabeling.v1beta1.CreateInstructionR" + - "equest\032\035.google.longrunning.Operation\"t\202" + - "\323\344\223\002.\")/v1beta1/{parent=projects/*}/inst" + - "ructions:\001*\332A\022parent,instruction\312A(\n\013Ins" + - "truction\022\031CreateInstructionMetadata\022\264\001\n\016" + - "GetInstruction\0228.google.cloud.datalabeli" + - "ng.v1beta1.GetInstructionRequest\032..googl" + - "e.cloud.datalabeling.v1beta1.Instruction" + - "\"8\202\323\344\223\002+\022)/v1beta1/{name=projects/*/inst" + - "ructions/*}\332A\004name\022\316\001\n\020ListInstructions\022" + - ":.google.cloud.datalabeling.v1beta1.List" + - "InstructionsRequest\032;.google.cloud.datal" + - "abeling.v1beta1.ListInstructionsResponse" + - "\"A\202\323\344\223\002+\022)/v1beta1/{parent=projects/*}/i" + - "nstructions\332A\rparent,filter\022\242\001\n\021DeleteIn" + - "struction\022;.google.cloud.datalabeling.v1" + - "beta1.DeleteInstructionRequest\032\026.google." + - "protobuf.Empty\"8\202\323\344\223\002+*)/v1beta1/{name=p" + - "rojects/*/instructions/*}\332A\004name\022\273\001\n\rGet" + - "Evaluation\0227.google.cloud.datalabeling.v" + - "1beta1.GetEvaluationRequest\032-.google.clo" + - "ud.datalabeling.v1beta1.Evaluation\"B\202\323\344\223" + - "\0025\0223/v1beta1/{name=projects/*/datasets/*" + - "/evaluations/*}\332A\004name\022\327\001\n\021SearchEvaluat" + - "ions\022;.google.cloud.datalabeling.v1beta1" + - ".SearchEvaluationsRequest\032<.google.cloud" + - ".datalabeling.v1beta1.SearchEvaluationsR" + - "esponse\"G\202\323\344\223\0021\022//v1beta1/{parent=projec" + - "ts/*}/evaluations:search\332A\rparent,filter" + - "\022\210\002\n\030SearchExampleComparisons\022B.google.c" + - "loud.datalabeling.v1beta1.SearchExampleC" + - "omparisonsRequest\032C.google.cloud.datalab" + - "eling.v1beta1.SearchExampleComparisonsRe" + - "sponse\"c\202\323\344\223\002T\"O/v1beta1/{parent=project" + - "s/*/datasets/*/evaluations/*}/exampleCom" + - "parisons:search:\001*\332A\006parent\022\313\001\n\023CreateEv" + - "aluationJob\022=.google.cloud.datalabeling." + - "v1beta1.CreateEvaluationJobRequest\0320.goo" + - "gle.cloud.datalabeling.v1beta1.Evaluatio" + - "nJob\"C\202\323\344\223\0020\"+/v1beta1/{parent=projects/" + - "*}/evaluationJobs:\001*\332A\nparent,job\022\367\001\n\023Up" + - "dateEvaluationJob\022=.google.cloud.datalab" + - "eling.v1beta1.UpdateEvaluationJobRequest" + - "\0320.google.cloud.datalabeling.v1beta1.Eva" + - "luationJob\"o\202\323\344\223\002L2:/v1beta1/{evaluation" + - "_job.name=projects/*/evaluationJobs/*}:\016" + - "evaluation_job\332A\032evaluation_job,update_m" + - "ask\022\274\001\n\020GetEvaluationJob\022:.google.cloud." + - "datalabeling.v1beta1.GetEvaluationJobReq" + - "uest\0320.google.cloud.datalabeling.v1beta1" + - ".EvaluationJob\":\202\323\344\223\002-\022+/v1beta1/{name=p" + - "rojects/*/evaluationJobs/*}\332A\004name\022\257\001\n\022P" + - "auseEvaluationJob\022<.google.cloud.datalab" + - "eling.v1beta1.PauseEvaluationJobRequest\032" + - "\026.google.protobuf.Empty\"C\202\323\344\223\0026\"1/v1beta" + - "1/{name=projects/*/evaluationJobs/*}:pau" + - "se:\001*\332A\004name\022\262\001\n\023ResumeEvaluationJob\022=.g" + - "oogle.cloud.datalabeling.v1beta1.ResumeE" + - "valuationJobRequest\032\026.google.protobuf.Em" + - "pty\"D\202\323\344\223\0027\"2/v1beta1/{name=projects/*/e" + - "valuationJobs/*}:resume:\001*\332A\004name\022\250\001\n\023De" + - "leteEvaluationJob\022=.google.cloud.datalab" + - "eling.v1beta1.DeleteEvaluationJobRequest" + - "\032\026.google.protobuf.Empty\":\202\323\344\223\002-*+/v1bet" + - "a1/{name=projects/*/evaluationJobs/*}\332A\004" + - "name\022\326\001\n\022ListEvaluationJobs\022<.google.clo" + - "ud.datalabeling.v1beta1.ListEvaluationJo" + - "bsRequest\032=.google.cloud.datalabeling.v1" + - "beta1.ListEvaluationJobsResponse\"C\202\323\344\223\002-" + - "\022+/v1beta1/{parent=projects/*}/evaluatio" + - "nJobs\332A\rparent,filter\032O\312A\033datalabeling.g" + - "oogleapis.com\322A.https://www.googleapis.c" + - "om/auth/cloud-platformB\347\001\n%com.google.cl" + - "oud.datalabeling.v1beta1P\001ZMgoogle.golan" + - "g.org/genproto/googleapis/cloud/datalabe" + - "ling/v1beta1;datalabeling\252\002!Google.Cloud" + - ".DataLabeling.V1Beta1\312\002!Google\\Cloud\\Dat" + - "aLabeling\\V1beta1\352\002$Google::Cloud::DataL" + - "abeling::V1beta1b\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.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_descriptor, - new java.lang.String[] { "Parent", "Dataset", }); - internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); - internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor, - new java.lang.String[] { "Datasets", "NextPageToken", }); - internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor, - new java.lang.String[] { "Name", "InputConfig", "UserEmailAddress", }); - internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor, - new java.lang.String[] { "Name", "AnnotatedDataset", "Filter", "OutputConfig", "UserEmailAddress", }); - internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); - internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor, - new java.lang.String[] { "DataItems", "NextPageToken", }); - internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor, - new java.lang.String[] { "AnnotatedDatasets", "NextPageToken", }); - internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor, - new java.lang.String[] { "ImageClassificationConfig", "BoundingPolyConfig", "PolylineConfig", "SegmentationConfig", "Parent", "BasicConfig", "Feature", "RequestConfig", }); - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor, - new java.lang.String[] { "VideoClassificationConfig", "ObjectDetectionConfig", "ObjectTrackingConfig", "EventConfig", "Parent", "BasicConfig", "Feature", "RequestConfig", }); - internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor, - new java.lang.String[] { "TextClassificationConfig", "TextEntityExtractionConfig", "Parent", "BasicConfig", "Feature", "RequestConfig", }); - internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor, - new java.lang.String[] { "Name", "Filter", }); - internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); - internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor, - new java.lang.String[] { "Examples", "NextPageToken", }); - internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor, - new java.lang.String[] { "Parent", "AnnotationSpecSet", }); - internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor, - new java.lang.String[] { "AnnotationSpecSets", "NextPageToken", }); - internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor, - new java.lang.String[] { "Parent", "Instruction", }); - internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); - internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor, - new java.lang.String[] { "Instructions", "NextPageToken", }); - internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); - internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor, - new java.lang.String[] { "Evaluations", "NextPageToken", }); - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor, - new java.lang.String[] { "ExampleComparisons", "NextPageToken", }); - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor = - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor, - new java.lang.String[] { "GroundTruthExample", "ModelCreatedExamples", }); - internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor, - new java.lang.String[] { "Parent", "Job", }); - internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor, - new java.lang.String[] { "EvaluationJob", "UpdateMask", }); - internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor, - new java.lang.String[] { "Parent", "Filter", "PageSize", "PageToken", }); - internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor, - new java.lang.String[] { "EvaluationJobs", "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.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataPayloads.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataPayloads.java deleted file mode 100644 index 283ee9f2..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataPayloads.java +++ /dev/null @@ -1,105 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/data_payloads.proto - -package com.google.cloud.datalabeling.v1beta1; - -public final class DataPayloads { - private DataPayloads() {} - 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_datalabeling_v1beta1_ImagePayload_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_TextPayload_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n5google/cloud/datalabeling/v1beta1/data" + - "_payloads.proto\022!google.cloud.datalabeli" + - "ng.v1beta1\032\034google/api/annotations.proto" + - "\032\036google/protobuf/duration.proto\032\037google" + - "/protobuf/timestamp.proto\"a\n\014ImagePayloa" + - "d\022\021\n\tmime_type\030\001 \001(\t\022\027\n\017image_thumbnail\030" + - "\002 \001(\014\022\021\n\timage_uri\030\003 \001(\t\022\022\n\nsigned_uri\030\004" + - " \001(\t\"#\n\013TextPayload\022\024\n\014text_content\030\001 \001(" + - "\t\"S\n\016VideoThumbnail\022\021\n\tthumbnail\030\001 \001(\014\022." + - "\n\013time_offset\030\002 \001(\0132\031.google.protobuf.Du" + - "ration\"\251\001\n\014VideoPayload\022\021\n\tmime_type\030\001 \001" + - "(\t\022\021\n\tvideo_uri\030\002 \001(\t\022K\n\020video_thumbnail" + - "s\030\003 \003(\01321.google.cloud.datalabeling.v1be" + - "ta1.VideoThumbnail\022\022\n\nframe_rate\030\004 \001(\002\022\022" + - "\n\nsigned_uri\030\005 \001(\tB\347\001\n%com.google.cloud." + - "datalabeling.v1beta1P\001ZMgoogle.golang.or" + - "g/genproto/googleapis/cloud/datalabeling" + - "/v1beta1;datalabeling\252\002!Google.Cloud.Dat" + - "aLabeling.V1Beta1\312\002!Google\\Cloud\\DataLab" + - "eling\\V1beta1\352\002$Google::Cloud::DataLabel" + - "ing::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_descriptor, - new java.lang.String[] { "MimeType", "ImageThumbnail", "ImageUri", "SignedUri", }); - internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datalabeling_v1beta1_TextPayload_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor, - new java.lang.String[] { "TextContent", }); - internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor, - new java.lang.String[] { "Thumbnail", "TimeOffset", }); - internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor, - new java.lang.String[] { "MimeType", "VideoUri", "VideoThumbnails", "FrameRate", "SignedUri", }); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOuterClass.java deleted file mode 100644 index 4064dbca..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOuterClass.java +++ /dev/null @@ -1,337 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/dataset.proto - -package com.google.cloud.datalabeling.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_datalabeling_v1beta1_Dataset_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_Dataset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_InputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_GcsSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_DataItem_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelStats_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_Example_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/datalabeling/v1beta1/data" + - "set.proto\022!google.cloud.datalabeling.v1b" + - "eta1\032\034google/api/annotations.proto\032\031goog" + - "le/api/resource.proto\0322google/cloud/data" + - "labeling/v1beta1/annotation.proto\032;googl" + - "e/cloud/datalabeling/v1beta1/annotation_" + - "spec_set.proto\0325google/cloud/datalabelin" + - "g/v1beta1/data_payloads.proto\032?google/cl" + - "oud/datalabeling/v1beta1/human_annotatio" + - "n_config.proto\032\037google/protobuf/timestam" + - "p.proto\"\300\002\n\007Dataset\022\014\n\004name\030\001 \001(\t\022\024\n\014dis" + - "play_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022/\n\013" + - "create_time\030\004 \001(\0132\032.google.protobuf.Time" + - "stamp\022E\n\rinput_configs\030\005 \003(\0132..google.cl" + - "oud.datalabeling.v1beta1.InputConfig\022\032\n\022" + - "blocking_resources\030\006 \003(\t\022\027\n\017data_item_co" + - "unt\030\007 \001(\003:O\352AL\n#datalabeling.googleapis." + - "com/Dataset\022%projects/{project}/datasets" + - "/{dataset}\"\361\003\n\013InputConfig\022H\n\rtext_metad" + - "ata\030\006 \001(\0132/.google.cloud.datalabeling.v1" + - "beta1.TextMetadataH\000\022B\n\ngcs_source\030\002 \001(\013" + - "2,.google.cloud.datalabeling.v1beta1.Gcs" + - "SourceH\001\022L\n\017bigquery_source\030\005 \001(\01321.goog" + - "le.cloud.datalabeling.v1beta1.BigQuerySo" + - "urceH\001\022>\n\tdata_type\030\001 \001(\0162+.google.cloud" + - ".datalabeling.v1beta1.DataType\022J\n\017annota" + - "tion_type\030\003 \001(\01621.google.cloud.datalabel" + - "ing.v1beta1.AnnotationType\022Z\n\027classifica" + - "tion_metadata\030\004 \001(\01329.google.cloud.datal" + - "abeling.v1beta1.ClassificationMetadataB\024" + - "\n\022data_type_metadataB\010\n\006source\"%\n\014TextMe" + - "tadata\022\025\n\rlanguage_code\030\001 \001(\t\"0\n\026Classif" + - "icationMetadata\022\026\n\016is_multi_label\030\001 \001(\010\"" + - "1\n\tGcsSource\022\021\n\tinput_uri\030\001 \001(\t\022\021\n\tmime_" + - "type\030\002 \001(\t\"#\n\016BigQuerySource\022\021\n\tinput_ur" + - "i\030\001 \001(\t\"\306\001\n\014OutputConfig\022L\n\017gcs_destinat" + - "ion\030\001 \001(\01321.google.cloud.datalabeling.v1" + - "beta1.GcsDestinationH\000\022Y\n\026gcs_folder_des" + - "tination\030\002 \001(\01327.google.cloud.datalabeli" + - "ng.v1beta1.GcsFolderDestinationH\000B\r\n\013des" + - "tination\"7\n\016GcsDestination\022\022\n\noutput_uri" + - "\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\t\"1\n\024GcsFolderDe" + - "stination\022\031\n\021output_folder_uri\030\001 \001(\t\"\347\002\n" + - "\010DataItem\022H\n\rimage_payload\030\002 \001(\0132/.googl" + - "e.cloud.datalabeling.v1beta1.ImagePayloa" + - "dH\000\022F\n\014text_payload\030\003 \001(\0132..google.cloud" + - ".datalabeling.v1beta1.TextPayloadH\000\022H\n\rv" + - "ideo_payload\030\004 \001(\0132/.google.cloud.datala" + - "beling.v1beta1.VideoPayloadH\000\022\014\n\004name\030\001 " + - "\001(\t:f\352Ac\n$datalabeling.googleapis.com/Da" + - "taItem\022;projects/{project}/datasets/{dat" + - "aset}/dataItems/{data_item}B\t\n\007payload\"\377" + - "\004\n\020AnnotatedDataset\022\014\n\004name\030\001 \001(\t\022\024\n\014dis" + - "play_name\030\002 \001(\t\022\023\n\013description\030\t \001(\t\022N\n\021" + - "annotation_source\030\003 \001(\01623.google.cloud.d" + - "atalabeling.v1beta1.AnnotationSource\022J\n\017" + - "annotation_type\030\010 \001(\01621.google.cloud.dat" + - "alabeling.v1beta1.AnnotationType\022\025\n\rexam" + - "ple_count\030\004 \001(\003\022\037\n\027completed_example_cou" + - "nt\030\005 \001(\003\022B\n\013label_stats\030\006 \001(\0132-.google.c" + - "loud.datalabeling.v1beta1.LabelStats\022/\n\013" + - "create_time\030\007 \001(\0132\032.google.protobuf.Time" + - "stamp\022M\n\010metadata\030\n \001(\0132;.google.cloud.d" + - "atalabeling.v1beta1.AnnotatedDatasetMeta" + - "data\022\032\n\022blocking_resources\030\013 \003(\t:~\352A{\n,d" + - "atalabeling.googleapis.com/AnnotatedData" + - "set\022Kprojects/{project}/datasets/{datase" + - "t}/annotatedDatasets/{annotated_dataset}" + - "\"\231\001\n\nLabelStats\022V\n\rexample_count\030\001 \003(\0132?" + - ".google.cloud.datalabeling.v1beta1.Label" + - "Stats.ExampleCountEntry\0323\n\021ExampleCountE" + - "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\"\242\010\n" + - "\030AnnotatedDatasetMetadata\022c\n\033image_class" + - "ification_config\030\002 \001(\0132<.google.cloud.da" + - "talabeling.v1beta1.ImageClassificationCo" + - "nfigH\000\022U\n\024bounding_poly_config\030\003 \001(\01325.g" + - "oogle.cloud.datalabeling.v1beta1.Boundin" + - "gPolyConfigH\000\022L\n\017polyline_config\030\004 \001(\01321" + - ".google.cloud.datalabeling.v1beta1.Polyl" + - "ineConfigH\000\022T\n\023segmentation_config\030\005 \001(\013" + - "25.google.cloud.datalabeling.v1beta1.Seg" + - "mentationConfigH\000\022c\n\033video_classificatio" + - "n_config\030\006 \001(\0132<.google.cloud.datalabeli" + - "ng.v1beta1.VideoClassificationConfigH\000\022[" + - "\n\027object_detection_config\030\007 \001(\01328.google" + - ".cloud.datalabeling.v1beta1.ObjectDetect" + - "ionConfigH\000\022Y\n\026object_tracking_config\030\010 " + - "\001(\01327.google.cloud.datalabeling.v1beta1." + - "ObjectTrackingConfigH\000\022F\n\014event_config\030\t" + - " \001(\0132..google.cloud.datalabeling.v1beta1" + - ".EventConfigH\000\022a\n\032text_classification_co" + - "nfig\030\n \001(\0132;.google.cloud.datalabeling.v" + - "1beta1.TextClassificationConfigH\000\022f\n\035tex" + - "t_entity_extraction_config\030\013 \001(\0132=.googl" + - "e.cloud.datalabeling.v1beta1.TextEntityE" + - "xtractionConfigH\000\022Y\n\027human_annotation_co" + - "nfig\030\001 \001(\01328.google.cloud.datalabeling.v" + - "1beta1.HumanAnnotationConfigB\033\n\031annotati" + - "on_request_config\"\316\003\n\007Example\022H\n\rimage_p" + - "ayload\030\002 \001(\0132/.google.cloud.datalabeling" + - ".v1beta1.ImagePayloadH\000\022F\n\014text_payload\030" + - "\006 \001(\0132..google.cloud.datalabeling.v1beta" + - "1.TextPayloadH\000\022H\n\rvideo_payload\030\007 \001(\0132/" + - ".google.cloud.datalabeling.v1beta1.Video" + - "PayloadH\000\022\014\n\004name\030\001 \001(\t\022B\n\013annotations\030\005" + - " \003(\0132-.google.cloud.datalabeling.v1beta1" + - ".Annotation:\211\001\352A\205\001\n#datalabeling.googlea" + - "pis.com/Example\022^projects/{project}/data" + - "sets/{dataset}/annotatedDatasets/{annota" + - "ted_dataset}/examples/{example}B\t\n\007paylo" + - "ad*W\n\010DataType\022\031\n\025DATA_TYPE_UNSPECIFIED\020" + - "\000\022\t\n\005IMAGE\020\001\022\t\n\005VIDEO\020\002\022\010\n\004TEXT\020\004\022\020\n\014GEN" + - "ERAL_DATA\020\006B\347\001\n%com.google.cloud.datalab" + - "eling.v1beta1P\001ZMgoogle.golang.org/genpr" + - "oto/googleapis/cloud/datalabeling/v1beta" + - "1;datalabeling\252\002!Google.Cloud.DataLabeli" + - "ng.V1Beta1\312\002!Google\\Cloud\\DataLabeling\\V" + - "1beta1\352\002$Google::Cloud::DataLabeling::V1" + - "beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.DataPayloads.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datalabeling_v1beta1_Dataset_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_Dataset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_Dataset_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Description", "CreateTime", "InputConfigs", "BlockingResources", "DataItemCount", }); - internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datalabeling_v1beta1_InputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor, - new java.lang.String[] { "TextMetadata", "GcsSource", "BigquerySource", "DataType", "AnnotationType", "ClassificationMetadata", "DataTypeMetadata", "Source", }); - internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor, - new java.lang.String[] { "LanguageCode", }); - internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor, - new java.lang.String[] { "IsMultiLabel", }); - internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_datalabeling_v1beta1_GcsSource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor, - new java.lang.String[] { "InputUri", "MimeType", }); - internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor, - new java.lang.String[] { "InputUri", }); - internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor, - new java.lang.String[] { "GcsDestination", "GcsFolderDestination", "Destination", }); - internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor, - new java.lang.String[] { "OutputUri", "MimeType", }); - internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor, - new java.lang.String[] { "OutputFolderUri", }); - internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_datalabeling_v1beta1_DataItem_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor, - new java.lang.String[] { "ImagePayload", "TextPayload", "VideoPayload", "Name", "Payload", }); - internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Description", "AnnotationSource", "AnnotationType", "ExampleCount", "CompletedExampleCount", "LabelStats", "CreateTime", "Metadata", "BlockingResources", }); - internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_datalabeling_v1beta1_LabelStats_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor, - new java.lang.String[] { "ExampleCount", }); - internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_descriptor = - internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor, - new java.lang.String[] { "ImageClassificationConfig", "BoundingPolyConfig", "PolylineConfig", "SegmentationConfig", "VideoClassificationConfig", "ObjectDetectionConfig", "ObjectTrackingConfig", "EventConfig", "TextClassificationConfig", "TextEntityExtractionConfig", "HumanAnnotationConfig", "AnnotationRequestConfig", }); - internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_datalabeling_v1beta1_Example_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor, - new java.lang.String[] { "ImagePayload", "TextPayload", "VideoPayload", "Name", "Annotations", "Payload", }); - 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.AnnotationsProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.DataPayloads.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequestOrBuilder.java deleted file mode 100644 index 9a458224..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface DeleteAnnotatedDatasetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the annotated dataset to delete, format:
-   * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
-   * {annotated_dataset_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the annotated dataset to delete, format:
-   * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
-   * {annotated_dataset_id}
-   * 
- * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequestOrBuilder.java deleted file mode 100644 index c9a6c116..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface DeleteAnnotationSpecSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. AnnotationSpec resource name, format:
-   * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. AnnotationSpec resource name, format:
-   * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
-   * 
- * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequestOrBuilder.java deleted file mode 100644 index 361fd307..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface DeleteDatasetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.DeleteDatasetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Dataset resource name, format:
-   * projects/{project_id}/datasets/{dataset_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Dataset resource name, format:
-   * projects/{project_id}/datasets/{dataset_id}
-   * 
- * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequestOrBuilder.java deleted file mode 100644 index 20133b34..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface DeleteEvaluationJobRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the evaluation job that is going to be deleted. Format:
-   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the evaluation job that is going to be deleted. Format:
-   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
-   * 
- * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequestOrBuilder.java deleted file mode 100644 index 30ca6d88..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface DeleteInstructionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Instruction resource name, format:
-   * projects/{project_id}/instructions/{instruction_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Instruction resource name, format:
-   * projects/{project_id}/instructions/{instruction_id}
-   * 
- * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOuterClass.java deleted file mode 100644 index 859ef0af..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOuterClass.java +++ /dev/null @@ -1,167 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/evaluation_job.proto - -package com.google.cloud.datalabeling.v1beta1; - -public final class EvaluationJobOuterClass { - private EvaluationJobOuterClass() {} - 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_datalabeling_v1beta1_EvaluationJob_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_Attempt_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n6google/cloud/datalabeling/v1beta1/eval" + - "uation_job.proto\022!google.cloud.datalabel" + - "ing.v1beta1\032\034google/api/annotations.prot" + - "o\032\031google/api/resource.proto\032/google/clo" + - "ud/datalabeling/v1beta1/dataset.proto\0322g" + - "oogle/cloud/datalabeling/v1beta1/evaluat" + - "ion.proto\032?google/cloud/datalabeling/v1b" + - "eta1/human_annotation_config.proto\032\037goog" + - "le/protobuf/timestamp.proto\032\027google/rpc/" + - "status.proto\"\342\004\n\rEvaluationJob\022\014\n\004name\030\001" + - " \001(\t\022\023\n\013description\030\002 \001(\t\022E\n\005state\030\003 \001(\016" + - "26.google.cloud.datalabeling.v1beta1.Eva" + - "luationJob.State\022\020\n\010schedule\030\004 \001(\t\022\025\n\rmo" + - "del_version\030\005 \001(\t\022U\n\025evaluation_job_conf" + - "ig\030\006 \001(\01326.google.cloud.datalabeling.v1b" + - "eta1.EvaluationJobConfig\022\033\n\023annotation_s" + - "pec_set\030\007 \001(\t\022\"\n\032label_missing_ground_tr" + - "uth\030\010 \001(\010\022<\n\010attempts\030\t \003(\0132*.google.clo" + - "ud.datalabeling.v1beta1.Attempt\022/\n\013creat" + - "e_time\030\n \001(\0132\032.google.protobuf.Timestamp" + - "\"S\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\r\n\tSCHE" + - "DULED\020\001\022\013\n\007RUNNING\020\002\022\n\n\006PAUSED\020\003\022\013\n\007STOP" + - "PED\020\004:b\352A_\n)datalabeling.googleapis.com/" + - "EvaluationJob\0222projects/{project}/evalua" + - "tionJobs/{evaluation_job}\"\215\007\n\023Evaluation" + - "JobConfig\022c\n\033image_classification_config" + - "\030\004 \001(\0132<.google.cloud.datalabeling.v1bet" + - "a1.ImageClassificationConfigH\000\022U\n\024boundi" + - "ng_poly_config\030\005 \001(\01325.google.cloud.data" + - "labeling.v1beta1.BoundingPolyConfigH\000\022a\n" + - "\032text_classification_config\030\010 \001(\0132;.goog" + - "le.cloud.datalabeling.v1beta1.TextClassi" + - "ficationConfigH\000\022D\n\014input_config\030\001 \001(\0132." + - ".google.cloud.datalabeling.v1beta1.Input" + - "Config\022N\n\021evaluation_config\030\002 \001(\01323.goog" + - "le.cloud.datalabeling.v1beta1.Evaluation" + - "Config\022Y\n\027human_annotation_config\030\003 \001(\0132" + - "8.google.cloud.datalabeling.v1beta1.Huma" + - "nAnnotationConfig\022l\n\024bigquery_import_key" + - "s\030\t \003(\0132N.google.cloud.datalabeling.v1be" + - "ta1.EvaluationJobConfig.BigqueryImportKe" + - "ysEntry\022\025\n\rexample_count\030\n \001(\005\022!\n\031exampl" + - "e_sample_percentage\030\013 \001(\001\022`\n\033evaluation_" + - "job_alert_config\030\r \001(\0132;.google.cloud.da" + - "talabeling.v1beta1.EvaluationJobAlertCon" + - "fig\0329\n\027BigqueryImportKeysEntry\022\013\n\003key\030\001 " + - "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B!\n\037human_annotati" + - "on_request_config\"X\n\030EvaluationJobAlertC" + - "onfig\022\r\n\005email\030\001 \001(\t\022-\n%min_acceptable_m" + - "ean_average_precision\030\002 \001(\001\"i\n\007Attempt\0220" + - "\n\014attempt_time\030\001 \001(\0132\032.google.protobuf.T" + - "imestamp\022,\n\020partial_failures\030\002 \003(\0132\022.goo" + - "gle.rpc.StatusB\347\001\n%com.google.cloud.data" + - "labeling.v1beta1P\001ZMgoogle.golang.org/ge" + - "nproto/googleapis/cloud/datalabeling/v1b" + - "eta1;datalabeling\252\002!Google.Cloud.DataLab" + - "eling.V1Beta1\312\002!Google\\Cloud\\DataLabelin" + - "g\\V1beta1\352\002$Google::Cloud::DataLabeling:" + - ":V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_descriptor, - new java.lang.String[] { "Name", "Description", "State", "Schedule", "ModelVersion", "EvaluationJobConfig", "AnnotationSpecSet", "LabelMissingGroundTruth", "Attempts", "CreateTime", }); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor, - new java.lang.String[] { "ImageClassificationConfig", "BoundingPolyConfig", "TextClassificationConfig", "InputConfig", "EvaluationConfig", "HumanAnnotationConfig", "BigqueryImportKeys", "ExampleCount", "ExampleSamplePercentage", "EvaluationJobAlertConfig", "HumanAnnotationRequestConfig", }); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_descriptor = - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor, - new java.lang.String[] { "Email", "MinAcceptableMeanAveragePrecision", }); - internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datalabeling_v1beta1_Attempt_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor, - new java.lang.String[] { "AttemptTime", "PartialFailures", }); - 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.AnnotationsProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOuterClass.java deleted file mode 100644 index 4781f495..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOuterClass.java +++ /dev/null @@ -1,235 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/evaluation.proto - -package com.google.cloud.datalabeling.v1beta1; - -public final class EvaluationOuterClass { - private EvaluationOuterClass() {} - 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_datalabeling_v1beta1_Evaluation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_Evaluation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_PrCurve_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_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 = { - "\n2google/cloud/datalabeling/v1beta1/eval" + - "uation.proto\022!google.cloud.datalabeling." + - "v1beta1\032\034google/api/annotations.proto\032\031g" + - "oogle/api/resource.proto\0322google/cloud/d" + - "atalabeling/v1beta1/annotation.proto\032;go" + - "ogle/cloud/datalabeling/v1beta1/annotati" + - "on_spec_set.proto\032\037google/protobuf/times" + - "tamp.proto\"\366\003\n\nEvaluation\022\014\n\004name\030\001 \001(\t\022" + - "C\n\006config\030\002 \001(\01323.google.cloud.datalabel" + - "ing.v1beta1.EvaluationConfig\022;\n\027evaluati" + - "on_job_run_time\030\003 \001(\0132\032.google.protobuf." + - "Timestamp\022/\n\013create_time\030\004 \001(\0132\032.google." + - "protobuf.Timestamp\022P\n\022evaluation_metrics" + - "\030\005 \001(\01324.google.cloud.datalabeling.v1bet" + - "a1.EvaluationMetrics\022J\n\017annotation_type\030" + - "\006 \001(\01621.google.cloud.datalabeling.v1beta" + - "1.AnnotationType\022\034\n\024evaluated_item_count" + - "\030\007 \001(\003:k\352Ah\n&datalabeling.googleapis.com" + - "/Evaluation\022>projects/{project}/datasets" + - "/{dataset}/evaluations/{evaluation}\"\221\001\n\020" + - "EvaluationConfig\022j\n\037bounding_box_evaluat" + - "ion_options\030\001 \001(\0132?.google.cloud.datalab" + - "eling.v1beta1.BoundingBoxEvaluationOptio" + - "nsH\000B\021\n\017vertical_option\"5\n\034BoundingBoxEv" + - "aluationOptions\022\025\n\riou_threshold\030\001 \001(\002\"\331" + - "\001\n\021EvaluationMetrics\022Z\n\026classification_m" + - "etrics\030\001 \001(\01328.google.cloud.datalabeling" + - ".v1beta1.ClassificationMetricsH\000\022]\n\030obje" + - "ct_detection_metrics\030\002 \001(\01329.google.clou" + - "d.datalabeling.v1beta1.ObjectDetectionMe" + - "tricsH\000B\t\n\007metrics\"\243\001\n\025ClassificationMet" + - "rics\022<\n\010pr_curve\030\001 \001(\0132*.google.cloud.da" + - "talabeling.v1beta1.PrCurve\022L\n\020confusion_" + - "matrix\030\002 \001(\01322.google.cloud.datalabeling" + - ".v1beta1.ConfusionMatrix\"V\n\026ObjectDetect" + - "ionMetrics\022<\n\010pr_curve\030\001 \001(\0132*.google.cl" + - "oud.datalabeling.v1beta1.PrCurve\"\346\003\n\007PrC" + - "urve\022J\n\017annotation_spec\030\001 \001(\01321.google.c" + - "loud.datalabeling.v1beta1.AnnotationSpec" + - "\022\030\n\020area_under_curve\030\002 \001(\002\022e\n\032confidence" + - "_metrics_entries\030\003 \003(\0132A.google.cloud.da" + - "talabeling.v1beta1.PrCurve.ConfidenceMet" + - "ricsEntry\022\036\n\026mean_average_precision\030\004 \001(" + - "\002\032\355\001\n\026ConfidenceMetricsEntry\022\034\n\024confiden" + - "ce_threshold\030\001 \001(\002\022\016\n\006recall\030\002 \001(\002\022\021\n\tpr" + - "ecision\030\003 \001(\002\022\020\n\010f1_score\030\004 \001(\002\022\022\n\nrecal" + - "l_at1\030\005 \001(\002\022\025\n\rprecision_at1\030\006 \001(\002\022\024\n\014f1" + - "_score_at1\030\007 \001(\002\022\022\n\nrecall_at5\030\010 \001(\002\022\025\n\r" + - "precision_at5\030\t \001(\002\022\024\n\014f1_score_at5\030\n \001(" + - "\002\"\374\002\n\017ConfusionMatrix\022C\n\003row\030\001 \003(\01326.goo" + - "gle.cloud.datalabeling.v1beta1.Confusion" + - "Matrix.Row\032v\n\024ConfusionMatrixEntry\022J\n\017an" + - "notation_spec\030\001 \001(\01321.google.cloud.datal" + - "abeling.v1beta1.AnnotationSpec\022\022\n\nitem_c" + - "ount\030\002 \001(\005\032\253\001\n\003Row\022J\n\017annotation_spec\030\001 " + - "\001(\01321.google.cloud.datalabeling.v1beta1." + - "AnnotationSpec\022X\n\007entries\030\002 \003(\0132G.google" + - ".cloud.datalabeling.v1beta1.ConfusionMat" + - "rix.ConfusionMatrixEntryB\347\001\n%com.google." + - "cloud.datalabeling.v1beta1P\001ZMgoogle.gol" + - "ang.org/genproto/googleapis/cloud/datala" + - "beling/v1beta1;datalabeling\252\002!Google.Clo" + - "ud.DataLabeling.V1Beta1\312\002!Google\\Cloud\\D" + - "ataLabeling\\V1beta1\352\002$Google::Cloud::Dat" + - "aLabeling::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datalabeling_v1beta1_Evaluation_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_Evaluation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_Evaluation_descriptor, - new java.lang.String[] { "Name", "Config", "EvaluationJobRunTime", "CreateTime", "EvaluationMetrics", "AnnotationType", "EvaluatedItemCount", }); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor, - new java.lang.String[] { "BoundingBoxEvaluationOptions", "VerticalOption", }); - internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor, - new java.lang.String[] { "IouThreshold", }); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor, - new java.lang.String[] { "ClassificationMetrics", "ObjectDetectionMetrics", "Metrics", }); - internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor, - new java.lang.String[] { "PrCurve", "ConfusionMatrix", }); - internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor, - new java.lang.String[] { "PrCurve", }); - internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_datalabeling_v1beta1_PrCurve_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor, - new java.lang.String[] { "AnnotationSpec", "AreaUnderCurve", "ConfidenceMetricsEntries", "MeanAveragePrecision", }); - internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor = - internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor, - new java.lang.String[] { "ConfidenceThreshold", "Recall", "Precision", "F1Score", "RecallAt1", "PrecisionAt1", "F1ScoreAt1", "RecallAt5", "PrecisionAt5", "F1ScoreAt5", }); - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor, - new java.lang.String[] { "Row", }); - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor = - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor, - new java.lang.String[] { "AnnotationSpec", "ItemCount", }); - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor = - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor.getNestedTypes().get(1); - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor, - new java.lang.String[] { "AnnotationSpec", "Entries", }); - 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.AnnotationsProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestinationOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestinationOrBuilder.java deleted file mode 100644 index a959b823..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestinationOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/dataset.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface GcsFolderDestinationOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GcsFolderDestination) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Cloud Storage directory to export data to.
-   * 
- * - * string output_folder_uri = 1; - * @return The outputFolderUri. - */ - java.lang.String getOutputFolderUri(); - /** - *
-   * Required. Cloud Storage directory to export data to.
-   * 
- * - * string output_folder_uri = 1; - * @return The bytes for outputFolderUri. - */ - com.google.protobuf.ByteString - getOutputFolderUriBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequestOrBuilder.java deleted file mode 100644 index 7932eb2c..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface GetAnnotatedDatasetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the annotated dataset to get, format:
-   * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
-   * {annotated_dataset_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the annotated dataset to get, format:
-   * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
-   * {annotated_dataset_id}
-   * 
- * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequestOrBuilder.java deleted file mode 100644 index aa04847b..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface GetAnnotationSpecSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. AnnotationSpecSet resource name, format:
-   * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. AnnotationSpecSet resource name, format:
-   * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
-   * 
- * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequestOrBuilder.java deleted file mode 100644 index 51554b05..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface GetDataItemRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetDataItemRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the data item to get, format:
-   * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the data item to get, format:
-   * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
-   * 
- * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequestOrBuilder.java deleted file mode 100644 index 02d15aa3..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface GetDatasetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetDatasetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Dataset resource name, format:
-   * projects/{project_id}/datasets/{dataset_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Dataset resource name, format:
-   * projects/{project_id}/datasets/{dataset_id}
-   * 
- * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequestOrBuilder.java deleted file mode 100644 index 7f34645e..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface GetEvaluationJobRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the evaluation job. Format:
-   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the evaluation job. Format:
-   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
-   * 
- * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequestOrBuilder.java deleted file mode 100644 index a71180ca..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface GetEvaluationRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetEvaluationRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the evaluation. Format:
-   * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the evaluation. Format:
-   * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
-   * 
- * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequestOrBuilder.java deleted file mode 100644 index 0fcb5f3d..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface GetInstructionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetInstructionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Instruction resource name, format:
-   * projects/{project_id}/instructions/{instruction_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Instruction resource name, format:
-   * projects/{project_id}/instructions/{instruction_id}
-   * 
- * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOuterClass.java deleted file mode 100644 index 2ad546a4..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOuterClass.java +++ /dev/null @@ -1,242 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/human_annotation_config.proto - -package com.google.cloud.datalabeling.v1beta1; - -public final class HumanAnnotationConfigOuterClass { - private HumanAnnotationConfigOuterClass() {} - 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_datalabeling_v1beta1_HumanAnnotationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_EventConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_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/datalabeling/v1beta1/huma" + - "n_annotation_config.proto\022!google.cloud." + - "datalabeling.v1beta1\032\034google/api/annotat" + - "ions.proto\032\037google/api/field_behavior.pr" + - "oto\032\036google/protobuf/duration.proto\"\324\002\n\025" + - "HumanAnnotationConfig\022\030\n\013instruction\030\001 \001" + - "(\tB\003\340A\002\022+\n\036annotated_dataset_display_nam" + - "e\030\002 \001(\tB\003\340A\002\022*\n\035annotated_dataset_descri" + - "ption\030\003 \001(\tB\003\340A\001\022\030\n\013label_group\030\004 \001(\tB\003\340" + - "A\001\022\032\n\rlanguage_code\030\005 \001(\tB\003\340A\001\022\032\n\rreplic" + - "a_count\030\006 \001(\005B\003\340A\001\0229\n\021question_duration\030" + - "\007 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\037\n" + - "\022contributor_emails\030\t \003(\tB\003\340A\001\022\032\n\022user_e" + - "mail_address\030\n \001(\t\"\275\001\n\031ImageClassificati" + - "onConfig\022 \n\023annotation_spec_set\030\001 \001(\tB\003\340" + - "A\002\022\036\n\021allow_multi_label\030\002 \001(\010B\003\340A\001\022^\n\027an" + - "swer_aggregation_type\030\003 \001(\01628.google.clo" + - "ud.datalabeling.v1beta1.StringAggregatio" + - "nTypeB\003\340A\001\"X\n\022BoundingPolyConfig\022 \n\023anno" + - "tation_spec_set\030\001 \001(\tB\003\340A\002\022 \n\023instructio" + - "n_message\030\002 \001(\tB\003\340A\001\"T\n\016PolylineConfig\022 " + - "\n\023annotation_spec_set\030\001 \001(\tB\003\340A\002\022 \n\023inst" + - "ruction_message\030\002 \001(\tB\003\340A\001\"S\n\022Segmentati" + - "onConfig\022 \n\023annotation_spec_set\030\001 \001(\tB\003\340" + - "A\002\022\033\n\023instruction_message\030\002 \001(\t\"\233\002\n\031Vide" + - "oClassificationConfig\022~\n\033annotation_spec" + - "_set_configs\030\001 \003(\0132T.google.cloud.datala" + - "beling.v1beta1.VideoClassificationConfig" + - ".AnnotationSpecSetConfigB\003\340A\002\022!\n\024apply_s" + - "hot_detection\030\002 \001(\010B\003\340A\001\032[\n\027AnnotationSp" + - "ecSetConfig\022 \n\023annotation_spec_set\030\001 \001(\t" + - "B\003\340A\002\022\036\n\021allow_multi_label\030\002 \001(\010B\003\340A\001\"]\n" + - "\025ObjectDetectionConfig\022 \n\023annotation_spe" + - "c_set\030\001 \001(\tB\003\340A\002\022\"\n\025extraction_frame_rat" + - "e\030\003 \001(\001B\003\340A\002\"8\n\024ObjectTrackingConfig\022 \n\023" + - "annotation_spec_set\030\001 \001(\tB\003\340A\002\"0\n\013EventC" + - "onfig\022!\n\024annotation_spec_sets\030\001 \003(\tB\003\340A\002" + - "\"\257\001\n\030TextClassificationConfig\022\036\n\021allow_m" + - "ulti_label\030\001 \001(\010B\003\340A\001\022 \n\023annotation_spec" + - "_set\030\002 \001(\tB\003\340A\002\022Q\n\020sentiment_config\030\003 \001(" + - "\01322.google.cloud.datalabeling.v1beta1.Se" + - "ntimentConfigB\003\340A\001\";\n\017SentimentConfig\022(\n" + - " enable_label_sentiment_selection\030\001 \001(\010\"" + - ">\n\032TextEntityExtractionConfig\022 \n\023annotat" + - "ion_spec_set\030\001 \001(\tB\003\340A\002*{\n\025StringAggrega" + - "tionType\022\'\n#STRING_AGGREGATION_TYPE_UNSP" + - "ECIFIED\020\000\022\021\n\rMAJORITY_VOTE\020\001\022\022\n\016UNANIMOU" + - "S_VOTE\020\002\022\022\n\016NO_AGGREGATION\020\003B\347\001\n%com.goo" + - "gle.cloud.datalabeling.v1beta1P\001ZMgoogle" + - ".golang.org/genproto/googleapis/cloud/da" + - "talabeling/v1beta1;datalabeling\252\002!Google" + - ".Cloud.DataLabeling.V1Beta1\312\002!Google\\Clo" + - "ud\\DataLabeling\\V1beta1\352\002$Google::Cloud:" + - ":DataLabeling::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_descriptor, - new java.lang.String[] { "Instruction", "AnnotatedDatasetDisplayName", "AnnotatedDatasetDescription", "LabelGroup", "LanguageCode", "ReplicaCount", "QuestionDuration", "ContributorEmails", "UserEmailAddress", }); - internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor, - new java.lang.String[] { "AnnotationSpecSet", "AllowMultiLabel", "AnswerAggregationType", }); - internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor, - new java.lang.String[] { "AnnotationSpecSet", "InstructionMessage", }); - internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor, - new java.lang.String[] { "AnnotationSpecSet", "InstructionMessage", }); - internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor, - new java.lang.String[] { "AnnotationSpecSet", "InstructionMessage", }); - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor, - new java.lang.String[] { "AnnotationSpecSetConfigs", "ApplyShotDetection", }); - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor = - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor, - new java.lang.String[] { "AnnotationSpecSet", "AllowMultiLabel", }); - internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor, - new java.lang.String[] { "AnnotationSpecSet", "ExtractionFrameRate", }); - internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor, - new java.lang.String[] { "AnnotationSpecSet", }); - internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_datalabeling_v1beta1_EventConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor, - new java.lang.String[] { "AnnotationSpecSets", }); - internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor, - new java.lang.String[] { "AllowMultiLabel", "AnnotationSpecSet", "SentimentConfig", }); - internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor, - new java.lang.String[] { "EnableLabelSentimentSelection", }); - internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor, - new java.lang.String[] { "AnnotationSpecSet", }); - 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.AnnotationsProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOuterClass.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOuterClass.java deleted file mode 100644 index 76aa774e..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOuterClass.java +++ /dev/null @@ -1,107 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/instruction.proto - -package com.google.cloud.datalabeling.v1beta1; - -public final class InstructionOuterClass { - private InstructionOuterClass() {} - 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_datalabeling_v1beta1_Instruction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_Instruction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/datalabeling/v1beta1/inst" + - "ruction.proto\022!google.cloud.datalabeling" + - ".v1beta1\032\034google/api/annotations.proto\032\031" + - "google/api/resource.proto\032/google/cloud/" + - "datalabeling/v1beta1/dataset.proto\032\037goog" + - "le/protobuf/timestamp.proto\"\375\003\n\013Instruct" + - "ion\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/\n\013create_time\030\004 \001(" + - "\0132\032.google.protobuf.Timestamp\022/\n\013update_" + - "time\030\005 \001(\0132\032.google.protobuf.Timestamp\022>" + - "\n\tdata_type\030\006 \001(\0162+.google.cloud.datalab" + - "eling.v1beta1.DataType\022N\n\017csv_instructio" + - "n\030\007 \001(\01321.google.cloud.datalabeling.v1be" + - "ta1.CsvInstructionB\002\030\001\022J\n\017pdf_instructio" + - "n\030\t \001(\01321.google.cloud.datalabeling.v1be" + - "ta1.PdfInstruction\022\032\n\022blocking_resources" + - "\030\n \003(\t:[\352AX\n\'datalabeling.googleapis.com" + - "/Instruction\022-projects/{project}/instruc" + - "tions/{instruction}\"&\n\016CsvInstruction\022\024\n" + - "\014gcs_file_uri\030\001 \001(\t\"&\n\016PdfInstruction\022\024\n" + - "\014gcs_file_uri\030\001 \001(\tB\347\001\n%com.google.cloud" + - ".datalabeling.v1beta1P\001ZMgoogle.golang.o" + - "rg/genproto/googleapis/cloud/datalabelin" + - "g/v1beta1;datalabeling\252\002!Google.Cloud.Da" + - "taLabeling.V1Beta1\312\002!Google\\Cloud\\DataLa" + - "beling\\V1beta1\352\002$Google::Cloud::DataLabe" + - "ling::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datalabeling_v1beta1_Instruction_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_Instruction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_Instruction_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Description", "CreateTime", "UpdateTime", "DataType", "CsvInstruction", "PdfInstruction", "BlockingResources", }); - internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor, - new java.lang.String[] { "GcsFileUri", }); - internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor, - new java.lang.String[] { "GcsFileUri", }); - 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.AnnotationsProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertexOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertexOrBuilder.java deleted file mode 100644 index 36340d1f..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertexOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/annotation.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface NormalizedVertexOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.NormalizedVertex) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * X coordinate.
-   * 
- * - * float x = 1; - * @return The x. - */ - float getX(); - - /** - *
-   * Y coordinate.
-   * 
- * - * float y = 2; - * @return The y. - */ - float getY(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Operations.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Operations.java deleted file mode 100644 index 0184c514..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Operations.java +++ /dev/null @@ -1,353 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/operations.proto - -package com.google.cloud.datalabeling.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_datalabeling_v1beta1_ImportDataOperationResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_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/datalabeling/v1beta1/oper" + - "ations.proto\022!google.cloud.datalabeling." + - "v1beta1\032\034google/api/annotations.proto\032\031g" + - "oogle/api/resource.proto\032/google/cloud/d" + - "atalabeling/v1beta1/dataset.proto\032?googl" + - "e/cloud/datalabeling/v1beta1/human_annot" + - "ation_config.proto\032\037google/protobuf/time" + - "stamp.proto\032\027google/rpc/status.proto\"Y\n\033" + - "ImportDataOperationResponse\022\017\n\007dataset\030\001" + - " \001(\t\022\023\n\013total_count\030\002 \001(\005\022\024\n\014import_coun" + - "t\030\003 \001(\005\"\345\001\n\033ExportDataOperationResponse\022" + - "\017\n\007dataset\030\001 \001(\t\022\023\n\013total_count\030\002 \001(\005\022\024\n" + - "\014export_count\030\003 \001(\005\022B\n\013label_stats\030\004 \001(\013" + - "2-.google.cloud.datalabeling.v1beta1.Lab" + - "elStats\022F\n\routput_config\030\005 \001(\0132/.google." + - "cloud.datalabeling.v1beta1.OutputConfig\"" + - "\215\001\n\033ImportDataOperationMetadata\022\017\n\007datas" + - "et\030\001 \001(\t\022,\n\020partial_failures\030\002 \003(\0132\022.goo" + - "gle.rpc.Status\022/\n\013create_time\030\003 \001(\0132\032.go" + - "ogle.protobuf.Timestamp\"\215\001\n\033ExportDataOp" + - "erationMetadata\022\017\n\007dataset\030\001 \001(\t\022,\n\020part" + - "ial_failures\030\002 \003(\0132\022.google.rpc.Status\022/" + - "\n\013create_time\030\003 \001(\0132\032.google.protobuf.Ti" + - "mestamp\"\214\014\n\026LabelOperationMetadata\022t\n\034im" + - "age_classification_details\030\003 \001(\0132L.googl" + - "e.cloud.datalabeling.v1beta1.LabelImageC" + - "lassificationOperationMetadataH\000\022o\n\032imag" + - "e_bounding_box_details\030\004 \001(\0132I.google.cl" + - "oud.datalabeling.v1beta1.LabelImageBound" + - "ingBoxOperationMetadataH\000\022q\n\033image_bound" + - "ing_poly_details\030\013 \001(\0132J.google.cloud.da" + - "talabeling.v1beta1.LabelImageBoundingPol" + - "yOperationMetadataH\000\022\200\001\n#image_oriented_" + - "bounding_box_details\030\016 \001(\0132Q.google.clou" + - "d.datalabeling.v1beta1.LabelImageOriente" + - "dBoundingBoxOperationMetadataH\000\022h\n\026image" + - "_polyline_details\030\014 \001(\0132F.google.cloud.d" + - "atalabeling.v1beta1.LabelImagePolylineOp" + - "erationMetadataH\000\022p\n\032image_segmentation_" + - "details\030\017 \001(\0132J.google.cloud.datalabelin" + - "g.v1beta1.LabelImageSegmentationOperatio" + - "nMetadataH\000\022t\n\034video_classification_deta" + - "ils\030\005 \001(\0132L.google.cloud.datalabeling.v1" + - "beta1.LabelVideoClassificationOperationM" + - "etadataH\000\022w\n\036video_object_detection_deta" + - "ils\030\006 \001(\0132M.google.cloud.datalabeling.v1" + - "beta1.LabelVideoObjectDetectionOperation" + - "MetadataH\000\022u\n\035video_object_tracking_deta" + - "ils\030\007 \001(\0132L.google.cloud.datalabeling.v1" + - "beta1.LabelVideoObjectTrackingOperationM" + - "etadataH\000\022b\n\023video_event_details\030\010 \001(\0132C" + - ".google.cloud.datalabeling.v1beta1.Label" + - "VideoEventOperationMetadataH\000\022r\n\033text_cl" + - "assification_details\030\t \001(\0132K.google.clou" + - "d.datalabeling.v1beta1.LabelTextClassifi" + - "cationOperationMetadataH\000\022w\n\036text_entity" + - "_extraction_details\030\r \001(\0132M.google.cloud" + - ".datalabeling.v1beta1.LabelTextEntityExt" + - "ractionOperationMetadataH\000\022\030\n\020progress_p" + - "ercent\030\001 \001(\005\022,\n\020partial_failures\030\002 \003(\0132\022" + - ".google.rpc.Status\022/\n\013create_time\030\020 \001(\0132" + - "\032.google.protobuf.TimestampB\t\n\007details\"{" + - "\n)LabelImageClassificationOperationMetad" + - "ata\022N\n\014basic_config\030\001 \001(\01328.google.cloud" + - ".datalabeling.v1beta1.HumanAnnotationCon" + - "fig\"x\n&LabelImageBoundingBoxOperationMet" + - "adata\022N\n\014basic_config\030\001 \001(\01328.google.clo" + - "ud.datalabeling.v1beta1.HumanAnnotationC" + - "onfig\"\200\001\n.LabelImageOrientedBoundingBoxO" + - "perationMetadata\022N\n\014basic_config\030\001 \001(\01328" + - ".google.cloud.datalabeling.v1beta1.Human" + - "AnnotationConfig\"y\n\'LabelImageBoundingPo" + - "lyOperationMetadata\022N\n\014basic_config\030\001 \001(" + - "\01328.google.cloud.datalabeling.v1beta1.Hu" + - "manAnnotationConfig\"u\n#LabelImagePolylin" + - "eOperationMetadata\022N\n\014basic_config\030\001 \001(\013" + - "28.google.cloud.datalabeling.v1beta1.Hum" + - "anAnnotationConfig\"y\n\'LabelImageSegmenta" + - "tionOperationMetadata\022N\n\014basic_config\030\001 " + - "\001(\01328.google.cloud.datalabeling.v1beta1." + - "HumanAnnotationConfig\"{\n)LabelVideoClass" + - "ificationOperationMetadata\022N\n\014basic_conf" + - "ig\030\001 \001(\01328.google.cloud.datalabeling.v1b" + - "eta1.HumanAnnotationConfig\"|\n*LabelVideo" + - "ObjectDetectionOperationMetadata\022N\n\014basi" + - "c_config\030\001 \001(\01328.google.cloud.datalabeli" + - "ng.v1beta1.HumanAnnotationConfig\"{\n)Labe" + - "lVideoObjectTrackingOperationMetadata\022N\n" + - "\014basic_config\030\001 \001(\01328.google.cloud.datal" + - "abeling.v1beta1.HumanAnnotationConfig\"r\n" + - " LabelVideoEventOperationMetadata\022N\n\014bas" + - "ic_config\030\001 \001(\01328.google.cloud.datalabel" + - "ing.v1beta1.HumanAnnotationConfig\"z\n(Lab" + - "elTextClassificationOperationMetadata\022N\n" + - "\014basic_config\030\001 \001(\01328.google.cloud.datal" + - "abeling.v1beta1.HumanAnnotationConfig\"|\n" + - "*LabelTextEntityExtractionOperationMetad" + - "ata\022N\n\014basic_config\030\001 \001(\01328.google.cloud" + - ".datalabeling.v1beta1.HumanAnnotationCon" + - "fig\"\217\001\n\031CreateInstructionMetadata\022\023\n\013ins" + - "truction\030\001 \001(\t\022,\n\020partial_failures\030\002 \003(\013" + - "2\022.google.rpc.Status\022/\n\013create_time\030\003 \001(" + - "\0132\032.google.protobuf.TimestampB\347\001\n%com.go" + - "ogle.cloud.datalabeling.v1beta1P\001ZMgoogl" + - "e.golang.org/genproto/googleapis/cloud/d" + - "atalabeling/v1beta1;datalabeling\252\002!Googl" + - "e.Cloud.DataLabeling.V1Beta1\312\002!Google\\Cl" + - "oud\\DataLabeling\\V1beta1\352\002$Google::Cloud" + - "::DataLabeling::V1beta1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(), - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_descriptor, - new java.lang.String[] { "Dataset", "TotalCount", "ImportCount", }); - internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor, - new java.lang.String[] { "Dataset", "TotalCount", "ExportCount", "LabelStats", "OutputConfig", }); - internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor, - new java.lang.String[] { "Dataset", "PartialFailures", "CreateTime", }); - internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor, - new java.lang.String[] { "Dataset", "PartialFailures", "CreateTime", }); - internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor, - new java.lang.String[] { "ImageClassificationDetails", "ImageBoundingBoxDetails", "ImageBoundingPolyDetails", "ImageOrientedBoundingBoxDetails", "ImagePolylineDetails", "ImageSegmentationDetails", "VideoClassificationDetails", "VideoObjectDetectionDetails", "VideoObjectTrackingDetails", "VideoEventDetails", "TextClassificationDetails", "TextEntityExtractionDetails", "ProgressPercent", "PartialFailures", "CreateTime", "Details", }); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor, - new java.lang.String[] { "BasicConfig", }); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor, - new java.lang.String[] { "BasicConfig", }); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor, - new java.lang.String[] { "BasicConfig", }); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor, - new java.lang.String[] { "BasicConfig", }); - internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor, - new java.lang.String[] { "BasicConfig", }); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor, - new java.lang.String[] { "BasicConfig", }); - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor, - new java.lang.String[] { "BasicConfig", }); - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor, - new java.lang.String[] { "BasicConfig", }); - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor, - new java.lang.String[] { "BasicConfig", }); - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor, - new java.lang.String[] { "BasicConfig", }); - internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor, - new java.lang.String[] { "BasicConfig", }); - internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor, - new java.lang.String[] { "BasicConfig", }); - internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor, - new java.lang.String[] { "Instruction", "PartialFailures", "CreateTime", }); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(); - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequestOrBuilder.java deleted file mode 100644 index d6534aa4..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface PauseEvaluationJobRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the evaluation job that is going to be paused. Format:
-   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the evaluation job that is going to be paused. Format:
-   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
-   * 
- * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstructionOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstructionOrBuilder.java deleted file mode 100644 index de6df70e..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstructionOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/instruction.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface PdfInstructionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.PdfInstruction) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * PDF file for the instruction. Only gcs path is allowed.
-   * 
- * - * string gcs_file_uri = 1; - * @return The gcsFileUri. - */ - java.lang.String getGcsFileUri(); - /** - *
-   * PDF file for the instruction. Only gcs path is allowed.
-   * 
- * - * string gcs_file_uri = 1; - * @return The bytes for gcsFileUri. - */ - com.google.protobuf.ByteString - getGcsFileUriBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequestOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequestOrBuilder.java deleted file mode 100644 index e1b833d9..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface ResumeEvaluationJobRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Name of the evaluation job that is going to be resumed. Format:
-   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Name of the evaluation job that is going to be resumed. Format:
-   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
-   * 
- * - * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponseOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponseOrBuilder.java deleted file mode 100644 index 60dea39b..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponseOrBuilder.java +++ /dev/null @@ -1,73 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface SearchExampleComparisonsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A list of example comparisons matching the search criteria.
-   * 
- * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - */ - java.util.List - getExampleComparisonsList(); - /** - *
-   * A list of example comparisons matching the search criteria.
-   * 
- * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - */ - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison getExampleComparisons(int index); - /** - *
-   * A list of example comparisons matching the search criteria.
-   * 
- * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - */ - int getExampleComparisonsCount(); - /** - *
-   * A list of example comparisons matching the search criteria.
-   * 
- * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - */ - java.util.List - getExampleComparisonsOrBuilderList(); - /** - *
-   * A list of example comparisons matching the search criteria.
-   * 
- * - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; - */ - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparisonOrBuilder getExampleComparisonsOrBuilder( - int index); - - /** - *
-   * A token to retrieve next page of results.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token to retrieve next page of results.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegmentOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegmentOrBuilder.java deleted file mode 100644 index e595911e..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegmentOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/annotation.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface SequentialSegmentOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.SequentialSegment) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Start position (inclusive).
-   * 
- * - * int32 start = 1; - * @return The start. - */ - int getStart(); - - /** - *
-   * End position (exclusive).
-   * 
- * - * int32 end = 2; - * @return The end. - */ - int getEnd(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayloadOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayloadOrBuilder.java deleted file mode 100644 index f26f6d8b..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayloadOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/data_payloads.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface TextPayloadOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.TextPayload) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Text content.
-   * 
- * - * string text_content = 1; - * @return The textContent. - */ - java.lang.String getTextContent(); - /** - *
-   * Text content.
-   * 
- * - * string text_content = 1; - * @return The bytes for textContent. - */ - com.google.protobuf.ByteString - getTextContentBytes(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VertexOrBuilder.java b/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VertexOrBuilder.java deleted file mode 100644 index b8f5a118..00000000 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VertexOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/datalabeling/v1beta1/annotation.proto - -package com.google.cloud.datalabeling.v1beta1; - -public interface VertexOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.Vertex) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * X coordinate.
-   * 
- * - * int32 x = 1; - * @return The x. - */ - int getX(); - - /** - *
-   * Y coordinate.
-   * 
- * - * int32 y = 2; - * @return The y. - */ - int getY(); -} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDataset.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDataset.java similarity index 74% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDataset.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDataset.java index 461bae36..0a030c64 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDataset.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDataset.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * AnnotatedDataset is a set holding annotations for data in a Dataset. Each
  * labeling task will generate an AnnotatedDataset under the Dataset that the
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotatedDataset}
  */
-public final class AnnotatedDataset extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AnnotatedDataset extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.AnnotatedDataset)
     AnnotatedDatasetOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AnnotatedDataset.newBuilder() to construct.
   private AnnotatedDataset(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AnnotatedDataset() {
     name_ = "";
     displayName_ = "";
@@ -32,16 +50,15 @@ private AnnotatedDataset() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AnnotatedDataset();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AnnotatedDataset(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -61,101 +78,117 @@ private AnnotatedDataset(
           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 24: {
-            int rawValue = input.readEnum();
-
-            annotationSource_ = rawValue;
-            break;
-          }
-          case 32: {
+              name_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            exampleCount_ = input.readInt64();
-            break;
-          }
-          case 40: {
+              displayName_ = s;
+              break;
+            }
+          case 24:
+            {
+              int rawValue = input.readEnum();
 
-            completedExampleCount_ = input.readInt64();
-            break;
-          }
-          case 50: {
-            com.google.cloud.datalabeling.v1beta1.LabelStats.Builder subBuilder = null;
-            if (labelStats_ != null) {
-              subBuilder = labelStats_.toBuilder();
+              annotationSource_ = rawValue;
+              break;
             }
-            labelStats_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelStats.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(labelStats_);
-              labelStats_ = subBuilder.buildPartial();
+          case 32:
+            {
+              exampleCount_ = input.readInt64();
+              break;
             }
-
-            break;
-          }
-          case 58: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+          case 40:
+            {
+              completedExampleCount_ = input.readInt64();
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 50:
+            {
+              com.google.cloud.datalabeling.v1beta1.LabelStats.Builder subBuilder = null;
+              if (labelStats_ != null) {
+                subBuilder = labelStats_.toBuilder();
+              }
+              labelStats_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.LabelStats.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(labelStats_);
+                labelStats_ = subBuilder.buildPartial();
+              }
+
+              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();
+              }
+
+              break;
+            }
+          case 64:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 64: {
-            int rawValue = input.readEnum();
-
-            annotationType_ = rawValue;
-            break;
-          }
-          case 74: {
-            java.lang.String s = input.readStringRequireUtf8();
+              annotationType_ = rawValue;
+              break;
+            }
+          case 74:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          case 82: {
-            com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder subBuilder = null;
-            if (metadata_ != null) {
-              subBuilder = metadata_.toBuilder();
+              description_ = s;
+              break;
             }
-            metadata_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(metadata_);
-              metadata_ = subBuilder.buildPartial();
+          case 82:
+            {
+              com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder subBuilder =
+                  null;
+              if (metadata_ != null) {
+                subBuilder = metadata_.toBuilder();
+              }
+              metadata_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(metadata_);
+                metadata_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 90: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              blockingResources_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 90:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                blockingResources_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              blockingResources_.add(s);
+              break;
             }
-            blockingResources_.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) {
@@ -163,8 +196,7 @@ private AnnotatedDataset(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } 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)) {
         blockingResources_ = blockingResources_.getUnmodifiableView();
@@ -173,22 +205,27 @@ private AnnotatedDataset(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.class, com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.class,
+            com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Output only. AnnotatedDataset resource name in format of:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -196,6 +233,7 @@ private AnnotatedDataset(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -204,14 +242,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. AnnotatedDataset resource name in format of:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -219,16 +258,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 { @@ -239,6 +277,8 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * Output only. The display name of the AnnotatedDataset. It is specified in
    * HumanAnnotationConfig when user starts a labeling task. Maximum of 64
@@ -246,6 +286,7 @@ public java.lang.String getName() {
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -254,14 +295,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 display name of the AnnotatedDataset. It is specified in
    * HumanAnnotationConfig when user starts a labeling task. Maximum of 64
@@ -269,16 +311,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 { @@ -289,6 +330,8 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 9; private volatile java.lang.Object description_; /** + * + * *
    * Output only. The description of the AnnotatedDataset. It is specified in
    * HumanAnnotationConfig when user starts a labeling task. Maximum of 10000
@@ -296,6 +339,7 @@ public java.lang.String getDisplayName() {
    * 
* * string description = 9; + * * @return The description. */ @java.lang.Override @@ -304,14 +348,15 @@ 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; } } /** + * + * *
    * Output only. The description of the AnnotatedDataset. It is specified in
    * HumanAnnotationConfig when user starts a labeling task. Maximum of 10000
@@ -319,16 +364,15 @@ public java.lang.String getDescription() {
    * 
* * string description = 9; + * * @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 { @@ -339,67 +383,92 @@ public java.lang.String getDescription() { public static final int ANNOTATION_SOURCE_FIELD_NUMBER = 3; private int annotationSource_; /** + * + * *
    * Output only. Source of the annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3; + * * @return The enum numeric value on the wire for annotationSource. */ - @java.lang.Override public int getAnnotationSourceValue() { + @java.lang.Override + public int getAnnotationSourceValue() { return annotationSource_; } /** + * + * *
    * Output only. Source of the annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3; + * * @return The annotationSource. */ - @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSource getAnnotationSource() { + @java.lang.Override + public com.google.cloud.datalabeling.v1beta1.AnnotationSource getAnnotationSource() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationSource result = com.google.cloud.datalabeling.v1beta1.AnnotationSource.valueOf(annotationSource_); - return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSource.UNRECOGNIZED : result; + com.google.cloud.datalabeling.v1beta1.AnnotationSource result = + com.google.cloud.datalabeling.v1beta1.AnnotationSource.valueOf(annotationSource_); + return result == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSource.UNRECOGNIZED + : result; } public static final int ANNOTATION_TYPE_FIELD_NUMBER = 8; private int annotationType_; /** + * + * *
    * Output only. Type of the annotation. It is specified when starting labeling
    * task.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8; + * * @return The enum numeric value on the wire for annotationType. */ - @java.lang.Override public int getAnnotationTypeValue() { + @java.lang.Override + public int getAnnotationTypeValue() { return annotationType_; } /** + * + * *
    * Output only. Type of the annotation. It is specified when starting labeling
    * task.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8; + * * @return The annotationType. */ - @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType() { + @java.lang.Override + public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationType result = com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); - return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED : result; + com.google.cloud.datalabeling.v1beta1.AnnotationType result = + com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); + return result == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED + : result; } public static final int EXAMPLE_COUNT_FIELD_NUMBER = 4; private long exampleCount_; /** + * + * *
    * Output only. Number of examples in the annotated dataset.
    * 
* * int64 example_count = 4; + * * @return The exampleCount. */ @java.lang.Override @@ -410,12 +479,15 @@ public long getExampleCount() { public static final int COMPLETED_EXAMPLE_COUNT_FIELD_NUMBER = 5; private long completedExampleCount_; /** + * + * *
    * Output only. Number of examples that have annotation in the annotated
    * dataset.
    * 
* * int64 completed_example_count = 5; + * * @return The completedExampleCount. */ @java.lang.Override @@ -426,11 +498,14 @@ public long getCompletedExampleCount() { public static final int LABEL_STATS_FIELD_NUMBER = 6; private com.google.cloud.datalabeling.v1beta1.LabelStats labelStats_; /** + * + * *
    * Output only. Per label statistics.
    * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6; + * * @return Whether the labelStats field is set. */ @java.lang.Override @@ -438,18 +513,25 @@ public boolean hasLabelStats() { return labelStats_ != null; } /** + * + * *
    * Output only. Per label statistics.
    * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6; + * * @return The labelStats. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelStats getLabelStats() { - return labelStats_ == null ? com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() : labelStats_; + return labelStats_ == null + ? com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() + : labelStats_; } /** + * + * *
    * Output only. Per label statistics.
    * 
@@ -464,11 +546,14 @@ public com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder getLabelStatsOr public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Time the AnnotatedDataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -476,11 +561,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time the AnnotatedDataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return The createTime. */ @java.lang.Override @@ -488,6 +576,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time the AnnotatedDataset was created.
    * 
@@ -502,11 +592,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int METADATA_FIELD_NUMBER = 10; private com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata_; /** + * + * *
    * Output only. Additional information about AnnotatedDataset.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; + * * @return Whether the metadata field is set. */ @java.lang.Override @@ -514,18 +607,25 @@ public boolean hasMetadata() { return metadata_ != null; } /** + * + * *
    * Output only. Additional information about AnnotatedDataset.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; + * * @return The metadata. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata getMetadata() { - return metadata_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.getDefaultInstance() + : metadata_; } /** + * + * *
    * Output only. Additional information about AnnotatedDataset.
    * 
@@ -533,44 +633,53 @@ public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata getMetadat * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder getMetadataOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder + getMetadataOrBuilder() { return getMetadata(); } public static final int BLOCKING_RESOURCES_FIELD_NUMBER = 11; private com.google.protobuf.LazyStringList blockingResources_; /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotated dataset.
    * 
* * repeated string blocking_resources = 11; + * * @return A list containing the blockingResources. */ - public com.google.protobuf.ProtocolStringList - getBlockingResourcesList() { + public com.google.protobuf.ProtocolStringList getBlockingResourcesList() { return blockingResources_; } /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotated dataset.
    * 
* * repeated string blocking_resources = 11; + * * @return The count of blockingResources. */ public int getBlockingResourcesCount() { return blockingResources_.size(); } /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotated dataset.
    * 
* * repeated string blocking_resources = 11; + * * @param index The index of the element to return. * @return The blockingResources at the given index. */ @@ -578,21 +687,24 @@ public java.lang.String getBlockingResources(int index) { return blockingResources_.get(index); } /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotated dataset.
    * 
* * repeated string blocking_resources = 11; + * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - public com.google.protobuf.ByteString - getBlockingResourcesBytes(int index) { + public com.google.protobuf.ByteString getBlockingResourcesBytes(int index) { return blockingResources_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -604,15 +716,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (annotationSource_ != com.google.cloud.datalabeling.v1beta1.AnnotationSource.ANNOTATION_SOURCE_UNSPECIFIED.getNumber()) { + if (annotationSource_ + != com.google.cloud.datalabeling.v1beta1.AnnotationSource.ANNOTATION_SOURCE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, annotationSource_); } if (exampleCount_ != 0L) { @@ -627,7 +740,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (createTime_ != null) { output.writeMessage(7, getCreateTime()); } - if (annotationType_ != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED.getNumber()) { + if (annotationType_ + != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(8, annotationType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { @@ -654,36 +769,33 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (annotationSource_ != com.google.cloud.datalabeling.v1beta1.AnnotationSource.ANNOTATION_SOURCE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, annotationSource_); + if (annotationSource_ + != com.google.cloud.datalabeling.v1beta1.AnnotationSource.ANNOTATION_SOURCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, annotationSource_); } if (exampleCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(4, exampleCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, exampleCount_); } if (completedExampleCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(5, completedExampleCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, completedExampleCount_); } if (labelStats_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getLabelStats()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getLabelStats()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); } - if (annotationType_ != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, annotationType_); + if (annotationType_ + != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, annotationType_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, description_); } if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getMetadata()); } { int dataSize = 0; @@ -701,42 +813,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.datalabeling.v1beta1.AnnotatedDataset)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset other = (com.google.cloud.datalabeling.v1beta1.AnnotatedDataset) obj; + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset other = + (com.google.cloud.datalabeling.v1beta1.AnnotatedDataset) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (annotationSource_ != other.annotationSource_) return false; if (annotationType_ != other.annotationType_) return false; - if (getExampleCount() - != other.getExampleCount()) return false; - if (getCompletedExampleCount() - != other.getCompletedExampleCount()) return false; + if (getExampleCount() != other.getExampleCount()) return false; + if (getCompletedExampleCount() != other.getCompletedExampleCount()) return false; if (hasLabelStats() != other.hasLabelStats()) return false; if (hasLabelStats()) { - if (!getLabelStats() - .equals(other.getLabelStats())) return false; + if (!getLabelStats().equals(other.getLabelStats())) 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 (hasMetadata() != other.hasMetadata()) return false; if (hasMetadata()) { - if (!getMetadata() - .equals(other.getMetadata())) return false; + if (!getMetadata().equals(other.getMetadata())) return false; } - if (!getBlockingResourcesList() - .equals(other.getBlockingResourcesList())) return false; + if (!getBlockingResourcesList().equals(other.getBlockingResourcesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -759,11 +863,9 @@ public int hashCode() { hash = (37 * hash) + ANNOTATION_TYPE_FIELD_NUMBER; hash = (53 * hash) + annotationType_; hash = (37 * hash) + EXAMPLE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getExampleCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getExampleCount()); hash = (37 * hash) + COMPLETED_EXAMPLE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getCompletedExampleCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCompletedExampleCount()); if (hasLabelStats()) { hash = (37 * hash) + LABEL_STATS_FIELD_NUMBER; hash = (53 * hash) + getLabelStats().hashCode(); @@ -786,96 +888,104 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset 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.datalabeling.v1beta1.AnnotatedDataset parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.AnnotatedDataset prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * AnnotatedDataset is a set holding annotations for data in a Dataset. Each
    * labeling task will generate an AnnotatedDataset under the Dataset that the
@@ -884,21 +994,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotatedDataset}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.AnnotatedDataset)
       com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.class, com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.class,
+              com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.newBuilder()
@@ -906,16 +1018,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();
@@ -957,9 +1068,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor;
     }
 
     @java.lang.Override
@@ -978,7 +1089,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.AnnotatedDataset result = new com.google.cloud.datalabeling.v1beta1.AnnotatedDataset(this);
+      com.google.cloud.datalabeling.v1beta1.AnnotatedDataset result =
+          new com.google.cloud.datalabeling.v1beta1.AnnotatedDataset(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.displayName_ = displayName_;
@@ -1015,38 +1127,39 @@ public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.AnnotatedDataset) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotatedDataset)other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotatedDataset) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1054,7 +1167,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.AnnotatedDataset other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.getDefaultInstance()) return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1117,7 +1231,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.datalabeling.v1beta1.AnnotatedDataset) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.datalabeling.v1beta1.AnnotatedDataset) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1126,10 +1241,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. AnnotatedDataset resource name in format of:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -1137,13 +1255,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; @@ -1152,6 +1270,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. AnnotatedDataset resource name in format of:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -1159,15 +1279,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 { @@ -1175,6 +1294,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. AnnotatedDataset resource name in format of:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -1182,20 +1303,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. AnnotatedDataset resource name in format of:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -1203,15 +1326,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. AnnotatedDataset resource name in format of:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -1219,16 +1345,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; @@ -1236,6 +1362,8 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Output only. The display name of the AnnotatedDataset. It is specified in
      * HumanAnnotationConfig when user starts a labeling task. Maximum of 64
@@ -1243,13 +1371,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; @@ -1258,6 +1386,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Output only. The display name of the AnnotatedDataset. It is specified in
      * HumanAnnotationConfig when user starts a labeling task. Maximum of 64
@@ -1265,15 +1395,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 { @@ -1281,6 +1410,8 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Output only. The display name of the AnnotatedDataset. It is specified in
      * HumanAnnotationConfig when user starts a labeling task. Maximum of 64
@@ -1288,20 +1419,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; } /** + * + * *
      * Output only. The display name of the AnnotatedDataset. It is specified in
      * HumanAnnotationConfig when user starts a labeling task. Maximum of 64
@@ -1309,15 +1442,18 @@ public Builder setDisplayName(
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Output only. The display name of the AnnotatedDataset. It is specified in
      * HumanAnnotationConfig when user starts a labeling task. Maximum of 64
@@ -1325,16 +1461,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; @@ -1342,6 +1478,8 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Output only. The description of the AnnotatedDataset. It is specified in
      * HumanAnnotationConfig when user starts a labeling task. Maximum of 10000
@@ -1349,13 +1487,13 @@ public Builder setDisplayNameBytes(
      * 
* * string description = 9; + * * @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; @@ -1364,6 +1502,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Output only. The description of the AnnotatedDataset. It is specified in
      * HumanAnnotationConfig when user starts a labeling task. Maximum of 10000
@@ -1371,15 +1511,14 @@ public java.lang.String getDescription() {
      * 
* * string description = 9; + * * @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 { @@ -1387,6 +1526,8 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Output only. The description of the AnnotatedDataset. It is specified in
      * HumanAnnotationConfig when user starts a labeling task. Maximum of 10000
@@ -1394,20 +1535,22 @@ public java.lang.String getDescription() {
      * 
* * string description = 9; + * * @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; } /** + * + * *
      * Output only. The description of the AnnotatedDataset. It is specified in
      * HumanAnnotationConfig when user starts a labeling task. Maximum of 10000
@@ -1415,15 +1558,18 @@ public Builder setDescription(
      * 
* * string description = 9; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Output only. The description of the AnnotatedDataset. It is specified in
      * HumanAnnotationConfig when user starts a labeling task. Maximum of 10000
@@ -1431,16 +1577,16 @@ public Builder clearDescription() {
      * 
* * string description = 9; + * * @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; @@ -1448,73 +1594,93 @@ public Builder setDescriptionBytes( private int annotationSource_ = 0; /** + * + * *
      * Output only. Source of the annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3; + * * @return The enum numeric value on the wire for annotationSource. */ - @java.lang.Override public int getAnnotationSourceValue() { + @java.lang.Override + public int getAnnotationSourceValue() { return annotationSource_; } /** + * + * *
      * Output only. Source of the annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3; + * * @param value The enum numeric value on the wire for annotationSource to set. * @return This builder for chaining. */ public Builder setAnnotationSourceValue(int value) { - + annotationSource_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Source of the annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3; + * * @return The annotationSource. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSource getAnnotationSource() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationSource result = com.google.cloud.datalabeling.v1beta1.AnnotationSource.valueOf(annotationSource_); - return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSource.UNRECOGNIZED : result; + com.google.cloud.datalabeling.v1beta1.AnnotationSource result = + com.google.cloud.datalabeling.v1beta1.AnnotationSource.valueOf(annotationSource_); + return result == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSource.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Source of the annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3; + * * @param value The annotationSource to set. * @return This builder for chaining. */ - public Builder setAnnotationSource(com.google.cloud.datalabeling.v1beta1.AnnotationSource value) { + public Builder setAnnotationSource( + com.google.cloud.datalabeling.v1beta1.AnnotationSource value) { if (value == null) { throw new NullPointerException(); } - + annotationSource_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. Source of the annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3; + * * @return This builder for chaining. */ public Builder clearAnnotationSource() { - + annotationSource_ = 0; onChanged(); return this; @@ -1522,55 +1688,71 @@ public Builder clearAnnotationSource() { private int annotationType_ = 0; /** + * + * *
      * Output only. Type of the annotation. It is specified when starting labeling
      * task.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8; + * * @return The enum numeric value on the wire for annotationType. */ - @java.lang.Override public int getAnnotationTypeValue() { + @java.lang.Override + public int getAnnotationTypeValue() { return annotationType_; } /** + * + * *
      * Output only. Type of the annotation. It is specified when starting labeling
      * task.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8; + * * @param value The enum numeric value on the wire for annotationType to set. * @return This builder for chaining. */ public Builder setAnnotationTypeValue(int value) { - + annotationType_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Type of the annotation. It is specified when starting labeling
      * task.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8; + * * @return The annotationType. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationType result = com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); - return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED : result; + com.google.cloud.datalabeling.v1beta1.AnnotationType result = + com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); + return result == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Type of the annotation. It is specified when starting labeling
      * task.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8; + * * @param value The annotationType to set. * @return This builder for chaining. */ @@ -1578,34 +1760,40 @@ public Builder setAnnotationType(com.google.cloud.datalabeling.v1beta1.Annotatio if (value == null) { throw new NullPointerException(); } - + annotationType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. Type of the annotation. It is specified when starting labeling
      * task.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8; + * * @return This builder for chaining. */ public Builder clearAnnotationType() { - + annotationType_ = 0; onChanged(); return this; } - private long exampleCount_ ; + private long exampleCount_; /** + * + * *
      * Output only. Number of examples in the annotated dataset.
      * 
* * int64 example_count = 4; + * * @return The exampleCount. */ @java.lang.Override @@ -1613,43 +1801,52 @@ public long getExampleCount() { return exampleCount_; } /** + * + * *
      * Output only. Number of examples in the annotated dataset.
      * 
* * int64 example_count = 4; + * * @param value The exampleCount to set. * @return This builder for chaining. */ public Builder setExampleCount(long value) { - + exampleCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Number of examples in the annotated dataset.
      * 
* * int64 example_count = 4; + * * @return This builder for chaining. */ public Builder clearExampleCount() { - + exampleCount_ = 0L; onChanged(); return this; } - private long completedExampleCount_ ; + private long completedExampleCount_; /** + * + * *
      * Output only. Number of examples that have annotation in the annotated
      * dataset.
      * 
* * int64 completed_example_count = 5; + * * @return The completedExampleCount. */ @java.lang.Override @@ -1657,32 +1854,38 @@ public long getCompletedExampleCount() { return completedExampleCount_; } /** + * + * *
      * Output only. Number of examples that have annotation in the annotated
      * dataset.
      * 
* * int64 completed_example_count = 5; + * * @param value The completedExampleCount to set. * @return This builder for chaining. */ public Builder setCompletedExampleCount(long value) { - + completedExampleCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Number of examples that have annotation in the annotated
      * dataset.
      * 
* * int64 completed_example_count = 5; + * * @return This builder for chaining. */ public Builder clearCompletedExampleCount() { - + completedExampleCount_ = 0L; onChanged(); return this; @@ -1690,34 +1893,47 @@ public Builder clearCompletedExampleCount() { private com.google.cloud.datalabeling.v1beta1.LabelStats labelStats_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelStats, com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder> labelStatsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelStats, + com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, + com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder> + labelStatsBuilder_; /** + * + * *
      * Output only. Per label statistics.
      * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6; + * * @return Whether the labelStats field is set. */ public boolean hasLabelStats() { return labelStatsBuilder_ != null || labelStats_ != null; } /** + * + * *
      * Output only. Per label statistics.
      * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6; + * * @return The labelStats. */ public com.google.cloud.datalabeling.v1beta1.LabelStats getLabelStats() { if (labelStatsBuilder_ == null) { - return labelStats_ == null ? com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() : labelStats_; + return labelStats_ == null + ? com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() + : labelStats_; } else { return labelStatsBuilder_.getMessage(); } } /** + * + * *
      * Output only. Per label statistics.
      * 
@@ -1738,6 +1954,8 @@ public Builder setLabelStats(com.google.cloud.datalabeling.v1beta1.LabelStats va return this; } /** + * + * *
      * Output only. Per label statistics.
      * 
@@ -1756,6 +1974,8 @@ public Builder setLabelStats( return this; } /** + * + * *
      * Output only. Per label statistics.
      * 
@@ -1766,7 +1986,9 @@ public Builder mergeLabelStats(com.google.cloud.datalabeling.v1beta1.LabelStats if (labelStatsBuilder_ == null) { if (labelStats_ != null) { labelStats_ = - com.google.cloud.datalabeling.v1beta1.LabelStats.newBuilder(labelStats_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.LabelStats.newBuilder(labelStats_) + .mergeFrom(value) + .buildPartial(); } else { labelStats_ = value; } @@ -1778,6 +2000,8 @@ public Builder mergeLabelStats(com.google.cloud.datalabeling.v1beta1.LabelStats return this; } /** + * + * *
      * Output only. Per label statistics.
      * 
@@ -1796,6 +2020,8 @@ public Builder clearLabelStats() { return this; } /** + * + * *
      * Output only. Per label statistics.
      * 
@@ -1803,11 +2029,13 @@ public Builder clearLabelStats() { * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6; */ public com.google.cloud.datalabeling.v1beta1.LabelStats.Builder getLabelStatsBuilder() { - + onChanged(); return getLabelStatsFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Per label statistics.
      * 
@@ -1818,11 +2046,14 @@ public com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder getLabelStatsOr if (labelStatsBuilder_ != null) { return labelStatsBuilder_.getMessageOrBuilder(); } else { - return labelStats_ == null ? - com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() : labelStats_; + return labelStats_ == null + ? com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() + : labelStats_; } } /** + * + * *
      * Output only. Per label statistics.
      * 
@@ -1830,14 +2061,17 @@ public com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder getLabelStatsOr * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelStats, com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelStats, + com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, + com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder> getLabelStatsFieldBuilder() { if (labelStatsBuilder_ == null) { - labelStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelStats, com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder>( - getLabelStats(), - getParentForChildren(), - isClean()); + labelStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelStats, + com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, + com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder>( + getLabelStats(), getParentForChildren(), isClean()); labelStats_ = null; } return labelStatsBuilder_; @@ -1845,34 +2079,47 @@ public com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder getLabelStatsOr 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 the AnnotatedDataset was created.
      * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Time the AnnotatedDataset was created.
      * 
* * .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. Time the AnnotatedDataset was created.
      * 
@@ -1893,14 +2140,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time the AnnotatedDataset was created.
      * 
* * .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(); @@ -1911,6 +2159,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time the AnnotatedDataset was created.
      * 
@@ -1921,7 +2171,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; } @@ -1933,6 +2183,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time the AnnotatedDataset was created.
      * 
@@ -1951,6 +2203,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time the AnnotatedDataset was created.
      * 
@@ -1958,11 +2212,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 7; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time the AnnotatedDataset was created.
      * 
@@ -1973,11 +2229,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 the AnnotatedDataset was created.
      * 
@@ -1985,14 +2244,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_; @@ -2000,41 +2262,55 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata, com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder, com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder> metadataBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata, + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder> + metadataBuilder_; /** + * + * *
      * Output only. Additional information about AnnotatedDataset.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; + * * @return Whether the metadata field is set. */ public boolean hasMetadata() { return metadataBuilder_ != null || metadata_ != null; } /** + * + * *
      * Output only. Additional information about AnnotatedDataset.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; + * * @return The metadata. */ public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.getDefaultInstance() + : metadata_; } else { return metadataBuilder_.getMessage(); } } /** + * + * *
      * Output only. Additional information about AnnotatedDataset.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; */ - public Builder setMetadata(com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata value) { + public Builder setMetadata( + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2048,6 +2324,8 @@ public Builder setMetadata(com.google.cloud.datalabeling.v1beta1.AnnotatedDatase return this; } /** + * + * *
      * Output only. Additional information about AnnotatedDataset.
      * 
@@ -2066,17 +2344,22 @@ public Builder setMetadata( return this; } /** + * + * *
      * Output only. Additional information about AnnotatedDataset.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; */ - public Builder mergeMetadata(com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata value) { + public Builder mergeMetadata( + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata value) { if (metadataBuilder_ == null) { if (metadata_ != null) { metadata_ = - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.newBuilder(metadata_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); } else { metadata_ = value; } @@ -2088,6 +2371,8 @@ public Builder mergeMetadata(com.google.cloud.datalabeling.v1beta1.AnnotatedData return this; } /** + * + * *
      * Output only. Additional information about AnnotatedDataset.
      * 
@@ -2106,33 +2391,42 @@ public Builder clearMetadata() { return this; } /** + * + * *
      * Output only. Additional information about AnnotatedDataset.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; */ - public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder getMetadataBuilder() { - + public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder + getMetadataBuilder() { + onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Additional information about AnnotatedDataset.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; */ - public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder getMetadataOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder + getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { - return metadata_ == null ? - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.getDefaultInstance() : metadata_; + return metadata_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.getDefaultInstance() + : metadata_; } } /** + * + * *
      * Output only. Additional information about AnnotatedDataset.
      * 
@@ -2140,58 +2434,71 @@ public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder g * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata, com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder, com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata, + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata, com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder, com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata, + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); metadata_ = null; } return metadataBuilder_; } - private com.google.protobuf.LazyStringList blockingResources_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList blockingResources_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureBlockingResourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { blockingResources_ = new com.google.protobuf.LazyStringArrayList(blockingResources_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotated dataset.
      * 
* * repeated string blocking_resources = 11; + * * @return A list containing the blockingResources. */ - public com.google.protobuf.ProtocolStringList - getBlockingResourcesList() { + public com.google.protobuf.ProtocolStringList getBlockingResourcesList() { return blockingResources_.getUnmodifiableView(); } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotated dataset.
      * 
* * repeated string blocking_resources = 11; + * * @return The count of blockingResources. */ public int getBlockingResourcesCount() { return blockingResources_.size(); } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotated dataset.
      * 
* * repeated string blocking_resources = 11; + * * @param index The index of the element to return. * @return The blockingResources at the given index. */ @@ -2199,85 +2506,95 @@ public java.lang.String getBlockingResources(int index) { return blockingResources_.get(index); } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotated dataset.
      * 
* * repeated string blocking_resources = 11; + * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - public com.google.protobuf.ByteString - getBlockingResourcesBytes(int index) { + public com.google.protobuf.ByteString getBlockingResourcesBytes(int index) { return blockingResources_.getByteString(index); } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotated dataset.
      * 
* * repeated string blocking_resources = 11; + * * @param index The index to set the value at. * @param value The blockingResources to set. * @return This builder for chaining. */ - public Builder setBlockingResources( - int index, java.lang.String value) { + public Builder setBlockingResources(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlockingResourcesIsMutable(); + throw new NullPointerException(); + } + ensureBlockingResourcesIsMutable(); blockingResources_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotated dataset.
      * 
* * repeated string blocking_resources = 11; + * * @param value The blockingResources to add. * @return This builder for chaining. */ - public Builder addBlockingResources( - java.lang.String value) { + public Builder addBlockingResources(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlockingResourcesIsMutable(); + throw new NullPointerException(); + } + ensureBlockingResourcesIsMutable(); blockingResources_.add(value); onChanged(); return this; } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotated dataset.
      * 
* * repeated string blocking_resources = 11; + * * @param values The blockingResources to add. * @return This builder for chaining. */ - public Builder addAllBlockingResources( - java.lang.Iterable values) { + public Builder addAllBlockingResources(java.lang.Iterable values) { ensureBlockingResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, blockingResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blockingResources_); onChanged(); return this; } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotated dataset.
      * 
* * repeated string blocking_resources = 11; + * * @return This builder for chaining. */ public Builder clearBlockingResources() { @@ -2287,29 +2604,31 @@ public Builder clearBlockingResources() { return this; } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotated dataset.
      * 
* * repeated string blocking_resources = 11; + * * @param value The bytes of the blockingResources to add. * @return This builder for chaining. */ - public Builder addBlockingResourcesBytes( - com.google.protobuf.ByteString value) { + public Builder addBlockingResourcesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureBlockingResourcesIsMutable(); blockingResources_.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); } @@ -2319,12 +2638,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.AnnotatedDataset) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.AnnotatedDataset) private static final com.google.cloud.datalabeling.v1beta1.AnnotatedDataset DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.AnnotatedDataset(); } @@ -2333,16 +2652,16 @@ public static com.google.cloud.datalabeling.v1beta1.AnnotatedDataset getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotatedDataset parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotatedDataset(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotatedDataset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotatedDataset(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2357,6 +2676,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadata.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadata.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadata.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadata.java index 39c6a59c..f89b663e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadata.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadata.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Metadata on AnnotatedDataset.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata} */ -public final class AnnotatedDatasetMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AnnotatedDatasetMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata) AnnotatedDatasetMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnnotatedDatasetMetadata.newBuilder() to construct. private AnnotatedDatasetMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnnotatedDatasetMetadata() { - } + + private AnnotatedDatasetMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnnotatedDatasetMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AnnotatedDatasetMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,166 +68,252 @@ private AnnotatedDatasetMetadata( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (humanAnnotationConfig_ != null) { - subBuilder = humanAnnotationConfig_.toBuilder(); - } - humanAnnotationConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(humanAnnotationConfig_); - humanAnnotationConfig_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (humanAnnotationConfig_ != null) { + subBuilder = humanAnnotationConfig_.toBuilder(); + } + humanAnnotationConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(humanAnnotationConfig_); + humanAnnotationConfig_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder subBuilder = null; - if (annotationRequestConfigCase_ == 2) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) annotationRequestConfig_).toBuilder(); - } - annotationRequestConfig_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) annotationRequestConfig_); - annotationRequestConfig_ = subBuilder.buildPartial(); - } - annotationRequestConfigCase_ = 2; - break; - } - case 26: { - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder subBuilder = null; - if (annotationRequestConfigCase_ == 3) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_).toBuilder(); + break; } - annotationRequestConfig_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_); - annotationRequestConfig_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder subBuilder = + null; + if (annotationRequestConfigCase_ == 2) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) + annotationRequestConfig_) + .toBuilder(); + } + annotationRequestConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) + annotationRequestConfig_); + annotationRequestConfig_ = subBuilder.buildPartial(); + } + annotationRequestConfigCase_ = 2; + break; } - annotationRequestConfigCase_ = 3; - break; - } - case 34: { - com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder subBuilder = null; - if (annotationRequestConfigCase_ == 4) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_).toBuilder(); + case 26: + { + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder subBuilder = null; + if (annotationRequestConfigCase_ == 3) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) + annotationRequestConfig_) + .toBuilder(); + } + annotationRequestConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) + annotationRequestConfig_); + annotationRequestConfig_ = subBuilder.buildPartial(); + } + annotationRequestConfigCase_ = 3; + break; } - annotationRequestConfig_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.PolylineConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_); - annotationRequestConfig_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder subBuilder = null; + if (annotationRequestConfigCase_ == 4) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.PolylineConfig) + annotationRequestConfig_) + .toBuilder(); + } + annotationRequestConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.PolylineConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.PolylineConfig) + annotationRequestConfig_); + annotationRequestConfig_ = subBuilder.buildPartial(); + } + annotationRequestConfigCase_ = 4; + break; } - annotationRequestConfigCase_ = 4; - break; - } - case 42: { - com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder subBuilder = null; - if (annotationRequestConfigCase_ == 5) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_).toBuilder(); + case 42: + { + com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder subBuilder = null; + if (annotationRequestConfigCase_ == 5) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.SegmentationConfig) + annotationRequestConfig_) + .toBuilder(); + } + annotationRequestConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.SegmentationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) + annotationRequestConfig_); + annotationRequestConfig_ = subBuilder.buildPartial(); + } + annotationRequestConfigCase_ = 5; + break; } - annotationRequestConfig_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.SegmentationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_); - annotationRequestConfig_ = subBuilder.buildPartial(); + case 50: + { + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder subBuilder = + null; + if (annotationRequestConfigCase_ == 6) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) + annotationRequestConfig_) + .toBuilder(); + } + annotationRequestConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) + annotationRequestConfig_); + annotationRequestConfig_ = subBuilder.buildPartial(); + } + annotationRequestConfigCase_ = 6; + break; } - annotationRequestConfigCase_ = 5; - break; - } - case 50: { - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder subBuilder = null; - if (annotationRequestConfigCase_ == 6) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) annotationRequestConfig_).toBuilder(); + case 58: + { + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder subBuilder = null; + if (annotationRequestConfigCase_ == 7) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) + annotationRequestConfig_) + .toBuilder(); + } + annotationRequestConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) + annotationRequestConfig_); + annotationRequestConfig_ = subBuilder.buildPartial(); + } + annotationRequestConfigCase_ = 7; + break; } - annotationRequestConfig_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) annotationRequestConfig_); - annotationRequestConfig_ = subBuilder.buildPartial(); + case 66: + { + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder subBuilder = null; + if (annotationRequestConfigCase_ == 8) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) + annotationRequestConfig_) + .toBuilder(); + } + annotationRequestConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) + annotationRequestConfig_); + annotationRequestConfig_ = subBuilder.buildPartial(); + } + annotationRequestConfigCase_ = 8; + break; } - annotationRequestConfigCase_ = 6; - break; - } - case 58: { - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder subBuilder = null; - if (annotationRequestConfigCase_ == 7) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_).toBuilder(); + case 74: + { + com.google.cloud.datalabeling.v1beta1.EventConfig.Builder subBuilder = null; + if (annotationRequestConfigCase_ == 9) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_) + .toBuilder(); + } + annotationRequestConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.EventConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_); + annotationRequestConfig_ = subBuilder.buildPartial(); + } + annotationRequestConfigCase_ = 9; + break; } - annotationRequestConfig_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_); - annotationRequestConfig_ = subBuilder.buildPartial(); + case 82: + { + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder subBuilder = + null; + if (annotationRequestConfigCase_ == 10) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) + annotationRequestConfig_) + .toBuilder(); + } + annotationRequestConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) + annotationRequestConfig_); + annotationRequestConfig_ = subBuilder.buildPartial(); + } + annotationRequestConfigCase_ = 10; + break; } - annotationRequestConfigCase_ = 7; - break; - } - case 66: { - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder subBuilder = null; - if (annotationRequestConfigCase_ == 8) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_).toBuilder(); + case 90: + { + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder subBuilder = + null; + if (annotationRequestConfigCase_ == 11) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) + annotationRequestConfig_) + .toBuilder(); + } + annotationRequestConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) + annotationRequestConfig_); + annotationRequestConfig_ = subBuilder.buildPartial(); + } + annotationRequestConfigCase_ = 11; + break; } - annotationRequestConfig_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_); - annotationRequestConfig_ = subBuilder.buildPartial(); - } - annotationRequestConfigCase_ = 8; - break; - } - case 74: { - com.google.cloud.datalabeling.v1beta1.EventConfig.Builder subBuilder = null; - if (annotationRequestConfigCase_ == 9) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_).toBuilder(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - annotationRequestConfig_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.EventConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_); - annotationRequestConfig_ = subBuilder.buildPartial(); - } - annotationRequestConfigCase_ = 9; - break; - } - case 82: { - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder subBuilder = null; - if (annotationRequestConfigCase_ == 10) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) annotationRequestConfig_).toBuilder(); - } - annotationRequestConfig_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) annotationRequestConfig_); - annotationRequestConfig_ = subBuilder.buildPartial(); - } - annotationRequestConfigCase_ = 10; - break; - } - case 90: { - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder subBuilder = null; - if (annotationRequestConfigCase_ == 11) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) annotationRequestConfig_).toBuilder(); - } - annotationRequestConfig_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) annotationRequestConfig_); - annotationRequestConfig_ = subBuilder.buildPartial(); - } - annotationRequestConfigCase_ = 11; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -219,30 +321,34 @@ private AnnotatedDatasetMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.class, com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.class, + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder.class); } private int annotationRequestConfigCase_ = 0; private java.lang.Object annotationRequestConfig_; + public enum AnnotationRequestConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { IMAGE_CLASSIFICATION_CONFIG(2), BOUNDING_POLY_CONFIG(3), @@ -256,6 +362,7 @@ public enum AnnotationRequestConfigCase TEXT_ENTITY_EXTRACTION_CONFIG(11), ANNOTATIONREQUESTCONFIG_NOT_SET(0); private final int value; + private AnnotationRequestConfigCase(int value) { this.value = value; } @@ -271,38 +378,54 @@ public static AnnotationRequestConfigCase valueOf(int value) { public static AnnotationRequestConfigCase forNumber(int value) { switch (value) { - case 2: return IMAGE_CLASSIFICATION_CONFIG; - case 3: return BOUNDING_POLY_CONFIG; - case 4: return POLYLINE_CONFIG; - case 5: return SEGMENTATION_CONFIG; - case 6: return VIDEO_CLASSIFICATION_CONFIG; - case 7: return OBJECT_DETECTION_CONFIG; - case 8: return OBJECT_TRACKING_CONFIG; - case 9: return EVENT_CONFIG; - case 10: return TEXT_CLASSIFICATION_CONFIG; - case 11: return TEXT_ENTITY_EXTRACTION_CONFIG; - case 0: return ANNOTATIONREQUESTCONFIG_NOT_SET; - default: return null; + case 2: + return IMAGE_CLASSIFICATION_CONFIG; + case 3: + return BOUNDING_POLY_CONFIG; + case 4: + return POLYLINE_CONFIG; + case 5: + return SEGMENTATION_CONFIG; + case 6: + return VIDEO_CLASSIFICATION_CONFIG; + case 7: + return OBJECT_DETECTION_CONFIG; + case 8: + return OBJECT_TRACKING_CONFIG; + case 9: + return EVENT_CONFIG; + case 10: + return TEXT_CLASSIFICATION_CONFIG; + case 11: + return TEXT_ENTITY_EXTRACTION_CONFIG; + case 0: + return ANNOTATIONREQUESTCONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public AnnotationRequestConfigCase - getAnnotationRequestConfigCase() { - return AnnotationRequestConfigCase.forNumber( - annotationRequestConfigCase_); + public AnnotationRequestConfigCase getAnnotationRequestConfigCase() { + return AnnotationRequestConfigCase.forNumber(annotationRequestConfigCase_); } public static final int IMAGE_CLASSIFICATION_CONFIG_FIELD_NUMBER = 2; /** + * + * *
    * Configuration for image classification task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * + * * @return Whether the imageClassificationConfig field is set. */ @java.lang.Override @@ -310,42 +433,58 @@ public boolean hasImageClassificationConfig() { return annotationRequestConfigCase_ == 2; } /** + * + * *
    * Configuration for image classification task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * + * * @return The imageClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig + getImageClassificationConfig() { if (annotationRequestConfigCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) + annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } /** + * + * *
    * Configuration for image classification task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder getImageClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder + getImageClassificationConfigOrBuilder() { if (annotationRequestConfigCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) + annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } public static final int BOUNDING_POLY_CONFIG_FIELD_NUMBER = 3; /** + * + * *
    * Configuration for image bounding box and bounding poly task.
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; + * * @return Whether the boundingPolyConfig field is set. */ @java.lang.Override @@ -353,21 +492,26 @@ public boolean hasBoundingPolyConfig() { return annotationRequestConfigCase_ == 3; } /** + * + * *
    * Configuration for image bounding box and bounding poly task.
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; + * * @return The boundingPolyConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyConfig() { if (annotationRequestConfigCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance(); } /** + * + * *
    * Configuration for image bounding box and bounding poly task.
    * 
@@ -375,20 +519,24 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyC * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoundingPolyConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder + getBoundingPolyConfigOrBuilder() { if (annotationRequestConfigCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance(); } public static final int POLYLINE_CONFIG_FIELD_NUMBER = 4; /** + * + * *
    * Configuration for image polyline task.
    * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 4; + * * @return Whether the polylineConfig field is set. */ @java.lang.Override @@ -396,21 +544,26 @@ public boolean hasPolylineConfig() { return annotationRequestConfigCase_ == 4; } /** + * + * *
    * Configuration for image polyline task.
    * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 4; + * * @return The polylineConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PolylineConfig getPolylineConfig() { if (annotationRequestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance(); } /** + * + * *
    * Configuration for image polyline task.
    * 
@@ -418,20 +571,24 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig getPolylineConfig() * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 4; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder getPolylineConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder + getPolylineConfigOrBuilder() { if (annotationRequestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance(); } public static final int SEGMENTATION_CONFIG_FIELD_NUMBER = 5; /** + * + * *
    * Configuration for image segmentation task.
    * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; + * * @return Whether the segmentationConfig field is set. */ @java.lang.Override @@ -439,21 +596,26 @@ public boolean hasSegmentationConfig() { return annotationRequestConfigCase_ == 5; } /** + * + * *
    * Configuration for image segmentation task.
    * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; + * * @return The segmentationConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SegmentationConfig getSegmentationConfig() { if (annotationRequestConfigCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance(); } /** + * + * *
    * Configuration for image segmentation task.
    * 
@@ -461,20 +623,26 @@ public com.google.cloud.datalabeling.v1beta1.SegmentationConfig getSegmentationC * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder getSegmentationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder + getSegmentationConfigOrBuilder() { if (annotationRequestConfigCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance(); } public static final int VIDEO_CLASSIFICATION_CONFIG_FIELD_NUMBER = 6; /** + * + * *
    * Configuration for video classification task.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * + * * @return Whether the videoClassificationConfig field is set. */ @java.lang.Override @@ -482,42 +650,59 @@ public boolean hasVideoClassificationConfig() { return annotationRequestConfigCase_ == 6; } /** + * + * *
    * Configuration for video classification task.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * + * * @return The videoClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig getVideoClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + getVideoClassificationConfig() { if (annotationRequestConfigCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) + annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); } /** + * + * *
    * Configuration for video classification task.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder getVideoClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder + getVideoClassificationConfigOrBuilder() { if (annotationRequestConfigCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) + annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); } public static final int OBJECT_DETECTION_CONFIG_FIELD_NUMBER = 7; /** + * + * *
    * Configuration for video object detection task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * + * * @return Whether the objectDetectionConfig field is set. */ @java.lang.Override @@ -525,42 +710,54 @@ public boolean hasObjectDetectionConfig() { return annotationRequestConfigCase_ == 7; } /** + * + * *
    * Configuration for video object detection task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * + * * @return The objectDetectionConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig getObjectDetectionConfig() { if (annotationRequestConfigCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); } /** + * + * *
    * Configuration for video object detection task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder getObjectDetectionConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder + getObjectDetectionConfigOrBuilder() { if (annotationRequestConfigCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); } public static final int OBJECT_TRACKING_CONFIG_FIELD_NUMBER = 8; /** + * + * *
    * Configuration for video object tracking task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * + * * @return Whether the objectTrackingConfig field is set. */ @java.lang.Override @@ -568,42 +765,53 @@ public boolean hasObjectTrackingConfig() { return annotationRequestConfigCase_ == 8; } /** + * + * *
    * Configuration for video object tracking task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * + * * @return The objectTrackingConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig getObjectTrackingConfig() { if (annotationRequestConfigCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); } /** + * + * *
    * Configuration for video object tracking task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder getObjectTrackingConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder + getObjectTrackingConfigOrBuilder() { if (annotationRequestConfigCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); } public static final int EVENT_CONFIG_FIELD_NUMBER = 9; /** + * + * *
    * Configuration for video event labeling task.
    * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 9; + * * @return Whether the eventConfig field is set. */ @java.lang.Override @@ -611,21 +819,26 @@ public boolean hasEventConfig() { return annotationRequestConfigCase_ == 9; } /** + * + * *
    * Configuration for video event labeling task.
    * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 9; + * * @return The eventConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EventConfig getEventConfig() { if (annotationRequestConfigCase_ == 9) { - return (com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance(); } /** + * + * *
    * Configuration for video event labeling task.
    * 
@@ -635,18 +848,23 @@ public com.google.cloud.datalabeling.v1beta1.EventConfig getEventConfig() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder getEventConfigOrBuilder() { if (annotationRequestConfigCase_ == 9) { - return (com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance(); } public static final int TEXT_CLASSIFICATION_CONFIG_FIELD_NUMBER = 10; /** + * + * *
    * Configuration for text classification task.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * + * * @return Whether the textClassificationConfig field is set. */ @java.lang.Override @@ -654,42 +872,60 @@ public boolean hasTextClassificationConfig() { return annotationRequestConfigCase_ == 10; } /** + * + * *
    * Configuration for text classification task.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * + * * @return The textClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig + getTextClassificationConfig() { if (annotationRequestConfigCase_ == 10) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) + annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } /** + * + * *
    * Configuration for text classification task.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder getTextClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder + getTextClassificationConfigOrBuilder() { if (annotationRequestConfigCase_ == 10) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) + annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } public static final int TEXT_ENTITY_EXTRACTION_CONFIG_FIELD_NUMBER = 11; /** + * + * *
    * Configuration for text entity extraction task.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * + * * @return Whether the textEntityExtractionConfig field is set. */ @java.lang.Override @@ -697,31 +933,44 @@ public boolean hasTextEntityExtractionConfig() { return annotationRequestConfigCase_ == 11; } /** + * + * *
    * Configuration for text entity extraction task.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * + * * @return The textEntityExtractionConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig getTextEntityExtractionConfig() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig + getTextEntityExtractionConfig() { if (annotationRequestConfigCase_ == 11) { - return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) + annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); } /** + * + * *
    * Configuration for text entity extraction task.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder getTextEntityExtractionConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder + getTextEntityExtractionConfigOrBuilder() { if (annotationRequestConfigCase_ == 11) { - return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) + annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); } @@ -729,12 +978,16 @@ public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder public static final int HUMAN_ANNOTATION_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig humanAnnotationConfig_; /** + * + * *
    * HumanAnnotationConfig used when requesting the human labeling task for this
    * AnnotatedDataset.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * + * * @return Whether the humanAnnotationConfig field is set. */ @java.lang.Override @@ -742,32 +995,43 @@ public boolean hasHumanAnnotationConfig() { return humanAnnotationConfig_ != null; } /** + * + * *
    * HumanAnnotationConfig used when requesting the human labeling task for this
    * AnnotatedDataset.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * + * * @return The humanAnnotationConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getHumanAnnotationConfig() { - return humanAnnotationConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : humanAnnotationConfig_; + return humanAnnotationConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : humanAnnotationConfig_; } /** + * + * *
    * HumanAnnotationConfig used when requesting the human labeling task for this
    * AnnotatedDataset.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getHumanAnnotationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getHumanAnnotationConfigOrBuilder() { return getHumanAnnotationConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -779,40 +1043,58 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (humanAnnotationConfig_ != null) { output.writeMessage(1, getHumanAnnotationConfig()); } if (annotationRequestConfigCase_ == 2) { - output.writeMessage(2, (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) annotationRequestConfig_); + output.writeMessage( + 2, + (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) + annotationRequestConfig_); } if (annotationRequestConfigCase_ == 3) { - output.writeMessage(3, (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_); + output.writeMessage( + 3, (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 4) { - output.writeMessage(4, (com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_); + output.writeMessage( + 4, (com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 5) { - output.writeMessage(5, (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_); + output.writeMessage( + 5, (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 6) { - output.writeMessage(6, (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) annotationRequestConfig_); + output.writeMessage( + 6, + (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) + annotationRequestConfig_); } if (annotationRequestConfigCase_ == 7) { - output.writeMessage(7, (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_); + output.writeMessage( + 7, + (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 8) { - output.writeMessage(8, (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_); + output.writeMessage( + 8, (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 9) { - output.writeMessage(9, (com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_); + output.writeMessage( + 9, (com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 10) { - output.writeMessage(10, (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) annotationRequestConfig_); + output.writeMessage( + 10, + (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) + annotationRequestConfig_); } if (annotationRequestConfigCase_ == 11) { - output.writeMessage(11, (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) annotationRequestConfig_); + output.writeMessage( + 11, + (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) + annotationRequestConfig_); } unknownFields.writeTo(output); } @@ -824,48 +1106,72 @@ public int getSerializedSize() { size = 0; if (humanAnnotationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getHumanAnnotationConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getHumanAnnotationConfig()); } if (annotationRequestConfigCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) annotationRequestConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) + annotationRequestConfig_); } if (annotationRequestConfigCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) annotationRequestConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, + (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) + annotationRequestConfig_); } if (annotationRequestConfigCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) + annotationRequestConfig_); } if (annotationRequestConfigCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, + (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) + annotationRequestConfig_); } if (annotationRequestConfigCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_); } if (annotationRequestConfigCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) annotationRequestConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, + (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) + annotationRequestConfig_); } if (annotationRequestConfigCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) annotationRequestConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, + (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) + annotationRequestConfig_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -875,59 +1181,54 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata other = (com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata) obj; + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata other = + (com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata) obj; if (hasHumanAnnotationConfig() != other.hasHumanAnnotationConfig()) return false; if (hasHumanAnnotationConfig()) { - if (!getHumanAnnotationConfig() - .equals(other.getHumanAnnotationConfig())) return false; + if (!getHumanAnnotationConfig().equals(other.getHumanAnnotationConfig())) return false; } - if (!getAnnotationRequestConfigCase().equals(other.getAnnotationRequestConfigCase())) return false; + if (!getAnnotationRequestConfigCase().equals(other.getAnnotationRequestConfigCase())) + return false; switch (annotationRequestConfigCase_) { case 2: - if (!getImageClassificationConfig() - .equals(other.getImageClassificationConfig())) return false; + if (!getImageClassificationConfig().equals(other.getImageClassificationConfig())) + return false; break; case 3: - if (!getBoundingPolyConfig() - .equals(other.getBoundingPolyConfig())) return false; + if (!getBoundingPolyConfig().equals(other.getBoundingPolyConfig())) return false; break; case 4: - if (!getPolylineConfig() - .equals(other.getPolylineConfig())) return false; + if (!getPolylineConfig().equals(other.getPolylineConfig())) return false; break; case 5: - if (!getSegmentationConfig() - .equals(other.getSegmentationConfig())) return false; + if (!getSegmentationConfig().equals(other.getSegmentationConfig())) return false; break; case 6: - if (!getVideoClassificationConfig() - .equals(other.getVideoClassificationConfig())) return false; + if (!getVideoClassificationConfig().equals(other.getVideoClassificationConfig())) + return false; break; case 7: - if (!getObjectDetectionConfig() - .equals(other.getObjectDetectionConfig())) return false; + if (!getObjectDetectionConfig().equals(other.getObjectDetectionConfig())) return false; break; case 8: - if (!getObjectTrackingConfig() - .equals(other.getObjectTrackingConfig())) return false; + if (!getObjectTrackingConfig().equals(other.getObjectTrackingConfig())) return false; break; case 9: - if (!getEventConfig() - .equals(other.getEventConfig())) return false; + if (!getEventConfig().equals(other.getEventConfig())) return false; break; case 10: - if (!getTextClassificationConfig() - .equals(other.getTextClassificationConfig())) return false; + if (!getTextClassificationConfig().equals(other.getTextClassificationConfig())) + return false; break; case 11: - if (!getTextEntityExtractionConfig() - .equals(other.getTextEntityExtractionConfig())) return false; + if (!getTextEntityExtractionConfig().equals(other.getTextEntityExtractionConfig())) + return false; break; case 0: default: @@ -997,117 +1298,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata 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.datalabeling.v1beta1.AnnotatedDatasetMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 on AnnotatedDataset.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata) com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.class, com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.class, + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.newBuilder() @@ -1115,16 +1426,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(); @@ -1140,13 +1450,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.getDefaultInstance(); } @@ -1161,7 +1472,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata result = new com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata(this); + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata result = + new com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata(this); if (annotationRequestConfigCase_ == 2) { if (imageClassificationConfigBuilder_ == null) { result.annotationRequestConfig_ = annotationRequestConfig_; @@ -1246,38 +1558,39 @@ public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata 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.datalabeling.v1beta1.AnnotatedDatasetMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata) other); } else { super.mergeFrom(other); return this; @@ -1285,54 +1598,67 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata other) { - if (other == com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.getDefaultInstance()) return this; + if (other + == com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.getDefaultInstance()) + return this; if (other.hasHumanAnnotationConfig()) { mergeHumanAnnotationConfig(other.getHumanAnnotationConfig()); } switch (other.getAnnotationRequestConfigCase()) { - case IMAGE_CLASSIFICATION_CONFIG: { - mergeImageClassificationConfig(other.getImageClassificationConfig()); - break; - } - case BOUNDING_POLY_CONFIG: { - mergeBoundingPolyConfig(other.getBoundingPolyConfig()); - break; - } - case POLYLINE_CONFIG: { - mergePolylineConfig(other.getPolylineConfig()); - break; - } - case SEGMENTATION_CONFIG: { - mergeSegmentationConfig(other.getSegmentationConfig()); - break; - } - case VIDEO_CLASSIFICATION_CONFIG: { - mergeVideoClassificationConfig(other.getVideoClassificationConfig()); - break; - } - case OBJECT_DETECTION_CONFIG: { - mergeObjectDetectionConfig(other.getObjectDetectionConfig()); - break; - } - case OBJECT_TRACKING_CONFIG: { - mergeObjectTrackingConfig(other.getObjectTrackingConfig()); - break; - } - case EVENT_CONFIG: { - mergeEventConfig(other.getEventConfig()); - break; - } - case TEXT_CLASSIFICATION_CONFIG: { - mergeTextClassificationConfig(other.getTextClassificationConfig()); - break; - } - case TEXT_ENTITY_EXTRACTION_CONFIG: { - mergeTextEntityExtractionConfig(other.getTextEntityExtractionConfig()); - break; - } - case ANNOTATIONREQUESTCONFIG_NOT_SET: { - break; - } + case IMAGE_CLASSIFICATION_CONFIG: + { + mergeImageClassificationConfig(other.getImageClassificationConfig()); + break; + } + case BOUNDING_POLY_CONFIG: + { + mergeBoundingPolyConfig(other.getBoundingPolyConfig()); + break; + } + case POLYLINE_CONFIG: + { + mergePolylineConfig(other.getPolylineConfig()); + break; + } + case SEGMENTATION_CONFIG: + { + mergeSegmentationConfig(other.getSegmentationConfig()); + break; + } + case VIDEO_CLASSIFICATION_CONFIG: + { + mergeVideoClassificationConfig(other.getVideoClassificationConfig()); + break; + } + case OBJECT_DETECTION_CONFIG: + { + mergeObjectDetectionConfig(other.getObjectDetectionConfig()); + break; + } + case OBJECT_TRACKING_CONFIG: + { + mergeObjectTrackingConfig(other.getObjectTrackingConfig()); + break; + } + case EVENT_CONFIG: + { + mergeEventConfig(other.getEventConfig()); + break; + } + case TEXT_CLASSIFICATION_CONFIG: + { + mergeTextClassificationConfig(other.getTextClassificationConfig()); + break; + } + case TEXT_ENTITY_EXTRACTION_CONFIG: + { + mergeTextEntityExtractionConfig(other.getTextEntityExtractionConfig()); + break; + } + case ANNOTATIONREQUESTCONFIG_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1353,7 +1679,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1362,12 +1690,12 @@ public Builder mergeFrom( } return this; } + private int annotationRequestConfigCase_ = 0; private java.lang.Object annotationRequestConfig_; - public AnnotationRequestConfigCase - getAnnotationRequestConfigCase() { - return AnnotationRequestConfigCase.forNumber( - annotationRequestConfigCase_); + + public AnnotationRequestConfigCase getAnnotationRequestConfigCase() { + return AnnotationRequestConfigCase.forNumber(annotationRequestConfigCase_); } public Builder clearAnnotationRequestConfig() { @@ -1377,15 +1705,22 @@ public Builder clearAnnotationRequestConfig() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder> imageClassificationConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder> + imageClassificationConfigBuilder_; /** + * + * *
      * Configuration for image classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * + * * @return Whether the imageClassificationConfig field is set. */ @java.lang.Override @@ -1393,18 +1728,25 @@ public boolean hasImageClassificationConfig() { return annotationRequestConfigCase_ == 2; } /** + * + * *
      * Configuration for image classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * + * * @return The imageClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig + getImageClassificationConfig() { if (imageClassificationConfigBuilder_ == null) { if (annotationRequestConfigCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) + annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } else { @@ -1415,13 +1757,18 @@ public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageC } } /** + * + * *
      * Configuration for image classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * */ - public Builder setImageClassificationConfig(com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { + public Builder setImageClassificationConfig( + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { if (imageClassificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1435,11 +1782,15 @@ public Builder setImageClassificationConfig(com.google.cloud.datalabeling.v1beta return this; } /** + * + * *
      * Configuration for image classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * */ public Builder setImageClassificationConfig( com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder builderForValue) { @@ -1453,18 +1804,29 @@ public Builder setImageClassificationConfig( return this; } /** + * + * *
      * Configuration for image classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * */ - public Builder mergeImageClassificationConfig(com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { + public Builder mergeImageClassificationConfig( + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { if (imageClassificationConfigBuilder_ == null) { - if (annotationRequestConfigCase_ == 2 && - annotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance()) { - annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) annotationRequestConfig_) - .mergeFrom(value).buildPartial(); + if (annotationRequestConfigCase_ == 2 + && annotationRequestConfig_ + != com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig + .getDefaultInstance()) { + annotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.newBuilder( + (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) + annotationRequestConfig_) + .mergeFrom(value) + .buildPartial(); } else { annotationRequestConfig_ = value; } @@ -1480,11 +1842,15 @@ public Builder mergeImageClassificationConfig(com.google.cloud.datalabeling.v1be return this; } /** + * + * *
      * Configuration for image classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * */ public Builder clearImageClassificationConfig() { if (imageClassificationConfigBuilder_ == null) { @@ -1503,67 +1869,96 @@ public Builder clearImageClassificationConfig() { return this; } /** + * + * *
      * Configuration for image classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * */ - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder getImageClassificationConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder + getImageClassificationConfigBuilder() { return getImageClassificationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Configuration for image classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder getImageClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder + getImageClassificationConfigOrBuilder() { if ((annotationRequestConfigCase_ == 2) && (imageClassificationConfigBuilder_ != null)) { return imageClassificationConfigBuilder_.getMessageOrBuilder(); } else { if (annotationRequestConfigCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) + annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } } /** + * + * *
      * Configuration for image classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder> getImageClassificationConfigFieldBuilder() { if (imageClassificationConfigBuilder_ == null) { if (!(annotationRequestConfigCase_ == 2)) { - annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); + annotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } - imageClassificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) annotationRequestConfig_, + imageClassificationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) + annotationRequestConfig_, getParentForChildren(), isClean()); annotationRequestConfig_ = null; } annotationRequestConfigCase_ = 2; - onChanged();; + onChanged(); + ; return imageClassificationConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder> boundingPolyConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder> + boundingPolyConfigBuilder_; /** + * + * *
      * Configuration for image bounding box and bounding poly task.
      * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; + * * @return Whether the boundingPolyConfig field is set. */ @java.lang.Override @@ -1571,18 +1966,22 @@ public boolean hasBoundingPolyConfig() { return annotationRequestConfigCase_ == 3; } /** + * + * *
      * Configuration for image bounding box and bounding poly task.
      * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; + * * @return The boundingPolyConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyConfig() { if (boundingPolyConfigBuilder_ == null) { if (annotationRequestConfigCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) + annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance(); } else { @@ -1593,13 +1992,16 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyC } } /** + * + * *
      * Configuration for image bounding box and bounding poly task.
      * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; */ - public Builder setBoundingPolyConfig(com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) { + public Builder setBoundingPolyConfig( + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) { if (boundingPolyConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1613,6 +2015,8 @@ public Builder setBoundingPolyConfig(com.google.cloud.datalabeling.v1beta1.Bound return this; } /** + * + * *
      * Configuration for image bounding box and bounding poly task.
      * 
@@ -1631,18 +2035,26 @@ public Builder setBoundingPolyConfig( return this; } /** + * + * *
      * Configuration for image bounding box and bounding poly task.
      * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; */ - public Builder mergeBoundingPolyConfig(com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) { + public Builder mergeBoundingPolyConfig( + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) { if (boundingPolyConfigBuilder_ == null) { - if (annotationRequestConfigCase_ == 3 && - annotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance()) { - annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_) - .mergeFrom(value).buildPartial(); + if (annotationRequestConfigCase_ == 3 + && annotationRequestConfig_ + != com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance()) { + annotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.newBuilder( + (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) + annotationRequestConfig_) + .mergeFrom(value) + .buildPartial(); } else { annotationRequestConfig_ = value; } @@ -1658,6 +2070,8 @@ public Builder mergeBoundingPolyConfig(com.google.cloud.datalabeling.v1beta1.Bou return this; } /** + * + * *
      * Configuration for image bounding box and bounding poly task.
      * 
@@ -1681,16 +2095,21 @@ public Builder clearBoundingPolyConfig() { return this; } /** + * + * *
      * Configuration for image bounding box and bounding poly task.
      * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; */ - public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder getBoundingPolyConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder + getBoundingPolyConfigBuilder() { return getBoundingPolyConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Configuration for image bounding box and bounding poly task.
      * 
@@ -1698,17 +2117,21 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder getBound * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoundingPolyConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder + getBoundingPolyConfigOrBuilder() { if ((annotationRequestConfigCase_ == 3) && (boundingPolyConfigBuilder_ != null)) { return boundingPolyConfigBuilder_.getMessageOrBuilder(); } else { if (annotationRequestConfigCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) + annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance(); } } /** + * + * *
      * Configuration for image bounding box and bounding poly task.
      * 
@@ -1716,32 +2139,45 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoun * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder> getBoundingPolyConfigFieldBuilder() { if (boundingPolyConfigBuilder_ == null) { if (!(annotationRequestConfigCase_ == 3)) { - annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance(); + annotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance(); } - boundingPolyConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder>( + boundingPolyConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder>( (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) annotationRequestConfig_, getParentForChildren(), isClean()); annotationRequestConfig_ = null; } annotationRequestConfigCase_ = 3; - onChanged();; + onChanged(); + ; return boundingPolyConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.PolylineConfig, com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder, com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder> polylineConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.PolylineConfig, + com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder, + com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder> + polylineConfigBuilder_; /** + * + * *
      * Configuration for image polyline task.
      * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 4; + * * @return Whether the polylineConfig field is set. */ @java.lang.Override @@ -1749,11 +2185,14 @@ public boolean hasPolylineConfig() { return annotationRequestConfigCase_ == 4; } /** + * + * *
      * Configuration for image polyline task.
      * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 4; + * * @return The polylineConfig. */ @java.lang.Override @@ -1771,6 +2210,8 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig getPolylineConfig() } } /** + * + * *
      * Configuration for image polyline task.
      * 
@@ -1791,6 +2232,8 @@ public Builder setPolylineConfig(com.google.cloud.datalabeling.v1beta1.PolylineC return this; } /** + * + * *
      * Configuration for image polyline task.
      * 
@@ -1809,6 +2252,8 @@ public Builder setPolylineConfig( return this; } /** + * + * *
      * Configuration for image polyline task.
      * 
@@ -1817,10 +2262,15 @@ public Builder setPolylineConfig( */ public Builder mergePolylineConfig(com.google.cloud.datalabeling.v1beta1.PolylineConfig value) { if (polylineConfigBuilder_ == null) { - if (annotationRequestConfigCase_ == 4 && - annotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance()) { - annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.PolylineConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_) - .mergeFrom(value).buildPartial(); + if (annotationRequestConfigCase_ == 4 + && annotationRequestConfig_ + != com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance()) { + annotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.PolylineConfig.newBuilder( + (com.google.cloud.datalabeling.v1beta1.PolylineConfig) + annotationRequestConfig_) + .mergeFrom(value) + .buildPartial(); } else { annotationRequestConfig_ = value; } @@ -1836,6 +2286,8 @@ public Builder mergePolylineConfig(com.google.cloud.datalabeling.v1beta1.Polylin return this; } /** + * + * *
      * Configuration for image polyline task.
      * 
@@ -1859,6 +2311,8 @@ public Builder clearPolylineConfig() { return this; } /** + * + * *
      * Configuration for image polyline task.
      * 
@@ -1869,6 +2323,8 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder getPolylineC return getPolylineConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Configuration for image polyline task.
      * 
@@ -1876,7 +2332,8 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder getPolylineC * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 4; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder getPolylineConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder + getPolylineConfigOrBuilder() { if ((annotationRequestConfigCase_ == 4) && (polylineConfigBuilder_ != null)) { return polylineConfigBuilder_.getMessageOrBuilder(); } else { @@ -1887,6 +2344,8 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder getPolyline } } /** + * + * *
      * Configuration for image polyline task.
      * 
@@ -1894,32 +2353,45 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder getPolyline * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.PolylineConfig, com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder, com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.PolylineConfig, + com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder, + com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder> getPolylineConfigFieldBuilder() { if (polylineConfigBuilder_ == null) { if (!(annotationRequestConfigCase_ == 4)) { - annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance(); + annotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance(); } - polylineConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.PolylineConfig, com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder, com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder>( + polylineConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.PolylineConfig, + com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder, + com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder>( (com.google.cloud.datalabeling.v1beta1.PolylineConfig) annotationRequestConfig_, getParentForChildren(), isClean()); annotationRequestConfig_ = null; } annotationRequestConfigCase_ = 4; - onChanged();; + onChanged(); + ; return polylineConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SegmentationConfig, com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder, com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder> segmentationConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.SegmentationConfig, + com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder> + segmentationConfigBuilder_; /** + * + * *
      * Configuration for image segmentation task.
      * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; + * * @return Whether the segmentationConfig field is set. */ @java.lang.Override @@ -1927,18 +2399,22 @@ public boolean hasSegmentationConfig() { return annotationRequestConfigCase_ == 5; } /** + * + * *
      * Configuration for image segmentation task.
      * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; + * * @return The segmentationConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SegmentationConfig getSegmentationConfig() { if (segmentationConfigBuilder_ == null) { if (annotationRequestConfigCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) + annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance(); } else { @@ -1949,13 +2425,16 @@ public com.google.cloud.datalabeling.v1beta1.SegmentationConfig getSegmentationC } } /** + * + * *
      * Configuration for image segmentation task.
      * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; */ - public Builder setSegmentationConfig(com.google.cloud.datalabeling.v1beta1.SegmentationConfig value) { + public Builder setSegmentationConfig( + com.google.cloud.datalabeling.v1beta1.SegmentationConfig value) { if (segmentationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1969,6 +2448,8 @@ public Builder setSegmentationConfig(com.google.cloud.datalabeling.v1beta1.Segme return this; } /** + * + * *
      * Configuration for image segmentation task.
      * 
@@ -1987,18 +2468,26 @@ public Builder setSegmentationConfig( return this; } /** + * + * *
      * Configuration for image segmentation task.
      * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; */ - public Builder mergeSegmentationConfig(com.google.cloud.datalabeling.v1beta1.SegmentationConfig value) { + public Builder mergeSegmentationConfig( + com.google.cloud.datalabeling.v1beta1.SegmentationConfig value) { if (segmentationConfigBuilder_ == null) { - if (annotationRequestConfigCase_ == 5 && - annotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance()) { - annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.SegmentationConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_) - .mergeFrom(value).buildPartial(); + if (annotationRequestConfigCase_ == 5 + && annotationRequestConfig_ + != com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance()) { + annotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.SegmentationConfig.newBuilder( + (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) + annotationRequestConfig_) + .mergeFrom(value) + .buildPartial(); } else { annotationRequestConfig_ = value; } @@ -2014,6 +2503,8 @@ public Builder mergeSegmentationConfig(com.google.cloud.datalabeling.v1beta1.Seg return this; } /** + * + * *
      * Configuration for image segmentation task.
      * 
@@ -2037,16 +2528,21 @@ public Builder clearSegmentationConfig() { return this; } /** + * + * *
      * Configuration for image segmentation task.
      * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; */ - public com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder getSegmentationConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder + getSegmentationConfigBuilder() { return getSegmentationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Configuration for image segmentation task.
      * 
@@ -2054,17 +2550,21 @@ public com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder getSegme * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder getSegmentationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder + getSegmentationConfigOrBuilder() { if ((annotationRequestConfigCase_ == 5) && (segmentationConfigBuilder_ != null)) { return segmentationConfigBuilder_.getMessageOrBuilder(); } else { if (annotationRequestConfigCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) + annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance(); } } /** + * + * *
      * Configuration for image segmentation task.
      * 
@@ -2072,32 +2572,47 @@ public com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder getSegm * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SegmentationConfig, com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder, com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.SegmentationConfig, + com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder> getSegmentationConfigFieldBuilder() { if (segmentationConfigBuilder_ == null) { if (!(annotationRequestConfigCase_ == 5)) { - annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance(); + annotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance(); } - segmentationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SegmentationConfig, com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder, com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder>( + segmentationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.SegmentationConfig, + com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder>( (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) annotationRequestConfig_, getParentForChildren(), isClean()); annotationRequestConfig_ = null; } annotationRequestConfigCase_ = 5; - onChanged();; + onChanged(); + ; return segmentationConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder> videoClassificationConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder> + videoClassificationConfigBuilder_; /** + * + * *
      * Configuration for video classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * + * * @return Whether the videoClassificationConfig field is set. */ @java.lang.Override @@ -2105,18 +2620,25 @@ public boolean hasVideoClassificationConfig() { return annotationRequestConfigCase_ == 6; } /** + * + * *
      * Configuration for video classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * + * * @return The videoClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig getVideoClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + getVideoClassificationConfig() { if (videoClassificationConfigBuilder_ == null) { if (annotationRequestConfigCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) + annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); } else { @@ -2127,13 +2649,18 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig getVideoC } } /** + * + * *
      * Configuration for video classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * */ - public Builder setVideoClassificationConfig(com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig value) { + public Builder setVideoClassificationConfig( + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig value) { if (videoClassificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2147,11 +2674,15 @@ public Builder setVideoClassificationConfig(com.google.cloud.datalabeling.v1beta return this; } /** + * + * *
      * Configuration for video classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * */ public Builder setVideoClassificationConfig( com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder builderForValue) { @@ -2165,18 +2696,29 @@ public Builder setVideoClassificationConfig( return this; } /** + * + * *
      * Configuration for video classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * */ - public Builder mergeVideoClassificationConfig(com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig value) { + public Builder mergeVideoClassificationConfig( + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig value) { if (videoClassificationConfigBuilder_ == null) { - if (annotationRequestConfigCase_ == 6 && - annotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance()) { - annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) annotationRequestConfig_) - .mergeFrom(value).buildPartial(); + if (annotationRequestConfigCase_ == 6 + && annotationRequestConfig_ + != com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .getDefaultInstance()) { + annotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.newBuilder( + (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) + annotationRequestConfig_) + .mergeFrom(value) + .buildPartial(); } else { annotationRequestConfig_ = value; } @@ -2192,11 +2734,15 @@ public Builder mergeVideoClassificationConfig(com.google.cloud.datalabeling.v1be return this; } /** + * + * *
      * Configuration for video classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * */ public Builder clearVideoClassificationConfig() { if (videoClassificationConfigBuilder_ == null) { @@ -2215,67 +2761,97 @@ public Builder clearVideoClassificationConfig() { return this; } /** + * + * *
      * Configuration for video classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * */ - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder getVideoClassificationConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder + getVideoClassificationConfigBuilder() { return getVideoClassificationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Configuration for video classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder getVideoClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder + getVideoClassificationConfigOrBuilder() { if ((annotationRequestConfigCase_ == 6) && (videoClassificationConfigBuilder_ != null)) { return videoClassificationConfigBuilder_.getMessageOrBuilder(); } else { if (annotationRequestConfigCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) + annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); } } /** + * + * *
      * Configuration for video classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder> getVideoClassificationConfigFieldBuilder() { if (videoClassificationConfigBuilder_ == null) { if (!(annotationRequestConfigCase_ == 6)) { - annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); + annotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); } - videoClassificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) annotationRequestConfig_, + videoClassificationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) + annotationRequestConfig_, getParentForChildren(), isClean()); annotationRequestConfig_ = null; } annotationRequestConfigCase_ = 6; - onChanged();; + onChanged(); + ; return videoClassificationConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder> objectDetectionConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder> + objectDetectionConfigBuilder_; /** + * + * *
      * Configuration for video object detection task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * + * * @return Whether the objectDetectionConfig field is set. */ @java.lang.Override @@ -2283,18 +2859,23 @@ public boolean hasObjectDetectionConfig() { return annotationRequestConfigCase_ == 7; } /** + * + * *
      * Configuration for video object detection task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * + * * @return The objectDetectionConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig getObjectDetectionConfig() { if (objectDetectionConfigBuilder_ == null) { if (annotationRequestConfigCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) + annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); } else { @@ -2305,13 +2886,17 @@ public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig getObjectDete } } /** + * + * *
      * Configuration for video object detection task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * */ - public Builder setObjectDetectionConfig(com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig value) { + public Builder setObjectDetectionConfig( + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig value) { if (objectDetectionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2325,11 +2910,14 @@ public Builder setObjectDetectionConfig(com.google.cloud.datalabeling.v1beta1.Ob return this; } /** + * + * *
      * Configuration for video object detection task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * */ public Builder setObjectDetectionConfig( com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder builderForValue) { @@ -2343,18 +2931,28 @@ public Builder setObjectDetectionConfig( return this; } /** + * + * *
      * Configuration for video object detection task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * */ - public Builder mergeObjectDetectionConfig(com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig value) { + public Builder mergeObjectDetectionConfig( + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig value) { if (objectDetectionConfigBuilder_ == null) { - if (annotationRequestConfigCase_ == 7 && - annotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance()) { - annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_) - .mergeFrom(value).buildPartial(); + if (annotationRequestConfigCase_ == 7 + && annotationRequestConfig_ + != com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig + .getDefaultInstance()) { + annotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.newBuilder( + (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) + annotationRequestConfig_) + .mergeFrom(value) + .buildPartial(); } else { annotationRequestConfig_ = value; } @@ -2370,11 +2968,14 @@ public Builder mergeObjectDetectionConfig(com.google.cloud.datalabeling.v1beta1. return this; } /** + * + * *
      * Configuration for video object detection task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * */ public Builder clearObjectDetectionConfig() { if (objectDetectionConfigBuilder_ == null) { @@ -2393,67 +2994,94 @@ public Builder clearObjectDetectionConfig() { return this; } /** + * + * *
      * Configuration for video object detection task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * */ - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder getObjectDetectionConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder + getObjectDetectionConfigBuilder() { return getObjectDetectionConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Configuration for video object detection task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder getObjectDetectionConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder + getObjectDetectionConfigOrBuilder() { if ((annotationRequestConfigCase_ == 7) && (objectDetectionConfigBuilder_ != null)) { return objectDetectionConfigBuilder_.getMessageOrBuilder(); } else { if (annotationRequestConfigCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) + annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); } } /** + * + * *
      * Configuration for video object detection task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder> getObjectDetectionConfigFieldBuilder() { if (objectDetectionConfigBuilder_ == null) { if (!(annotationRequestConfigCase_ == 7)) { - annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); + annotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); } - objectDetectionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) annotationRequestConfig_, + objectDetectionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) + annotationRequestConfig_, getParentForChildren(), isClean()); annotationRequestConfig_ = null; } annotationRequestConfigCase_ = 7; - onChanged();; + onChanged(); + ; return objectDetectionConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder> objectTrackingConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder> + objectTrackingConfigBuilder_; /** + * + * *
      * Configuration for video object tracking task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * + * * @return Whether the objectTrackingConfig field is set. */ @java.lang.Override @@ -2461,18 +3089,23 @@ public boolean hasObjectTrackingConfig() { return annotationRequestConfigCase_ == 8; } /** + * + * *
      * Configuration for video object tracking task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * + * * @return The objectTrackingConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig getObjectTrackingConfig() { if (objectTrackingConfigBuilder_ == null) { if (annotationRequestConfigCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) + annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); } else { @@ -2483,13 +3116,17 @@ public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig getObjectTrack } } /** + * + * *
      * Configuration for video object tracking task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * */ - public Builder setObjectTrackingConfig(com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig value) { + public Builder setObjectTrackingConfig( + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig value) { if (objectTrackingConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2503,11 +3140,14 @@ public Builder setObjectTrackingConfig(com.google.cloud.datalabeling.v1beta1.Obj return this; } /** + * + * *
      * Configuration for video object tracking task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * */ public Builder setObjectTrackingConfig( com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder builderForValue) { @@ -2521,18 +3161,28 @@ public Builder setObjectTrackingConfig( return this; } /** + * + * *
      * Configuration for video object tracking task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * */ - public Builder mergeObjectTrackingConfig(com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig value) { + public Builder mergeObjectTrackingConfig( + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig value) { if (objectTrackingConfigBuilder_ == null) { - if (annotationRequestConfigCase_ == 8 && - annotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance()) { - annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_) - .mergeFrom(value).buildPartial(); + if (annotationRequestConfigCase_ == 8 + && annotationRequestConfig_ + != com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig + .getDefaultInstance()) { + annotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.newBuilder( + (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) + annotationRequestConfig_) + .mergeFrom(value) + .buildPartial(); } else { annotationRequestConfig_ = value; } @@ -2548,11 +3198,14 @@ public Builder mergeObjectTrackingConfig(com.google.cloud.datalabeling.v1beta1.O return this; } /** + * + * *
      * Configuration for video object tracking task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * */ public Builder clearObjectTrackingConfig() { if (objectTrackingConfigBuilder_ == null) { @@ -2571,67 +3224,93 @@ public Builder clearObjectTrackingConfig() { return this; } /** + * + * *
      * Configuration for video object tracking task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * */ - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder getObjectTrackingConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder + getObjectTrackingConfigBuilder() { return getObjectTrackingConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Configuration for video object tracking task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder getObjectTrackingConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder + getObjectTrackingConfigOrBuilder() { if ((annotationRequestConfigCase_ == 8) && (objectTrackingConfigBuilder_ != null)) { return objectTrackingConfigBuilder_.getMessageOrBuilder(); } else { if (annotationRequestConfigCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) + annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); } } /** + * + * *
      * Configuration for video object tracking task.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder> getObjectTrackingConfigFieldBuilder() { if (objectTrackingConfigBuilder_ == null) { if (!(annotationRequestConfigCase_ == 8)) { - annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); + annotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); } - objectTrackingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) annotationRequestConfig_, + objectTrackingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) + annotationRequestConfig_, getParentForChildren(), isClean()); annotationRequestConfig_ = null; } annotationRequestConfigCase_ = 8; - onChanged();; + onChanged(); + ; return objectTrackingConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EventConfig, com.google.cloud.datalabeling.v1beta1.EventConfig.Builder, com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder> eventConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.EventConfig, + com.google.cloud.datalabeling.v1beta1.EventConfig.Builder, + com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder> + eventConfigBuilder_; /** + * + * *
      * Configuration for video event labeling task.
      * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 9; + * * @return Whether the eventConfig field is set. */ @java.lang.Override @@ -2639,11 +3318,14 @@ public boolean hasEventConfig() { return annotationRequestConfigCase_ == 9; } /** + * + * *
      * Configuration for video event labeling task.
      * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 9; + * * @return The eventConfig. */ @java.lang.Override @@ -2661,6 +3343,8 @@ public com.google.cloud.datalabeling.v1beta1.EventConfig getEventConfig() { } } /** + * + * *
      * Configuration for video event labeling task.
      * 
@@ -2681,6 +3365,8 @@ public Builder setEventConfig(com.google.cloud.datalabeling.v1beta1.EventConfig return this; } /** + * + * *
      * Configuration for video event labeling task.
      * 
@@ -2699,6 +3385,8 @@ public Builder setEventConfig( return this; } /** + * + * *
      * Configuration for video event labeling task.
      * 
@@ -2707,10 +3395,14 @@ public Builder setEventConfig( */ public Builder mergeEventConfig(com.google.cloud.datalabeling.v1beta1.EventConfig value) { if (eventConfigBuilder_ == null) { - if (annotationRequestConfigCase_ == 9 && - annotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance()) { - annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.EventConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_) - .mergeFrom(value).buildPartial(); + if (annotationRequestConfigCase_ == 9 + && annotationRequestConfig_ + != com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance()) { + annotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.EventConfig.newBuilder( + (com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_) + .mergeFrom(value) + .buildPartial(); } else { annotationRequestConfig_ = value; } @@ -2726,6 +3418,8 @@ public Builder mergeEventConfig(com.google.cloud.datalabeling.v1beta1.EventConfi return this; } /** + * + * *
      * Configuration for video event labeling task.
      * 
@@ -2749,6 +3443,8 @@ public Builder clearEventConfig() { return this; } /** + * + * *
      * Configuration for video event labeling task.
      * 
@@ -2759,6 +3455,8 @@ public com.google.cloud.datalabeling.v1beta1.EventConfig.Builder getEventConfigB return getEventConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Configuration for video event labeling task.
      * 
@@ -2777,6 +3475,8 @@ public com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder getEventConfig } } /** + * + * *
      * Configuration for video event labeling task.
      * 
@@ -2784,32 +3484,47 @@ public com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder getEventConfig * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 9; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EventConfig, com.google.cloud.datalabeling.v1beta1.EventConfig.Builder, com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.EventConfig, + com.google.cloud.datalabeling.v1beta1.EventConfig.Builder, + com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder> getEventConfigFieldBuilder() { if (eventConfigBuilder_ == null) { if (!(annotationRequestConfigCase_ == 9)) { - annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance(); + annotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance(); } - eventConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EventConfig, com.google.cloud.datalabeling.v1beta1.EventConfig.Builder, com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder>( + eventConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.EventConfig, + com.google.cloud.datalabeling.v1beta1.EventConfig.Builder, + com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder>( (com.google.cloud.datalabeling.v1beta1.EventConfig) annotationRequestConfig_, getParentForChildren(), isClean()); annotationRequestConfig_ = null; } annotationRequestConfigCase_ = 9; - onChanged();; + onChanged(); + ; return eventConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder> textClassificationConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder> + textClassificationConfigBuilder_; /** + * + * *
      * Configuration for text classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * + * * @return Whether the textClassificationConfig field is set. */ @java.lang.Override @@ -2817,18 +3532,25 @@ public boolean hasTextClassificationConfig() { return annotationRequestConfigCase_ == 10; } /** + * + * *
      * Configuration for text classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * + * * @return The textClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig + getTextClassificationConfig() { if (textClassificationConfigBuilder_ == null) { if (annotationRequestConfigCase_ == 10) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) + annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } else { @@ -2839,13 +3561,18 @@ public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextCla } } /** + * + * *
      * Configuration for text classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * */ - public Builder setTextClassificationConfig(com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { + public Builder setTextClassificationConfig( + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { if (textClassificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2859,11 +3586,15 @@ public Builder setTextClassificationConfig(com.google.cloud.datalabeling.v1beta1 return this; } /** + * + * *
      * Configuration for text classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * */ public Builder setTextClassificationConfig( com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder builderForValue) { @@ -2877,18 +3608,29 @@ public Builder setTextClassificationConfig( return this; } /** + * + * *
      * Configuration for text classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * */ - public Builder mergeTextClassificationConfig(com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { + public Builder mergeTextClassificationConfig( + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { if (textClassificationConfigBuilder_ == null) { - if (annotationRequestConfigCase_ == 10 && - annotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance()) { - annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) annotationRequestConfig_) - .mergeFrom(value).buildPartial(); + if (annotationRequestConfigCase_ == 10 + && annotationRequestConfig_ + != com.google.cloud.datalabeling.v1beta1.TextClassificationConfig + .getDefaultInstance()) { + annotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.newBuilder( + (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) + annotationRequestConfig_) + .mergeFrom(value) + .buildPartial(); } else { annotationRequestConfig_ = value; } @@ -2904,11 +3646,15 @@ public Builder mergeTextClassificationConfig(com.google.cloud.datalabeling.v1bet return this; } /** + * + * *
      * Configuration for text classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * */ public Builder clearTextClassificationConfig() { if (textClassificationConfigBuilder_ == null) { @@ -2927,67 +3673,98 @@ public Builder clearTextClassificationConfig() { return this; } /** + * + * *
      * Configuration for text classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * */ - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder getTextClassificationConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder + getTextClassificationConfigBuilder() { return getTextClassificationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Configuration for text classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder getTextClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder + getTextClassificationConfigOrBuilder() { if ((annotationRequestConfigCase_ == 10) && (textClassificationConfigBuilder_ != null)) { return textClassificationConfigBuilder_.getMessageOrBuilder(); } else { if (annotationRequestConfigCase_ == 10) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) + annotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } } /** + * + * *
      * Configuration for text classification task.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder> getTextClassificationConfigFieldBuilder() { if (textClassificationConfigBuilder_ == null) { if (!(annotationRequestConfigCase_ == 10)) { - annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); + annotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } - textClassificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) annotationRequestConfig_, + textClassificationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) + annotationRequestConfig_, getParentForChildren(), isClean()); annotationRequestConfig_ = null; } annotationRequestConfigCase_ = 10; - onChanged();; + onChanged(); + ; return textClassificationConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder> textEntityExtractionConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder> + textEntityExtractionConfigBuilder_; /** + * + * *
      * Configuration for text entity extraction task.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * + * * @return Whether the textEntityExtractionConfig field is set. */ @java.lang.Override @@ -2995,35 +3772,49 @@ public boolean hasTextEntityExtractionConfig() { return annotationRequestConfigCase_ == 11; } /** + * + * *
      * Configuration for text entity extraction task.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * + * * @return The textEntityExtractionConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig getTextEntityExtractionConfig() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig + getTextEntityExtractionConfig() { if (textEntityExtractionConfigBuilder_ == null) { if (annotationRequestConfigCase_ == 11) { - return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) + annotationRequestConfig_; } - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig + .getDefaultInstance(); } else { if (annotationRequestConfigCase_ == 11) { return textEntityExtractionConfigBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig + .getDefaultInstance(); } } /** + * + * *
      * Configuration for text entity extraction task.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * */ - public Builder setTextEntityExtractionConfig(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig value) { + public Builder setTextEntityExtractionConfig( + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig value) { if (textEntityExtractionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3037,11 +3828,15 @@ public Builder setTextEntityExtractionConfig(com.google.cloud.datalabeling.v1bet return this; } /** + * + * *
      * Configuration for text entity extraction task.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * */ public Builder setTextEntityExtractionConfig( com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder builderForValue) { @@ -3055,18 +3850,29 @@ public Builder setTextEntityExtractionConfig( return this; } /** + * + * *
      * Configuration for text entity extraction task.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * */ - public Builder mergeTextEntityExtractionConfig(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig value) { + public Builder mergeTextEntityExtractionConfig( + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig value) { if (textEntityExtractionConfigBuilder_ == null) { - if (annotationRequestConfigCase_ == 11 && - annotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance()) { - annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) annotationRequestConfig_) - .mergeFrom(value).buildPartial(); + if (annotationRequestConfigCase_ == 11 + && annotationRequestConfig_ + != com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig + .getDefaultInstance()) { + annotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.newBuilder( + (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) + annotationRequestConfig_) + .mergeFrom(value) + .buildPartial(); } else { annotationRequestConfig_ = value; } @@ -3082,11 +3888,15 @@ public Builder mergeTextEntityExtractionConfig(com.google.cloud.datalabeling.v1b return this; } /** + * + * *
      * Configuration for text entity extraction task.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * */ public Builder clearTextEntityExtractionConfig() { if (textEntityExtractionConfigBuilder_ == null) { @@ -3105,99 +3915,140 @@ public Builder clearTextEntityExtractionConfig() { return this; } /** + * + * *
      * Configuration for text entity extraction task.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * */ - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder getTextEntityExtractionConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder + getTextEntityExtractionConfigBuilder() { return getTextEntityExtractionConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Configuration for text entity extraction task.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder getTextEntityExtractionConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder + getTextEntityExtractionConfigOrBuilder() { if ((annotationRequestConfigCase_ == 11) && (textEntityExtractionConfigBuilder_ != null)) { return textEntityExtractionConfigBuilder_.getMessageOrBuilder(); } else { if (annotationRequestConfigCase_ == 11) { - return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) annotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) + annotationRequestConfig_; } - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig + .getDefaultInstance(); } } /** + * + * *
      * Configuration for text entity extraction task.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder> getTextEntityExtractionConfigFieldBuilder() { if (textEntityExtractionConfigBuilder_ == null) { if (!(annotationRequestConfigCase_ == 11)) { - annotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); + annotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); } - textEntityExtractionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) annotationRequestConfig_, + textEntityExtractionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) + annotationRequestConfig_, getParentForChildren(), isClean()); annotationRequestConfig_ = null; } annotationRequestConfigCase_ = 11; - onChanged();; + onChanged(); + ; return textEntityExtractionConfigBuilder_; } private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig humanAnnotationConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> humanAnnotationConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + humanAnnotationConfigBuilder_; /** + * + * *
      * HumanAnnotationConfig used when requesting the human labeling task for this
      * AnnotatedDataset.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * + * * @return Whether the humanAnnotationConfig field is set. */ public boolean hasHumanAnnotationConfig() { return humanAnnotationConfigBuilder_ != null || humanAnnotationConfig_ != null; } /** + * + * *
      * HumanAnnotationConfig used when requesting the human labeling task for this
      * AnnotatedDataset.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * + * * @return The humanAnnotationConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getHumanAnnotationConfig() { if (humanAnnotationConfigBuilder_ == null) { - return humanAnnotationConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : humanAnnotationConfig_; + return humanAnnotationConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : humanAnnotationConfig_; } else { return humanAnnotationConfigBuilder_.getMessage(); } } /** + * + * *
      * HumanAnnotationConfig used when requesting the human labeling task for this
      * AnnotatedDataset.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * */ - public Builder setHumanAnnotationConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setHumanAnnotationConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (humanAnnotationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3211,12 +4062,15 @@ public Builder setHumanAnnotationConfig(com.google.cloud.datalabeling.v1beta1.Hu return this; } /** + * + * *
      * HumanAnnotationConfig used when requesting the human labeling task for this
      * AnnotatedDataset.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * */ public Builder setHumanAnnotationConfig( com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder builderForValue) { @@ -3230,18 +4084,25 @@ public Builder setHumanAnnotationConfig( return this; } /** + * + * *
      * HumanAnnotationConfig used when requesting the human labeling task for this
      * AnnotatedDataset.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * */ - public Builder mergeHumanAnnotationConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeHumanAnnotationConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (humanAnnotationConfigBuilder_ == null) { if (humanAnnotationConfig_ != null) { humanAnnotationConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(humanAnnotationConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder( + humanAnnotationConfig_) + .mergeFrom(value) + .buildPartial(); } else { humanAnnotationConfig_ = value; } @@ -3253,12 +4114,15 @@ public Builder mergeHumanAnnotationConfig(com.google.cloud.datalabeling.v1beta1. return this; } /** + * + * *
      * HumanAnnotationConfig used when requesting the human labeling task for this
      * AnnotatedDataset.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * */ public Builder clearHumanAnnotationConfig() { if (humanAnnotationConfigBuilder_ == null) { @@ -3272,58 +4136,73 @@ public Builder clearHumanAnnotationConfig() { return this; } /** + * + * *
      * HumanAnnotationConfig used when requesting the human labeling task for this
      * AnnotatedDataset.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getHumanAnnotationConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder + getHumanAnnotationConfigBuilder() { + onChanged(); return getHumanAnnotationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * HumanAnnotationConfig used when requesting the human labeling task for this
      * AnnotatedDataset.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getHumanAnnotationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getHumanAnnotationConfigOrBuilder() { if (humanAnnotationConfigBuilder_ != null) { return humanAnnotationConfigBuilder_.getMessageOrBuilder(); } else { - return humanAnnotationConfig_ == null ? - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : humanAnnotationConfig_; + return humanAnnotationConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : humanAnnotationConfig_; } } /** + * + * *
      * HumanAnnotationConfig used when requesting the human labeling task for this
      * AnnotatedDataset.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getHumanAnnotationConfigFieldBuilder() { if (humanAnnotationConfigBuilder_ == null) { - humanAnnotationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getHumanAnnotationConfig(), - getParentForChildren(), - isClean()); + humanAnnotationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getHumanAnnotationConfig(), getParentForChildren(), isClean()); humanAnnotationConfig_ = null; } return humanAnnotationConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3333,30 +4212,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata) - private static final com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotatedDatasetMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotatedDatasetMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotatedDatasetMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotatedDatasetMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3368,9 +4249,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadataOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadataOrBuilder.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadataOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadataOrBuilder.java index 6d49f31b..c21880c0 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadataOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetMetadataOrBuilder.java @@ -1,85 +1,133 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; -public interface AnnotatedDatasetMetadataOrBuilder extends +public interface AnnotatedDatasetMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Configuration for image classification task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * + * * @return Whether the imageClassificationConfig field is set. */ boolean hasImageClassificationConfig(); /** + * + * *
    * Configuration for image classification task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * + * * @return The imageClassificationConfig. */ com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageClassificationConfig(); /** + * + * *
    * Configuration for image classification task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2; + * */ - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder getImageClassificationConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder + getImageClassificationConfigOrBuilder(); /** + * + * *
    * Configuration for image bounding box and bounding poly task.
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; + * * @return Whether the boundingPolyConfig field is set. */ boolean hasBoundingPolyConfig(); /** + * + * *
    * Configuration for image bounding box and bounding poly task.
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; + * * @return The boundingPolyConfig. */ com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyConfig(); /** + * + * *
    * Configuration for image bounding box and bounding poly task.
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3; */ - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoundingPolyConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder + getBoundingPolyConfigOrBuilder(); /** + * + * *
    * Configuration for image polyline task.
    * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 4; + * * @return Whether the polylineConfig field is set. */ boolean hasPolylineConfig(); /** + * + * *
    * Configuration for image polyline task.
    * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 4; + * * @return The polylineConfig. */ com.google.cloud.datalabeling.v1beta1.PolylineConfig getPolylineConfig(); /** + * + * *
    * Configuration for image polyline task.
    * 
@@ -89,132 +137,188 @@ public interface AnnotatedDatasetMetadataOrBuilder extends com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder getPolylineConfigOrBuilder(); /** + * + * *
    * Configuration for image segmentation task.
    * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; + * * @return Whether the segmentationConfig field is set. */ boolean hasSegmentationConfig(); /** + * + * *
    * Configuration for image segmentation task.
    * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; + * * @return The segmentationConfig. */ com.google.cloud.datalabeling.v1beta1.SegmentationConfig getSegmentationConfig(); /** + * + * *
    * Configuration for image segmentation task.
    * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5; */ - com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder getSegmentationConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder + getSegmentationConfigOrBuilder(); /** + * + * *
    * Configuration for video classification task.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * + * * @return Whether the videoClassificationConfig field is set. */ boolean hasVideoClassificationConfig(); /** + * + * *
    * Configuration for video classification task.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * + * * @return The videoClassificationConfig. */ com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig getVideoClassificationConfig(); /** + * + * *
    * Configuration for video classification task.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6; + * */ - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder getVideoClassificationConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder + getVideoClassificationConfigOrBuilder(); /** + * + * *
    * Configuration for video object detection task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * + * * @return Whether the objectDetectionConfig field is set. */ boolean hasObjectDetectionConfig(); /** + * + * *
    * Configuration for video object detection task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * + * * @return The objectDetectionConfig. */ com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig getObjectDetectionConfig(); /** + * + * *
    * Configuration for video object detection task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7; + * */ - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder getObjectDetectionConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder + getObjectDetectionConfigOrBuilder(); /** + * + * *
    * Configuration for video object tracking task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * + * * @return Whether the objectTrackingConfig field is set. */ boolean hasObjectTrackingConfig(); /** + * + * *
    * Configuration for video object tracking task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * + * * @return The objectTrackingConfig. */ com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig getObjectTrackingConfig(); /** + * + * *
    * Configuration for video object tracking task.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8; + * */ - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder getObjectTrackingConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder + getObjectTrackingConfigOrBuilder(); /** + * + * *
    * Configuration for video event labeling task.
    * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 9; + * * @return Whether the eventConfig field is set. */ boolean hasEventConfig(); /** + * + * *
    * Configuration for video event labeling task.
    * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 9; + * * @return The eventConfig. */ com.google.cloud.datalabeling.v1beta1.EventConfig getEventConfig(); /** + * + * *
    * Configuration for video event labeling task.
    * 
@@ -224,88 +328,131 @@ public interface AnnotatedDatasetMetadataOrBuilder extends com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder getEventConfigOrBuilder(); /** + * + * *
    * Configuration for text classification task.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * + * * @return Whether the textClassificationConfig field is set. */ boolean hasTextClassificationConfig(); /** + * + * *
    * Configuration for text classification task.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * + * * @return The textClassificationConfig. */ com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextClassificationConfig(); /** + * + * *
    * Configuration for text classification task.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10; + * */ - com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder getTextClassificationConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder + getTextClassificationConfigOrBuilder(); /** + * + * *
    * Configuration for text entity extraction task.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * + * * @return Whether the textEntityExtractionConfig field is set. */ boolean hasTextEntityExtractionConfig(); /** + * + * *
    * Configuration for text entity extraction task.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * + * * @return The textEntityExtractionConfig. */ com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig getTextEntityExtractionConfig(); /** + * + * *
    * Configuration for text entity extraction task.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11; + * */ - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder getTextEntityExtractionConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder + getTextEntityExtractionConfigOrBuilder(); /** + * + * *
    * HumanAnnotationConfig used when requesting the human labeling task for this
    * AnnotatedDataset.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * + * * @return Whether the humanAnnotationConfig field is set. */ boolean hasHumanAnnotationConfig(); /** + * + * *
    * HumanAnnotationConfig used when requesting the human labeling task for this
    * AnnotatedDataset.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * + * * @return The humanAnnotationConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getHumanAnnotationConfig(); /** + * + * *
    * HumanAnnotationConfig used when requesting the human labeling task for this
    * AnnotatedDataset.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1; + * */ - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getHumanAnnotationConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getHumanAnnotationConfigOrBuilder(); - public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.AnnotationRequestConfigCase getAnnotationRequestConfigCase(); + public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata.AnnotationRequestConfigCase + getAnnotationRequestConfigCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetName.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetName.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetOrBuilder.java similarity index 84% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetOrBuilder.java index b16b44c5..d1cd45c3 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotatedDatasetOrBuilder.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; -public interface AnnotatedDatasetOrBuilder extends +public interface AnnotatedDatasetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.AnnotatedDataset) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. AnnotatedDataset resource name in format of:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -15,10 +33,13 @@ public interface AnnotatedDatasetOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. AnnotatedDataset resource name in format of:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -26,12 +47,14 @@ public interface AnnotatedDatasetOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The display name of the AnnotatedDataset. It is specified in
    * HumanAnnotationConfig when user starts a labeling task. Maximum of 64
@@ -39,10 +62,13 @@ public interface AnnotatedDatasetOrBuilder extends
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Output only. The display name of the AnnotatedDataset. It is specified in
    * HumanAnnotationConfig when user starts a labeling task. Maximum of 64
@@ -50,12 +76,14 @@ public interface AnnotatedDatasetOrBuilder extends
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Output only. The description of the AnnotatedDataset. It is specified in
    * HumanAnnotationConfig when user starts a labeling task. Maximum of 10000
@@ -63,10 +91,13 @@ public interface AnnotatedDatasetOrBuilder extends
    * 
* * string description = 9; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Output only. The description of the AnnotatedDataset. It is specified in
    * HumanAnnotationConfig when user starts a labeling task. Maximum of 10000
@@ -74,91 +105,117 @@ public interface AnnotatedDatasetOrBuilder extends
    * 
* * string description = 9; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. Source of the annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3; + * * @return The enum numeric value on the wire for annotationSource. */ int getAnnotationSourceValue(); /** + * + * *
    * Output only. Source of the annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 3; + * * @return The annotationSource. */ com.google.cloud.datalabeling.v1beta1.AnnotationSource getAnnotationSource(); /** + * + * *
    * Output only. Type of the annotation. It is specified when starting labeling
    * task.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8; + * * @return The enum numeric value on the wire for annotationType. */ int getAnnotationTypeValue(); /** + * + * *
    * Output only. Type of the annotation. It is specified when starting labeling
    * task.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 8; + * * @return The annotationType. */ com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType(); /** + * + * *
    * Output only. Number of examples in the annotated dataset.
    * 
* * int64 example_count = 4; + * * @return The exampleCount. */ long getExampleCount(); /** + * + * *
    * Output only. Number of examples that have annotation in the annotated
    * dataset.
    * 
* * int64 completed_example_count = 5; + * * @return The completedExampleCount. */ long getCompletedExampleCount(); /** + * + * *
    * Output only. Per label statistics.
    * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6; + * * @return Whether the labelStats field is set. */ boolean hasLabelStats(); /** + * + * *
    * Output only. Per label statistics.
    * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 6; + * * @return The labelStats. */ com.google.cloud.datalabeling.v1beta1.LabelStats getLabelStats(); /** + * + * *
    * Output only. Per label statistics.
    * 
@@ -168,24 +225,32 @@ public interface AnnotatedDatasetOrBuilder extends com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder getLabelStatsOrBuilder(); /** + * + * *
    * Output only. Time the AnnotatedDataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time the AnnotatedDataset was created.
    * 
* * .google.protobuf.Timestamp create_time = 7; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time the AnnotatedDataset was created.
    * 
@@ -195,24 +260,32 @@ public interface AnnotatedDatasetOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Additional information about AnnotatedDataset.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; + * * @return Whether the metadata field is set. */ boolean hasMetadata(); /** + * + * *
    * Output only. Additional information about AnnotatedDataset.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata metadata = 10; + * * @return The metadata. */ com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata getMetadata(); /** + * + * *
    * Output only. Additional information about AnnotatedDataset.
    * 
@@ -222,47 +295,57 @@ public interface AnnotatedDatasetOrBuilder extends com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadataOrBuilder getMetadataOrBuilder(); /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotated dataset.
    * 
* * repeated string blocking_resources = 11; + * * @return A list containing the blockingResources. */ - java.util.List - getBlockingResourcesList(); + java.util.List getBlockingResourcesList(); /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotated dataset.
    * 
* * repeated string blocking_resources = 11; + * * @return The count of blockingResources. */ int getBlockingResourcesCount(); /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotated dataset.
    * 
* * repeated string blocking_resources = 11; + * * @param index The index of the element to return. * @return The blockingResources at the given index. */ java.lang.String getBlockingResources(int index); /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotated dataset.
    * 
* * repeated string blocking_resources = 11; + * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - com.google.protobuf.ByteString - getBlockingResourcesBytes(int index); + com.google.protobuf.ByteString getBlockingResourcesBytes(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Annotation.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Annotation.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Annotation.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Annotation.java index bcc94956..87f58fd5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Annotation.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Annotation.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Annotation for Example. Each example may have one or more annotations. For
  * example in image classification problem, each image might have one or more
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.Annotation}
  */
-public final class Annotation extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Annotation extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.Annotation)
     AnnotationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Annotation.newBuilder() to construct.
   private Annotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Annotation() {
     name_ = "";
     annotationSource_ = 0;
@@ -29,16 +47,15 @@ private Annotation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Annotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Annotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,57 +74,68 @@ private Annotation(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            name_ = s;
-            break;
-          }
-          case 16: {
-            int rawValue = input.readEnum();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            annotationSource_ = rawValue;
-            break;
-          }
-          case 26: {
-            com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder subBuilder = null;
-            if (annotationValue_ != null) {
-              subBuilder = annotationValue_.toBuilder();
-            }
-            annotationValue_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationValue.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(annotationValue_);
-              annotationValue_ = subBuilder.buildPartial();
+              name_ = s;
+              break;
             }
+          case 16:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 34: {
-            com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder subBuilder = null;
-            if (annotationMetadata_ != null) {
-              subBuilder = annotationMetadata_.toBuilder();
+              annotationSource_ = rawValue;
+              break;
             }
-            annotationMetadata_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(annotationMetadata_);
-              annotationMetadata_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder subBuilder = null;
+              if (annotationValue_ != null) {
+                subBuilder = annotationValue_.toBuilder();
+              }
+              annotationValue_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.AnnotationValue.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(annotationValue_);
+                annotationValue_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 34:
+            {
+              com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder subBuilder = null;
+              if (annotationMetadata_ != null) {
+                subBuilder = annotationMetadata_.toBuilder();
+              }
+              annotationMetadata_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(annotationMetadata_);
+                annotationMetadata_ = subBuilder.buildPartial();
+              }
+
+              break;
+            }
+          case 48:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 48: {
-            int rawValue = input.readEnum();
-
-            annotationSentiment_ = rawValue;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              annotationSentiment_ = rawValue;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -115,35 +143,40 @@ private Annotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Annotation_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_Annotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Annotation_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_Annotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.Annotation.class, com.google.cloud.datalabeling.v1beta1.Annotation.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.Annotation.class,
+            com.google.cloud.datalabeling.v1beta1.Annotation.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Output only. Unique name of this annotation, format is:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_id}
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -152,30 +185,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. Unique name of this annotation, format is:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_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 { @@ -186,39 +219,53 @@ public java.lang.String getName() { public static final int ANNOTATION_SOURCE_FIELD_NUMBER = 2; private int annotationSource_; /** + * + * *
    * Output only. The source of the annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2; + * * @return The enum numeric value on the wire for annotationSource. */ - @java.lang.Override public int getAnnotationSourceValue() { + @java.lang.Override + public int getAnnotationSourceValue() { return annotationSource_; } /** + * + * *
    * Output only. The source of the annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2; + * * @return The annotationSource. */ - @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSource getAnnotationSource() { + @java.lang.Override + public com.google.cloud.datalabeling.v1beta1.AnnotationSource getAnnotationSource() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationSource result = com.google.cloud.datalabeling.v1beta1.AnnotationSource.valueOf(annotationSource_); - return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSource.UNRECOGNIZED : result; + com.google.cloud.datalabeling.v1beta1.AnnotationSource result = + com.google.cloud.datalabeling.v1beta1.AnnotationSource.valueOf(annotationSource_); + return result == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSource.UNRECOGNIZED + : result; } public static final int ANNOTATION_VALUE_FIELD_NUMBER = 3; private com.google.cloud.datalabeling.v1beta1.AnnotationValue annotationValue_; /** + * + * *
    * Output only. This is the actual annotation value, e.g classification,
    * bounding box values are stored here.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3; + * * @return Whether the annotationValue field is set. */ @java.lang.Override @@ -226,19 +273,26 @@ public boolean hasAnnotationValue() { return annotationValue_ != null; } /** + * + * *
    * Output only. This is the actual annotation value, e.g classification,
    * bounding box values are stored here.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3; + * * @return The annotationValue. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationValue getAnnotationValue() { - return annotationValue_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationValue.getDefaultInstance() : annotationValue_; + return annotationValue_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationValue.getDefaultInstance() + : annotationValue_; } /** + * + * *
    * Output only. This is the actual annotation value, e.g classification,
    * bounding box values are stored here.
@@ -247,19 +301,23 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationValue getAnnotationValue(
    * .google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder getAnnotationValueOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder
+      getAnnotationValueOrBuilder() {
     return getAnnotationValue();
   }
 
   public static final int ANNOTATION_METADATA_FIELD_NUMBER = 4;
   private com.google.cloud.datalabeling.v1beta1.AnnotationMetadata annotationMetadata_;
   /**
+   *
+   *
    * 
    * Output only. Annotation metadata, including information like votes
    * for labels.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4; + * * @return Whether the annotationMetadata field is set. */ @java.lang.Override @@ -267,19 +325,26 @@ public boolean hasAnnotationMetadata() { return annotationMetadata_ != null; } /** + * + * *
    * Output only. Annotation metadata, including information like votes
    * for labels.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4; + * * @return The annotationMetadata. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationMetadata getAnnotationMetadata() { - return annotationMetadata_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.getDefaultInstance() : annotationMetadata_; + return annotationMetadata_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.getDefaultInstance() + : annotationMetadata_; } /** + * + * *
    * Output only. Annotation metadata, including information like votes
    * for labels.
@@ -288,38 +353,51 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationMetadata getAnnotationMet
    * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder getAnnotationMetadataOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder
+      getAnnotationMetadataOrBuilder() {
     return getAnnotationMetadata();
   }
 
   public static final int ANNOTATION_SENTIMENT_FIELD_NUMBER = 6;
   private int annotationSentiment_;
   /**
+   *
+   *
    * 
    * Output only. Sentiment for this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6; + * * @return The enum numeric value on the wire for annotationSentiment. */ - @java.lang.Override public int getAnnotationSentimentValue() { + @java.lang.Override + public int getAnnotationSentimentValue() { return annotationSentiment_; } /** + * + * *
    * Output only. Sentiment for this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6; + * * @return The annotationSentiment. */ - @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSentiment getAnnotationSentiment() { + @java.lang.Override + public com.google.cloud.datalabeling.v1beta1.AnnotationSentiment getAnnotationSentiment() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationSentiment result = com.google.cloud.datalabeling.v1beta1.AnnotationSentiment.valueOf(annotationSentiment_); - return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSentiment.UNRECOGNIZED : result; + com.google.cloud.datalabeling.v1beta1.AnnotationSentiment result = + com.google.cloud.datalabeling.v1beta1.AnnotationSentiment.valueOf(annotationSentiment_); + return result == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSentiment.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -331,12 +409,13 @@ public final boolean isInitialized() { } @java.lang.Override - public 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 (annotationSource_ != com.google.cloud.datalabeling.v1beta1.AnnotationSource.ANNOTATION_SOURCE_UNSPECIFIED.getNumber()) { + if (annotationSource_ + != com.google.cloud.datalabeling.v1beta1.AnnotationSource.ANNOTATION_SOURCE_UNSPECIFIED + .getNumber()) { output.writeEnum(2, annotationSource_); } if (annotationValue_ != null) { @@ -345,7 +424,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (annotationMetadata_ != null) { output.writeMessage(4, getAnnotationMetadata()); } - if (annotationSentiment_ != com.google.cloud.datalabeling.v1beta1.AnnotationSentiment.ANNOTATION_SENTIMENT_UNSPECIFIED.getNumber()) { + if (annotationSentiment_ + != com.google.cloud.datalabeling.v1beta1.AnnotationSentiment + .ANNOTATION_SENTIMENT_UNSPECIFIED + .getNumber()) { output.writeEnum(6, annotationSentiment_); } unknownFields.writeTo(output); @@ -360,21 +442,22 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (annotationSource_ != com.google.cloud.datalabeling.v1beta1.AnnotationSource.ANNOTATION_SOURCE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, annotationSource_); + if (annotationSource_ + != com.google.cloud.datalabeling.v1beta1.AnnotationSource.ANNOTATION_SOURCE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, annotationSource_); } if (annotationValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getAnnotationValue()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAnnotationValue()); } if (annotationMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getAnnotationMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAnnotationMetadata()); } - if (annotationSentiment_ != com.google.cloud.datalabeling.v1beta1.AnnotationSentiment.ANNOTATION_SENTIMENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, annotationSentiment_); + if (annotationSentiment_ + != com.google.cloud.datalabeling.v1beta1.AnnotationSentiment + .ANNOTATION_SENTIMENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, annotationSentiment_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -384,25 +467,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.datalabeling.v1beta1.Annotation)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.Annotation other = (com.google.cloud.datalabeling.v1beta1.Annotation) obj; + com.google.cloud.datalabeling.v1beta1.Annotation other = + (com.google.cloud.datalabeling.v1beta1.Annotation) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (annotationSource_ != other.annotationSource_) return false; if (hasAnnotationValue() != other.hasAnnotationValue()) return false; if (hasAnnotationValue()) { - if (!getAnnotationValue() - .equals(other.getAnnotationValue())) return false; + if (!getAnnotationValue().equals(other.getAnnotationValue())) return false; } if (hasAnnotationMetadata() != other.hasAnnotationMetadata()) return false; if (hasAnnotationMetadata()) { - if (!getAnnotationMetadata() - .equals(other.getAnnotationMetadata())) return false; + if (!getAnnotationMetadata().equals(other.getAnnotationMetadata())) return false; } if (annotationSentiment_ != other.annotationSentiment_) return false; if (!unknownFields.equals(other.unknownFields)) return false; @@ -435,97 +516,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Annotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.Annotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.Annotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.Annotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.Annotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 Example. Each example may have one or more annotations. For
    * example in image classification problem, each image might have one or more
@@ -534,21 +622,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.Annotation}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.Annotation)
       com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Annotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_Annotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Annotation_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_Annotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.Annotation.class, com.google.cloud.datalabeling.v1beta1.Annotation.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.Annotation.class,
+              com.google.cloud.datalabeling.v1beta1.Annotation.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.Annotation.newBuilder()
@@ -556,16 +646,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();
@@ -591,9 +680,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Annotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_Annotation_descriptor;
     }
 
     @java.lang.Override
@@ -612,7 +701,8 @@ public com.google.cloud.datalabeling.v1beta1.Annotation build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.Annotation buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.Annotation result = new com.google.cloud.datalabeling.v1beta1.Annotation(this);
+      com.google.cloud.datalabeling.v1beta1.Annotation result =
+          new com.google.cloud.datalabeling.v1beta1.Annotation(this);
       result.name_ = name_;
       result.annotationSource_ = annotationSource_;
       if (annotationValueBuilder_ == null) {
@@ -634,38 +724,39 @@ public com.google.cloud.datalabeling.v1beta1.Annotation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.Annotation) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Annotation)other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Annotation) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -673,7 +764,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.Annotation other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.Annotation.getDefaultInstance()) return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.Annotation.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -721,19 +813,21 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Unique name of this annotation, format is:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_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; @@ -742,21 +836,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Unique name of this annotation, format is:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_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 { @@ -764,57 +859,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Unique name of this annotation, format is:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_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. Unique name of this annotation, format is:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_id}
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Unique name of this annotation, format is:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_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; @@ -822,73 +924,93 @@ public Builder setNameBytes( private int annotationSource_ = 0; /** + * + * *
      * Output only. The source of the annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2; + * * @return The enum numeric value on the wire for annotationSource. */ - @java.lang.Override public int getAnnotationSourceValue() { + @java.lang.Override + public int getAnnotationSourceValue() { return annotationSource_; } /** + * + * *
      * Output only. The source of the annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2; + * * @param value The enum numeric value on the wire for annotationSource to set. * @return This builder for chaining. */ public Builder setAnnotationSourceValue(int value) { - + annotationSource_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The source of the annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2; + * * @return The annotationSource. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSource getAnnotationSource() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationSource result = com.google.cloud.datalabeling.v1beta1.AnnotationSource.valueOf(annotationSource_); - return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSource.UNRECOGNIZED : result; + com.google.cloud.datalabeling.v1beta1.AnnotationSource result = + com.google.cloud.datalabeling.v1beta1.AnnotationSource.valueOf(annotationSource_); + return result == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSource.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. The source of the annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2; + * * @param value The annotationSource to set. * @return This builder for chaining. */ - public Builder setAnnotationSource(com.google.cloud.datalabeling.v1beta1.AnnotationSource value) { + public Builder setAnnotationSource( + com.google.cloud.datalabeling.v1beta1.AnnotationSource value) { if (value == null) { throw new NullPointerException(); } - + annotationSource_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. The source of the annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2; + * * @return This builder for chaining. */ public Builder clearAnnotationSource() { - + annotationSource_ = 0; onChanged(); return this; @@ -896,36 +1018,49 @@ public Builder clearAnnotationSource() { private com.google.cloud.datalabeling.v1beta1.AnnotationValue annotationValue_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationValue, com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder> annotationValueBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationValue, + com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder> + annotationValueBuilder_; /** + * + * *
      * Output only. This is the actual annotation value, e.g classification,
      * bounding box values are stored here.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3; + * * @return Whether the annotationValue field is set. */ public boolean hasAnnotationValue() { return annotationValueBuilder_ != null || annotationValue_ != null; } /** + * + * *
      * Output only. This is the actual annotation value, e.g classification,
      * bounding box values are stored here.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3; + * * @return The annotationValue. */ public com.google.cloud.datalabeling.v1beta1.AnnotationValue getAnnotationValue() { if (annotationValueBuilder_ == null) { - return annotationValue_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationValue.getDefaultInstance() : annotationValue_; + return annotationValue_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationValue.getDefaultInstance() + : annotationValue_; } else { return annotationValueBuilder_.getMessage(); } } /** + * + * *
      * Output only. This is the actual annotation value, e.g classification,
      * bounding box values are stored here.
@@ -947,6 +1082,8 @@ public Builder setAnnotationValue(com.google.cloud.datalabeling.v1beta1.Annotati
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. This is the actual annotation value, e.g classification,
      * bounding box values are stored here.
@@ -966,6 +1103,8 @@ public Builder setAnnotationValue(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. This is the actual annotation value, e.g classification,
      * bounding box values are stored here.
@@ -973,11 +1112,14 @@ public Builder setAnnotationValue(
      *
      * .google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3;
      */
-    public Builder mergeAnnotationValue(com.google.cloud.datalabeling.v1beta1.AnnotationValue value) {
+    public Builder mergeAnnotationValue(
+        com.google.cloud.datalabeling.v1beta1.AnnotationValue value) {
       if (annotationValueBuilder_ == null) {
         if (annotationValue_ != null) {
           annotationValue_ =
-            com.google.cloud.datalabeling.v1beta1.AnnotationValue.newBuilder(annotationValue_).mergeFrom(value).buildPartial();
+              com.google.cloud.datalabeling.v1beta1.AnnotationValue.newBuilder(annotationValue_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           annotationValue_ = value;
         }
@@ -989,6 +1131,8 @@ public Builder mergeAnnotationValue(com.google.cloud.datalabeling.v1beta1.Annota
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. This is the actual annotation value, e.g classification,
      * bounding box values are stored here.
@@ -1008,6 +1152,8 @@ public Builder clearAnnotationValue() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. This is the actual annotation value, e.g classification,
      * bounding box values are stored here.
@@ -1015,12 +1161,15 @@ public Builder clearAnnotationValue() {
      *
      * .google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3;
      */
-    public com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder getAnnotationValueBuilder() {
-      
+    public com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder
+        getAnnotationValueBuilder() {
+
       onChanged();
       return getAnnotationValueFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output only. This is the actual annotation value, e.g classification,
      * bounding box values are stored here.
@@ -1028,15 +1177,19 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder getAnnotati
      *
      * .google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3;
      */
-    public com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder getAnnotationValueOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder
+        getAnnotationValueOrBuilder() {
       if (annotationValueBuilder_ != null) {
         return annotationValueBuilder_.getMessageOrBuilder();
       } else {
-        return annotationValue_ == null ?
-            com.google.cloud.datalabeling.v1beta1.AnnotationValue.getDefaultInstance() : annotationValue_;
+        return annotationValue_ == null
+            ? com.google.cloud.datalabeling.v1beta1.AnnotationValue.getDefaultInstance()
+            : annotationValue_;
       }
     }
     /**
+     *
+     *
      * 
      * Output only. This is the actual annotation value, e.g classification,
      * bounding box values are stored here.
@@ -1045,14 +1198,17 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder getAnnotat
      * .google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.AnnotationValue, com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder> 
+            com.google.cloud.datalabeling.v1beta1.AnnotationValue,
+            com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder,
+            com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder>
         getAnnotationValueFieldBuilder() {
       if (annotationValueBuilder_ == null) {
-        annotationValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.AnnotationValue, com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder>(
-                getAnnotationValue(),
-                getParentForChildren(),
-                isClean());
+        annotationValueBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.datalabeling.v1beta1.AnnotationValue,
+                com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder,
+                com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder>(
+                getAnnotationValue(), getParentForChildren(), isClean());
         annotationValue_ = null;
       }
       return annotationValueBuilder_;
@@ -1060,36 +1216,49 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder getAnnotat
 
     private com.google.cloud.datalabeling.v1beta1.AnnotationMetadata annotationMetadata_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.AnnotationMetadata, com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder> annotationMetadataBuilder_;
+            com.google.cloud.datalabeling.v1beta1.AnnotationMetadata,
+            com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder,
+            com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder>
+        annotationMetadataBuilder_;
     /**
+     *
+     *
      * 
      * Output only. Annotation metadata, including information like votes
      * for labels.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4; + * * @return Whether the annotationMetadata field is set. */ public boolean hasAnnotationMetadata() { return annotationMetadataBuilder_ != null || annotationMetadata_ != null; } /** + * + * *
      * Output only. Annotation metadata, including information like votes
      * for labels.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4; + * * @return The annotationMetadata. */ public com.google.cloud.datalabeling.v1beta1.AnnotationMetadata getAnnotationMetadata() { if (annotationMetadataBuilder_ == null) { - return annotationMetadata_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.getDefaultInstance() : annotationMetadata_; + return annotationMetadata_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.getDefaultInstance() + : annotationMetadata_; } else { return annotationMetadataBuilder_.getMessage(); } } /** + * + * *
      * Output only. Annotation metadata, including information like votes
      * for labels.
@@ -1097,7 +1266,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationMetadata getAnnotationMet
      *
      * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;
      */
-    public Builder setAnnotationMetadata(com.google.cloud.datalabeling.v1beta1.AnnotationMetadata value) {
+    public Builder setAnnotationMetadata(
+        com.google.cloud.datalabeling.v1beta1.AnnotationMetadata value) {
       if (annotationMetadataBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1111,6 +1281,8 @@ public Builder setAnnotationMetadata(com.google.cloud.datalabeling.v1beta1.Annot
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Annotation metadata, including information like votes
      * for labels.
@@ -1130,6 +1302,8 @@ public Builder setAnnotationMetadata(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Annotation metadata, including information like votes
      * for labels.
@@ -1137,11 +1311,15 @@ public Builder setAnnotationMetadata(
      *
      * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;
      */
-    public Builder mergeAnnotationMetadata(com.google.cloud.datalabeling.v1beta1.AnnotationMetadata value) {
+    public Builder mergeAnnotationMetadata(
+        com.google.cloud.datalabeling.v1beta1.AnnotationMetadata value) {
       if (annotationMetadataBuilder_ == null) {
         if (annotationMetadata_ != null) {
           annotationMetadata_ =
-            com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.newBuilder(annotationMetadata_).mergeFrom(value).buildPartial();
+              com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.newBuilder(
+                      annotationMetadata_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           annotationMetadata_ = value;
         }
@@ -1153,6 +1331,8 @@ public Builder mergeAnnotationMetadata(com.google.cloud.datalabeling.v1beta1.Ann
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Annotation metadata, including information like votes
      * for labels.
@@ -1172,6 +1352,8 @@ public Builder clearAnnotationMetadata() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Annotation metadata, including information like votes
      * for labels.
@@ -1179,12 +1361,15 @@ public Builder clearAnnotationMetadata() {
      *
      * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;
      */
-    public com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder getAnnotationMetadataBuilder() {
-      
+    public com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder
+        getAnnotationMetadataBuilder() {
+
       onChanged();
       return getAnnotationMetadataFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output only. Annotation metadata, including information like votes
      * for labels.
@@ -1192,15 +1377,19 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder getAnnot
      *
      * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;
      */
-    public com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder getAnnotationMetadataOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder
+        getAnnotationMetadataOrBuilder() {
       if (annotationMetadataBuilder_ != null) {
         return annotationMetadataBuilder_.getMessageOrBuilder();
       } else {
-        return annotationMetadata_ == null ?
-            com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.getDefaultInstance() : annotationMetadata_;
+        return annotationMetadata_ == null
+            ? com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.getDefaultInstance()
+            : annotationMetadata_;
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Annotation metadata, including information like votes
      * for labels.
@@ -1209,14 +1398,17 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder getAnno
      * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.AnnotationMetadata, com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder> 
+            com.google.cloud.datalabeling.v1beta1.AnnotationMetadata,
+            com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder,
+            com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder>
         getAnnotationMetadataFieldBuilder() {
       if (annotationMetadataBuilder_ == null) {
-        annotationMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.AnnotationMetadata, com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder>(
-                getAnnotationMetadata(),
-                getParentForChildren(),
-                isClean());
+        annotationMetadataBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.datalabeling.v1beta1.AnnotationMetadata,
+                com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder,
+                com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder>(
+                getAnnotationMetadata(), getParentForChildren(), isClean());
         annotationMetadata_ = null;
       }
       return annotationMetadataBuilder_;
@@ -1224,80 +1416,100 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder getAnno
 
     private int annotationSentiment_ = 0;
     /**
+     *
+     *
      * 
      * Output only. Sentiment for this annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6; + * * @return The enum numeric value on the wire for annotationSentiment. */ - @java.lang.Override public int getAnnotationSentimentValue() { + @java.lang.Override + public int getAnnotationSentimentValue() { return annotationSentiment_; } /** + * + * *
      * Output only. Sentiment for this annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6; + * * @param value The enum numeric value on the wire for annotationSentiment to set. * @return This builder for chaining. */ public Builder setAnnotationSentimentValue(int value) { - + annotationSentiment_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Sentiment for this annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6; + * * @return The annotationSentiment. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSentiment getAnnotationSentiment() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationSentiment result = com.google.cloud.datalabeling.v1beta1.AnnotationSentiment.valueOf(annotationSentiment_); - return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSentiment.UNRECOGNIZED : result; + com.google.cloud.datalabeling.v1beta1.AnnotationSentiment result = + com.google.cloud.datalabeling.v1beta1.AnnotationSentiment.valueOf(annotationSentiment_); + return result == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSentiment.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Sentiment for this annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6; + * * @param value The annotationSentiment to set. * @return This builder for chaining. */ - public Builder setAnnotationSentiment(com.google.cloud.datalabeling.v1beta1.AnnotationSentiment value) { + public Builder setAnnotationSentiment( + com.google.cloud.datalabeling.v1beta1.AnnotationSentiment value) { if (value == null) { throw new NullPointerException(); } - + annotationSentiment_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. Sentiment for this annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6; + * * @return This builder for chaining. */ public Builder clearAnnotationSentiment() { - + annotationSentiment_ = 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); } @@ -1307,12 +1519,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.Annotation) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Annotation) private static final com.google.cloud.datalabeling.v1beta1.Annotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.Annotation(); } @@ -1321,16 +1533,16 @@ public static com.google.cloud.datalabeling.v1beta1.Annotation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Annotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Annotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Annotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Annotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1345,6 +1557,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.Annotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadata.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadata.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadata.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadata.java index 5212561c..d779acc1 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadata.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadata.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Additional information associated with the annotation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotationMetadata} */ -public final class AnnotationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AnnotationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.AnnotationMetadata) AnnotationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnnotationMetadata.newBuilder() to construct. private AnnotationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnnotationMetadata() { - } + + private AnnotationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnnotationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AnnotationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,30 @@ private AnnotationMetadata( case 0: done = true; break; - case 18: { - com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder subBuilder = null; - if (operatorMetadata_ != null) { - subBuilder = operatorMetadata_.toBuilder(); + case 18: + { + com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder subBuilder = null; + if (operatorMetadata_ != null) { + subBuilder = operatorMetadata_.toBuilder(); + } + operatorMetadata_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.OperatorMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(operatorMetadata_); + operatorMetadata_ = subBuilder.buildPartial(); + } + + break; } - operatorMetadata_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.OperatorMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(operatorMetadata_); - operatorMetadata_ = 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) { @@ -79,34 +99,39 @@ private AnnotationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.class, com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.class, + com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder.class); } public static final int OPERATOR_METADATA_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.OperatorMetadata operatorMetadata_; /** + * + * *
    * Metadata related to human labeling.
    * 
* * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; + * * @return Whether the operatorMetadata field is set. */ @java.lang.Override @@ -114,18 +139,25 @@ public boolean hasOperatorMetadata() { return operatorMetadata_ != null; } /** + * + * *
    * Metadata related to human labeling.
    * 
* * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; + * * @return The operatorMetadata. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.OperatorMetadata getOperatorMetadata() { - return operatorMetadata_ == null ? com.google.cloud.datalabeling.v1beta1.OperatorMetadata.getDefaultInstance() : operatorMetadata_; + return operatorMetadata_ == null + ? com.google.cloud.datalabeling.v1beta1.OperatorMetadata.getDefaultInstance() + : operatorMetadata_; } /** + * + * *
    * Metadata related to human labeling.
    * 
@@ -133,11 +165,13 @@ public com.google.cloud.datalabeling.v1beta1.OperatorMetadata getOperatorMetadat * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.OperatorMetadataOrBuilder getOperatorMetadataOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.OperatorMetadataOrBuilder + getOperatorMetadataOrBuilder() { return getOperatorMetadata(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,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 (operatorMetadata_ != null) { output.writeMessage(2, getOperatorMetadata()); } @@ -164,8 +197,7 @@ public int getSerializedSize() { size = 0; if (operatorMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getOperatorMetadata()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOperatorMetadata()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +207,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.datalabeling.v1beta1.AnnotationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.AnnotationMetadata other = (com.google.cloud.datalabeling.v1beta1.AnnotationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.AnnotationMetadata other = + (com.google.cloud.datalabeling.v1beta1.AnnotationMetadata) obj; if (hasOperatorMetadata() != other.hasOperatorMetadata()) return false; if (hasOperatorMetadata()) { - if (!getOperatorMetadata() - .equals(other.getOperatorMetadata())) return false; + if (!getOperatorMetadata().equals(other.getOperatorMetadata())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -208,117 +240,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata 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.datalabeling.v1beta1.AnnotationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.AnnotationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.AnnotationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Additional information associated with the annotation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.AnnotationMetadata) com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.class, com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.class, + com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.newBuilder() @@ -326,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(); @@ -349,9 +390,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor; } @java.lang.Override @@ -370,7 +411,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationMetadata build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.AnnotationMetadata result = new com.google.cloud.datalabeling.v1beta1.AnnotationMetadata(this); + com.google.cloud.datalabeling.v1beta1.AnnotationMetadata result = + new com.google.cloud.datalabeling.v1beta1.AnnotationMetadata(this); if (operatorMetadataBuilder_ == null) { result.operatorMetadata_ = operatorMetadata_; } else { @@ -384,38 +426,39 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.AnnotationMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotationMetadata)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotationMetadata) other); } else { super.mergeFrom(other); return this; @@ -423,7 +466,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.AnnotationMetadata other) { - if (other == com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.AnnotationMetadata.getDefaultInstance()) + return this; if (other.hasOperatorMetadata()) { mergeOperatorMetadata(other.getOperatorMetadata()); } @@ -446,7 +490,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.AnnotationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.AnnotationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,41 +503,55 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.OperatorMetadata operatorMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.OperatorMetadata, com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder, com.google.cloud.datalabeling.v1beta1.OperatorMetadataOrBuilder> operatorMetadataBuilder_; + com.google.cloud.datalabeling.v1beta1.OperatorMetadata, + com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.OperatorMetadataOrBuilder> + operatorMetadataBuilder_; /** + * + * *
      * Metadata related to human labeling.
      * 
* * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; + * * @return Whether the operatorMetadata field is set. */ public boolean hasOperatorMetadata() { return operatorMetadataBuilder_ != null || operatorMetadata_ != null; } /** + * + * *
      * Metadata related to human labeling.
      * 
* * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; + * * @return The operatorMetadata. */ public com.google.cloud.datalabeling.v1beta1.OperatorMetadata getOperatorMetadata() { if (operatorMetadataBuilder_ == null) { - return operatorMetadata_ == null ? com.google.cloud.datalabeling.v1beta1.OperatorMetadata.getDefaultInstance() : operatorMetadata_; + return operatorMetadata_ == null + ? com.google.cloud.datalabeling.v1beta1.OperatorMetadata.getDefaultInstance() + : operatorMetadata_; } else { return operatorMetadataBuilder_.getMessage(); } } /** + * + * *
      * Metadata related to human labeling.
      * 
* * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; */ - public Builder setOperatorMetadata(com.google.cloud.datalabeling.v1beta1.OperatorMetadata value) { + public Builder setOperatorMetadata( + com.google.cloud.datalabeling.v1beta1.OperatorMetadata value) { if (operatorMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -506,6 +565,8 @@ public Builder setOperatorMetadata(com.google.cloud.datalabeling.v1beta1.Operato return this; } /** + * + * *
      * Metadata related to human labeling.
      * 
@@ -524,17 +585,22 @@ public Builder setOperatorMetadata( return this; } /** + * + * *
      * Metadata related to human labeling.
      * 
* * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; */ - public Builder mergeOperatorMetadata(com.google.cloud.datalabeling.v1beta1.OperatorMetadata value) { + public Builder mergeOperatorMetadata( + com.google.cloud.datalabeling.v1beta1.OperatorMetadata value) { if (operatorMetadataBuilder_ == null) { if (operatorMetadata_ != null) { operatorMetadata_ = - com.google.cloud.datalabeling.v1beta1.OperatorMetadata.newBuilder(operatorMetadata_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.OperatorMetadata.newBuilder(operatorMetadata_) + .mergeFrom(value) + .buildPartial(); } else { operatorMetadata_ = value; } @@ -546,6 +612,8 @@ public Builder mergeOperatorMetadata(com.google.cloud.datalabeling.v1beta1.Opera return this; } /** + * + * *
      * Metadata related to human labeling.
      * 
@@ -564,33 +632,42 @@ public Builder clearOperatorMetadata() { return this; } /** + * + * *
      * Metadata related to human labeling.
      * 
* * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; */ - public com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder getOperatorMetadataBuilder() { - + public com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder + getOperatorMetadataBuilder() { + onChanged(); return getOperatorMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Metadata related to human labeling.
      * 
* * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; */ - public com.google.cloud.datalabeling.v1beta1.OperatorMetadataOrBuilder getOperatorMetadataOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.OperatorMetadataOrBuilder + getOperatorMetadataOrBuilder() { if (operatorMetadataBuilder_ != null) { return operatorMetadataBuilder_.getMessageOrBuilder(); } else { - return operatorMetadata_ == null ? - com.google.cloud.datalabeling.v1beta1.OperatorMetadata.getDefaultInstance() : operatorMetadata_; + return operatorMetadata_ == null + ? com.google.cloud.datalabeling.v1beta1.OperatorMetadata.getDefaultInstance() + : operatorMetadata_; } } /** + * + * *
      * Metadata related to human labeling.
      * 
@@ -598,21 +675,24 @@ public com.google.cloud.datalabeling.v1beta1.OperatorMetadataOrBuilder getOperat * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.OperatorMetadata, com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder, com.google.cloud.datalabeling.v1beta1.OperatorMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.OperatorMetadata, + com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.OperatorMetadataOrBuilder> getOperatorMetadataFieldBuilder() { if (operatorMetadataBuilder_ == null) { - operatorMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.OperatorMetadata, com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder, com.google.cloud.datalabeling.v1beta1.OperatorMetadataOrBuilder>( - getOperatorMetadata(), - getParentForChildren(), - isClean()); + operatorMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.OperatorMetadata, + com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.OperatorMetadataOrBuilder>( + getOperatorMetadata(), getParentForChildren(), isClean()); operatorMetadata_ = null; } return operatorMetadataBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,12 +702,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.AnnotationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.AnnotationMetadata) private static final com.google.cloud.datalabeling.v1beta1.AnnotationMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.AnnotationMetadata(); } @@ -636,16 +716,16 @@ public static com.google.cloud.datalabeling.v1beta1.AnnotationMetadata getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,6 +740,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.AnnotationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadataOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadataOrBuilder.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadataOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadataOrBuilder.java index f8158b66..0b92556d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadataOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationMetadataOrBuilder.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface AnnotationMetadataOrBuilder extends +public interface AnnotationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.AnnotationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Metadata related to human labeling.
    * 
* * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; + * * @return Whether the operatorMetadata field is set. */ boolean hasOperatorMetadata(); /** + * + * *
    * Metadata related to human labeling.
    * 
* * .google.cloud.datalabeling.v1beta1.OperatorMetadata operator_metadata = 2; + * * @return The operatorMetadata. */ com.google.cloud.datalabeling.v1beta1.OperatorMetadata getOperatorMetadata(); /** + * + * *
    * Metadata related to human labeling.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOrBuilder.java similarity index 82% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOrBuilder.java index 534083a5..6685e29d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOrBuilder.java @@ -1,74 +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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface AnnotationOrBuilder extends +public interface AnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.Annotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Unique name of this annotation, format is:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_id}
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Unique name of this annotation, format is:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_id}
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. The source of the annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2; + * * @return The enum numeric value on the wire for annotationSource. */ int getAnnotationSourceValue(); /** + * + * *
    * Output only. The source of the annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2; + * * @return The annotationSource. */ com.google.cloud.datalabeling.v1beta1.AnnotationSource getAnnotationSource(); /** + * + * *
    * Output only. This is the actual annotation value, e.g classification,
    * bounding box values are stored here.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3; + * * @return Whether the annotationValue field is set. */ boolean hasAnnotationValue(); /** + * + * *
    * Output only. This is the actual annotation value, e.g classification,
    * bounding box values are stored here.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3; + * * @return The annotationValue. */ com.google.cloud.datalabeling.v1beta1.AnnotationValue getAnnotationValue(); /** + * + * *
    * Output only. This is the actual annotation value, e.g classification,
    * bounding box values are stored here.
@@ -79,26 +114,34 @@ public interface AnnotationOrBuilder extends
   com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder getAnnotationValueOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. Annotation metadata, including information like votes
    * for labels.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4; + * * @return Whether the annotationMetadata field is set. */ boolean hasAnnotationMetadata(); /** + * + * *
    * Output only. Annotation metadata, including information like votes
    * for labels.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4; + * * @return The annotationMetadata. */ com.google.cloud.datalabeling.v1beta1.AnnotationMetadata getAnnotationMetadata(); /** + * + * *
    * Output only. Annotation metadata, including information like votes
    * for labels.
@@ -106,23 +149,30 @@ public interface AnnotationOrBuilder extends
    *
    * .google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;
    */
-  com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder getAnnotationMetadataOrBuilder();
+  com.google.cloud.datalabeling.v1beta1.AnnotationMetadataOrBuilder
+      getAnnotationMetadataOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. Sentiment for this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6; + * * @return The enum numeric value on the wire for annotationSentiment. */ int getAnnotationSentimentValue(); /** + * + * *
    * Output only. Sentiment for this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6; + * * @return The annotationSentiment. */ com.google.cloud.datalabeling.v1beta1.AnnotationSentiment getAnnotationSentiment(); diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOuterClass.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOuterClass.java new file mode 100644 index 00000000..8f8efc12 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationOuterClass.java @@ -0,0 +1,484 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/annotation.proto + +package com.google.cloud.datalabeling.v1beta1; + +public final class AnnotationOuterClass { + private AnnotationOuterClass() {} + + 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_datalabeling_v1beta1_Annotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_Annotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_Vertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_Polyline_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_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/datalabeling/v1beta1/anno" + + "tation.proto\022!google.cloud.datalabeling." + + "v1beta1\032\034google/api/annotations.proto\032\031g" + + "oogle/api/resource.proto\032;google/cloud/d" + + "atalabeling/v1beta1/annotation_spec_set." + + "proto\032\036google/protobuf/duration.proto\"\342\002" + + "\n\nAnnotation\022\014\n\004name\030\001 \001(\t\022N\n\021annotation" + + "_source\030\002 \001(\01623.google.cloud.datalabelin" + + "g.v1beta1.AnnotationSource\022L\n\020annotation" + + "_value\030\003 \001(\01322.google.cloud.datalabeling" + + ".v1beta1.AnnotationValue\022R\n\023annotation_m" + + "etadata\030\004 \001(\01325.google.cloud.datalabelin" + + "g.v1beta1.AnnotationMetadata\022T\n\024annotati" + + "on_sentiment\030\006 \001(\01626.google.cloud.datala" + + "beling.v1beta1.AnnotationSentiment\"\321\007\n\017A" + + "nnotationValue\022k\n\037image_classification_a" + + "nnotation\030\001 \001(\0132@.google.cloud.datalabel" + + "ing.v1beta1.ImageClassificationAnnotatio" + + "nH\000\022h\n\036image_bounding_poly_annotation\030\002 " + + "\001(\0132>.google.cloud.datalabeling.v1beta1." + + "ImageBoundingPolyAnnotationH\000\022_\n\031image_p" + + "olyline_annotation\030\010 \001(\0132:.google.cloud." + + "datalabeling.v1beta1.ImagePolylineAnnota" + + "tionH\000\022g\n\035image_segmentation_annotation\030" + + "\t \001(\0132>.google.cloud.datalabeling.v1beta" + + "1.ImageSegmentationAnnotationH\000\022i\n\036text_" + + "classification_annotation\030\003 \001(\0132?.google" + + ".cloud.datalabeling.v1beta1.TextClassifi" + + "cationAnnotationH\000\022n\n!text_entity_extrac" + + "tion_annotation\030\n \001(\0132A.google.cloud.dat" + + "alabeling.v1beta1.TextEntityExtractionAn" + + "notationH\000\022k\n\037video_classification_annot" + + "ation\030\004 \001(\0132@.google.cloud.datalabeling." + + "v1beta1.VideoClassificationAnnotationH\000\022" + + "l\n video_object_tracking_annotation\030\005 \001(" + + "\0132@.google.cloud.datalabeling.v1beta1.Vi" + + "deoObjectTrackingAnnotationH\000\022Y\n\026video_e" + + "vent_annotation\030\006 \001(\01327.google.cloud.dat" + + "alabeling.v1beta1.VideoEventAnnotationH\000" + + "B\014\n\nvalue_type\"k\n\035ImageClassificationAnn" + + "otation\022J\n\017annotation_spec\030\001 \001(\01321.googl" + + "e.cloud.datalabeling.v1beta1.AnnotationS" + + "pec\"\036\n\006Vertex\022\t\n\001x\030\001 \001(\005\022\t\n\001y\030\002 \001(\005\"(\n\020N" + + "ormalizedVertex\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\"K\n" + + "\014BoundingPoly\022;\n\010vertices\030\001 \003(\0132).google" + + ".cloud.datalabeling.v1beta1.Vertex\"j\n\026No" + + "rmalizedBoundingPoly\022P\n\023normalized_verti" + + "ces\030\001 \003(\01323.google.cloud.datalabeling.v1" + + "beta1.NormalizedVertex\"\242\002\n\033ImageBounding" + + "PolyAnnotation\022H\n\rbounding_poly\030\002 \001(\0132/." + + "google.cloud.datalabeling.v1beta1.Boundi" + + "ngPolyH\000\022]\n\030normalized_bounding_poly\030\003 \001" + + "(\01329.google.cloud.datalabeling.v1beta1.N" + + "ormalizedBoundingPolyH\000\022J\n\017annotation_sp" + + "ec\030\001 \001(\01321.google.cloud.datalabeling.v1b" + + "eta1.AnnotationSpecB\016\n\014bounded_area\"G\n\010P" + + "olyline\022;\n\010vertices\030\001 \003(\0132).google.cloud" + + ".datalabeling.v1beta1.Vertex\"f\n\022Normaliz" + + "edPolyline\022P\n\023normalized_vertices\030\001 \003(\0132" + + "3.google.cloud.datalabeling.v1beta1.Norm" + + "alizedVertex\"\204\002\n\027ImagePolylineAnnotation" + + "\022?\n\010polyline\030\002 \001(\0132+.google.cloud.datala" + + "beling.v1beta1.PolylineH\000\022T\n\023normalized_" + + "polyline\030\003 \001(\01325.google.cloud.datalabeli" + + "ng.v1beta1.NormalizedPolylineH\000\022J\n\017annot" + + "ation_spec\030\001 \001(\01321.google.cloud.datalabe" + + "ling.v1beta1.AnnotationSpecB\006\n\004poly\"\242\002\n\033" + + "ImageSegmentationAnnotation\022o\n\021annotatio" + + "n_colors\030\001 \003(\0132T.google.cloud.datalabeli" + + "ng.v1beta1.ImageSegmentationAnnotation.A" + + "nnotationColorsEntry\022\021\n\tmime_type\030\002 \001(\t\022" + + "\023\n\013image_bytes\030\003 \001(\014\032j\n\025AnnotationColors" + + "Entry\022\013\n\003key\030\001 \001(\t\022@\n\005value\030\002 \001(\01321.goog" + + "le.cloud.datalabeling.v1beta1.Annotation" + + "Spec:\0028\001\"j\n\034TextClassificationAnnotation" + + "\022J\n\017annotation_spec\030\001 \001(\01321.google.cloud" + + ".datalabeling.v1beta1.AnnotationSpec\"\276\001\n" + + "\036TextEntityExtractionAnnotation\022J\n\017annot" + + "ation_spec\030\001 \001(\01321.google.cloud.datalabe" + + "ling.v1beta1.AnnotationSpec\022P\n\022sequentia" + + "l_segment\030\002 \001(\01324.google.cloud.datalabel" + + "ing.v1beta1.SequentialSegment\"/\n\021Sequent" + + "ialSegment\022\r\n\005start\030\001 \001(\005\022\013\n\003end\030\002 \001(\005\"w" + + "\n\013TimeSegment\0224\n\021start_time_offset\030\001 \001(\013" + + "2\031.google.protobuf.Duration\0222\n\017end_time_" + + "offset\030\002 \001(\0132\031.google.protobuf.Duration\"" + + "\261\001\n\035VideoClassificationAnnotation\022D\n\014tim" + + "e_segment\030\001 \001(\0132..google.cloud.datalabel" + + "ing.v1beta1.TimeSegment\022J\n\017annotation_sp" + + "ec\030\002 \001(\01321.google.cloud.datalabeling.v1b" + + "eta1.AnnotationSpec\"\376\001\n\023ObjectTrackingFr" + + "ame\022H\n\rbounding_poly\030\001 \001(\0132/.google.clou" + + "d.datalabeling.v1beta1.BoundingPolyH\000\022]\n" + + "\030normalized_bounding_poly\030\002 \001(\01329.google" + + ".cloud.datalabeling.v1beta1.NormalizedBo" + + "undingPolyH\000\022.\n\013time_offset\030\003 \001(\0132\031.goog" + + "le.protobuf.DurationB\016\n\014bounded_area\"\211\002\n" + + "\035VideoObjectTrackingAnnotation\022J\n\017annota" + + "tion_spec\030\001 \001(\01321.google.cloud.datalabel" + + "ing.v1beta1.AnnotationSpec\022D\n\014time_segme" + + "nt\030\002 \001(\0132..google.cloud.datalabeling.v1b" + + "eta1.TimeSegment\022V\n\026object_tracking_fram" + + "es\030\003 \003(\01326.google.cloud.datalabeling.v1b" + + "eta1.ObjectTrackingFrame\"\250\001\n\024VideoEventA" + + "nnotation\022J\n\017annotation_spec\030\001 \001(\01321.goo" + + "gle.cloud.datalabeling.v1beta1.Annotatio" + + "nSpec\022D\n\014time_segment\030\002 \001(\0132..google.clo" + + "ud.datalabeling.v1beta1.TimeSegment\"d\n\022A" + + "nnotationMetadata\022N\n\021operator_metadata\030\002" + + " \001(\01323.google.cloud.datalabeling.v1beta1" + + ".OperatorMetadata\"]\n\020OperatorMetadata\022\r\n" + + "\005score\030\001 \001(\002\022\023\n\013total_votes\030\002 \001(\005\022\023\n\013lab" + + "el_votes\030\003 \001(\005\022\020\n\010comments\030\004 \003(\t*C\n\020Anno" + + "tationSource\022!\n\035ANNOTATION_SOURCE_UNSPEC" + + "IFIED\020\000\022\014\n\010OPERATOR\020\003*W\n\023AnnotationSenti" + + "ment\022$\n ANNOTATION_SENTIMENT_UNSPECIFIED" + + "\020\000\022\014\n\010NEGATIVE\020\001\022\014\n\010POSITIVE\020\002*\221\004\n\016Annot" + + "ationType\022\037\n\033ANNOTATION_TYPE_UNSPECIFIED" + + "\020\000\022#\n\037IMAGE_CLASSIFICATION_ANNOTATION\020\001\022" + + "!\n\035IMAGE_BOUNDING_BOX_ANNOTATION\020\002\022*\n&IM" + + "AGE_ORIENTED_BOUNDING_BOX_ANNOTATION\020\r\022\"" + + "\n\036IMAGE_BOUNDING_POLY_ANNOTATION\020\n\022\035\n\031IM" + + "AGE_POLYLINE_ANNOTATION\020\013\022!\n\035IMAGE_SEGME" + + "NTATION_ANNOTATION\020\014\022)\n%VIDEO_SHOTS_CLAS" + + "SIFICATION_ANNOTATION\020\003\022$\n VIDEO_OBJECT_" + + "TRACKING_ANNOTATION\020\004\022%\n!VIDEO_OBJECT_DE" + + "TECTION_ANNOTATION\020\005\022\032\n\026VIDEO_EVENT_ANNO" + + "TATION\020\006\022\"\n\036TEXT_CLASSIFICATION_ANNOTATI" + + "ON\020\010\022%\n!TEXT_ENTITY_EXTRACTION_ANNOTATIO" + + "N\020\t\022%\n!GENERAL_CLASSIFICATION_ANNOTATION" + + "\020\016B\347\001\n%com.google.cloud.datalabeling.v1b" + + "eta1P\001ZMgoogle.golang.org/genproto/googl" + + "eapis/cloud/datalabeling/v1beta1;datalab" + + "eling\252\002!Google.Cloud.DataLabeling.V1Beta" + + "1\312\002!Google\\Cloud\\DataLabeling\\V1beta1\352\002$" + + "Google::Cloud::DataLabeling::V1beta1b\006pr" + + "oto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_google_cloud_datalabeling_v1beta1_Annotation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_Annotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_Annotation_descriptor, + new java.lang.String[] { + "Name", + "AnnotationSource", + "AnnotationValue", + "AnnotationMetadata", + "AnnotationSentiment", + }); + internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor, + new java.lang.String[] { + "ImageClassificationAnnotation", + "ImageBoundingPolyAnnotation", + "ImagePolylineAnnotation", + "ImageSegmentationAnnotation", + "TextClassificationAnnotation", + "TextEntityExtractionAnnotation", + "VideoClassificationAnnotation", + "VideoObjectTrackingAnnotation", + "VideoEventAnnotation", + "ValueType", + }); + internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor, + new java.lang.String[] { + "AnnotationSpec", + }); + internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datalabeling_v1beta1_Vertex_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor, + new java.lang.String[] { + "X", "Y", + }); + internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor, + new java.lang.String[] { + "X", "Y", + }); + internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor, + new java.lang.String[] { + "Vertices", + }); + internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor, + new java.lang.String[] { + "NormalizedVertices", + }); + internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor, + new java.lang.String[] { + "BoundingPoly", "NormalizedBoundingPoly", "AnnotationSpec", "BoundedArea", + }); + internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_datalabeling_v1beta1_Polyline_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor, + new java.lang.String[] { + "Vertices", + }); + internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor, + new java.lang.String[] { + "NormalizedVertices", + }); + internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor, + new java.lang.String[] { + "Polyline", "NormalizedPolyline", "AnnotationSpec", "Poly", + }); + internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor, + new java.lang.String[] { + "AnnotationColors", "MimeType", "ImageBytes", + }); + internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_descriptor = + internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor, + new java.lang.String[] { + "AnnotationSpec", + }); + internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor, + new java.lang.String[] { + "AnnotationSpec", "SequentialSegment", + }); + internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor, + new java.lang.String[] { + "Start", "End", + }); + internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor, + new java.lang.String[] { + "StartTimeOffset", "EndTimeOffset", + }); + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor, + new java.lang.String[] { + "TimeSegment", "AnnotationSpec", + }); + internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor, + new java.lang.String[] { + "BoundingPoly", "NormalizedBoundingPoly", "TimeOffset", "BoundedArea", + }); + internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor, + new java.lang.String[] { + "AnnotationSpec", "TimeSegment", "ObjectTrackingFrames", + }); + internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor, + new java.lang.String[] { + "AnnotationSpec", "TimeSegment", + }); + internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_AnnotationMetadata_descriptor, + new java.lang.String[] { + "OperatorMetadata", + }); + internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor, + new java.lang.String[] { + "Score", "TotalVotes", "LabelVotes", "Comments", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSentiment.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSentiment.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSentiment.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSentiment.java index 8f008603..f25903ed 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSentiment.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSentiment.java @@ -1,18 +1,30 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -/** - * Protobuf enum {@code google.cloud.datalabeling.v1beta1.AnnotationSentiment} - */ -public enum AnnotationSentiment - implements com.google.protobuf.ProtocolMessageEnum { - /** - * ANNOTATION_SENTIMENT_UNSPECIFIED = 0; - */ +/** Protobuf enum {@code google.cloud.datalabeling.v1beta1.AnnotationSentiment} */ +public enum AnnotationSentiment implements com.google.protobuf.ProtocolMessageEnum { + /** ANNOTATION_SENTIMENT_UNSPECIFIED = 0; */ ANNOTATION_SENTIMENT_UNSPECIFIED(0), /** + * + * *
    * This annotation describes negatively about the data.
    * 
@@ -21,6 +33,8 @@ public enum AnnotationSentiment */ NEGATIVE(1), /** + * + * *
    * This label describes positively about the data.
    * 
@@ -31,11 +45,11 @@ public enum AnnotationSentiment UNRECOGNIZED(-1), ; - /** - * ANNOTATION_SENTIMENT_UNSPECIFIED = 0; - */ + /** ANNOTATION_SENTIMENT_UNSPECIFIED = 0; */ public static final int ANNOTATION_SENTIMENT_UNSPECIFIED_VALUE = 0; /** + * + * *
    * This annotation describes negatively about the data.
    * 
@@ -44,6 +58,8 @@ public enum AnnotationSentiment */ public static final int NEGATIVE_VALUE = 1; /** + * + * *
    * This label describes positively about the data.
    * 
@@ -52,7 +68,6 @@ public enum AnnotationSentiment */ public static final int POSITIVE_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -77,10 +92,14 @@ public static AnnotationSentiment valueOf(int value) { */ public static AnnotationSentiment forNumber(int value) { switch (value) { - case 0: return ANNOTATION_SENTIMENT_UNSPECIFIED; - case 1: return NEGATIVE; - case 2: return POSITIVE; - default: return null; + case 0: + return ANNOTATION_SENTIMENT_UNSPECIFIED; + case 1: + return NEGATIVE; + case 2: + return POSITIVE; + default: + return null; } } @@ -88,29 +107,31 @@ public static AnnotationSentiment forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - AnnotationSentiment> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AnnotationSentiment findValueByNumber(int number) { - return AnnotationSentiment.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 AnnotationSentiment findValueByNumber(int number) { + return AnnotationSentiment.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.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor() + .getEnumTypes() + .get(1); } private static final AnnotationSentiment[] VALUES = values(); @@ -118,8 +139,7 @@ public AnnotationSentiment findValueByNumber(int number) { public static AnnotationSentiment 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; @@ -135,4 +155,3 @@ private AnnotationSentiment(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.datalabeling.v1beta1.AnnotationSentiment) } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSource.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSource.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSource.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSource.java index 8380051f..9564169a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSource.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSource.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Specifies where the annotation comes from (whether it was provided by a
  * human labeler or a different source).
@@ -11,13 +28,12 @@
  *
  * Protobuf enum {@code google.cloud.datalabeling.v1beta1.AnnotationSource}
  */
-public enum AnnotationSource
-    implements com.google.protobuf.ProtocolMessageEnum {
-  /**
-   * ANNOTATION_SOURCE_UNSPECIFIED = 0;
-   */
+public enum AnnotationSource implements com.google.protobuf.ProtocolMessageEnum {
+  /** ANNOTATION_SOURCE_UNSPECIFIED = 0; */
   ANNOTATION_SOURCE_UNSPECIFIED(0),
   /**
+   *
+   *
    * 
    * Answer is provided by a human contributor.
    * 
@@ -28,11 +44,11 @@ public enum AnnotationSource UNRECOGNIZED(-1), ; - /** - * ANNOTATION_SOURCE_UNSPECIFIED = 0; - */ + /** ANNOTATION_SOURCE_UNSPECIFIED = 0; */ public static final int ANNOTATION_SOURCE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Answer is provided by a human contributor.
    * 
@@ -41,7 +57,6 @@ public enum AnnotationSource */ public static final int OPERATOR_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -66,48 +81,49 @@ public static AnnotationSource valueOf(int value) { */ public static AnnotationSource forNumber(int value) { switch (value) { - case 0: return ANNOTATION_SOURCE_UNSPECIFIED; - case 3: return OPERATOR; - default: return null; + case 0: + return ANNOTATION_SOURCE_UNSPECIFIED; + case 3: + return OPERATOR; + 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< - AnnotationSource> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AnnotationSource findValueByNumber(int number) { - return AnnotationSource.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 AnnotationSource findValueByNumber(int number) { + return AnnotationSource.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.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor() + .getEnumTypes() + .get(0); } private static final AnnotationSource[] VALUES = values(); - public static AnnotationSource valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static AnnotationSource 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; @@ -123,4 +139,3 @@ private AnnotationSource(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.datalabeling.v1beta1.AnnotationSource) } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpec.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpec.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpec.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpec.java index fc777efc..7d1aee9d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpec.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpec.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/datalabeling/v1beta1/annotation_spec_set.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Container of information related to one possible annotation that can be used
  * in a labeling task. For example, an image classification task where images
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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() {
     displayName_ = "";
     description_ = "";
@@ -29,16 +47,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)
@@ -57,25 +74,27 @@ private AnnotationSpec(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            displayName_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              displayName_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            description_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              description_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -83,34 +102,39 @@ private AnnotationSpec(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.AnnotationSpec.class, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.AnnotationSpec.class,
+            com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder.class);
   }
 
   public static final int DISPLAY_NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object displayName_;
   /**
+   *
+   *
    * 
    * Required. The display name of the AnnotationSpec. Maximum of 64 characters.
    * 
* * string display_name = 1; + * * @return The displayName. */ @java.lang.Override @@ -119,29 +143,29 @@ 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 display name of the AnnotationSpec. Maximum of 64 characters.
    * 
* * string display_name = 1; + * * @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 { @@ -152,12 +176,15 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** + * + * *
    * Optional. User-provided description of the annotation specification.
    * The description can be up to 10,000 characters long.
    * 
* * string description = 2; + * * @return The description. */ @java.lang.Override @@ -166,30 +193,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; } } /** + * + * *
    * Optional. User-provided description of the annotation specification.
    * The description can be up to 10,000 characters long.
    * 
* * string description = 2; + * * @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 { @@ -198,6 +225,7 @@ public java.lang.String getDescription() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,8 +237,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(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); } @@ -240,17 +267,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.datalabeling.v1beta1.AnnotationSpec)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.AnnotationSpec other = (com.google.cloud.datalabeling.v1beta1.AnnotationSpec) obj; + com.google.cloud.datalabeling.v1beta1.AnnotationSpec other = + (com.google.cloud.datalabeling.v1beta1.AnnotationSpec) obj; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -272,96 +298,103 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.AnnotationSpec 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.datalabeling.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.datalabeling.v1beta1.AnnotationSpec parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.AnnotationSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.AnnotationSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.AnnotationSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.AnnotationSpec parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.AnnotationSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.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; } /** + * + * *
    * Container of information related to one possible annotation that can be used
    * in a labeling task. For example, an image classification task where images
@@ -371,21 +404,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.AnnotationSpec)
       com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.AnnotationSpec.class, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.AnnotationSpec.class,
+              com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder()
@@ -393,16 +428,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,9 +448,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor;
     }
 
     @java.lang.Override
@@ -435,7 +469,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.AnnotationSpec buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.AnnotationSpec result = new com.google.cloud.datalabeling.v1beta1.AnnotationSpec(this);
+      com.google.cloud.datalabeling.v1beta1.AnnotationSpec result =
+          new com.google.cloud.datalabeling.v1beta1.AnnotationSpec(this);
       result.displayName_ = displayName_;
       result.description_ = description_;
       onBuilt();
@@ -446,38 +481,39 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.AnnotationSpec) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotationSpec)other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotationSpec) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -485,7 +521,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.AnnotationSpec other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance()) return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance())
+        return this;
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
         onChanged();
@@ -513,7 +550,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.datalabeling.v1beta1.AnnotationSpec) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.datalabeling.v1beta1.AnnotationSpec) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -525,18 +563,20 @@ public Builder mergeFrom(
 
     private java.lang.Object displayName_ = "";
     /**
+     *
+     *
      * 
      * Required. The display name of the AnnotationSpec. Maximum of 64 characters.
      * 
* * string display_name = 1; + * * @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; @@ -545,20 +585,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. The display name of the AnnotationSpec. Maximum of 64 characters.
      * 
* * string display_name = 1; + * * @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 { @@ -566,54 +607,61 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. The display name of the AnnotationSpec. Maximum of 64 characters.
      * 
* * string display_name = 1; + * * @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 display name of the AnnotationSpec. Maximum of 64 characters.
      * 
* * string display_name = 1; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Required. The display name of the AnnotationSpec. Maximum of 64 characters.
      * 
* * string display_name = 1; + * * @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; @@ -621,19 +669,21 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Optional. User-provided description of the annotation specification.
      * The description can be up to 10,000 characters long.
      * 
* * string description = 2; + * * @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; @@ -642,21 +692,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. User-provided description of the annotation specification.
      * The description can be up to 10,000 characters long.
      * 
* * string description = 2; + * * @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 { @@ -664,64 +715,71 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. User-provided description of the annotation specification.
      * The description can be up to 10,000 characters long.
      * 
* * string description = 2; + * * @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; } /** + * + * *
      * Optional. User-provided description of the annotation specification.
      * The description can be up to 10,000 characters long.
      * 
* * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Optional. User-provided description of the annotation specification.
      * The description can be up to 10,000 characters long.
      * 
* * string description = 2; + * * @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; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -731,12 +789,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.AnnotationSpec) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.AnnotationSpec) private static final com.google.cloud.datalabeling.v1beta1.AnnotationSpec DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.AnnotationSpec(); } @@ -745,16 +803,16 @@ public static com.google.cloud.datalabeling.v1beta1.AnnotationSpec getDefaultIns 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; @@ -769,6 +827,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecOrBuilder.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecOrBuilder.java index 5db7dfdf..90a4007d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecOrBuilder.java @@ -1,51 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/annotation_spec_set.proto package com.google.cloud.datalabeling.v1beta1; -public interface AnnotationSpecOrBuilder extends +public interface AnnotationSpecOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.AnnotationSpec) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The display name of the AnnotationSpec. Maximum of 64 characters.
    * 
* * string display_name = 1; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. The display name of the AnnotationSpec. Maximum of 64 characters.
    * 
* * string display_name = 1; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Optional. User-provided description of the annotation specification.
    * The description can be up to 10,000 characters long.
    * 
* * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. User-provided description of the annotation specification.
    * The description can be up to 10,000 characters long.
    * 
* * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSet.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSet.java similarity index 77% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSet.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSet.java index b67c40aa..33363c6b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSet.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSet.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/datalabeling/v1beta1/annotation_spec_set.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * An AnnotationSpecSet is a collection of label definitions. For example, in
  * image classification tasks, you define a set of possible labels for images as
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotationSpecSet}
  */
-public final class AnnotationSpecSet extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class AnnotationSpecSet extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.AnnotationSpecSet)
     AnnotationSpecSetOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use AnnotationSpecSet.newBuilder() to construct.
   private AnnotationSpecSet(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private AnnotationSpecSet() {
     name_ = "";
     displayName_ = "";
@@ -31,16 +49,15 @@ private AnnotationSpecSet() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new AnnotationSpecSet();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private AnnotationSpecSet(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -60,49 +77,57 @@ private AnnotationSpecSet(
           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;
-          }
-          case 34: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              annotationSpecs_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              description_ = s;
+              break;
             }
-            annotationSpecs_.add(
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry));
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              blockingResources_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 34:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                annotationSpecs_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              annotationSpecs_.add(
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(),
+                      extensionRegistry));
+              break;
             }
-            blockingResources_.add(s);
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                blockingResources_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              blockingResources_.add(s);
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -110,8 +135,7 @@ private AnnotationSpecSet(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } 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)) {
         annotationSpecs_ = java.util.Collections.unmodifiableList(annotationSpecs_);
@@ -123,28 +147,34 @@ private AnnotationSpecSet(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.class, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.class,
+            com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Output only. The AnnotationSpecSet resource name in the following format:
    * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -153,30 +183,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 AnnotationSpecSet resource name in the following format:
    * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
    * 
* * 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 { @@ -187,12 +217,15 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * Required. The display name for AnnotationSpecSet that you define when you
    * create it. Maximum of 64 characters.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -201,30 +234,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 display name for AnnotationSpecSet that you define when you
    * create it. Maximum of 64 characters.
    * 
* * 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 { @@ -235,12 +268,15 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * Optional. User-provided description of the annotation specification set.
    * The description can be up to 10,000 characters long.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -249,30 +285,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; } } /** + * + * *
    * Optional. User-provided description of the annotation specification set.
    * The description can be up to 10,000 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 { @@ -283,6 +319,8 @@ public java.lang.String getDescription() { public static final int ANNOTATION_SPECS_FIELD_NUMBER = 4; private java.util.List annotationSpecs_; /** + * + * *
    * Required. The array of AnnotationSpecs that you define when you create the
    * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -291,10 +329,13 @@ public java.lang.String getDescription() {
    * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
    */
   @java.lang.Override
-  public java.util.List getAnnotationSpecsList() {
+  public java.util.List
+      getAnnotationSpecsList() {
     return annotationSpecs_;
   }
   /**
+   *
+   *
    * 
    * Required. The array of AnnotationSpecs that you define when you create the
    * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -303,11 +344,13 @@ public java.util.List getA
    * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getAnnotationSpecsOrBuilderList() {
     return annotationSpecs_;
   }
   /**
+   *
+   *
    * 
    * Required. The array of AnnotationSpecs that you define when you create the
    * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -320,6 +363,8 @@ public int getAnnotationSpecsCount() {
     return annotationSpecs_.size();
   }
   /**
+   *
+   *
    * 
    * Required. The array of AnnotationSpecs that you define when you create the
    * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -332,6 +377,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpecs(i
     return annotationSpecs_.get(index);
   }
   /**
+   *
+   *
    * 
    * Required. The array of AnnotationSpecs that you define when you create the
    * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -348,37 +395,45 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotati
   public static final int BLOCKING_RESOURCES_FIELD_NUMBER = 5;
   private com.google.protobuf.LazyStringList blockingResources_;
   /**
+   *
+   *
    * 
    * Output only. The names of any related resources that are blocking changes
    * to the annotation spec set.
    * 
* * repeated string blocking_resources = 5; + * * @return A list containing the blockingResources. */ - public com.google.protobuf.ProtocolStringList - getBlockingResourcesList() { + public com.google.protobuf.ProtocolStringList getBlockingResourcesList() { return blockingResources_; } /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotation spec set.
    * 
* * repeated string blocking_resources = 5; + * * @return The count of blockingResources. */ public int getBlockingResourcesCount() { return blockingResources_.size(); } /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotation spec set.
    * 
* * repeated string blocking_resources = 5; + * * @param index The index of the element to return. * @return The blockingResources at the given index. */ @@ -386,21 +441,24 @@ public java.lang.String getBlockingResources(int index) { return blockingResources_.get(index); } /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotation spec set.
    * 
* * repeated string blocking_resources = 5; + * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - public com.google.protobuf.ByteString - getBlockingResourcesBytes(int index) { + public com.google.protobuf.ByteString getBlockingResourcesBytes(int index) { return blockingResources_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -412,8 +470,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_); } @@ -448,8 +505,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } for (int i = 0; i < annotationSpecs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, annotationSpecs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, annotationSpecs_.get(i)); } { int dataSize = 0; @@ -467,23 +523,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.datalabeling.v1beta1.AnnotationSpecSet)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet other = (com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getAnnotationSpecsList() - .equals(other.getAnnotationSpecsList())) return false; - if (!getBlockingResourcesList() - .equals(other.getBlockingResourcesList())) return false; + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet other = + (com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getAnnotationSpecsList().equals(other.getAnnotationSpecsList())) return false; + if (!getBlockingResourcesList().equals(other.getBlockingResourcesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -515,96 +567,104 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet 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.datalabeling.v1beta1.AnnotationSpecSet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 AnnotationSpecSet is a collection of label definitions. For example, in
    * image classification tasks, you define a set of possible labels for images as
@@ -613,21 +673,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotationSpecSet}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.AnnotationSpecSet)
       com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.class, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.class,
+              com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.newBuilder()
@@ -635,17 +697,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) {
         getAnnotationSpecsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -667,9 +729,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_descriptor;
     }
 
     @java.lang.Override
@@ -688,7 +750,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet result = new com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet(this);
+      com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet result =
+          new com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.displayName_ = displayName_;
@@ -715,38 +778,39 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet)other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -754,7 +818,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance()) return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -785,9 +850,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet
             annotationSpecsBuilder_ = null;
             annotationSpecs_ = other.annotationSpecs_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            annotationSpecsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getAnnotationSpecsFieldBuilder() : null;
+            annotationSpecsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getAnnotationSpecsFieldBuilder()
+                    : null;
           } else {
             annotationSpecsBuilder_.addAllMessages(other.annotationSpecs_);
           }
@@ -822,7 +888,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -831,23 +898,26 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. The AnnotationSpecSet resource name in the following format:
      * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
      * 
* * 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; @@ -856,21 +926,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The AnnotationSpecSet resource name in the following format:
      * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
      * 
* * 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 { @@ -878,57 +949,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. The AnnotationSpecSet resource name in the following format:
      * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
      * 
* * 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 AnnotationSpecSet resource name in the following format:
      * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. The AnnotationSpecSet resource name in the following format:
      * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
      * 
* * 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; @@ -936,19 +1014,21 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. The display name for AnnotationSpecSet that you define when you
      * create it. Maximum of 64 characters.
      * 
* * 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; @@ -957,21 +1037,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. The display name for AnnotationSpecSet that you define when you
      * create it. Maximum of 64 characters.
      * 
* * 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 { @@ -979,57 +1060,64 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. The display name for AnnotationSpecSet that you define when you
      * create it. Maximum of 64 characters.
      * 
* * 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 display name for AnnotationSpecSet that you define when you
      * create it. Maximum of 64 characters.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Required. The display name for AnnotationSpecSet that you define when you
      * create it. Maximum of 64 characters.
      * 
* * 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; @@ -1037,19 +1125,21 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Optional. User-provided description of the annotation specification set.
      * The description can be up to 10,000 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; @@ -1058,21 +1148,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. User-provided description of the annotation specification set.
      * The description can be up to 10,000 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 { @@ -1080,75 +1171,90 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. User-provided description of the annotation specification set.
      * The description can be up to 10,000 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; } /** + * + * *
      * Optional. User-provided description of the annotation specification set.
      * The description can be up to 10,000 characters long.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Optional. User-provided description of the annotation specification set.
      * The description can be up to 10,000 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 java.util.List annotationSpecs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAnnotationSpecsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - annotationSpecs_ = new java.util.ArrayList(annotationSpecs_); + annotationSpecs_ = + new java.util.ArrayList( + annotationSpecs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecsBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + annotationSpecsBuilder_; /** + * + * *
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1156,7 +1262,8 @@ private void ensureAnnotationSpecsIsMutable() {
      *
      * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
      */
-    public java.util.List getAnnotationSpecsList() {
+    public java.util.List
+        getAnnotationSpecsList() {
       if (annotationSpecsBuilder_ == null) {
         return java.util.Collections.unmodifiableList(annotationSpecs_);
       } else {
@@ -1164,6 +1271,8 @@ public java.util.List getA
       }
     }
     /**
+     *
+     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1179,6 +1288,8 @@ public int getAnnotationSpecsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1194,6 +1305,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpecs(i
       }
     }
     /**
+     *
+     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1216,6 +1329,8 @@ public Builder setAnnotationSpecs(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1235,6 +1350,8 @@ public Builder setAnnotationSpecs(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1256,6 +1373,8 @@ public Builder addAnnotationSpecs(com.google.cloud.datalabeling.v1beta1.Annotati
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1278,6 +1397,8 @@ public Builder addAnnotationSpecs(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1297,6 +1418,8 @@ public Builder addAnnotationSpecs(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1316,6 +1439,8 @@ public Builder addAnnotationSpecs(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1327,8 +1452,7 @@ public Builder addAllAnnotationSpecs(
         java.lang.Iterable values) {
       if (annotationSpecsBuilder_ == null) {
         ensureAnnotationSpecsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, annotationSpecs_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationSpecs_);
         onChanged();
       } else {
         annotationSpecsBuilder_.addAllMessages(values);
@@ -1336,6 +1460,8 @@ public Builder addAllAnnotationSpecs(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1354,6 +1480,8 @@ public Builder clearAnnotationSpecs() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1372,6 +1500,8 @@ public Builder removeAnnotationSpecs(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1384,6 +1514,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio
       return getAnnotationSpecsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1391,14 +1523,17 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio
      *
      * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
      */
-    public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecsOrBuilder(
-        int index) {
+    public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder
+        getAnnotationSpecsOrBuilder(int index) {
       if (annotationSpecsBuilder_ == null) {
-        return annotationSpecs_.get(index);  } else {
+        return annotationSpecs_.get(index);
+      } else {
         return annotationSpecsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1406,8 +1541,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotati
      *
      * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
      */
-    public java.util.List 
-         getAnnotationSpecsOrBuilderList() {
+    public java.util.List
+        getAnnotationSpecsOrBuilderList() {
       if (annotationSpecsBuilder_ != null) {
         return annotationSpecsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1415,6 +1550,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotati
       }
     }
     /**
+     *
+     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1422,11 +1559,14 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotati
      *
      * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
      */
-    public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder addAnnotationSpecsBuilder() {
-      return getAnnotationSpecsFieldBuilder().addBuilder(
-          com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance());
+    public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder
+        addAnnotationSpecsBuilder() {
+      return getAnnotationSpecsFieldBuilder()
+          .addBuilder(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1436,10 +1576,13 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder addAnnotatio
      */
     public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder addAnnotationSpecsBuilder(
         int index) {
-      return getAnnotationSpecsFieldBuilder().addBuilder(
-          index, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance());
+      return getAnnotationSpecsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Required. The array of AnnotationSpecs that you define when you create the
      * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -1447,16 +1590,22 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder addAnnotatio
      *
      * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
      */
-    public java.util.List 
-         getAnnotationSpecsBuilderList() {
+    public java.util.List
+        getAnnotationSpecsBuilderList() {
       return getAnnotationSpecsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> 
+            com.google.cloud.datalabeling.v1beta1.AnnotationSpec,
+            com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder,
+            com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>
         getAnnotationSpecsFieldBuilder() {
       if (annotationSpecsBuilder_ == null) {
-        annotationSpecsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>(
+        annotationSpecsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.datalabeling.v1beta1.AnnotationSpec,
+                com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder,
+                com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>(
                 annotationSpecs_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -1466,45 +1615,55 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder addAnnotatio
       return annotationSpecsBuilder_;
     }
 
-    private com.google.protobuf.LazyStringList blockingResources_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList blockingResources_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensureBlockingResourcesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
         blockingResources_ = new com.google.protobuf.LazyStringArrayList(blockingResources_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * Output only. The names of any related resources that are blocking changes
      * to the annotation spec set.
      * 
* * repeated string blocking_resources = 5; + * * @return A list containing the blockingResources. */ - public com.google.protobuf.ProtocolStringList - getBlockingResourcesList() { + public com.google.protobuf.ProtocolStringList getBlockingResourcesList() { return blockingResources_.getUnmodifiableView(); } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotation spec set.
      * 
* * repeated string blocking_resources = 5; + * * @return The count of blockingResources. */ public int getBlockingResourcesCount() { return blockingResources_.size(); } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotation spec set.
      * 
* * repeated string blocking_resources = 5; + * * @param index The index of the element to return. * @return The blockingResources at the given index. */ @@ -1512,85 +1671,95 @@ public java.lang.String getBlockingResources(int index) { return blockingResources_.get(index); } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotation spec set.
      * 
* * repeated string blocking_resources = 5; + * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - public com.google.protobuf.ByteString - getBlockingResourcesBytes(int index) { + public com.google.protobuf.ByteString getBlockingResourcesBytes(int index) { return blockingResources_.getByteString(index); } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotation spec set.
      * 
* * repeated string blocking_resources = 5; + * * @param index The index to set the value at. * @param value The blockingResources to set. * @return This builder for chaining. */ - public Builder setBlockingResources( - int index, java.lang.String value) { + public Builder setBlockingResources(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlockingResourcesIsMutable(); + throw new NullPointerException(); + } + ensureBlockingResourcesIsMutable(); blockingResources_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotation spec set.
      * 
* * repeated string blocking_resources = 5; + * * @param value The blockingResources to add. * @return This builder for chaining. */ - public Builder addBlockingResources( - java.lang.String value) { + public Builder addBlockingResources(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlockingResourcesIsMutable(); + throw new NullPointerException(); + } + ensureBlockingResourcesIsMutable(); blockingResources_.add(value); onChanged(); return this; } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotation spec set.
      * 
* * repeated string blocking_resources = 5; + * * @param values The blockingResources to add. * @return This builder for chaining. */ - public Builder addAllBlockingResources( - java.lang.Iterable values) { + public Builder addAllBlockingResources(java.lang.Iterable values) { ensureBlockingResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, blockingResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blockingResources_); onChanged(); return this; } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotation spec set.
      * 
* * repeated string blocking_resources = 5; + * * @return This builder for chaining. */ public Builder clearBlockingResources() { @@ -1600,29 +1769,31 @@ public Builder clearBlockingResources() { return this; } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the annotation spec set.
      * 
* * repeated string blocking_resources = 5; + * * @param value The bytes of the blockingResources to add. * @return This builder for chaining. */ - public Builder addBlockingResourcesBytes( - com.google.protobuf.ByteString value) { + public Builder addBlockingResourcesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureBlockingResourcesIsMutable(); blockingResources_.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); } @@ -1632,12 +1803,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.AnnotationSpecSet) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.AnnotationSpecSet) private static final com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet(); } @@ -1646,16 +1817,16 @@ public static com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotationSpecSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotationSpecSet(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotationSpecSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotationSpecSet(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1670,6 +1841,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetName.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetName.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOrBuilder.java similarity index 81% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOrBuilder.java index 98c02da1..83bcec55 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOrBuilder.java @@ -1,79 +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/datalabeling/v1beta1/annotation_spec_set.proto package com.google.cloud.datalabeling.v1beta1; -public interface AnnotationSpecSetOrBuilder extends +public interface AnnotationSpecSetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.AnnotationSpecSet) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The AnnotationSpecSet resource name in the following format:
    * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The AnnotationSpecSet resource name in the following format:
    * "projects/<var>{project_id}</var>/annotationSpecSets/<var>{annotation_spec_set_id}</var>"
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The display name for AnnotationSpecSet that you define when you
    * create it. Maximum of 64 characters.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. The display name for AnnotationSpecSet that you define when you
    * create it. Maximum of 64 characters.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Optional. User-provided description of the annotation specification set.
    * The description can be up to 10,000 characters long.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. User-provided description of the annotation specification set.
    * The description can be up to 10,000 characters long.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Required. The array of AnnotationSpecs that you define when you create the
    * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -81,9 +114,10 @@ public interface AnnotationSpecSetOrBuilder extends
    *
    * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
    */
-  java.util.List 
-      getAnnotationSpecsList();
+  java.util.List getAnnotationSpecsList();
   /**
+   *
+   *
    * 
    * Required. The array of AnnotationSpecs that you define when you create the
    * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -93,6 +127,8 @@ public interface AnnotationSpecSetOrBuilder extends
    */
   com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpecs(int index);
   /**
+   *
+   *
    * 
    * Required. The array of AnnotationSpecs that you define when you create the
    * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -102,6 +138,8 @@ public interface AnnotationSpecSetOrBuilder extends
    */
   int getAnnotationSpecsCount();
   /**
+   *
+   *
    * 
    * Required. The array of AnnotationSpecs that you define when you create the
    * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -109,9 +147,11 @@ public interface AnnotationSpecSetOrBuilder extends
    *
    * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_specs = 4;
    */
-  java.util.List 
+  java.util.List
       getAnnotationSpecsOrBuilderList();
   /**
+   *
+   *
    * 
    * Required. The array of AnnotationSpecs that you define when you create the
    * AnnotationSpecSet. These are the possible labels for the labeling task.
@@ -123,47 +163,57 @@ com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecs
       int index);
 
   /**
+   *
+   *
    * 
    * Output only. The names of any related resources that are blocking changes
    * to the annotation spec set.
    * 
* * repeated string blocking_resources = 5; + * * @return A list containing the blockingResources. */ - java.util.List - getBlockingResourcesList(); + java.util.List getBlockingResourcesList(); /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotation spec set.
    * 
* * repeated string blocking_resources = 5; + * * @return The count of blockingResources. */ int getBlockingResourcesCount(); /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotation spec set.
    * 
* * repeated string blocking_resources = 5; + * * @param index The index of the element to return. * @return The blockingResources at the given index. */ java.lang.String getBlockingResources(int index); /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the annotation spec set.
    * 
* * repeated string blocking_resources = 5; + * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - com.google.protobuf.ByteString - getBlockingResourcesBytes(int index); + com.google.protobuf.ByteString getBlockingResourcesBytes(int index); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOuterClass.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOuterClass.java new file mode 100644 index 00000000..2ce28ac5 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationSpecSetOuterClass.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/datalabeling/v1beta1/annotation_spec_set.proto + +package com.google.cloud.datalabeling.v1beta1; + +public final class AnnotationSpecSetOuterClass { + private AnnotationSpecSetOuterClass() {} + + 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_datalabeling_v1beta1_AnnotationSpecSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_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 = { + "\n;google/cloud/datalabeling/v1beta1/anno" + + "tation_spec_set.proto\022!google.cloud.data" + + "labeling.v1beta1\032\034google/api/annotations" + + ".proto\032\031google/api/resource.proto\"\246\002\n\021An" + + "notationSpecSet\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\022K\n\020anno" + + "tation_specs\030\004 \003(\01321.google.cloud.datala" + + "beling.v1beta1.AnnotationSpec\022\032\n\022blockin" + + "g_resources\030\005 \003(\t:o\352Al\n-datalabeling.goo" + + "gleapis.com/AnnotationSpecSet\022;projects/" + + "{project}/annotationSpecSets/{annotation" + + "_spec_set}\";\n\016AnnotationSpec\022\024\n\014display_" + + "name\030\001 \001(\t\022\023\n\013description\030\002 \001(\tB\347\001\n%com." + + "google.cloud.datalabeling.v1beta1P\001ZMgoo" + + "gle.golang.org/genproto/googleapis/cloud" + + "/datalabeling/v1beta1;datalabeling\252\002!Goo" + + "gle.Cloud.DataLabeling.V1Beta1\312\002!Google\\" + + "Cloud\\DataLabeling\\V1beta1\352\002$Google::Clo" + + "ud::DataLabeling::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpecSet_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Description", "AnnotationSpecs", "BlockingResources", + }); + internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_AnnotationSpec_descriptor, + new java.lang.String[] { + "DisplayName", "Description", + }); + 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.AnnotationsProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationType.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationType.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationType.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationType.java index 19499bf2..64c20e62 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationType.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationType.java @@ -1,18 +1,30 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -/** - * Protobuf enum {@code google.cloud.datalabeling.v1beta1.AnnotationType} - */ -public enum AnnotationType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * ANNOTATION_TYPE_UNSPECIFIED = 0; - */ +/** Protobuf enum {@code google.cloud.datalabeling.v1beta1.AnnotationType} */ +public enum AnnotationType implements com.google.protobuf.ProtocolMessageEnum { + /** ANNOTATION_TYPE_UNSPECIFIED = 0; */ ANNOTATION_TYPE_UNSPECIFIED(0), /** + * + * *
    * Classification annotations in an image. Allowed for continuous evaluation.
    * 
@@ -21,6 +33,8 @@ public enum AnnotationType */ IMAGE_CLASSIFICATION_ANNOTATION(1), /** + * + * *
    * Bounding box annotations in an image. A form of image object detection.
    * Allowed for continuous evaluation.
@@ -30,6 +44,8 @@ public enum AnnotationType
    */
   IMAGE_BOUNDING_BOX_ANNOTATION(2),
   /**
+   *
+   *
    * 
    * Oriented bounding box. The box does not have to be parallel to horizontal
    * line.
@@ -39,6 +55,8 @@ public enum AnnotationType
    */
   IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION(13),
   /**
+   *
+   *
    * 
    * Bounding poly annotations in an image.
    * 
@@ -47,6 +65,8 @@ public enum AnnotationType */ IMAGE_BOUNDING_POLY_ANNOTATION(10), /** + * + * *
    * Polyline annotations in an image.
    * 
@@ -55,6 +75,8 @@ public enum AnnotationType */ IMAGE_POLYLINE_ANNOTATION(11), /** + * + * *
    * Segmentation annotations in an image.
    * 
@@ -63,6 +85,8 @@ public enum AnnotationType */ IMAGE_SEGMENTATION_ANNOTATION(12), /** + * + * *
    * Classification annotations in video shots.
    * 
@@ -71,6 +95,8 @@ public enum AnnotationType */ VIDEO_SHOTS_CLASSIFICATION_ANNOTATION(3), /** + * + * *
    * Video object tracking annotation.
    * 
@@ -79,6 +105,8 @@ public enum AnnotationType */ VIDEO_OBJECT_TRACKING_ANNOTATION(4), /** + * + * *
    * Video object detection annotation.
    * 
@@ -87,6 +115,8 @@ public enum AnnotationType */ VIDEO_OBJECT_DETECTION_ANNOTATION(5), /** + * + * *
    * Video event annotation.
    * 
@@ -95,6 +125,8 @@ public enum AnnotationType */ VIDEO_EVENT_ANNOTATION(6), /** + * + * *
    * Classification for text. Allowed for continuous evaluation.
    * 
@@ -103,6 +135,8 @@ public enum AnnotationType */ TEXT_CLASSIFICATION_ANNOTATION(8), /** + * + * *
    * Entity extraction for text.
    * 
@@ -111,6 +145,8 @@ public enum AnnotationType */ TEXT_ENTITY_EXTRACTION_ANNOTATION(9), /** + * + * *
    * General classification. Allowed for continuous evaluation.
    * 
@@ -121,11 +157,11 @@ public enum AnnotationType UNRECOGNIZED(-1), ; - /** - * ANNOTATION_TYPE_UNSPECIFIED = 0; - */ + /** ANNOTATION_TYPE_UNSPECIFIED = 0; */ public static final int ANNOTATION_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Classification annotations in an image. Allowed for continuous evaluation.
    * 
@@ -134,6 +170,8 @@ public enum AnnotationType */ public static final int IMAGE_CLASSIFICATION_ANNOTATION_VALUE = 1; /** + * + * *
    * Bounding box annotations in an image. A form of image object detection.
    * Allowed for continuous evaluation.
@@ -143,6 +181,8 @@ public enum AnnotationType
    */
   public static final int IMAGE_BOUNDING_BOX_ANNOTATION_VALUE = 2;
   /**
+   *
+   *
    * 
    * Oriented bounding box. The box does not have to be parallel to horizontal
    * line.
@@ -152,6 +192,8 @@ public enum AnnotationType
    */
   public static final int IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION_VALUE = 13;
   /**
+   *
+   *
    * 
    * Bounding poly annotations in an image.
    * 
@@ -160,6 +202,8 @@ public enum AnnotationType */ public static final int IMAGE_BOUNDING_POLY_ANNOTATION_VALUE = 10; /** + * + * *
    * Polyline annotations in an image.
    * 
@@ -168,6 +212,8 @@ public enum AnnotationType */ public static final int IMAGE_POLYLINE_ANNOTATION_VALUE = 11; /** + * + * *
    * Segmentation annotations in an image.
    * 
@@ -176,6 +222,8 @@ public enum AnnotationType */ public static final int IMAGE_SEGMENTATION_ANNOTATION_VALUE = 12; /** + * + * *
    * Classification annotations in video shots.
    * 
@@ -184,6 +232,8 @@ public enum AnnotationType */ public static final int VIDEO_SHOTS_CLASSIFICATION_ANNOTATION_VALUE = 3; /** + * + * *
    * Video object tracking annotation.
    * 
@@ -192,6 +242,8 @@ public enum AnnotationType */ public static final int VIDEO_OBJECT_TRACKING_ANNOTATION_VALUE = 4; /** + * + * *
    * Video object detection annotation.
    * 
@@ -200,6 +252,8 @@ public enum AnnotationType */ public static final int VIDEO_OBJECT_DETECTION_ANNOTATION_VALUE = 5; /** + * + * *
    * Video event annotation.
    * 
@@ -208,6 +262,8 @@ public enum AnnotationType */ public static final int VIDEO_EVENT_ANNOTATION_VALUE = 6; /** + * + * *
    * Classification for text. Allowed for continuous evaluation.
    * 
@@ -216,6 +272,8 @@ public enum AnnotationType */ public static final int TEXT_CLASSIFICATION_ANNOTATION_VALUE = 8; /** + * + * *
    * Entity extraction for text.
    * 
@@ -224,6 +282,8 @@ public enum AnnotationType */ public static final int TEXT_ENTITY_EXTRACTION_ANNOTATION_VALUE = 9; /** + * + * *
    * General classification. Allowed for continuous evaluation.
    * 
@@ -232,7 +292,6 @@ public enum AnnotationType */ public static final int GENERAL_CLASSIFICATION_ANNOTATION_VALUE = 14; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -257,60 +316,73 @@ public static AnnotationType valueOf(int value) { */ public static AnnotationType forNumber(int value) { switch (value) { - case 0: return ANNOTATION_TYPE_UNSPECIFIED; - case 1: return IMAGE_CLASSIFICATION_ANNOTATION; - case 2: return IMAGE_BOUNDING_BOX_ANNOTATION; - case 13: return IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION; - case 10: return IMAGE_BOUNDING_POLY_ANNOTATION; - case 11: return IMAGE_POLYLINE_ANNOTATION; - case 12: return IMAGE_SEGMENTATION_ANNOTATION; - case 3: return VIDEO_SHOTS_CLASSIFICATION_ANNOTATION; - case 4: return VIDEO_OBJECT_TRACKING_ANNOTATION; - case 5: return VIDEO_OBJECT_DETECTION_ANNOTATION; - case 6: return VIDEO_EVENT_ANNOTATION; - case 8: return TEXT_CLASSIFICATION_ANNOTATION; - case 9: return TEXT_ENTITY_EXTRACTION_ANNOTATION; - case 14: return GENERAL_CLASSIFICATION_ANNOTATION; - default: return null; + case 0: + return ANNOTATION_TYPE_UNSPECIFIED; + case 1: + return IMAGE_CLASSIFICATION_ANNOTATION; + case 2: + return IMAGE_BOUNDING_BOX_ANNOTATION; + case 13: + return IMAGE_ORIENTED_BOUNDING_BOX_ANNOTATION; + case 10: + return IMAGE_BOUNDING_POLY_ANNOTATION; + case 11: + return IMAGE_POLYLINE_ANNOTATION; + case 12: + return IMAGE_SEGMENTATION_ANNOTATION; + case 3: + return VIDEO_SHOTS_CLASSIFICATION_ANNOTATION; + case 4: + return VIDEO_OBJECT_TRACKING_ANNOTATION; + case 5: + return VIDEO_OBJECT_DETECTION_ANNOTATION; + case 6: + return VIDEO_EVENT_ANNOTATION; + case 8: + return TEXT_CLASSIFICATION_ANNOTATION; + case 9: + return TEXT_ENTITY_EXTRACTION_ANNOTATION; + case 14: + return GENERAL_CLASSIFICATION_ANNOTATION; + 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< - AnnotationType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AnnotationType findValueByNumber(int number) { - return AnnotationType.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 AnnotationType findValueByNumber(int number) { + return AnnotationType.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.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor().getEnumTypes().get(2); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor() + .getEnumTypes() + .get(2); } private static final AnnotationType[] VALUES = values(); - public static AnnotationType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static AnnotationType 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; @@ -326,4 +398,3 @@ private AnnotationType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.datalabeling.v1beta1.AnnotationType) } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValue.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValue.java similarity index 57% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValue.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValue.java index 1d14eeef..14a1b57d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValue.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValue.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Annotation value for an example.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotationValue} */ -public final class AnnotationValue extends - com.google.protobuf.GeneratedMessageV3 implements +public final class AnnotationValue extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.AnnotationValue) AnnotationValueOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnnotationValue.newBuilder() to construct. private AnnotationValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AnnotationValue() { - } + + private AnnotationValue() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnnotationValue(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AnnotationValue( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,139 +68,211 @@ private AnnotationValue( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder subBuilder = null; - if (valueTypeCase_ == 1) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_).toBuilder(); - } - valueType_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_); - valueType_ = subBuilder.buildPartial(); - } - valueTypeCase_ = 1; - break; - } - case 18: { - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder subBuilder = null; - if (valueTypeCase_ == 2) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_).toBuilder(); - } - valueType_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_); - valueType_ = subBuilder.buildPartial(); - } - valueTypeCase_ = 2; - break; - } - case 26: { - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder subBuilder = null; - if (valueTypeCase_ == 3) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_).toBuilder(); + case 10: + { + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder + subBuilder = null; + if (valueTypeCase_ == 1) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) + valueType_) + .toBuilder(); + } + valueType_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) + valueType_); + valueType_ = subBuilder.buildPartial(); + } + valueTypeCase_ = 1; + break; } - valueType_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_); - valueType_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder subBuilder = + null; + if (valueTypeCase_ == 2) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_) + .toBuilder(); + } + valueType_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_); + valueType_ = subBuilder.buildPartial(); + } + valueTypeCase_ = 2; + break; } - valueTypeCase_ = 3; - break; - } - case 34: { - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder subBuilder = null; - if (valueTypeCase_ == 4) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_).toBuilder(); + case 26: + { + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder + subBuilder = null; + if (valueTypeCase_ == 3) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) + valueType_) + .toBuilder(); + } + valueType_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) + valueType_); + valueType_ = subBuilder.buildPartial(); + } + valueTypeCase_ = 3; + break; } - valueType_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_); - valueType_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder + subBuilder = null; + if (valueTypeCase_ == 4) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) + valueType_) + .toBuilder(); + } + valueType_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) + valueType_); + valueType_ = subBuilder.buildPartial(); + } + valueTypeCase_ = 4; + break; } - valueTypeCase_ = 4; - break; - } - case 42: { - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder subBuilder = null; - if (valueTypeCase_ == 5) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_).toBuilder(); + case 42: + { + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder + subBuilder = null; + if (valueTypeCase_ == 5) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) + valueType_) + .toBuilder(); + } + valueType_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) + valueType_); + valueType_ = subBuilder.buildPartial(); + } + valueTypeCase_ = 5; + break; } - valueType_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_); - valueType_ = subBuilder.buildPartial(); + case 50: + { + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder subBuilder = null; + if (valueTypeCase_ == 6) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_) + .toBuilder(); + } + valueType_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_); + valueType_ = subBuilder.buildPartial(); + } + valueTypeCase_ = 6; + break; } - valueTypeCase_ = 5; - break; - } - case 50: { - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder subBuilder = null; - if (valueTypeCase_ == 6) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_).toBuilder(); + case 66: + { + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder subBuilder = + null; + if (valueTypeCase_ == 8) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_) + .toBuilder(); + } + valueType_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_); + valueType_ = subBuilder.buildPartial(); + } + valueTypeCase_ = 8; + break; } - valueType_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_); - valueType_ = subBuilder.buildPartial(); + case 74: + { + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder subBuilder = + null; + if (valueTypeCase_ == 9) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_) + .toBuilder(); + } + valueType_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_); + valueType_ = subBuilder.buildPartial(); + } + valueTypeCase_ = 9; + break; } - valueTypeCase_ = 6; - break; - } - case 66: { - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder subBuilder = null; - if (valueTypeCase_ == 8) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_).toBuilder(); + case 82: + { + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder + subBuilder = null; + if (valueTypeCase_ == 10) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) + valueType_) + .toBuilder(); + } + valueType_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) + valueType_); + valueType_ = subBuilder.buildPartial(); + } + valueTypeCase_ = 10; + break; } - valueType_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_); - valueType_ = subBuilder.buildPartial(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - valueTypeCase_ = 8; - break; - } - case 74: { - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder subBuilder = null; - if (valueTypeCase_ == 9) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_).toBuilder(); - } - valueType_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_); - valueType_ = subBuilder.buildPartial(); - } - valueTypeCase_ = 9; - break; - } - case 82: { - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder subBuilder = null; - if (valueTypeCase_ == 10) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_).toBuilder(); - } - valueType_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_); - valueType_ = subBuilder.buildPartial(); - } - valueTypeCase_ = 10; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -192,30 +280,34 @@ private AnnotationValue( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.AnnotationValue.class, com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder.class); + com.google.cloud.datalabeling.v1beta1.AnnotationValue.class, + com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder.class); } private int valueTypeCase_ = 0; private java.lang.Object valueType_; + public enum ValueTypeCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { IMAGE_CLASSIFICATION_ANNOTATION(1), IMAGE_BOUNDING_POLY_ANNOTATION(2), @@ -228,6 +320,7 @@ public enum ValueTypeCase VIDEO_EVENT_ANNOTATION(6), VALUETYPE_NOT_SET(0); private final int value; + private ValueTypeCase(int value) { this.value = value; } @@ -243,37 +336,52 @@ public static ValueTypeCase valueOf(int value) { public static ValueTypeCase forNumber(int value) { switch (value) { - case 1: return IMAGE_CLASSIFICATION_ANNOTATION; - case 2: return IMAGE_BOUNDING_POLY_ANNOTATION; - case 8: return IMAGE_POLYLINE_ANNOTATION; - case 9: return IMAGE_SEGMENTATION_ANNOTATION; - case 3: return TEXT_CLASSIFICATION_ANNOTATION; - case 10: return TEXT_ENTITY_EXTRACTION_ANNOTATION; - case 4: return VIDEO_CLASSIFICATION_ANNOTATION; - case 5: return VIDEO_OBJECT_TRACKING_ANNOTATION; - case 6: return VIDEO_EVENT_ANNOTATION; - case 0: return VALUETYPE_NOT_SET; - default: return null; + case 1: + return IMAGE_CLASSIFICATION_ANNOTATION; + case 2: + return IMAGE_BOUNDING_POLY_ANNOTATION; + case 8: + return IMAGE_POLYLINE_ANNOTATION; + case 9: + return IMAGE_SEGMENTATION_ANNOTATION; + case 3: + return TEXT_CLASSIFICATION_ANNOTATION; + case 10: + return TEXT_ENTITY_EXTRACTION_ANNOTATION; + case 4: + return VIDEO_CLASSIFICATION_ANNOTATION; + case 5: + return VIDEO_OBJECT_TRACKING_ANNOTATION; + case 6: + return VIDEO_EVENT_ANNOTATION; + case 0: + return VALUETYPE_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public ValueTypeCase - getValueTypeCase() { - return ValueTypeCase.forNumber( - valueTypeCase_); + public ValueTypeCase getValueTypeCase() { + return ValueTypeCase.forNumber(valueTypeCase_); } public static final int IMAGE_CLASSIFICATION_ANNOTATION_FIELD_NUMBER = 1; /** + * + * *
    * Annotation value for image classification case.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * + * * @return Whether the imageClassificationAnnotation field is set. */ @java.lang.Override @@ -281,43 +389,59 @@ public boolean hasImageClassificationAnnotation() { return valueTypeCase_ == 1; } /** + * + * *
    * Annotation value for image classification case.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * + * * @return The imageClassificationAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation getImageClassificationAnnotation() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation + getImageClassificationAnnotation() { if (valueTypeCase_ == 1) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.getDefaultInstance(); } /** + * + * *
    * Annotation value for image classification case.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder getImageClassificationAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder + getImageClassificationAnnotationOrBuilder() { if (valueTypeCase_ == 1) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.getDefaultInstance(); } public static final int IMAGE_BOUNDING_POLY_ANNOTATION_FIELD_NUMBER = 2; /** + * + * *
    * Annotation value for image bounding box, oriented bounding box
    * and polygon cases.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * + * * @return Whether the imageBoundingPolyAnnotation field is set. */ @java.lang.Override @@ -325,39 +449,52 @@ public boolean hasImageBoundingPolyAnnotation() { return valueTypeCase_ == 2; } /** + * + * *
    * Annotation value for image bounding box, oriented bounding box
    * and polygon cases.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * + * * @return The imageBoundingPolyAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation getImageBoundingPolyAnnotation() { + public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation + getImageBoundingPolyAnnotation() { if (valueTypeCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.getDefaultInstance(); } /** + * + * *
    * Annotation value for image bounding box, oriented bounding box
    * and polygon cases.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder getImageBoundingPolyAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder + getImageBoundingPolyAnnotationOrBuilder() { if (valueTypeCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.getDefaultInstance(); } public static final int IMAGE_POLYLINE_ANNOTATION_FIELD_NUMBER = 8; /** + * + * *
    * Annotation value for image polyline cases.
    * Polyline here is different from BoundingPoly. It is formed by
@@ -365,7 +502,9 @@ public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilde
    * The line segments can cross each other.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * + * * @return Whether the imagePolylineAnnotation field is set. */ @java.lang.Override @@ -373,6 +512,8 @@ public boolean hasImagePolylineAnnotation() { return valueTypeCase_ == 8; } /** + * + * *
    * Annotation value for image polyline cases.
    * Polyline here is different from BoundingPoly. It is formed by
@@ -380,17 +521,22 @@ public boolean hasImagePolylineAnnotation() {
    * The line segments can cross each other.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * + * * @return The imagePolylineAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation getImagePolylineAnnotation() { + public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation + getImagePolylineAnnotation() { if (valueTypeCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.getDefaultInstance(); } /** + * + * *
    * Annotation value for image polyline cases.
    * Polyline here is different from BoundingPoly. It is formed by
@@ -398,23 +544,30 @@ public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation getImagePol
    * The line segments can cross each other.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder getImagePolylineAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder + getImagePolylineAnnotationOrBuilder() { if (valueTypeCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.getDefaultInstance(); } public static final int IMAGE_SEGMENTATION_ANNOTATION_FIELD_NUMBER = 9; /** + * + * *
    * Annotation value for image segmentation.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * + * * @return Whether the imageSegmentationAnnotation field is set. */ @java.lang.Override @@ -422,42 +575,58 @@ public boolean hasImageSegmentationAnnotation() { return valueTypeCase_ == 9; } /** + * + * *
    * Annotation value for image segmentation.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * + * * @return The imageSegmentationAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation getImageSegmentationAnnotation() { + public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation + getImageSegmentationAnnotation() { if (valueTypeCase_ == 9) { - return (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.getDefaultInstance(); } /** + * + * *
    * Annotation value for image segmentation.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder getImageSegmentationAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder + getImageSegmentationAnnotationOrBuilder() { if (valueTypeCase_ == 9) { - return (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.getDefaultInstance(); } public static final int TEXT_CLASSIFICATION_ANNOTATION_FIELD_NUMBER = 3; /** + * + * *
    * Annotation value for text classification case.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * + * * @return Whether the textClassificationAnnotation field is set. */ @java.lang.Override @@ -465,42 +634,58 @@ public boolean hasTextClassificationAnnotation() { return valueTypeCase_ == 3; } /** + * + * *
    * Annotation value for text classification case.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * + * * @return The textClassificationAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation getTextClassificationAnnotation() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation + getTextClassificationAnnotation() { if (valueTypeCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.getDefaultInstance(); } /** + * + * *
    * Annotation value for text classification case.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder getTextClassificationAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder + getTextClassificationAnnotationOrBuilder() { if (valueTypeCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.getDefaultInstance(); } public static final int TEXT_ENTITY_EXTRACTION_ANNOTATION_FIELD_NUMBER = 10; /** + * + * *
    * Annotation value for text entity extraction case.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * + * * @return Whether the textEntityExtractionAnnotation field is set. */ @java.lang.Override @@ -508,42 +693,60 @@ public boolean hasTextEntityExtractionAnnotation() { return valueTypeCase_ == 10; } /** + * + * *
    * Annotation value for text entity extraction case.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * + * * @return The textEntityExtractionAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation getTextEntityExtractionAnnotation() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation + getTextEntityExtractionAnnotation() { if (valueTypeCase_ == 10) { - return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation + .getDefaultInstance(); } /** + * + * *
    * Annotation value for text entity extraction case.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder getTextEntityExtractionAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder + getTextEntityExtractionAnnotationOrBuilder() { if (valueTypeCase_ == 10) { - return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation + .getDefaultInstance(); } public static final int VIDEO_CLASSIFICATION_ANNOTATION_FIELD_NUMBER = 4; /** + * + * *
    * Annotation value for video classification case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * + * * @return Whether the videoClassificationAnnotation field is set. */ @java.lang.Override @@ -551,42 +754,58 @@ public boolean hasVideoClassificationAnnotation() { return valueTypeCase_ == 4; } /** + * + * *
    * Annotation value for video classification case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * + * * @return The videoClassificationAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation getVideoClassificationAnnotation() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation + getVideoClassificationAnnotation() { if (valueTypeCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.getDefaultInstance(); } /** + * + * *
    * Annotation value for video classification case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder getVideoClassificationAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder + getVideoClassificationAnnotationOrBuilder() { if (valueTypeCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.getDefaultInstance(); } public static final int VIDEO_OBJECT_TRACKING_ANNOTATION_FIELD_NUMBER = 5; /** + * + * *
    * Annotation value for video object detection and tracking case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * + * * @return Whether the videoObjectTrackingAnnotation field is set. */ @java.lang.Override @@ -594,42 +813,57 @@ public boolean hasVideoObjectTrackingAnnotation() { return valueTypeCase_ == 5; } /** + * + * *
    * Annotation value for video object detection and tracking case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * + * * @return The videoObjectTrackingAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation getVideoObjectTrackingAnnotation() { + public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation + getVideoObjectTrackingAnnotation() { if (valueTypeCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); } /** + * + * *
    * Annotation value for video object detection and tracking case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder getVideoObjectTrackingAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder + getVideoObjectTrackingAnnotationOrBuilder() { if (valueTypeCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); } public static final int VIDEO_EVENT_ANNOTATION_FIELD_NUMBER = 6; /** + * + * *
    * Annotation value for video event case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * + * * @return Whether the videoEventAnnotation field is set. */ @java.lang.Override @@ -637,36 +871,45 @@ public boolean hasVideoEventAnnotation() { return valueTypeCase_ == 6; } /** + * + * *
    * Annotation value for video event case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * + * * @return The videoEventAnnotation. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation getVideoEventAnnotation() { if (valueTypeCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.getDefaultInstance(); } /** + * + * *
    * Annotation value for video event case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder getVideoEventAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder + getVideoEventAnnotationOrBuilder() { if (valueTypeCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_; + return (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_; } return com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -678,34 +921,42 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (valueTypeCase_ == 1) { - output.writeMessage(1, (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_); + output.writeMessage( + 1, (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_); } if (valueTypeCase_ == 2) { - output.writeMessage(2, (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_); + output.writeMessage( + 2, (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_); } if (valueTypeCase_ == 3) { - output.writeMessage(3, (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_); + output.writeMessage( + 3, (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_); } if (valueTypeCase_ == 4) { - output.writeMessage(4, (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_); + output.writeMessage( + 4, (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_); } if (valueTypeCase_ == 5) { - output.writeMessage(5, (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_); + output.writeMessage( + 5, (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_); } if (valueTypeCase_ == 6) { - output.writeMessage(6, (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_); + output.writeMessage( + 6, (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_); } if (valueTypeCase_ == 8) { - output.writeMessage(8, (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_); + output.writeMessage( + 8, (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_); } if (valueTypeCase_ == 9) { - output.writeMessage(9, (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_); + output.writeMessage( + 9, (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_); } if (valueTypeCase_ == 10) { - output.writeMessage(10, (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_); + output.writeMessage( + 10, (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_); } unknownFields.writeTo(output); } @@ -717,40 +968,50 @@ public int getSerializedSize() { size = 0; if (valueTypeCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_); } if (valueTypeCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_); } if (valueTypeCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_); } if (valueTypeCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_); } if (valueTypeCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_); } if (valueTypeCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_); } if (valueTypeCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_); } if (valueTypeCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_); } if (valueTypeCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, + (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -760,50 +1021,49 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.AnnotationValue)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.AnnotationValue other = (com.google.cloud.datalabeling.v1beta1.AnnotationValue) obj; + com.google.cloud.datalabeling.v1beta1.AnnotationValue other = + (com.google.cloud.datalabeling.v1beta1.AnnotationValue) obj; if (!getValueTypeCase().equals(other.getValueTypeCase())) return false; switch (valueTypeCase_) { case 1: - if (!getImageClassificationAnnotation() - .equals(other.getImageClassificationAnnotation())) return false; + if (!getImageClassificationAnnotation().equals(other.getImageClassificationAnnotation())) + return false; break; case 2: - if (!getImageBoundingPolyAnnotation() - .equals(other.getImageBoundingPolyAnnotation())) return false; + if (!getImageBoundingPolyAnnotation().equals(other.getImageBoundingPolyAnnotation())) + return false; break; case 8: - if (!getImagePolylineAnnotation() - .equals(other.getImagePolylineAnnotation())) return false; + if (!getImagePolylineAnnotation().equals(other.getImagePolylineAnnotation())) return false; break; case 9: - if (!getImageSegmentationAnnotation() - .equals(other.getImageSegmentationAnnotation())) return false; + if (!getImageSegmentationAnnotation().equals(other.getImageSegmentationAnnotation())) + return false; break; case 3: - if (!getTextClassificationAnnotation() - .equals(other.getTextClassificationAnnotation())) return false; + if (!getTextClassificationAnnotation().equals(other.getTextClassificationAnnotation())) + return false; break; case 10: - if (!getTextEntityExtractionAnnotation() - .equals(other.getTextEntityExtractionAnnotation())) return false; + if (!getTextEntityExtractionAnnotation().equals(other.getTextEntityExtractionAnnotation())) + return false; break; case 4: - if (!getVideoClassificationAnnotation() - .equals(other.getVideoClassificationAnnotation())) return false; + if (!getVideoClassificationAnnotation().equals(other.getVideoClassificationAnnotation())) + return false; break; case 5: - if (!getVideoObjectTrackingAnnotation() - .equals(other.getVideoObjectTrackingAnnotation())) return false; + if (!getVideoObjectTrackingAnnotation().equals(other.getVideoObjectTrackingAnnotation())) + return false; break; case 6: - if (!getVideoEventAnnotation() - .equals(other.getVideoEventAnnotation())) return false; + if (!getVideoEventAnnotation().equals(other.getVideoEventAnnotation())) return false; break; case 0: default: @@ -865,117 +1125,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.AnnotationValue 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.datalabeling.v1beta1.AnnotationValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.AnnotationValue parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.AnnotationValue prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.AnnotationValue prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 value for an example.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.AnnotationValue} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.AnnotationValue) com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.AnnotationValue.class, com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder.class); + com.google.cloud.datalabeling.v1beta1.AnnotationValue.class, + com.google.cloud.datalabeling.v1beta1.AnnotationValue.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.AnnotationValue.newBuilder() @@ -983,16 +1253,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(); @@ -1002,9 +1271,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_AnnotationValue_descriptor; } @java.lang.Override @@ -1023,7 +1292,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationValue build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationValue buildPartial() { - com.google.cloud.datalabeling.v1beta1.AnnotationValue result = new com.google.cloud.datalabeling.v1beta1.AnnotationValue(this); + com.google.cloud.datalabeling.v1beta1.AnnotationValue result = + new com.google.cloud.datalabeling.v1beta1.AnnotationValue(this); if (valueTypeCase_ == 1) { if (imageClassificationAnnotationBuilder_ == null) { result.valueType_ = valueType_; @@ -1096,38 +1366,39 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationValue buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.AnnotationValue) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotationValue)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.AnnotationValue) other); } else { super.mergeFrom(other); return this; @@ -1135,47 +1406,58 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.AnnotationValue other) { - if (other == com.google.cloud.datalabeling.v1beta1.AnnotationValue.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.AnnotationValue.getDefaultInstance()) + return this; switch (other.getValueTypeCase()) { - case IMAGE_CLASSIFICATION_ANNOTATION: { - mergeImageClassificationAnnotation(other.getImageClassificationAnnotation()); - break; - } - case IMAGE_BOUNDING_POLY_ANNOTATION: { - mergeImageBoundingPolyAnnotation(other.getImageBoundingPolyAnnotation()); - break; - } - case IMAGE_POLYLINE_ANNOTATION: { - mergeImagePolylineAnnotation(other.getImagePolylineAnnotation()); - break; - } - case IMAGE_SEGMENTATION_ANNOTATION: { - mergeImageSegmentationAnnotation(other.getImageSegmentationAnnotation()); - break; - } - case TEXT_CLASSIFICATION_ANNOTATION: { - mergeTextClassificationAnnotation(other.getTextClassificationAnnotation()); - break; - } - case TEXT_ENTITY_EXTRACTION_ANNOTATION: { - mergeTextEntityExtractionAnnotation(other.getTextEntityExtractionAnnotation()); - break; - } - case VIDEO_CLASSIFICATION_ANNOTATION: { - mergeVideoClassificationAnnotation(other.getVideoClassificationAnnotation()); - break; - } - case VIDEO_OBJECT_TRACKING_ANNOTATION: { - mergeVideoObjectTrackingAnnotation(other.getVideoObjectTrackingAnnotation()); - break; - } - case VIDEO_EVENT_ANNOTATION: { - mergeVideoEventAnnotation(other.getVideoEventAnnotation()); - break; - } - case VALUETYPE_NOT_SET: { - break; - } + case IMAGE_CLASSIFICATION_ANNOTATION: + { + mergeImageClassificationAnnotation(other.getImageClassificationAnnotation()); + break; + } + case IMAGE_BOUNDING_POLY_ANNOTATION: + { + mergeImageBoundingPolyAnnotation(other.getImageBoundingPolyAnnotation()); + break; + } + case IMAGE_POLYLINE_ANNOTATION: + { + mergeImagePolylineAnnotation(other.getImagePolylineAnnotation()); + break; + } + case IMAGE_SEGMENTATION_ANNOTATION: + { + mergeImageSegmentationAnnotation(other.getImageSegmentationAnnotation()); + break; + } + case TEXT_CLASSIFICATION_ANNOTATION: + { + mergeTextClassificationAnnotation(other.getTextClassificationAnnotation()); + break; + } + case TEXT_ENTITY_EXTRACTION_ANNOTATION: + { + mergeTextEntityExtractionAnnotation(other.getTextEntityExtractionAnnotation()); + break; + } + case VIDEO_CLASSIFICATION_ANNOTATION: + { + mergeVideoClassificationAnnotation(other.getVideoClassificationAnnotation()); + break; + } + case VIDEO_OBJECT_TRACKING_ANNOTATION: + { + mergeVideoObjectTrackingAnnotation(other.getVideoObjectTrackingAnnotation()); + break; + } + case VIDEO_EVENT_ANNOTATION: + { + mergeVideoEventAnnotation(other.getVideoEventAnnotation()); + break; + } + case VALUETYPE_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1196,7 +1478,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.AnnotationValue) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.AnnotationValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1205,12 +1488,12 @@ public Builder mergeFrom( } return this; } + private int valueTypeCase_ = 0; private java.lang.Object valueType_; - public ValueTypeCase - getValueTypeCase() { - return ValueTypeCase.forNumber( - valueTypeCase_); + + public ValueTypeCase getValueTypeCase() { + return ValueTypeCase.forNumber(valueTypeCase_); } public Builder clearValueType() { @@ -1220,15 +1503,22 @@ public Builder clearValueType() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation, com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder> imageClassificationAnnotationBuilder_; + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation, + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder> + imageClassificationAnnotationBuilder_; /** + * + * *
      * Annotation value for image classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * + * * @return Whether the imageClassificationAnnotation field is set. */ @java.lang.Override @@ -1236,35 +1526,48 @@ public boolean hasImageClassificationAnnotation() { return valueTypeCase_ == 1; } /** + * + * *
      * Annotation value for image classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * + * * @return The imageClassificationAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation getImageClassificationAnnotation() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation + getImageClassificationAnnotation() { if (imageClassificationAnnotationBuilder_ == null) { if (valueTypeCase_ == 1) { return (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation + .getDefaultInstance(); } else { if (valueTypeCase_ == 1) { return imageClassificationAnnotationBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation + .getDefaultInstance(); } } /** + * + * *
      * Annotation value for image classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * */ - public Builder setImageClassificationAnnotation(com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation value) { + public Builder setImageClassificationAnnotation( + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation value) { if (imageClassificationAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1278,14 +1581,19 @@ public Builder setImageClassificationAnnotation(com.google.cloud.datalabeling.v1 return this; } /** + * + * *
      * Annotation value for image classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * */ public Builder setImageClassificationAnnotation( - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder builderForValue) { + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder + builderForValue) { if (imageClassificationAnnotationBuilder_ == null) { valueType_ = builderForValue.build(); onChanged(); @@ -1296,18 +1604,29 @@ public Builder setImageClassificationAnnotation( return this; } /** + * + * *
      * Annotation value for image classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * */ - public Builder mergeImageClassificationAnnotation(com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation value) { + public Builder mergeImageClassificationAnnotation( + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation value) { if (imageClassificationAnnotationBuilder_ == null) { - if (valueTypeCase_ == 1 && - valueType_ != com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.getDefaultInstance()) { - valueType_ = com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.newBuilder((com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_) - .mergeFrom(value).buildPartial(); + if (valueTypeCase_ == 1 + && valueType_ + != com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation + .getDefaultInstance()) { + valueType_ = + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.newBuilder( + (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) + valueType_) + .mergeFrom(value) + .buildPartial(); } else { valueType_ = value; } @@ -1323,11 +1642,15 @@ public Builder mergeImageClassificationAnnotation(com.google.cloud.datalabeling. return this; } /** + * + * *
      * Annotation value for image classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * */ public Builder clearImageClassificationAnnotation() { if (imageClassificationAnnotationBuilder_ == null) { @@ -1346,68 +1669,99 @@ public Builder clearImageClassificationAnnotation() { return this; } /** + * + * *
      * Annotation value for image classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder getImageClassificationAnnotationBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder + getImageClassificationAnnotationBuilder() { return getImageClassificationAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * Annotation value for image classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder getImageClassificationAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder + getImageClassificationAnnotationOrBuilder() { if ((valueTypeCase_ == 1) && (imageClassificationAnnotationBuilder_ != null)) { return imageClassificationAnnotationBuilder_.getMessageOrBuilder(); } else { if (valueTypeCase_ == 1) { return (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation + .getDefaultInstance(); } } /** + * + * *
      * Annotation value for image classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation, com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder> + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation, + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder> getImageClassificationAnnotationFieldBuilder() { if (imageClassificationAnnotationBuilder_ == null) { if (!(valueTypeCase_ == 1)) { - valueType_ = com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.getDefaultInstance(); - } - imageClassificationAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation, com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder>( + valueType_ = + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation + .getDefaultInstance(); + } + imageClassificationAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation, + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder>( (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) valueType_, getParentForChildren(), isClean()); valueType_ = null; } valueTypeCase_ = 1; - onChanged();; + onChanged(); + ; return imageClassificationAnnotationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation, com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder> imageBoundingPolyAnnotationBuilder_; + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation, + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder> + imageBoundingPolyAnnotationBuilder_; /** + * + * *
      * Annotation value for image bounding box, oriented bounding box
      * and polygon cases.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * + * * @return Whether the imageBoundingPolyAnnotation field is set. */ @java.lang.Override @@ -1415,37 +1769,50 @@ public boolean hasImageBoundingPolyAnnotation() { return valueTypeCase_ == 2; } /** + * + * *
      * Annotation value for image bounding box, oriented bounding box
      * and polygon cases.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * + * * @return The imageBoundingPolyAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation getImageBoundingPolyAnnotation() { + public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation + getImageBoundingPolyAnnotation() { if (imageBoundingPolyAnnotationBuilder_ == null) { if (valueTypeCase_ == 2) { return (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation + .getDefaultInstance(); } else { if (valueTypeCase_ == 2) { return imageBoundingPolyAnnotationBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation + .getDefaultInstance(); } } /** + * + * *
      * Annotation value for image bounding box, oriented bounding box
      * and polygon cases.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * */ - public Builder setImageBoundingPolyAnnotation(com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation value) { + public Builder setImageBoundingPolyAnnotation( + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation value) { if (imageBoundingPolyAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1459,12 +1826,16 @@ public Builder setImageBoundingPolyAnnotation(com.google.cloud.datalabeling.v1be return this; } /** + * + * *
      * Annotation value for image bounding box, oriented bounding box
      * and polygon cases.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * */ public Builder setImageBoundingPolyAnnotation( com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder builderForValue) { @@ -1478,19 +1849,30 @@ public Builder setImageBoundingPolyAnnotation( return this; } /** + * + * *
      * Annotation value for image bounding box, oriented bounding box
      * and polygon cases.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * */ - public Builder mergeImageBoundingPolyAnnotation(com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation value) { + public Builder mergeImageBoundingPolyAnnotation( + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation value) { if (imageBoundingPolyAnnotationBuilder_ == null) { - if (valueTypeCase_ == 2 && - valueType_ != com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.getDefaultInstance()) { - valueType_ = com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.newBuilder((com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_) - .mergeFrom(value).buildPartial(); + if (valueTypeCase_ == 2 + && valueType_ + != com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation + .getDefaultInstance()) { + valueType_ = + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.newBuilder( + (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) + valueType_) + .mergeFrom(value) + .buildPartial(); } else { valueType_ = value; } @@ -1506,12 +1888,16 @@ public Builder mergeImageBoundingPolyAnnotation(com.google.cloud.datalabeling.v1 return this; } /** + * + * *
      * Annotation value for image bounding box, oriented bounding box
      * and polygon cases.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * */ public Builder clearImageBoundingPolyAnnotation() { if (imageBoundingPolyAnnotationBuilder_ == null) { @@ -1530,65 +1916,93 @@ public Builder clearImageBoundingPolyAnnotation() { return this; } /** + * + * *
      * Annotation value for image bounding box, oriented bounding box
      * and polygon cases.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * */ - public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder getImageBoundingPolyAnnotationBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder + getImageBoundingPolyAnnotationBuilder() { return getImageBoundingPolyAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * Annotation value for image bounding box, oriented bounding box
      * and polygon cases.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder getImageBoundingPolyAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder + getImageBoundingPolyAnnotationOrBuilder() { if ((valueTypeCase_ == 2) && (imageBoundingPolyAnnotationBuilder_ != null)) { return imageBoundingPolyAnnotationBuilder_.getMessageOrBuilder(); } else { if (valueTypeCase_ == 2) { return (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation + .getDefaultInstance(); } } /** + * + * *
      * Annotation value for image bounding box, oriented bounding box
      * and polygon cases.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation, com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder> + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation, + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder> getImageBoundingPolyAnnotationFieldBuilder() { if (imageBoundingPolyAnnotationBuilder_ == null) { if (!(valueTypeCase_ == 2)) { - valueType_ = com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.getDefaultInstance(); - } - imageBoundingPolyAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation, com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder>( + valueType_ = + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation + .getDefaultInstance(); + } + imageBoundingPolyAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation, + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder>( (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) valueType_, getParentForChildren(), isClean()); valueType_ = null; } valueTypeCase_ = 2; - onChanged();; + onChanged(); + ; return imageBoundingPolyAnnotationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation, com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder> imagePolylineAnnotationBuilder_; + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation, + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder> + imagePolylineAnnotationBuilder_; /** + * + * *
      * Annotation value for image polyline cases.
      * Polyline here is different from BoundingPoly. It is formed by
@@ -1596,7 +2010,10 @@ public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilde
      * The line segments can cross each other.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * + * * @return Whether the imagePolylineAnnotation field is set. */ @java.lang.Override @@ -1604,6 +2021,8 @@ public boolean hasImagePolylineAnnotation() { return valueTypeCase_ == 8; } /** + * + * *
      * Annotation value for image polyline cases.
      * Polyline here is different from BoundingPoly. It is formed by
@@ -1611,11 +2030,15 @@ public boolean hasImagePolylineAnnotation() {
      * The line segments can cross each other.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * + * * @return The imagePolylineAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation getImagePolylineAnnotation() { + public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation + getImagePolylineAnnotation() { if (imagePolylineAnnotationBuilder_ == null) { if (valueTypeCase_ == 8) { return (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_; @@ -1629,6 +2052,8 @@ public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation getImagePol } } /** + * + * *
      * Annotation value for image polyline cases.
      * Polyline here is different from BoundingPoly. It is formed by
@@ -1636,9 +2061,12 @@ public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation getImagePol
      * The line segments can cross each other.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * */ - public Builder setImagePolylineAnnotation(com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation value) { + public Builder setImagePolylineAnnotation( + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation value) { if (imagePolylineAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1652,6 +2080,8 @@ public Builder setImagePolylineAnnotation(com.google.cloud.datalabeling.v1beta1. return this; } /** + * + * *
      * Annotation value for image polyline cases.
      * Polyline here is different from BoundingPoly. It is formed by
@@ -1659,7 +2089,9 @@ public Builder setImagePolylineAnnotation(com.google.cloud.datalabeling.v1beta1.
      * The line segments can cross each other.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * */ public Builder setImagePolylineAnnotation( com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder builderForValue) { @@ -1673,6 +2105,8 @@ public Builder setImagePolylineAnnotation( return this; } /** + * + * *
      * Annotation value for image polyline cases.
      * Polyline here is different from BoundingPoly. It is formed by
@@ -1680,14 +2114,22 @@ public Builder setImagePolylineAnnotation(
      * The line segments can cross each other.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * */ - public Builder mergeImagePolylineAnnotation(com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation value) { + public Builder mergeImagePolylineAnnotation( + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation value) { if (imagePolylineAnnotationBuilder_ == null) { - if (valueTypeCase_ == 8 && - valueType_ != com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.getDefaultInstance()) { - valueType_ = com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.newBuilder((com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_) - .mergeFrom(value).buildPartial(); + if (valueTypeCase_ == 8 + && valueType_ + != com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation + .getDefaultInstance()) { + valueType_ = + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.newBuilder( + (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_) + .mergeFrom(value) + .buildPartial(); } else { valueType_ = value; } @@ -1703,6 +2145,8 @@ public Builder mergeImagePolylineAnnotation(com.google.cloud.datalabeling.v1beta return this; } /** + * + * *
      * Annotation value for image polyline cases.
      * Polyline here is different from BoundingPoly. It is formed by
@@ -1710,7 +2154,9 @@ public Builder mergeImagePolylineAnnotation(com.google.cloud.datalabeling.v1beta
      * The line segments can cross each other.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * */ public Builder clearImagePolylineAnnotation() { if (imagePolylineAnnotationBuilder_ == null) { @@ -1729,6 +2175,8 @@ public Builder clearImagePolylineAnnotation() { return this; } /** + * + * *
      * Annotation value for image polyline cases.
      * Polyline here is different from BoundingPoly. It is formed by
@@ -1736,12 +2184,17 @@ public Builder clearImagePolylineAnnotation() {
      * The line segments can cross each other.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * */ - public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder getImagePolylineAnnotationBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder + getImagePolylineAnnotationBuilder() { return getImagePolylineAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * Annotation value for image polyline cases.
      * Polyline here is different from BoundingPoly. It is formed by
@@ -1749,10 +2202,13 @@ public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder get
      * The line segments can cross each other.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder getImagePolylineAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder + getImagePolylineAnnotationOrBuilder() { if ((valueTypeCase_ == 8) && (imagePolylineAnnotationBuilder_ != null)) { return imagePolylineAnnotationBuilder_.getMessageOrBuilder(); } else { @@ -1763,6 +2219,8 @@ public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder ge } } /** + * + * *
      * Annotation value for image polyline cases.
      * Polyline here is different from BoundingPoly. It is formed by
@@ -1770,35 +2228,52 @@ public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder ge
      * The line segments can cross each other.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation, com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder> + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation, + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder> getImagePolylineAnnotationFieldBuilder() { if (imagePolylineAnnotationBuilder_ == null) { if (!(valueTypeCase_ == 8)) { - valueType_ = com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.getDefaultInstance(); - } - imagePolylineAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation, com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder>( + valueType_ = + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.getDefaultInstance(); + } + imagePolylineAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation, + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder>( (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) valueType_, getParentForChildren(), isClean()); valueType_ = null; } valueTypeCase_ = 8; - onChanged();; + onChanged(); + ; return imagePolylineAnnotationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation, com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder> imageSegmentationAnnotationBuilder_; + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation, + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder> + imageSegmentationAnnotationBuilder_; /** + * + * *
      * Annotation value for image segmentation.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * + * * @return Whether the imageSegmentationAnnotation field is set. */ @java.lang.Override @@ -1806,35 +2281,48 @@ public boolean hasImageSegmentationAnnotation() { return valueTypeCase_ == 9; } /** + * + * *
      * Annotation value for image segmentation.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * + * * @return The imageSegmentationAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation getImageSegmentationAnnotation() { + public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation + getImageSegmentationAnnotation() { if (imageSegmentationAnnotationBuilder_ == null) { if (valueTypeCase_ == 9) { return (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation + .getDefaultInstance(); } else { if (valueTypeCase_ == 9) { return imageSegmentationAnnotationBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation + .getDefaultInstance(); } } /** + * + * *
      * Annotation value for image segmentation.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * */ - public Builder setImageSegmentationAnnotation(com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation value) { + public Builder setImageSegmentationAnnotation( + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation value) { if (imageSegmentationAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1848,11 +2336,15 @@ public Builder setImageSegmentationAnnotation(com.google.cloud.datalabeling.v1be return this; } /** + * + * *
      * Annotation value for image segmentation.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * */ public Builder setImageSegmentationAnnotation( com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder builderForValue) { @@ -1866,18 +2358,29 @@ public Builder setImageSegmentationAnnotation( return this; } /** + * + * *
      * Annotation value for image segmentation.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * */ - public Builder mergeImageSegmentationAnnotation(com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation value) { + public Builder mergeImageSegmentationAnnotation( + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation value) { if (imageSegmentationAnnotationBuilder_ == null) { - if (valueTypeCase_ == 9 && - valueType_ != com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.getDefaultInstance()) { - valueType_ = com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.newBuilder((com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_) - .mergeFrom(value).buildPartial(); + if (valueTypeCase_ == 9 + && valueType_ + != com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation + .getDefaultInstance()) { + valueType_ = + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.newBuilder( + (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) + valueType_) + .mergeFrom(value) + .buildPartial(); } else { valueType_ = value; } @@ -1893,11 +2396,15 @@ public Builder mergeImageSegmentationAnnotation(com.google.cloud.datalabeling.v1 return this; } /** + * + * *
      * Annotation value for image segmentation.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * */ public Builder clearImageSegmentationAnnotation() { if (imageSegmentationAnnotationBuilder_ == null) { @@ -1916,67 +2423,98 @@ public Builder clearImageSegmentationAnnotation() { return this; } /** + * + * *
      * Annotation value for image segmentation.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * */ - public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder getImageSegmentationAnnotationBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder + getImageSegmentationAnnotationBuilder() { return getImageSegmentationAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * Annotation value for image segmentation.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder getImageSegmentationAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder + getImageSegmentationAnnotationOrBuilder() { if ((valueTypeCase_ == 9) && (imageSegmentationAnnotationBuilder_ != null)) { return imageSegmentationAnnotationBuilder_.getMessageOrBuilder(); } else { if (valueTypeCase_ == 9) { return (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation + .getDefaultInstance(); } } /** + * + * *
      * Annotation value for image segmentation.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation, com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder> + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation, + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder> getImageSegmentationAnnotationFieldBuilder() { if (imageSegmentationAnnotationBuilder_ == null) { if (!(valueTypeCase_ == 9)) { - valueType_ = com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.getDefaultInstance(); - } - imageSegmentationAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation, com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder>( + valueType_ = + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation + .getDefaultInstance(); + } + imageSegmentationAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation, + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder>( (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) valueType_, getParentForChildren(), isClean()); valueType_ = null; } valueTypeCase_ = 9; - onChanged();; + onChanged(); + ; return imageSegmentationAnnotationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation, com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder> textClassificationAnnotationBuilder_; + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation, + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder> + textClassificationAnnotationBuilder_; /** + * + * *
      * Annotation value for text classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * + * * @return Whether the textClassificationAnnotation field is set. */ @java.lang.Override @@ -1984,35 +2522,48 @@ public boolean hasTextClassificationAnnotation() { return valueTypeCase_ == 3; } /** + * + * *
      * Annotation value for text classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * + * * @return The textClassificationAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation getTextClassificationAnnotation() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation + getTextClassificationAnnotation() { if (textClassificationAnnotationBuilder_ == null) { if (valueTypeCase_ == 3) { return (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation + .getDefaultInstance(); } else { if (valueTypeCase_ == 3) { return textClassificationAnnotationBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation + .getDefaultInstance(); } } /** + * + * *
      * Annotation value for text classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * */ - public Builder setTextClassificationAnnotation(com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation value) { + public Builder setTextClassificationAnnotation( + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation value) { if (textClassificationAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2026,14 +2577,19 @@ public Builder setTextClassificationAnnotation(com.google.cloud.datalabeling.v1b return this; } /** + * + * *
      * Annotation value for text classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * */ public Builder setTextClassificationAnnotation( - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder builderForValue) { + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder + builderForValue) { if (textClassificationAnnotationBuilder_ == null) { valueType_ = builderForValue.build(); onChanged(); @@ -2044,18 +2600,29 @@ public Builder setTextClassificationAnnotation( return this; } /** + * + * *
      * Annotation value for text classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * */ - public Builder mergeTextClassificationAnnotation(com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation value) { + public Builder mergeTextClassificationAnnotation( + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation value) { if (textClassificationAnnotationBuilder_ == null) { - if (valueTypeCase_ == 3 && - valueType_ != com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.getDefaultInstance()) { - valueType_ = com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.newBuilder((com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_) - .mergeFrom(value).buildPartial(); + if (valueTypeCase_ == 3 + && valueType_ + != com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation + .getDefaultInstance()) { + valueType_ = + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.newBuilder( + (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) + valueType_) + .mergeFrom(value) + .buildPartial(); } else { valueType_ = value; } @@ -2071,11 +2638,15 @@ public Builder mergeTextClassificationAnnotation(com.google.cloud.datalabeling.v return this; } /** + * + * *
      * Annotation value for text classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * */ public Builder clearTextClassificationAnnotation() { if (textClassificationAnnotationBuilder_ == null) { @@ -2094,67 +2665,98 @@ public Builder clearTextClassificationAnnotation() { return this; } /** + * + * *
      * Annotation value for text classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * */ - public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder getTextClassificationAnnotationBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder + getTextClassificationAnnotationBuilder() { return getTextClassificationAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * Annotation value for text classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder getTextClassificationAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder + getTextClassificationAnnotationOrBuilder() { if ((valueTypeCase_ == 3) && (textClassificationAnnotationBuilder_ != null)) { return textClassificationAnnotationBuilder_.getMessageOrBuilder(); } else { if (valueTypeCase_ == 3) { return (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation + .getDefaultInstance(); } } /** + * + * *
      * Annotation value for text classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation, com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder> + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation, + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder> getTextClassificationAnnotationFieldBuilder() { if (textClassificationAnnotationBuilder_ == null) { if (!(valueTypeCase_ == 3)) { - valueType_ = com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.getDefaultInstance(); - } - textClassificationAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation, com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder>( + valueType_ = + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation + .getDefaultInstance(); + } + textClassificationAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation, + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder>( (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) valueType_, getParentForChildren(), isClean()); valueType_ = null; } valueTypeCase_ = 3; - onChanged();; + onChanged(); + ; return textClassificationAnnotationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder> textEntityExtractionAnnotationBuilder_; + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation, + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder> + textEntityExtractionAnnotationBuilder_; /** + * + * *
      * Annotation value for text entity extraction case.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * + * * @return Whether the textEntityExtractionAnnotation field is set. */ @java.lang.Override @@ -2162,35 +2764,48 @@ public boolean hasTextEntityExtractionAnnotation() { return valueTypeCase_ == 10; } /** + * + * *
      * Annotation value for text entity extraction case.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * + * * @return The textEntityExtractionAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation getTextEntityExtractionAnnotation() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation + getTextEntityExtractionAnnotation() { if (textEntityExtractionAnnotationBuilder_ == null) { if (valueTypeCase_ == 10) { return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation + .getDefaultInstance(); } else { if (valueTypeCase_ == 10) { return textEntityExtractionAnnotationBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation + .getDefaultInstance(); } } /** + * + * *
      * Annotation value for text entity extraction case.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * */ - public Builder setTextEntityExtractionAnnotation(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation value) { + public Builder setTextEntityExtractionAnnotation( + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation value) { if (textEntityExtractionAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2204,14 +2819,19 @@ public Builder setTextEntityExtractionAnnotation(com.google.cloud.datalabeling.v return this; } /** + * + * *
      * Annotation value for text entity extraction case.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * */ public Builder setTextEntityExtractionAnnotation( - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder builderForValue) { + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder + builderForValue) { if (textEntityExtractionAnnotationBuilder_ == null) { valueType_ = builderForValue.build(); onChanged(); @@ -2222,18 +2842,29 @@ public Builder setTextEntityExtractionAnnotation( return this; } /** + * + * *
      * Annotation value for text entity extraction case.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * */ - public Builder mergeTextEntityExtractionAnnotation(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation value) { + public Builder mergeTextEntityExtractionAnnotation( + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation value) { if (textEntityExtractionAnnotationBuilder_ == null) { - if (valueTypeCase_ == 10 && - valueType_ != com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.getDefaultInstance()) { - valueType_ = com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.newBuilder((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_) - .mergeFrom(value).buildPartial(); + if (valueTypeCase_ == 10 + && valueType_ + != com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation + .getDefaultInstance()) { + valueType_ = + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.newBuilder( + (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) + valueType_) + .mergeFrom(value) + .buildPartial(); } else { valueType_ = value; } @@ -2249,11 +2880,15 @@ public Builder mergeTextEntityExtractionAnnotation(com.google.cloud.datalabeling return this; } /** + * + * *
      * Annotation value for text entity extraction case.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * */ public Builder clearTextEntityExtractionAnnotation() { if (textEntityExtractionAnnotationBuilder_ == null) { @@ -2272,67 +2907,98 @@ public Builder clearTextEntityExtractionAnnotation() { return this; } /** + * + * *
      * Annotation value for text entity extraction case.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * */ - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder getTextEntityExtractionAnnotationBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder + getTextEntityExtractionAnnotationBuilder() { return getTextEntityExtractionAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * Annotation value for text entity extraction case.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder getTextEntityExtractionAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder + getTextEntityExtractionAnnotationOrBuilder() { if ((valueTypeCase_ == 10) && (textEntityExtractionAnnotationBuilder_ != null)) { return textEntityExtractionAnnotationBuilder_.getMessageOrBuilder(); } else { if (valueTypeCase_ == 10) { return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation + .getDefaultInstance(); } } /** + * + * *
      * Annotation value for text entity extraction case.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder> + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation, + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder> getTextEntityExtractionAnnotationFieldBuilder() { if (textEntityExtractionAnnotationBuilder_ == null) { if (!(valueTypeCase_ == 10)) { - valueType_ = com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.getDefaultInstance(); - } - textEntityExtractionAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder>( + valueType_ = + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation + .getDefaultInstance(); + } + textEntityExtractionAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation, + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder>( (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) valueType_, getParentForChildren(), isClean()); valueType_ = null; } valueTypeCase_ = 10; - onChanged();; + onChanged(); + ; return textEntityExtractionAnnotationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation, com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder> videoClassificationAnnotationBuilder_; + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation, + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder> + videoClassificationAnnotationBuilder_; /** + * + * *
      * Annotation value for video classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * + * * @return Whether the videoClassificationAnnotation field is set. */ @java.lang.Override @@ -2340,35 +3006,48 @@ public boolean hasVideoClassificationAnnotation() { return valueTypeCase_ == 4; } /** + * + * *
      * Annotation value for video classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * + * * @return The videoClassificationAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation getVideoClassificationAnnotation() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation + getVideoClassificationAnnotation() { if (videoClassificationAnnotationBuilder_ == null) { if (valueTypeCase_ == 4) { return (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation + .getDefaultInstance(); } else { if (valueTypeCase_ == 4) { return videoClassificationAnnotationBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation + .getDefaultInstance(); } } /** + * + * *
      * Annotation value for video classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * */ - public Builder setVideoClassificationAnnotation(com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation value) { + public Builder setVideoClassificationAnnotation( + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation value) { if (videoClassificationAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2382,14 +3061,19 @@ public Builder setVideoClassificationAnnotation(com.google.cloud.datalabeling.v1 return this; } /** + * + * *
      * Annotation value for video classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * */ public Builder setVideoClassificationAnnotation( - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder builderForValue) { + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder + builderForValue) { if (videoClassificationAnnotationBuilder_ == null) { valueType_ = builderForValue.build(); onChanged(); @@ -2400,18 +3084,29 @@ public Builder setVideoClassificationAnnotation( return this; } /** + * + * *
      * Annotation value for video classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * */ - public Builder mergeVideoClassificationAnnotation(com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation value) { + public Builder mergeVideoClassificationAnnotation( + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation value) { if (videoClassificationAnnotationBuilder_ == null) { - if (valueTypeCase_ == 4 && - valueType_ != com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.getDefaultInstance()) { - valueType_ = com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.newBuilder((com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_) - .mergeFrom(value).buildPartial(); + if (valueTypeCase_ == 4 + && valueType_ + != com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation + .getDefaultInstance()) { + valueType_ = + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.newBuilder( + (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) + valueType_) + .mergeFrom(value) + .buildPartial(); } else { valueType_ = value; } @@ -2427,11 +3122,15 @@ public Builder mergeVideoClassificationAnnotation(com.google.cloud.datalabeling. return this; } /** + * + * *
      * Annotation value for video classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * */ public Builder clearVideoClassificationAnnotation() { if (videoClassificationAnnotationBuilder_ == null) { @@ -2450,67 +3149,98 @@ public Builder clearVideoClassificationAnnotation() { return this; } /** + * + * *
      * Annotation value for video classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * */ - public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder getVideoClassificationAnnotationBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder + getVideoClassificationAnnotationBuilder() { return getVideoClassificationAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * Annotation value for video classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder getVideoClassificationAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder + getVideoClassificationAnnotationOrBuilder() { if ((valueTypeCase_ == 4) && (videoClassificationAnnotationBuilder_ != null)) { return videoClassificationAnnotationBuilder_.getMessageOrBuilder(); } else { if (valueTypeCase_ == 4) { return (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation + .getDefaultInstance(); } } /** + * + * *
      * Annotation value for video classification case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation, com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder> + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation, + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder> getVideoClassificationAnnotationFieldBuilder() { if (videoClassificationAnnotationBuilder_ == null) { if (!(valueTypeCase_ == 4)) { - valueType_ = com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.getDefaultInstance(); - } - videoClassificationAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation, com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder>( + valueType_ = + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation + .getDefaultInstance(); + } + videoClassificationAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation, + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder>( (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) valueType_, getParentForChildren(), isClean()); valueType_ = null; } valueTypeCase_ = 4; - onChanged();; + onChanged(); + ; return videoClassificationAnnotationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation, com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder> videoObjectTrackingAnnotationBuilder_; + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation, + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder> + videoObjectTrackingAnnotationBuilder_; /** + * + * *
      * Annotation value for video object detection and tracking case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * + * * @return Whether the videoObjectTrackingAnnotation field is set. */ @java.lang.Override @@ -2518,35 +3248,48 @@ public boolean hasVideoObjectTrackingAnnotation() { return valueTypeCase_ == 5; } /** + * + * *
      * Annotation value for video object detection and tracking case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * + * * @return The videoObjectTrackingAnnotation. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation getVideoObjectTrackingAnnotation() { + public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation + getVideoObjectTrackingAnnotation() { if (videoObjectTrackingAnnotationBuilder_ == null) { if (valueTypeCase_ == 5) { return (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation + .getDefaultInstance(); } else { if (valueTypeCase_ == 5) { return videoObjectTrackingAnnotationBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation + .getDefaultInstance(); } } /** + * + * *
      * Annotation value for video object detection and tracking case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * */ - public Builder setVideoObjectTrackingAnnotation(com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation value) { + public Builder setVideoObjectTrackingAnnotation( + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation value) { if (videoObjectTrackingAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2560,14 +3303,19 @@ public Builder setVideoObjectTrackingAnnotation(com.google.cloud.datalabeling.v1 return this; } /** + * + * *
      * Annotation value for video object detection and tracking case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * */ public Builder setVideoObjectTrackingAnnotation( - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder builderForValue) { + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder + builderForValue) { if (videoObjectTrackingAnnotationBuilder_ == null) { valueType_ = builderForValue.build(); onChanged(); @@ -2578,18 +3326,29 @@ public Builder setVideoObjectTrackingAnnotation( return this; } /** + * + * *
      * Annotation value for video object detection and tracking case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * */ - public Builder mergeVideoObjectTrackingAnnotation(com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation value) { + public Builder mergeVideoObjectTrackingAnnotation( + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation value) { if (videoObjectTrackingAnnotationBuilder_ == null) { - if (valueTypeCase_ == 5 && - valueType_ != com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance()) { - valueType_ = com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.newBuilder((com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_) - .mergeFrom(value).buildPartial(); + if (valueTypeCase_ == 5 + && valueType_ + != com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation + .getDefaultInstance()) { + valueType_ = + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.newBuilder( + (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) + valueType_) + .mergeFrom(value) + .buildPartial(); } else { valueType_ = value; } @@ -2605,11 +3364,15 @@ public Builder mergeVideoObjectTrackingAnnotation(com.google.cloud.datalabeling. return this; } /** + * + * *
      * Annotation value for video object detection and tracking case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * */ public Builder clearVideoObjectTrackingAnnotation() { if (videoObjectTrackingAnnotationBuilder_ == null) { @@ -2628,67 +3391,97 @@ public Builder clearVideoObjectTrackingAnnotation() { return this; } /** + * + * *
      * Annotation value for video object detection and tracking case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * */ - public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder getVideoObjectTrackingAnnotationBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder + getVideoObjectTrackingAnnotationBuilder() { return getVideoObjectTrackingAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * Annotation value for video object detection and tracking case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder getVideoObjectTrackingAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder + getVideoObjectTrackingAnnotationOrBuilder() { if ((valueTypeCase_ == 5) && (videoObjectTrackingAnnotationBuilder_ != null)) { return videoObjectTrackingAnnotationBuilder_.getMessageOrBuilder(); } else { if (valueTypeCase_ == 5) { return (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_; } - return com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation + .getDefaultInstance(); } } /** + * + * *
      * Annotation value for video object detection and tracking case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation, com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder> + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation, + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder> getVideoObjectTrackingAnnotationFieldBuilder() { if (videoObjectTrackingAnnotationBuilder_ == null) { if (!(valueTypeCase_ == 5)) { - valueType_ = com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); - } - videoObjectTrackingAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation, com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder>( + valueType_ = + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation + .getDefaultInstance(); + } + videoObjectTrackingAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation, + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder>( (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) valueType_, getParentForChildren(), isClean()); valueType_ = null; } valueTypeCase_ = 5; - onChanged();; + onChanged(); + ; return videoObjectTrackingAnnotationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation, com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder> videoEventAnnotationBuilder_; + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation, + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder> + videoEventAnnotationBuilder_; /** + * + * *
      * Annotation value for video event case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * + * * @return Whether the videoEventAnnotation field is set. */ @java.lang.Override @@ -2696,11 +3489,15 @@ public boolean hasVideoEventAnnotation() { return valueTypeCase_ == 6; } /** + * + * *
      * Annotation value for video event case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * + * * @return The videoEventAnnotation. */ @java.lang.Override @@ -2718,13 +3515,17 @@ public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation getVideoEventA } } /** + * + * *
      * Annotation value for video event case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * */ - public Builder setVideoEventAnnotation(com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation value) { + public Builder setVideoEventAnnotation( + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation value) { if (videoEventAnnotationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2738,11 +3539,14 @@ public Builder setVideoEventAnnotation(com.google.cloud.datalabeling.v1beta1.Vid return this; } /** + * + * *
      * Annotation value for video event case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * */ public Builder setVideoEventAnnotation( com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder builderForValue) { @@ -2756,18 +3560,27 @@ public Builder setVideoEventAnnotation( return this; } /** + * + * *
      * Annotation value for video event case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * */ - public Builder mergeVideoEventAnnotation(com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation value) { + public Builder mergeVideoEventAnnotation( + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation value) { if (videoEventAnnotationBuilder_ == null) { - if (valueTypeCase_ == 6 && - valueType_ != com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.getDefaultInstance()) { - valueType_ = com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.newBuilder((com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_) - .mergeFrom(value).buildPartial(); + if (valueTypeCase_ == 6 + && valueType_ + != com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation + .getDefaultInstance()) { + valueType_ = + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.newBuilder( + (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_) + .mergeFrom(value) + .buildPartial(); } else { valueType_ = value; } @@ -2783,11 +3596,14 @@ public Builder mergeVideoEventAnnotation(com.google.cloud.datalabeling.v1beta1.V return this; } /** + * + * *
      * Annotation value for video event case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * */ public Builder clearVideoEventAnnotation() { if (videoEventAnnotationBuilder_ == null) { @@ -2806,24 +3622,32 @@ public Builder clearVideoEventAnnotation() { return this; } /** + * + * *
      * Annotation value for video event case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * */ - public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder getVideoEventAnnotationBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder + getVideoEventAnnotationBuilder() { return getVideoEventAnnotationFieldBuilder().getBuilder(); } /** + * + * *
      * Annotation value for video event case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder getVideoEventAnnotationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder + getVideoEventAnnotationOrBuilder() { if ((valueTypeCase_ == 6) && (videoEventAnnotationBuilder_ != null)) { return videoEventAnnotationBuilder_.getMessageOrBuilder(); } else { @@ -2834,33 +3658,43 @@ public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder getVi } } /** + * + * *
      * Annotation value for video event case.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation, com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder> + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation, + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder> getVideoEventAnnotationFieldBuilder() { if (videoEventAnnotationBuilder_ == null) { if (!(valueTypeCase_ == 6)) { - valueType_ = com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.getDefaultInstance(); - } - videoEventAnnotationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation, com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder, com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder>( + valueType_ = + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.getDefaultInstance(); + } + videoEventAnnotationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation, + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder, + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder>( (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) valueType_, getParentForChildren(), isClean()); valueType_ = null; } valueTypeCase_ = 6; - onChanged();; + onChanged(); + ; return videoEventAnnotationBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2870,12 +3704,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.AnnotationValue) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.AnnotationValue) private static final com.google.cloud.datalabeling.v1beta1.AnnotationValue DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.AnnotationValue(); } @@ -2884,16 +3718,16 @@ public static com.google.cloud.datalabeling.v1beta1.AnnotationValue getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotationValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotationValue(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotationValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotationValue(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2908,6 +3742,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.AnnotationValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValueOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValueOrBuilder.java similarity index 57% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValueOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValueOrBuilder.java index f9fe74fb..2490ed61 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValueOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AnnotationValueOrBuilder.java @@ -1,70 +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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface AnnotationValueOrBuilder extends +public interface AnnotationValueOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.AnnotationValue) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Annotation value for image classification case.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * + * * @return Whether the imageClassificationAnnotation field is set. */ boolean hasImageClassificationAnnotation(); /** + * + * *
    * Annotation value for image classification case.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * + * * @return The imageClassificationAnnotation. */ - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation getImageClassificationAnnotation(); + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation + getImageClassificationAnnotation(); /** + * + * *
    * Annotation value for image classification case.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1; + * */ - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder getImageClassificationAnnotationOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder + getImageClassificationAnnotationOrBuilder(); /** + * + * *
    * Annotation value for image bounding box, oriented bounding box
    * and polygon cases.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * + * * @return Whether the imageBoundingPolyAnnotation field is set. */ boolean hasImageBoundingPolyAnnotation(); /** + * + * *
    * Annotation value for image bounding box, oriented bounding box
    * and polygon cases.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * + * * @return The imageBoundingPolyAnnotation. */ - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation getImageBoundingPolyAnnotation(); + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation + getImageBoundingPolyAnnotation(); /** + * + * *
    * Annotation value for image bounding box, oriented bounding box
    * and polygon cases.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * + * .google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2; + * */ - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder getImageBoundingPolyAnnotationOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder + getImageBoundingPolyAnnotationOrBuilder(); /** + * + * *
    * Annotation value for image polyline cases.
    * Polyline here is different from BoundingPoly. It is formed by
@@ -72,11 +122,15 @@ public interface AnnotationValueOrBuilder extends
    * The line segments can cross each other.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * + * * @return Whether the imagePolylineAnnotation field is set. */ boolean hasImagePolylineAnnotation(); /** + * + * *
    * Annotation value for image polyline cases.
    * Polyline here is different from BoundingPoly. It is formed by
@@ -84,11 +138,15 @@ public interface AnnotationValueOrBuilder extends
    * The line segments can cross each other.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * + * * @return The imagePolylineAnnotation. */ com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation getImagePolylineAnnotation(); /** + * + * *
    * Annotation value for image polyline cases.
    * Polyline here is different from BoundingPoly. It is formed by
@@ -96,171 +154,265 @@ public interface AnnotationValueOrBuilder extends
    * The line segments can cross each other.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * .google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8; + * */ - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder getImagePolylineAnnotationOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder + getImagePolylineAnnotationOrBuilder(); /** + * + * *
    * Annotation value for image segmentation.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * + * * @return Whether the imageSegmentationAnnotation field is set. */ boolean hasImageSegmentationAnnotation(); /** + * + * *
    * Annotation value for image segmentation.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * + * * @return The imageSegmentationAnnotation. */ - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation getImageSegmentationAnnotation(); + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation + getImageSegmentationAnnotation(); /** + * + * *
    * Annotation value for image segmentation.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * + * .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9; + * */ - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder getImageSegmentationAnnotationOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder + getImageSegmentationAnnotationOrBuilder(); /** + * + * *
    * Annotation value for text classification case.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * + * * @return Whether the textClassificationAnnotation field is set. */ boolean hasTextClassificationAnnotation(); /** + * + * *
    * Annotation value for text classification case.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * + * * @return The textClassificationAnnotation. */ - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation getTextClassificationAnnotation(); + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation + getTextClassificationAnnotation(); /** + * + * *
    * Annotation value for text classification case.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3; + * */ - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder getTextClassificationAnnotationOrBuilder(); + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder + getTextClassificationAnnotationOrBuilder(); /** + * + * *
    * Annotation value for text entity extraction case.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * + * * @return Whether the textEntityExtractionAnnotation field is set. */ boolean hasTextEntityExtractionAnnotation(); /** + * + * *
    * Annotation value for text entity extraction case.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * + * * @return The textEntityExtractionAnnotation. */ - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation getTextEntityExtractionAnnotation(); + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation + getTextEntityExtractionAnnotation(); /** + * + * *
    * Annotation value for text entity extraction case.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10; + * */ - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder getTextEntityExtractionAnnotationOrBuilder(); + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder + getTextEntityExtractionAnnotationOrBuilder(); /** + * + * *
    * Annotation value for video classification case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * + * * @return Whether the videoClassificationAnnotation field is set. */ boolean hasVideoClassificationAnnotation(); /** + * + * *
    * Annotation value for video classification case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * + * * @return The videoClassificationAnnotation. */ - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation getVideoClassificationAnnotation(); + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation + getVideoClassificationAnnotation(); /** + * + * *
    * Annotation value for video classification case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4; + * */ - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder getVideoClassificationAnnotationOrBuilder(); + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder + getVideoClassificationAnnotationOrBuilder(); /** + * + * *
    * Annotation value for video object detection and tracking case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * + * * @return Whether the videoObjectTrackingAnnotation field is set. */ boolean hasVideoObjectTrackingAnnotation(); /** + * + * *
    * Annotation value for video object detection and tracking case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * + * * @return The videoObjectTrackingAnnotation. */ - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation getVideoObjectTrackingAnnotation(); + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation + getVideoObjectTrackingAnnotation(); /** + * + * *
    * Annotation value for video object detection and tracking case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * + * .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5; + * */ - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder getVideoObjectTrackingAnnotationOrBuilder(); + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder + getVideoObjectTrackingAnnotationOrBuilder(); /** + * + * *
    * Annotation value for video event case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * + * * @return Whether the videoEventAnnotation field is set. */ boolean hasVideoEventAnnotation(); /** + * + * *
    * Annotation value for video event case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * + * * @return The videoEventAnnotation. */ com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation getVideoEventAnnotation(); /** + * + * *
    * Annotation value for video event case.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6; + * */ - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder getVideoEventAnnotationOrBuilder(); + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder + getVideoEventAnnotationOrBuilder(); public com.google.cloud.datalabeling.v1beta1.AnnotationValue.ValueTypeCase getValueTypeCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Attempt.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Attempt.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Attempt.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Attempt.java index 76c1c338..d1329b0f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Attempt.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Attempt.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/datalabeling/v1beta1/evaluation_job.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Records a failed evaluation job run.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.Attempt} */ -public final class Attempt extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Attempt extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.Attempt) AttemptOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Attempt.newBuilder() to construct. private Attempt(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Attempt() { 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 Attempt(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Attempt( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,35 +71,38 @@ private Attempt( case 0: done = true; break; - case 10: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (attemptTime_ != null) { - subBuilder = attemptTime_.toBuilder(); - } - attemptTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(attemptTime_); - attemptTime_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (attemptTime_ != null) { + subBuilder = attemptTime_.toBuilder(); + } + attemptTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(attemptTime_); + attemptTime_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - partialFailures_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + break; } - partialFailures_.add( - input.readMessage(com.google.rpc.Status.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + 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; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -90,8 +110,7 @@ private Attempt( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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_); @@ -100,23 +119,27 @@ private Attempt( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Attempt_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_Attempt_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.Attempt.class, com.google.cloud.datalabeling.v1beta1.Attempt.Builder.class); + com.google.cloud.datalabeling.v1beta1.Attempt.class, + com.google.cloud.datalabeling.v1beta1.Attempt.Builder.class); } public static final int ATTEMPT_TIME_FIELD_NUMBER = 1; private com.google.protobuf.Timestamp attemptTime_; /** * .google.protobuf.Timestamp attempt_time = 1; + * * @return Whether the attemptTime field is set. */ @java.lang.Override @@ -125,15 +148,14 @@ public boolean hasAttemptTime() { } /** * .google.protobuf.Timestamp attempt_time = 1; + * * @return The attemptTime. */ @java.lang.Override public com.google.protobuf.Timestamp getAttemptTime() { return attemptTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : attemptTime_; } - /** - * .google.protobuf.Timestamp attempt_time = 1; - */ + /** .google.protobuf.Timestamp attempt_time = 1; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getAttemptTimeOrBuilder() { return getAttemptTime(); @@ -142,6 +164,8 @@ public com.google.protobuf.TimestampOrBuilder getAttemptTimeOrBuilder() { public static final int PARTIAL_FAILURES_FIELD_NUMBER = 2; private java.util.List partialFailures_; /** + * + * *
    * Details of errors that occurred.
    * 
@@ -153,6 +177,8 @@ public java.util.List getPartialFailuresList() { return partialFailures_; } /** + * + * *
    * Details of errors that occurred.
    * 
@@ -160,11 +186,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_; } /** + * + * *
    * Details of errors that occurred.
    * 
@@ -176,6 +204,8 @@ public int getPartialFailuresCount() { return partialFailures_.size(); } /** + * + * *
    * Details of errors that occurred.
    * 
@@ -187,6 +217,8 @@ public com.google.rpc.Status getPartialFailures(int index) { return partialFailures_.get(index); } /** + * + * *
    * Details of errors that occurred.
    * 
@@ -194,12 +226,12 @@ 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); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -211,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 (attemptTime_ != null) { output.writeMessage(1, getAttemptTime()); } @@ -229,12 +260,10 @@ public int getSerializedSize() { size = 0; if (attemptTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAttemptTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAttemptTime()); } 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)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -244,20 +273,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.datalabeling.v1beta1.Attempt)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.Attempt other = (com.google.cloud.datalabeling.v1beta1.Attempt) obj; + com.google.cloud.datalabeling.v1beta1.Attempt other = + (com.google.cloud.datalabeling.v1beta1.Attempt) obj; if (hasAttemptTime() != other.hasAttemptTime()) return false; if (hasAttemptTime()) { - if (!getAttemptTime() - .equals(other.getAttemptTime())) return false; + if (!getAttemptTime().equals(other.getAttemptTime())) return false; } - if (!getPartialFailuresList() - .equals(other.getPartialFailuresList())) return false; + if (!getPartialFailuresList().equals(other.getPartialFailuresList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -282,118 +310,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.Attempt parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datalabeling.v1beta1.Attempt parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.Attempt parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.Attempt parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.Attempt parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.Attempt parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.Attempt parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.Attempt 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.datalabeling.v1beta1.Attempt parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Attempt parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.Attempt parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.Attempt parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.Attempt parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.Attempt parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.Attempt prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Records a failed evaluation job run.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.Attempt} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.Attempt) com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Attempt_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_Attempt_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.Attempt.class, com.google.cloud.datalabeling.v1beta1.Attempt.Builder.class); + com.google.cloud.datalabeling.v1beta1.Attempt.class, + com.google.cloud.datalabeling.v1beta1.Attempt.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.Attempt.newBuilder() @@ -401,17 +438,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(); @@ -431,9 +468,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor; } @java.lang.Override @@ -452,7 +489,8 @@ public com.google.cloud.datalabeling.v1beta1.Attempt build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.Attempt buildPartial() { - com.google.cloud.datalabeling.v1beta1.Attempt result = new com.google.cloud.datalabeling.v1beta1.Attempt(this); + com.google.cloud.datalabeling.v1beta1.Attempt result = + new com.google.cloud.datalabeling.v1beta1.Attempt(this); int from_bitField0_ = bitField0_; if (attemptTimeBuilder_ == null) { result.attemptTime_ = attemptTime_; @@ -476,38 +514,39 @@ public com.google.cloud.datalabeling.v1beta1.Attempt buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.Attempt) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.Attempt)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.Attempt) other); } else { super.mergeFrom(other); return this; @@ -537,9 +576,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.Attempt 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_); } @@ -573,13 +613,18 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.protobuf.Timestamp attemptTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> attemptTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + attemptTimeBuilder_; /** * .google.protobuf.Timestamp attempt_time = 1; + * * @return Whether the attemptTime field is set. */ public boolean hasAttemptTime() { @@ -587,18 +632,19 @@ public boolean hasAttemptTime() { } /** * .google.protobuf.Timestamp attempt_time = 1; + * * @return The attemptTime. */ public com.google.protobuf.Timestamp getAttemptTime() { if (attemptTimeBuilder_ == null) { - return attemptTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : attemptTime_; + return attemptTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : attemptTime_; } else { return attemptTimeBuilder_.getMessage(); } } - /** - * .google.protobuf.Timestamp attempt_time = 1; - */ + /** .google.protobuf.Timestamp attempt_time = 1; */ public Builder setAttemptTime(com.google.protobuf.Timestamp value) { if (attemptTimeBuilder_ == null) { if (value == null) { @@ -612,11 +658,8 @@ public Builder setAttemptTime(com.google.protobuf.Timestamp value) { return this; } - /** - * .google.protobuf.Timestamp attempt_time = 1; - */ - public Builder setAttemptTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + /** .google.protobuf.Timestamp attempt_time = 1; */ + public Builder setAttemptTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (attemptTimeBuilder_ == null) { attemptTime_ = builderForValue.build(); onChanged(); @@ -626,14 +669,14 @@ public Builder setAttemptTime( return this; } - /** - * .google.protobuf.Timestamp attempt_time = 1; - */ + /** .google.protobuf.Timestamp attempt_time = 1; */ public Builder mergeAttemptTime(com.google.protobuf.Timestamp value) { if (attemptTimeBuilder_ == null) { if (attemptTime_ != null) { attemptTime_ = - com.google.protobuf.Timestamp.newBuilder(attemptTime_).mergeFrom(value).buildPartial(); + com.google.protobuf.Timestamp.newBuilder(attemptTime_) + .mergeFrom(value) + .buildPartial(); } else { attemptTime_ = value; } @@ -644,9 +687,7 @@ public Builder mergeAttemptTime(com.google.protobuf.Timestamp value) { return this; } - /** - * .google.protobuf.Timestamp attempt_time = 1; - */ + /** .google.protobuf.Timestamp attempt_time = 1; */ public Builder clearAttemptTime() { if (attemptTimeBuilder_ == null) { attemptTime_ = null; @@ -658,55 +699,57 @@ public Builder clearAttemptTime() { return this; } - /** - * .google.protobuf.Timestamp attempt_time = 1; - */ + /** .google.protobuf.Timestamp attempt_time = 1; */ public com.google.protobuf.Timestamp.Builder getAttemptTimeBuilder() { - + onChanged(); return getAttemptTimeFieldBuilder().getBuilder(); } - /** - * .google.protobuf.Timestamp attempt_time = 1; - */ + /** .google.protobuf.Timestamp attempt_time = 1; */ public com.google.protobuf.TimestampOrBuilder getAttemptTimeOrBuilder() { if (attemptTimeBuilder_ != null) { return attemptTimeBuilder_.getMessageOrBuilder(); } else { - return attemptTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : attemptTime_; + return attemptTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : attemptTime_; } } - /** - * .google.protobuf.Timestamp attempt_time = 1; - */ + /** .google.protobuf.Timestamp attempt_time = 1; */ 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> getAttemptTimeFieldBuilder() { if (attemptTimeBuilder_ == null) { - attemptTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getAttemptTime(), - getParentForChildren(), - isClean()); + attemptTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getAttemptTime(), getParentForChildren(), isClean()); attemptTime_ = null; } return attemptTimeBuilder_; } 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_; /** + * + * *
      * Details of errors that occurred.
      * 
@@ -721,6 +764,8 @@ public java.util.List getPartialFailuresList() { } } /** + * + * *
      * Details of errors that occurred.
      * 
@@ -735,6 +780,8 @@ public int getPartialFailuresCount() { } } /** + * + * *
      * Details of errors that occurred.
      * 
@@ -749,14 +796,15 @@ public com.google.rpc.Status getPartialFailures(int index) { } } /** + * + * *
      * Details of errors that occurred.
      * 
* * 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(); @@ -770,14 +818,15 @@ public Builder setPartialFailures( return this; } /** + * + * *
      * Details of errors that occurred.
      * 
* * 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()); @@ -788,6 +837,8 @@ public Builder setPartialFailures( return this; } /** + * + * *
      * Details of errors that occurred.
      * 
@@ -808,14 +859,15 @@ public Builder addPartialFailures(com.google.rpc.Status value) { return this; } /** + * + * *
      * Details of errors that occurred.
      * 
* * 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(); @@ -829,14 +881,15 @@ public Builder addPartialFailures( return this; } /** + * + * *
      * Details of errors that occurred.
      * 
* * 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()); @@ -847,14 +900,15 @@ public Builder addPartialFailures( return this; } /** + * + * *
      * Details of errors that occurred.
      * 
* * 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()); @@ -865,6 +919,8 @@ public Builder addPartialFailures( return this; } /** + * + * *
      * Details of errors that occurred.
      * 
@@ -875,8 +931,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); @@ -884,6 +939,8 @@ public Builder addAllPartialFailures( return this; } /** + * + * *
      * Details of errors that occurred.
      * 
@@ -901,6 +958,8 @@ public Builder clearPartialFailures() { return this; } /** + * + * *
      * Details of errors that occurred.
      * 
@@ -918,39 +977,44 @@ public Builder removePartialFailures(int index) { return this; } /** + * + * *
      * Details of errors that occurred.
      * 
* * 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); } /** + * + * *
      * Details of errors that occurred.
      * 
* * 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); } } /** + * + * *
      * Details of errors that occurred.
      * 
* * repeated .google.rpc.Status partial_failures = 2; */ - public java.util.List - getPartialFailuresOrBuilderList() { + public java.util.List + getPartialFailuresOrBuilderList() { if (partialFailuresBuilder_ != null) { return partialFailuresBuilder_.getMessageOrBuilderList(); } else { @@ -958,6 +1022,8 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder( } } /** + * + * *
      * Details of errors that occurred.
      * 
@@ -965,38 +1031,44 @@ 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()); } /** + * + * *
      * Details of errors that occurred.
      * 
* * 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()); } /** + * + * *
      * Details of errors that occurred.
      * 
* * 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(), @@ -1005,9 +1077,9 @@ public com.google.rpc.Status.Builder addPartialFailuresBuilder( } return partialFailuresBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1017,12 +1089,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.Attempt) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Attempt) private static final com.google.cloud.datalabeling.v1beta1.Attempt DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.Attempt(); } @@ -1031,16 +1103,16 @@ public static com.google.cloud.datalabeling.v1beta1.Attempt getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Attempt parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Attempt(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Attempt parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Attempt(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1055,6 +1127,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.Attempt getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AttemptOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AttemptOrBuilder.java similarity index 60% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AttemptOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AttemptOrBuilder.java index 457f3476..401d8ea4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AttemptOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/AttemptOrBuilder.java @@ -1,37 +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/datalabeling/v1beta1/evaluation_job.proto package com.google.cloud.datalabeling.v1beta1; -public interface AttemptOrBuilder extends +public interface AttemptOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.Attempt) com.google.protobuf.MessageOrBuilder { /** * .google.protobuf.Timestamp attempt_time = 1; + * * @return Whether the attemptTime field is set. */ boolean hasAttemptTime(); /** * .google.protobuf.Timestamp attempt_time = 1; + * * @return The attemptTime. */ com.google.protobuf.Timestamp getAttemptTime(); - /** - * .google.protobuf.Timestamp attempt_time = 1; - */ + /** .google.protobuf.Timestamp attempt_time = 1; */ com.google.protobuf.TimestampOrBuilder getAttemptTimeOrBuilder(); /** + * + * *
    * Details of errors that occurred.
    * 
* * repeated .google.rpc.Status partial_failures = 2; */ - java.util.List - getPartialFailuresList(); + java.util.List getPartialFailuresList(); /** + * + * *
    * Details of errors that occurred.
    * 
@@ -40,6 +59,8 @@ public interface AttemptOrBuilder extends */ com.google.rpc.Status getPartialFailures(int index); /** + * + * *
    * Details of errors that occurred.
    * 
@@ -48,21 +69,23 @@ public interface AttemptOrBuilder extends */ int getPartialFailuresCount(); /** + * + * *
    * Details of errors that occurred.
    * 
* * repeated .google.rpc.Status partial_failures = 2; */ - java.util.List - getPartialFailuresOrBuilderList(); + java.util.List getPartialFailuresOrBuilderList(); /** + * + * *
    * Details of errors that occurred.
    * 
* * repeated .google.rpc.Status partial_failures = 2; */ - com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder( - int index); + com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySource.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySource.java similarity index 75% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySource.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySource.java index f4ce6b81..97aea797 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySource.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySource.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * The BigQuery location for input data. If used in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob], this
  * is where the service saves the prediction input and output sampled from the
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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)
@@ -55,19 +72,20 @@ 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) {
@@ -75,29 +93,33 @@ private BigQuerySource(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.BigQuerySource.class, com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.BigQuerySource.class,
+            com.google.cloud.datalabeling.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 2,000 characters long. If you
    * specify the URI of a table that does not exist, Data Labeling Service
@@ -113,6 +135,7 @@ private BigQuerySource(
    * 
* * string input_uri = 1; + * * @return The inputUri. */ @java.lang.Override @@ -121,14 +144,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 2,000 characters long. If you
    * specify the URI of a table that does not exist, Data Labeling Service
@@ -144,16 +168,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 { @@ -162,6 +185,7 @@ public java.lang.String getInputUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +197,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_); } @@ -198,15 +221,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.datalabeling.v1beta1.BigQuerySource)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.BigQuerySource other = (com.google.cloud.datalabeling.v1beta1.BigQuerySource) obj; + com.google.cloud.datalabeling.v1beta1.BigQuerySource other = + (com.google.cloud.datalabeling.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; } @@ -226,96 +249,103 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.BigQuerySource 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.datalabeling.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.datalabeling.v1beta1.BigQuerySource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.BigQuerySource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.BigQuerySource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.BigQuerySource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.BigQuerySource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.BigQuerySource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.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 input data. If used in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob], this
    * is where the service saves the prediction input and output sampled from the
@@ -324,21 +354,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.BigQuerySource)
       com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.BigQuerySource.class, com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.BigQuerySource.class,
+              com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.BigQuerySource.newBuilder()
@@ -346,16 +378,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();
@@ -365,9 +396,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor;
     }
 
     @java.lang.Override
@@ -386,7 +417,8 @@ public com.google.cloud.datalabeling.v1beta1.BigQuerySource build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.BigQuerySource buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.BigQuerySource result = new com.google.cloud.datalabeling.v1beta1.BigQuerySource(this);
+      com.google.cloud.datalabeling.v1beta1.BigQuerySource result =
+          new com.google.cloud.datalabeling.v1beta1.BigQuerySource(this);
       result.inputUri_ = inputUri_;
       onBuilt();
       return result;
@@ -396,38 +428,39 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.BigQuerySource) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.BigQuerySource)other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.BigQuerySource) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -435,7 +468,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.BigQuerySource other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.BigQuerySource.getDefaultInstance()) return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.BigQuerySource.getDefaultInstance())
+        return this;
       if (!other.getInputUri().isEmpty()) {
         inputUri_ = other.inputUri_;
         onChanged();
@@ -459,7 +493,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.datalabeling.v1beta1.BigQuerySource) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.datalabeling.v1beta1.BigQuerySource) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -471,6 +506,8 @@ public Builder mergeFrom(
 
     private java.lang.Object inputUri_ = "";
     /**
+     *
+     *
      * 
      * Required. BigQuery URI to a table, up to 2,000 characters long. If you
      * specify the URI of a table that does not exist, Data Labeling Service
@@ -486,13 +523,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; @@ -501,6 +538,8 @@ public java.lang.String getInputUri() { } } /** + * + * *
      * Required. BigQuery URI to a table, up to 2,000 characters long. If you
      * specify the URI of a table that does not exist, Data Labeling Service
@@ -516,15 +555,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 { @@ -532,6 +570,8 @@ public java.lang.String getInputUri() { } } /** + * + * *
      * Required. BigQuery URI to a table, up to 2,000 characters long. If you
      * specify the URI of a table that does not exist, Data Labeling Service
@@ -547,20 +587,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 2,000 characters long. If you
      * specify the URI of a table that does not exist, Data Labeling Service
@@ -576,15 +618,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 2,000 characters long. If you
      * specify the URI of a table that does not exist, Data Labeling Service
@@ -600,23 +645,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); } @@ -626,12 +671,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.BigQuerySource) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.BigQuerySource) private static final com.google.cloud.datalabeling.v1beta1.BigQuerySource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.BigQuerySource(); } @@ -640,16 +685,16 @@ public static com.google.cloud.datalabeling.v1beta1.BigQuerySource getDefaultIns 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; @@ -664,6 +709,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.BigQuerySource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySourceOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySourceOrBuilder.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySourceOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySourceOrBuilder.java index c829cf2a..42db8dee 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BigQuerySourceOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; -public interface BigQuerySourceOrBuilder extends +public interface BigQuerySourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.BigQuerySource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. BigQuery URI to a table, up to 2,000 characters long. If you
    * specify the URI of a table that does not exist, Data Labeling Service
@@ -23,10 +41,13 @@ public interface BigQuerySourceOrBuilder extends
    * 
* * string input_uri = 1; + * * @return The inputUri. */ java.lang.String getInputUri(); /** + * + * *
    * Required. BigQuery URI to a table, up to 2,000 characters long. If you
    * specify the URI of a table that does not exist, Data Labeling Service
@@ -42,8 +63,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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptions.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptions.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptions.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptions.java index 41e3c7ce..5fc8ad19 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptions.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptions.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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Options regarding evaluation between bounding boxes.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions} */ -public final class BoundingBoxEvaluationOptions extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BoundingBoxEvaluationOptions extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) BoundingBoxEvaluationOptionsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BoundingBoxEvaluationOptions.newBuilder() to construct. private BoundingBoxEvaluationOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private BoundingBoxEvaluationOptions() { - } + + private BoundingBoxEvaluationOptions() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BoundingBoxEvaluationOptions(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BoundingBoxEvaluationOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,18 +68,18 @@ private BoundingBoxEvaluationOptions( case 0: done = true; break; - case 13: { - - iouThreshold_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 13: + { + iouThreshold_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -71,29 +87,33 @@ private BoundingBoxEvaluationOptions( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.class, com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder.class); + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.class, + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder.class); } public static final int IOU_THRESHOLD_FIELD_NUMBER = 1; private float iouThreshold_; /** + * + * *
    * Minimum
    * [intersection-over-union
@@ -103,6 +123,7 @@ private BoundingBoxEvaluationOptions(
    * 
* * float iou_threshold = 1; + * * @return The iouThreshold. */ @java.lang.Override @@ -111,6 +132,7 @@ public float getIouThreshold() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -122,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 (java.lang.Float.floatToRawIntBits(iouThreshold_) != 0) { output.writeFloat(1, iouThreshold_); } @@ -137,8 +158,7 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(iouThreshold_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, iouThreshold_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, iouThreshold_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -148,16 +168,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.datalabeling.v1beta1.BoundingBoxEvaluationOptions)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions other = (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) obj; + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions other = + (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) obj; if (java.lang.Float.floatToIntBits(getIouThreshold()) - != java.lang.Float.floatToIntBits( - other.getIouThreshold())) return false; + != java.lang.Float.floatToIntBits(other.getIouThreshold())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -170,142 +190,152 @@ 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions 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.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions 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.datalabeling.v1beta1.BoundingBoxEvaluationOptions + 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.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Options regarding evaluation between bounding boxes.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.class, com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder.class); + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.class, + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.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(); @@ -315,14 +345,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions + .getDefaultInstance(); } @java.lang.Override @@ -336,7 +368,8 @@ public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions build( @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions buildPartial() { - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions result = new com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions(this); + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions result = + new com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions(this); result.iouThreshold_ = iouThreshold_; onBuilt(); return result; @@ -346,46 +379,51 @@ public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions 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.datalabeling.v1beta1.BoundingBoxEvaluationOptions) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions)other); + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions other) { - if (other == com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions other) { + if (other + == com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions + .getDefaultInstance()) return this; if (other.getIouThreshold() != 0F) { setIouThreshold(other.getIouThreshold()); } @@ -408,7 +446,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -418,8 +458,10 @@ public Builder mergeFrom( return this; } - private float iouThreshold_ ; + private float iouThreshold_; /** + * + * *
      * Minimum
      * [intersection-over-union
@@ -429,6 +471,7 @@ public Builder mergeFrom(
      * 
* * float iou_threshold = 1; + * * @return The iouThreshold. */ @java.lang.Override @@ -436,6 +479,8 @@ public float getIouThreshold() { return iouThreshold_; } /** + * + * *
      * Minimum
      * [intersection-over-union
@@ -445,16 +490,19 @@ public float getIouThreshold() {
      * 
* * 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; } /** + * + * *
      * Minimum
      * [intersection-over-union
@@ -464,17 +512,18 @@ public Builder setIouThreshold(float value) {
      * 
* * float iou_threshold = 1; + * * @return This builder for chaining. */ public Builder clearIouThreshold() { - + iouThreshold_ = 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); } @@ -484,30 +533,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) - private static final com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions(); } - public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoundingBoxEvaluationOptions parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoundingBoxEvaluationOptions(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoundingBoxEvaluationOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BoundingBoxEvaluationOptions(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -519,9 +570,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptionsOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptionsOrBuilder.java similarity index 50% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptionsOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptionsOrBuilder.java index 0023eb42..c293d0b6 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptionsOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingBoxEvaluationOptionsOrBuilder.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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; -public interface BoundingBoxEvaluationOptionsOrBuilder extends +public interface BoundingBoxEvaluationOptionsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Minimum
    * [intersection-over-union
@@ -17,6 +35,7 @@ public interface BoundingBoxEvaluationOptionsOrBuilder extends
    * 
* * float iou_threshold = 1; + * * @return The iouThreshold. */ float getIouThreshold(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPoly.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPoly.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPoly.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPoly.java index 5e9f5109..3120bae9 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPoly.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPoly.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * A bounding polygon in the image.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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() { vertices_ = 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) @@ -54,22 +71,24 @@ private BoundingPoly( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - vertices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + vertices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + vertices_.add( + input.readMessage( + com.google.cloud.datalabeling.v1beta1.Vertex.parser(), extensionRegistry)); + break; } - vertices_.add( - input.readMessage(com.google.cloud.datalabeling.v1beta1.Vertex.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) { @@ -77,8 +96,7 @@ private BoundingPoly( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { vertices_ = java.util.Collections.unmodifiableList(vertices_); @@ -87,22 +105,27 @@ private BoundingPoly( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.BoundingPoly.class, com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder.class); + com.google.cloud.datalabeling.v1beta1.BoundingPoly.class, + com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder.class); } public static final int VERTICES_FIELD_NUMBER = 1; private java.util.List vertices_; /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -114,6 +137,8 @@ public java.util.List getVerticesL return vertices_; } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -121,11 +146,13 @@ public java.util.List getVerticesL * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVerticesOrBuilderList() { return vertices_; } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -137,6 +164,8 @@ public int getVerticesCount() { return vertices_.size(); } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -148,6 +177,8 @@ public com.google.cloud.datalabeling.v1beta1.Vertex getVertices(int index) { return vertices_.get(index); } /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -155,12 +186,12 @@ public com.google.cloud.datalabeling.v1beta1.Vertex getVertices(int index) { * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder(int index) { return vertices_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +203,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 < vertices_.size(); i++) { output.writeMessage(1, vertices_.get(i)); } @@ -187,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < vertices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, vertices_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, vertices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +227,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.datalabeling.v1beta1.BoundingPoly)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.BoundingPoly other = (com.google.cloud.datalabeling.v1beta1.BoundingPoly) obj; + com.google.cloud.datalabeling.v1beta1.BoundingPoly other = + (com.google.cloud.datalabeling.v1beta1.BoundingPoly) obj; - if (!getVerticesList() - .equals(other.getVerticesList())) return false; + if (!getVerticesList().equals(other.getVerticesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +257,126 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.BoundingPoly 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.datalabeling.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.datalabeling.v1beta1.BoundingPoly parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.BoundingPoly parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.BoundingPoly parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.BoundingPoly parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.BoundingPoly parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.BoundingPoly parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.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 in the image.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.BoundingPoly) com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.BoundingPoly.class, com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder.class); + com.google.cloud.datalabeling.v1beta1.BoundingPoly.class, + com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.BoundingPoly.newBuilder() @@ -346,17 +384,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) { getVerticesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +408,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_BoundingPoly_descriptor; } @java.lang.Override @@ -391,7 +429,8 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPoly build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BoundingPoly buildPartial() { - com.google.cloud.datalabeling.v1beta1.BoundingPoly result = new com.google.cloud.datalabeling.v1beta1.BoundingPoly(this); + com.google.cloud.datalabeling.v1beta1.BoundingPoly result = + new com.google.cloud.datalabeling.v1beta1.BoundingPoly(this); int from_bitField0_ = bitField0_; if (verticesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +449,39 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.BoundingPoly) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.BoundingPoly)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.BoundingPoly) other); } else { super.mergeFrom(other); return this; @@ -449,7 +489,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.BoundingPoly other) { - if (other == com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance()) + return this; if (verticesBuilder_ == null) { if (!other.vertices_.isEmpty()) { if (vertices_.isEmpty()) { @@ -468,9 +509,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.BoundingPoly othe verticesBuilder_ = null; vertices_ = other.vertices_; bitField0_ = (bitField0_ & ~0x00000001); - verticesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVerticesFieldBuilder() : null; + verticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVerticesFieldBuilder() + : null; } else { verticesBuilder_.addAllMessages(other.vertices_); } @@ -495,7 +537,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.BoundingPoly) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.BoundingPoly) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,21 +547,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List vertices_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureVerticesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - vertices_ = new java.util.ArrayList(vertices_); + vertices_ = + new java.util.ArrayList(vertices_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Vertex, com.google.cloud.datalabeling.v1beta1.Vertex.Builder, com.google.cloud.datalabeling.v1beta1.VertexOrBuilder> verticesBuilder_; + com.google.cloud.datalabeling.v1beta1.Vertex, + com.google.cloud.datalabeling.v1beta1.Vertex.Builder, + com.google.cloud.datalabeling.v1beta1.VertexOrBuilder> + verticesBuilder_; /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -533,6 +584,8 @@ public java.util.List getVerticesL } } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -547,6 +600,8 @@ public int getVerticesCount() { } } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -561,14 +616,15 @@ public com.google.cloud.datalabeling.v1beta1.Vertex getVertices(int index) { } } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public Builder setVertices( - int index, com.google.cloud.datalabeling.v1beta1.Vertex value) { + public Builder setVertices(int index, com.google.cloud.datalabeling.v1beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -582,6 +638,8 @@ public Builder setVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -600,6 +658,8 @@ public Builder setVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -620,14 +680,15 @@ public Builder addVertices(com.google.cloud.datalabeling.v1beta1.Vertex value) { return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public Builder addVertices( - int index, com.google.cloud.datalabeling.v1beta1.Vertex value) { + public Builder addVertices(int index, com.google.cloud.datalabeling.v1beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -641,6 +702,8 @@ public Builder addVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -659,6 +722,8 @@ public Builder addVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -677,6 +742,8 @@ public Builder addVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -687,8 +754,7 @@ public Builder addAllVertices( java.lang.Iterable values) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, vertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vertices_); onChanged(); } else { verticesBuilder_.addAllMessages(values); @@ -696,6 +762,8 @@ public Builder addAllVertices( return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -713,6 +781,8 @@ public Builder clearVertices() { return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -730,39 +800,44 @@ public Builder removeVertices(int index) { return this; } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public com.google.cloud.datalabeling.v1beta1.Vertex.Builder getVerticesBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.Vertex.Builder getVerticesBuilder(int index) { return getVerticesFieldBuilder().getBuilder(index); } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder(int index) { if (verticesBuilder_ == null) { - return vertices_.get(index); } else { + return vertices_.get(index); + } else { return verticesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesOrBuilderList() { + public java.util.List + getVerticesOrBuilderList() { if (verticesBuilder_ != null) { return verticesBuilder_.getMessageOrBuilderList(); } else { @@ -770,6 +845,8 @@ public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilde } } /** + * + * *
      * The bounding polygon vertices.
      * 
@@ -777,49 +854,55 @@ public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilde * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ public com.google.cloud.datalabeling.v1beta1.Vertex.Builder addVerticesBuilder() { - return getVerticesFieldBuilder().addBuilder( - com.google.cloud.datalabeling.v1beta1.Vertex.getDefaultInstance()); + return getVerticesFieldBuilder() + .addBuilder(com.google.cloud.datalabeling.v1beta1.Vertex.getDefaultInstance()); } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public com.google.cloud.datalabeling.v1beta1.Vertex.Builder addVerticesBuilder( - int index) { - return getVerticesFieldBuilder().addBuilder( - index, com.google.cloud.datalabeling.v1beta1.Vertex.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.Vertex.Builder addVerticesBuilder(int index) { + return getVerticesFieldBuilder() + .addBuilder(index, com.google.cloud.datalabeling.v1beta1.Vertex.getDefaultInstance()); } /** + * + * *
      * The bounding polygon vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesBuilderList() { + public java.util.List + getVerticesBuilderList() { return getVerticesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Vertex, com.google.cloud.datalabeling.v1beta1.Vertex.Builder, com.google.cloud.datalabeling.v1beta1.VertexOrBuilder> + com.google.cloud.datalabeling.v1beta1.Vertex, + com.google.cloud.datalabeling.v1beta1.Vertex.Builder, + com.google.cloud.datalabeling.v1beta1.VertexOrBuilder> getVerticesFieldBuilder() { if (verticesBuilder_ == null) { - verticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Vertex, com.google.cloud.datalabeling.v1beta1.Vertex.Builder, com.google.cloud.datalabeling.v1beta1.VertexOrBuilder>( - vertices_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + verticesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.Vertex, + com.google.cloud.datalabeling.v1beta1.Vertex.Builder, + com.google.cloud.datalabeling.v1beta1.VertexOrBuilder>( + vertices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); vertices_ = null; } return verticesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +912,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.BoundingPoly) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.BoundingPoly) private static final com.google.cloud.datalabeling.v1beta1.BoundingPoly DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.BoundingPoly(); } @@ -843,16 +926,16 @@ public static com.google.cloud.datalabeling.v1beta1.BoundingPoly getDefaultInsta 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; @@ -867,6 +950,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.BoundingPoly getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfig.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfig.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfig.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfig.java index d34942d5..3df52b43 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfig.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Config for image bounding poly (and bounding box) human labeling task.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.BoundingPolyConfig} */ -public final class BoundingPolyConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class BoundingPolyConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.BoundingPolyConfig) BoundingPolyConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use BoundingPolyConfig.newBuilder() to construct. private BoundingPolyConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private BoundingPolyConfig() { annotationSpecSet_ = ""; instructionMessage_ = ""; @@ -26,16 +44,15 @@ private BoundingPolyConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new BoundingPolyConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private BoundingPolyConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private BoundingPolyConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - annotationSpecSet_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + annotationSpecSet_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - instructionMessage_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + instructionMessage_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +99,39 @@ private BoundingPolyConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.class, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.class, + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder.class); } public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER = 1; private volatile java.lang.Object annotationSpecSet_; /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ @java.lang.Override @@ -116,29 +140,29 @@ public java.lang.String getAnnotationSpecSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; } } /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ @java.lang.Override - public com.google.protobuf.ByteString - getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -149,11 +173,14 @@ public java.lang.String getAnnotationSpecSet() { public static final int INSTRUCTION_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object instructionMessage_; /** + * + * *
    * Optional. Instruction message showed on contributors UI.
    * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The instructionMessage. */ @java.lang.Override @@ -162,29 +189,29 @@ public java.lang.String getInstructionMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instructionMessage_ = s; return s; } } /** + * + * *
    * Optional. Instruction message showed on contributors UI.
    * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for instructionMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getInstructionMessageBytes() { + public com.google.protobuf.ByteString getInstructionMessageBytes() { java.lang.Object ref = instructionMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instructionMessage_ = b; return b; } else { @@ -193,6 +220,7 @@ public java.lang.String getInstructionMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +232,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(annotationSpecSet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecSet_); } @@ -235,17 +262,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.datalabeling.v1beta1.BoundingPolyConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig other = (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) obj; + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig other = + (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) obj; - if (!getAnnotationSpecSet() - .equals(other.getAnnotationSpecSet())) return false; - if (!getInstructionMessage() - .equals(other.getInstructionMessage())) return false; + if (!getAnnotationSpecSet().equals(other.getAnnotationSpecSet())) return false; + if (!getInstructionMessage().equals(other.getInstructionMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -267,117 +293,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig 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.datalabeling.v1beta1.BoundingPolyConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Config for image bounding poly (and bounding box) human labeling task.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.BoundingPolyConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.BoundingPolyConfig) com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.class, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.class, + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.newBuilder() @@ -385,16 +421,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(); @@ -406,9 +441,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor; } @java.lang.Override @@ -427,7 +462,8 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig result = new com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig(this); + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig result = + new com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig(this); result.annotationSpecSet_ = annotationSpecSet_; result.instructionMessage_ = instructionMessage_; onBuilt(); @@ -438,38 +474,39 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) other); } else { super.mergeFrom(other); return this; @@ -477,7 +514,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig other) { - if (other == com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance()) + return this; if (!other.getAnnotationSpecSet().isEmpty()) { annotationSpecSet_ = other.annotationSpecSet_; onChanged(); @@ -505,7 +543,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -517,18 +556,20 @@ public Builder mergeFrom( private java.lang.Object annotationSpecSet_ = ""; /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ public java.lang.String getAnnotationSpecSet() { java.lang.Object ref = annotationSpecSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; @@ -537,20 +578,21 @@ public java.lang.String getAnnotationSpecSet() { } } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ - public com.google.protobuf.ByteString - getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -558,54 +600,61 @@ public java.lang.String getAnnotationSpecSet() { } } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSet( - java.lang.String value) { + public Builder setAnnotationSpecSet(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecSet_ = value; onChanged(); return this; } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAnnotationSpecSet() { - + annotationSpecSet_ = getDefaultInstance().getAnnotationSpecSet(); onChanged(); return this; } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSetBytes( - com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecSet_ = value; onChanged(); return this; @@ -613,18 +662,20 @@ public Builder setAnnotationSpecSetBytes( private java.lang.Object instructionMessage_ = ""; /** + * + * *
      * Optional. Instruction message showed on contributors UI.
      * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The instructionMessage. */ public java.lang.String getInstructionMessage() { java.lang.Object ref = instructionMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instructionMessage_ = s; return s; @@ -633,20 +684,21 @@ public java.lang.String getInstructionMessage() { } } /** + * + * *
      * Optional. Instruction message showed on contributors UI.
      * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for instructionMessage. */ - public com.google.protobuf.ByteString - getInstructionMessageBytes() { + public com.google.protobuf.ByteString getInstructionMessageBytes() { java.lang.Object ref = instructionMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instructionMessage_ = b; return b; } else { @@ -654,61 +706,68 @@ public java.lang.String getInstructionMessage() { } } /** + * + * *
      * Optional. Instruction message showed on contributors UI.
      * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The instructionMessage to set. * @return This builder for chaining. */ - public Builder setInstructionMessage( - java.lang.String value) { + public Builder setInstructionMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instructionMessage_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Instruction message showed on contributors UI.
      * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearInstructionMessage() { - + instructionMessage_ = getDefaultInstance().getInstructionMessage(); onChanged(); return this; } /** + * + * *
      * Optional. Instruction message showed on contributors UI.
      * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for instructionMessage to set. * @return This builder for chaining. */ - public Builder setInstructionMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setInstructionMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instructionMessage_ = 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); } @@ -718,12 +777,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.BoundingPolyConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.BoundingPolyConfig) private static final com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig(); } @@ -732,16 +791,16 @@ public static com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BoundingPolyConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new BoundingPolyConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BoundingPolyConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BoundingPolyConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,6 +815,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfigOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfigOrBuilder.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfigOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfigOrBuilder.java index 78fa3303..34d7131d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfigOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyConfigOrBuilder.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface BoundingPolyConfigOrBuilder extends +public interface BoundingPolyConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.BoundingPolyConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ java.lang.String getAnnotationSpecSet(); /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ - com.google.protobuf.ByteString - getAnnotationSpecSetBytes(); + com.google.protobuf.ByteString getAnnotationSpecSetBytes(); /** + * + * *
    * Optional. Instruction message showed on contributors UI.
    * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The instructionMessage. */ java.lang.String getInstructionMessage(); /** + * + * *
    * Optional. Instruction message showed on contributors UI.
    * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for instructionMessage. */ - com.google.protobuf.ByteString - getInstructionMessageBytes(); + com.google.protobuf.ByteString getInstructionMessageBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyOrBuilder.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyOrBuilder.java index 12add16a..c27e35cf 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/BoundingPolyOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface BoundingPolyOrBuilder extends +public interface BoundingPolyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.BoundingPoly) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - java.util.List - getVerticesList(); + java.util.List getVerticesList(); /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -25,6 +44,8 @@ public interface BoundingPolyOrBuilder extends */ com.google.cloud.datalabeling.v1beta1.Vertex getVertices(int index); /** + * + * *
    * The bounding polygon vertices.
    * 
@@ -33,21 +54,24 @@ public interface BoundingPolyOrBuilder extends */ int getVerticesCount(); /** + * + * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - java.util.List + java.util.List getVerticesOrBuilderList(); /** + * + * *
    * The bounding polygon vertices.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder( - int index); + com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadata.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadata.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadata.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadata.java index 4858f649..f57430d8 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadata.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadata.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Metadata for classification annotations.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ClassificationMetadata} */ -public final class ClassificationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ClassificationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ClassificationMetadata) ClassificationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClassificationMetadata.newBuilder() to construct. private ClassificationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ClassificationMetadata() { - } + + private ClassificationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ClassificationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ClassificationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,18 +68,18 @@ private ClassificationMetadata( case 0: done = true; break; - case 8: { - - isMultiLabel_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + isMultiLabel_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -71,34 +87,39 @@ private ClassificationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.class, com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.class, + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder.class); } public static final int IS_MULTI_LABEL_FIELD_NUMBER = 1; private boolean isMultiLabel_; /** + * + * *
    * Whether the classification task is multi-label or not.
    * 
* * bool is_multi_label = 1; + * * @return The isMultiLabel. */ @java.lang.Override @@ -107,6 +128,7 @@ public boolean getIsMultiLabel() { } 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 (isMultiLabel_ != false) { output.writeBool(1, isMultiLabel_); } @@ -133,8 +154,7 @@ public int getSerializedSize() { size = 0; if (isMultiLabel_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, isMultiLabel_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, isMultiLabel_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -144,15 +164,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.datalabeling.v1beta1.ClassificationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata other = (com.google.cloud.datalabeling.v1beta1.ClassificationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata other = + (com.google.cloud.datalabeling.v1beta1.ClassificationMetadata) obj; - if (getIsMultiLabel() - != other.getIsMultiLabel()) return false; + if (getIsMultiLabel() != other.getIsMultiLabel()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -165,125 +185,134 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + IS_MULTI_LABEL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIsMultiLabel()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsMultiLabel()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata 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.datalabeling.v1beta1.ClassificationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ClassificationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 classification annotations.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ClassificationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ClassificationMetadata) com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.class, com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.class, + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.newBuilder() @@ -291,16 +320,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(); @@ -310,13 +338,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ClassificationMetadata getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ClassificationMetadata + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.getDefaultInstance(); } @@ -331,7 +360,8 @@ public com.google.cloud.datalabeling.v1beta1.ClassificationMetadata build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ClassificationMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata result = new com.google.cloud.datalabeling.v1beta1.ClassificationMetadata(this); + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata result = + new com.google.cloud.datalabeling.v1beta1.ClassificationMetadata(this); result.isMultiLabel_ = isMultiLabel_; onBuilt(); return result; @@ -341,38 +371,39 @@ public com.google.cloud.datalabeling.v1beta1.ClassificationMetadata buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.ClassificationMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ClassificationMetadata)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ClassificationMetadata) other); } else { super.mergeFrom(other); return this; @@ -380,7 +411,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ClassificationMetadata other) { - if (other == com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.getDefaultInstance()) return this; + if (other + == com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.getDefaultInstance()) + return this; if (other.getIsMultiLabel() != false) { setIsMultiLabel(other.getIsMultiLabel()); } @@ -403,7 +436,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ClassificationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ClassificationMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -413,13 +447,16 @@ public Builder mergeFrom( return this; } - private boolean isMultiLabel_ ; + private boolean isMultiLabel_; /** + * + * *
      * Whether the classification task is multi-label or not.
      * 
* * bool is_multi_label = 1; + * * @return The isMultiLabel. */ @java.lang.Override @@ -427,37 +464,43 @@ public boolean getIsMultiLabel() { return isMultiLabel_; } /** + * + * *
      * Whether the classification task is multi-label or not.
      * 
* * bool is_multi_label = 1; + * * @param value The isMultiLabel to set. * @return This builder for chaining. */ public Builder setIsMultiLabel(boolean value) { - + isMultiLabel_ = value; onChanged(); return this; } /** + * + * *
      * Whether the classification task is multi-label or not.
      * 
* * bool is_multi_label = 1; + * * @return This builder for chaining. */ public Builder clearIsMultiLabel() { - + isMultiLabel_ = 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); } @@ -467,12 +510,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ClassificationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ClassificationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.ClassificationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.ClassificationMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ClassificationMetadata(); } @@ -481,16 +525,16 @@ public static com.google.cloud.datalabeling.v1beta1.ClassificationMetadata getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClassificationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassificationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClassificationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClassificationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -505,6 +549,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ClassificationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadataOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadataOrBuilder.java new file mode 100644 index 00000000..d4fbdeeb --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetadataOrBuilder.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/datalabeling/v1beta1/dataset.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface ClassificationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ClassificationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether the classification task is multi-label or not.
+   * 
+ * + * bool is_multi_label = 1; + * + * @return The isMultiLabel. + */ + boolean getIsMultiLabel(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetrics.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetrics.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetrics.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetrics.java index 4c28d36d..8abc7153 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetrics.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetrics.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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Metrics calculated for a classification model.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ClassificationMetrics} */ -public final class ClassificationMetrics extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ClassificationMetrics extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ClassificationMetrics) ClassificationMetricsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ClassificationMetrics.newBuilder() to construct. private ClassificationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ClassificationMetrics() { - } + + private ClassificationMetrics() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ClassificationMetrics(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ClassificationMetrics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,46 @@ private ClassificationMetrics( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.PrCurve.Builder subBuilder = null; - if (prCurve_ != null) { - subBuilder = prCurve_.toBuilder(); - } - prCurve_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.PrCurve.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(prCurve_); - prCurve_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.datalabeling.v1beta1.PrCurve.Builder subBuilder = null; + if (prCurve_ != null) { + subBuilder = prCurve_.toBuilder(); + } + prCurve_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.PrCurve.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(prCurve_); + prCurve_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder subBuilder = null; - if (confusionMatrix_ != null) { - subBuilder = confusionMatrix_.toBuilder(); - } - confusionMatrix_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(confusionMatrix_); - confusionMatrix_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder subBuilder = null; + if (confusionMatrix_ != null) { + subBuilder = confusionMatrix_.toBuilder(); + } + confusionMatrix_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(confusionMatrix_); + confusionMatrix_ = 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) { @@ -92,35 +115,40 @@ private ClassificationMetrics( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.class, com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder.class); + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.class, + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder.class); } public static final int PR_CURVE_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.PrCurve prCurve_; /** + * + * *
    * Precision-recall curve based on ground truth labels, predicted labels, and
    * scores for the predicted labels.
    * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; + * * @return Whether the prCurve field is set. */ @java.lang.Override @@ -128,19 +156,26 @@ public boolean hasPrCurve() { return prCurve_ != null; } /** + * + * *
    * Precision-recall curve based on ground truth labels, predicted labels, and
    * scores for the predicted labels.
    * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; + * * @return The prCurve. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PrCurve getPrCurve() { - return prCurve_ == null ? com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance() : prCurve_; + return prCurve_ == null + ? com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance() + : prCurve_; } /** + * + * *
    * Precision-recall curve based on ground truth labels, predicted labels, and
    * scores for the predicted labels.
@@ -156,11 +191,14 @@ public com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder getPrCurveOrBuilde
   public static final int CONFUSION_MATRIX_FIELD_NUMBER = 2;
   private com.google.cloud.datalabeling.v1beta1.ConfusionMatrix confusionMatrix_;
   /**
+   *
+   *
    * 
    * Confusion matrix of predicted labels vs. ground truth labels.
    * 
* * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; + * * @return Whether the confusionMatrix field is set. */ @java.lang.Override @@ -168,18 +206,25 @@ public boolean hasConfusionMatrix() { return confusionMatrix_ != null; } /** + * + * *
    * Confusion matrix of predicted labels vs. ground truth labels.
    * 
* * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; + * * @return The confusionMatrix. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix getConfusionMatrix() { - return confusionMatrix_ == null ? com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.getDefaultInstance() : confusionMatrix_; + return confusionMatrix_ == null + ? com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.getDefaultInstance() + : confusionMatrix_; } /** + * + * *
    * Confusion matrix of predicted labels vs. ground truth labels.
    * 
@@ -187,11 +232,13 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix getConfusionMatrix( * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrixOrBuilder + getConfusionMatrixOrBuilder() { return getConfusionMatrix(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -203,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 (prCurve_ != null) { output.writeMessage(1, getPrCurve()); } @@ -221,12 +267,10 @@ public int getSerializedSize() { size = 0; if (prCurve_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPrCurve()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPrCurve()); } if (confusionMatrix_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConfusionMatrix()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfusionMatrix()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -236,22 +280,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.datalabeling.v1beta1.ClassificationMetrics)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics other = (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) obj; + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics other = + (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) obj; if (hasPrCurve() != other.hasPrCurve()) return false; if (hasPrCurve()) { - if (!getPrCurve() - .equals(other.getPrCurve())) return false; + if (!getPrCurve().equals(other.getPrCurve())) 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; @@ -278,117 +321,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics 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.datalabeling.v1beta1.ClassificationMetrics parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ClassificationMetrics prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metrics calculated for a classification model.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ClassificationMetrics} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ClassificationMetrics) com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.class, com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder.class); + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.class, + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.newBuilder() @@ -396,16 +449,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(); @@ -425,9 +477,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor; } @java.lang.Override @@ -446,7 +498,8 @@ public com.google.cloud.datalabeling.v1beta1.ClassificationMetrics build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ClassificationMetrics buildPartial() { - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics result = new com.google.cloud.datalabeling.v1beta1.ClassificationMetrics(this); + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics result = + new com.google.cloud.datalabeling.v1beta1.ClassificationMetrics(this); if (prCurveBuilder_ == null) { result.prCurve_ = prCurve_; } else { @@ -465,38 +518,39 @@ public com.google.cloud.datalabeling.v1beta1.ClassificationMetrics buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ClassificationMetrics)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) other); } else { super.mergeFrom(other); return this; @@ -504,7 +558,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ClassificationMetrics other) { - if (other == com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.getDefaultInstance()) + return this; if (other.hasPrCurve()) { mergePrCurve(other.getPrCurve()); } @@ -530,7 +585,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -542,36 +598,49 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.PrCurve prCurve_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.PrCurve, com.google.cloud.datalabeling.v1beta1.PrCurve.Builder, com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder> prCurveBuilder_; + com.google.cloud.datalabeling.v1beta1.PrCurve, + com.google.cloud.datalabeling.v1beta1.PrCurve.Builder, + com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder> + prCurveBuilder_; /** + * + * *
      * Precision-recall curve based on ground truth labels, predicted labels, and
      * scores for the predicted labels.
      * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; + * * @return Whether the prCurve field is set. */ public boolean hasPrCurve() { return prCurveBuilder_ != null || prCurve_ != null; } /** + * + * *
      * Precision-recall curve based on ground truth labels, predicted labels, and
      * scores for the predicted labels.
      * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; + * * @return The prCurve. */ public com.google.cloud.datalabeling.v1beta1.PrCurve getPrCurve() { if (prCurveBuilder_ == null) { - return prCurve_ == null ? com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance() : prCurve_; + return prCurve_ == null + ? com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance() + : prCurve_; } else { return prCurveBuilder_.getMessage(); } } /** + * + * *
      * Precision-recall curve based on ground truth labels, predicted labels, and
      * scores for the predicted labels.
@@ -593,6 +662,8 @@ public Builder setPrCurve(com.google.cloud.datalabeling.v1beta1.PrCurve value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Precision-recall curve based on ground truth labels, predicted labels, and
      * scores for the predicted labels.
@@ -612,6 +683,8 @@ public Builder setPrCurve(
       return this;
     }
     /**
+     *
+     *
      * 
      * Precision-recall curve based on ground truth labels, predicted labels, and
      * scores for the predicted labels.
@@ -623,7 +696,9 @@ public Builder mergePrCurve(com.google.cloud.datalabeling.v1beta1.PrCurve value)
       if (prCurveBuilder_ == null) {
         if (prCurve_ != null) {
           prCurve_ =
-            com.google.cloud.datalabeling.v1beta1.PrCurve.newBuilder(prCurve_).mergeFrom(value).buildPartial();
+              com.google.cloud.datalabeling.v1beta1.PrCurve.newBuilder(prCurve_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           prCurve_ = value;
         }
@@ -635,6 +710,8 @@ public Builder mergePrCurve(com.google.cloud.datalabeling.v1beta1.PrCurve value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Precision-recall curve based on ground truth labels, predicted labels, and
      * scores for the predicted labels.
@@ -654,6 +731,8 @@ public Builder clearPrCurve() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Precision-recall curve based on ground truth labels, predicted labels, and
      * scores for the predicted labels.
@@ -662,11 +741,13 @@ public Builder clearPrCurve() {
      * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1;
      */
     public com.google.cloud.datalabeling.v1beta1.PrCurve.Builder getPrCurveBuilder() {
-      
+
       onChanged();
       return getPrCurveFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Precision-recall curve based on ground truth labels, predicted labels, and
      * scores for the predicted labels.
@@ -678,11 +759,14 @@ public com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder getPrCurveOrBuilde
       if (prCurveBuilder_ != null) {
         return prCurveBuilder_.getMessageOrBuilder();
       } else {
-        return prCurve_ == null ?
-            com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance() : prCurve_;
+        return prCurve_ == null
+            ? com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance()
+            : prCurve_;
       }
     }
     /**
+     *
+     *
      * 
      * Precision-recall curve based on ground truth labels, predicted labels, and
      * scores for the predicted labels.
@@ -691,14 +775,17 @@ public com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder getPrCurveOrBuilde
      * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.PrCurve, com.google.cloud.datalabeling.v1beta1.PrCurve.Builder, com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder> 
+            com.google.cloud.datalabeling.v1beta1.PrCurve,
+            com.google.cloud.datalabeling.v1beta1.PrCurve.Builder,
+            com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder>
         getPrCurveFieldBuilder() {
       if (prCurveBuilder_ == null) {
-        prCurveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.PrCurve, com.google.cloud.datalabeling.v1beta1.PrCurve.Builder, com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder>(
-                getPrCurve(),
-                getParentForChildren(),
-                isClean());
+        prCurveBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.datalabeling.v1beta1.PrCurve,
+                com.google.cloud.datalabeling.v1beta1.PrCurve.Builder,
+                com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder>(
+                getPrCurve(), getParentForChildren(), isClean());
         prCurve_ = null;
       }
       return prCurveBuilder_;
@@ -706,34 +793,47 @@ public com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder getPrCurveOrBuilde
 
     private com.google.cloud.datalabeling.v1beta1.ConfusionMatrix confusionMatrix_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.ConfusionMatrix, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder, com.google.cloud.datalabeling.v1beta1.ConfusionMatrixOrBuilder> confusionMatrixBuilder_;
+            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix,
+            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder,
+            com.google.cloud.datalabeling.v1beta1.ConfusionMatrixOrBuilder>
+        confusionMatrixBuilder_;
     /**
+     *
+     *
      * 
      * Confusion matrix of predicted labels vs. ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; + * * @return Whether the confusionMatrix field is set. */ public boolean hasConfusionMatrix() { return confusionMatrixBuilder_ != null || confusionMatrix_ != null; } /** + * + * *
      * Confusion matrix of predicted labels vs. ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; + * * @return The confusionMatrix. */ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix getConfusionMatrix() { if (confusionMatrixBuilder_ == null) { - return confusionMatrix_ == null ? com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.getDefaultInstance() : confusionMatrix_; + return confusionMatrix_ == null + ? com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.getDefaultInstance() + : confusionMatrix_; } else { return confusionMatrixBuilder_.getMessage(); } } /** + * + * *
      * Confusion matrix of predicted labels vs. ground truth labels.
      * 
@@ -754,6 +854,8 @@ public Builder setConfusionMatrix(com.google.cloud.datalabeling.v1beta1.Confusio return this; } /** + * + * *
      * Confusion matrix of predicted labels vs. ground truth labels.
      * 
@@ -772,17 +874,22 @@ public Builder setConfusionMatrix( return this; } /** + * + * *
      * Confusion matrix of predicted labels vs. ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; */ - public Builder mergeConfusionMatrix(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix value) { + public Builder mergeConfusionMatrix( + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix value) { if (confusionMatrixBuilder_ == null) { if (confusionMatrix_ != null) { confusionMatrix_ = - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.newBuilder(confusionMatrix_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.newBuilder(confusionMatrix_) + .mergeFrom(value) + .buildPartial(); } else { confusionMatrix_ = value; } @@ -794,6 +901,8 @@ public Builder mergeConfusionMatrix(com.google.cloud.datalabeling.v1beta1.Confus return this; } /** + * + * *
      * Confusion matrix of predicted labels vs. ground truth labels.
      * 
@@ -812,33 +921,42 @@ public Builder clearConfusionMatrix() { return this; } /** + * + * *
      * Confusion matrix of predicted labels vs. ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; */ - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder getConfusionMatrixBuilder() { - + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder + getConfusionMatrixBuilder() { + onChanged(); return getConfusionMatrixFieldBuilder().getBuilder(); } /** + * + * *
      * Confusion matrix of predicted labels vs. ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; */ - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrixOrBuilder getConfusionMatrixOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrixOrBuilder + getConfusionMatrixOrBuilder() { if (confusionMatrixBuilder_ != null) { return confusionMatrixBuilder_.getMessageOrBuilder(); } else { - return confusionMatrix_ == null ? - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.getDefaultInstance() : confusionMatrix_; + return confusionMatrix_ == null + ? com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.getDefaultInstance() + : confusionMatrix_; } } /** + * + * *
      * Confusion matrix of predicted labels vs. ground truth labels.
      * 
@@ -846,21 +964,24 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrixOrBuilder getConfusi * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder, com.google.cloud.datalabeling.v1beta1.ConfusionMatrixOrBuilder> + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix, + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder, + com.google.cloud.datalabeling.v1beta1.ConfusionMatrixOrBuilder> getConfusionMatrixFieldBuilder() { if (confusionMatrixBuilder_ == null) { - confusionMatrixBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder, com.google.cloud.datalabeling.v1beta1.ConfusionMatrixOrBuilder>( - getConfusionMatrix(), - getParentForChildren(), - isClean()); + confusionMatrixBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix, + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder, + com.google.cloud.datalabeling.v1beta1.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); } @@ -870,12 +991,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ClassificationMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ClassificationMetrics) private static final com.google.cloud.datalabeling.v1beta1.ClassificationMetrics DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ClassificationMetrics(); } @@ -884,16 +1005,16 @@ public static com.google.cloud.datalabeling.v1beta1.ClassificationMetrics getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClassificationMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ClassificationMetrics(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ClassificationMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ClassificationMetrics(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -908,6 +1029,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ClassificationMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetricsOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetricsOrBuilder.java similarity index 74% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetricsOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetricsOrBuilder.java index abd631e6..d8663deb 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetricsOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ClassificationMetricsOrBuilder.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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; -public interface ClassificationMetricsOrBuilder extends +public interface ClassificationMetricsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ClassificationMetrics) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Precision-recall curve based on ground truth labels, predicted labels, and
    * scores for the predicted labels.
    * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; + * * @return Whether the prCurve field is set. */ boolean hasPrCurve(); /** + * + * *
    * Precision-recall curve based on ground truth labels, predicted labels, and
    * scores for the predicted labels.
    * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; + * * @return The prCurve. */ com.google.cloud.datalabeling.v1beta1.PrCurve getPrCurve(); /** + * + * *
    * Precision-recall curve based on ground truth labels, predicted labels, and
    * scores for the predicted labels.
@@ -38,24 +62,32 @@ public interface ClassificationMetricsOrBuilder extends
   com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder getPrCurveOrBuilder();
 
   /**
+   *
+   *
    * 
    * Confusion matrix of predicted labels vs. ground truth labels.
    * 
* * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; + * * @return Whether the confusionMatrix field is set. */ boolean hasConfusionMatrix(); /** + * + * *
    * Confusion matrix of predicted labels vs. ground truth labels.
    * 
* * .google.cloud.datalabeling.v1beta1.ConfusionMatrix confusion_matrix = 2; + * * @return The confusionMatrix. */ com.google.cloud.datalabeling.v1beta1.ConfusionMatrix getConfusionMatrix(); /** + * + * *
    * Confusion matrix of predicted labels vs. ground truth labels.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrix.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrix.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrix.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrix.java index 02068643..f14ddf2d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrix.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrix.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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Confusion matrix of the model running the classification. Only applicable
  * when the metrics entry aggregates multiple labels. Not applicable when the
@@ -12,31 +29,31 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.ConfusionMatrix}
  */
-public final class ConfusionMatrix extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ConfusionMatrix extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.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() {
     row_ = 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 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)
@@ -56,22 +73,27 @@ private ConfusionMatrix(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              row_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                row_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              row_.add(
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.parser(),
+                      extensionRegistry));
+              break;
             }
-            row_.add(
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.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) {
@@ -79,8 +101,7 @@ private ConfusionMatrix(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } 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)) {
         row_ = java.util.Collections.unmodifiableList(row_);
@@ -89,42 +110,54 @@ private ConfusionMatrix(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.class, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.class,
+            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder.class);
   }
 
-  public interface ConfusionMatrixEntryOrBuilder extends
+  public interface ConfusionMatrixEntryOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The annotation spec of a predicted label.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ boolean hasAnnotationSpec(); /** + * + * *
      * The annotation spec of a predicted label.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec(); /** + * + * *
      * The annotation spec of a predicted label.
      * 
@@ -134,12 +167,15 @@ public interface ConfusionMatrixEntryOrBuilder extends com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder(); /** + * + * *
      * Number of items predicted to have this label. (The ground truth label for
      * these items is the `Row.annotationSpec` of this entry's parent.)
      * 
* * int32 item_count = 2; + * * @return The itemCount. */ int getItemCount(); @@ -147,30 +183,29 @@ public interface ConfusionMatrixEntryOrBuilder extends /** * Protobuf type {@code google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry} */ - public static final class ConfusionMatrixEntry extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ConfusionMatrixEntry extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry) ConfusionMatrixEntryOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ConfusionMatrixEntry.newBuilder() to construct. private ConfusionMatrixEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ConfusionMatrixEntry() { - } + + private ConfusionMatrixEntry() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ConfusionMatrixEntry(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ConfusionMatrixEntry( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -189,31 +224,35 @@ private ConfusionMatrixEntry( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; - if (annotationSpec_ != null) { - subBuilder = annotationSpec_.toBuilder(); + case 10: + { + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; + if (annotationSpec_ != null) { + subBuilder = annotationSpec_.toBuilder(); + } + annotationSpec_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotationSpec_); + annotationSpec_ = subBuilder.buildPartial(); + } + + break; } - annotationSpec_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotationSpec_); - annotationSpec_ = subBuilder.buildPartial(); + case 16: + { + itemCount_ = input.readInt32(); + break; } - - break; - } - case 16: { - - itemCount_ = 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) { @@ -221,34 +260,40 @@ private ConfusionMatrixEntry( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.class, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder.class); + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.class, + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder + .class); } public static final int ANNOTATION_SPEC_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; /** + * + * *
      * The annotation spec of a predicted label.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ @java.lang.Override @@ -256,18 +301,25 @@ public boolean hasAnnotationSpec() { return annotationSpec_ != null; } /** + * + * *
      * The annotation spec of a predicted label.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { - return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } /** + * + * *
      * The annotation spec of a predicted label.
      * 
@@ -275,19 +327,23 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder + getAnnotationSpecOrBuilder() { return getAnnotationSpec(); } public static final int ITEM_COUNT_FIELD_NUMBER = 2; private int itemCount_; /** + * + * *
      * Number of items predicted to have this label. (The ground truth label for
      * these items is the `Row.annotationSpec` of this entry's parent.)
      * 
* * int32 item_count = 2; + * * @return The itemCount. */ @java.lang.Override @@ -296,6 +352,7 @@ public int getItemCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -307,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 (annotationSpec_ != null) { output.writeMessage(1, getAnnotationSpec()); } @@ -325,12 +381,10 @@ public int getSerializedSize() { size = 0; if (annotationSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAnnotationSpec()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnnotationSpec()); } if (itemCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, itemCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, itemCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -340,20 +394,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.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry)) { + if (!(obj + instanceof com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry other = (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry) obj; + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry other = + (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry) obj; if (hasAnnotationSpec() != other.hasAnnotationSpec()) return false; if (hasAnnotationSpec()) { - if (!getAnnotationSpec() - .equals(other.getAnnotationSpec())) return false; + if (!getAnnotationSpec().equals(other.getAnnotationSpec())) return false; } - if (getItemCount() - != other.getItemCount()) return false; + if (getItemCount() != other.getItemCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -376,88 +430,101 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry + 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.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry 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.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry + 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.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry 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.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry + 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.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry 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.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry + 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.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -469,38 +536,42 @@ protected Builder newBuilderForType( /** * Protobuf type {@code google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry) com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.class, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder.class); + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.class, + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder + .class); } - // Construct using com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.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 +587,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry build() { - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry result = buildPartial(); + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -536,8 +610,10 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntr } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry buildPartial() { - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry result = new com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry(this); + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry + buildPartial() { + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry result = + new com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry(this); if (annotationSpecBuilder_ == null) { result.annotationSpec_ = annotationSpec_; } else { @@ -552,46 +628,54 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntr public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry)other); + if (other + instanceof com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry) { + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry other) { - if (other == com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry other) { + if (other + == com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry + .getDefaultInstance()) return this; if (other.hasAnnotationSpec()) { mergeAnnotationSpec(other.getAnnotationSpec()); } @@ -613,11 +697,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry parsedMessage = null; + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -629,34 +716,47 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + annotationSpecBuilder_; /** + * + * *
        * The annotation spec of a predicted label.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ public boolean hasAnnotationSpec() { return annotationSpecBuilder_ != null || annotationSpec_ != null; } /** + * + * *
        * The annotation spec of a predicted label.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { if (annotationSpecBuilder_ == null) { - return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } else { return annotationSpecBuilder_.getMessage(); } } /** + * + * *
        * The annotation spec of a predicted label.
        * 
@@ -677,6 +777,8 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio return this; } /** + * + * *
        * The annotation spec of a predicted label.
        * 
@@ -695,17 +797,22 @@ public Builder setAnnotationSpec( return this; } /** + * + * *
        * The annotation spec of a predicted label.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.AnnotationSpec value) { + public Builder mergeAnnotationSpec( + com.google.cloud.datalabeling.v1beta1.AnnotationSpec value) { if (annotationSpecBuilder_ == null) { if (annotationSpec_ != null) { annotationSpec_ = - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_) + .mergeFrom(value) + .buildPartial(); } else { annotationSpec_ = value; } @@ -717,6 +824,8 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat return this; } /** + * + * *
        * The annotation spec of a predicted label.
        * 
@@ -735,33 +844,42 @@ public Builder clearAnnotationSpec() { return this; } /** + * + * *
        * The annotation spec of a predicted label.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotationSpecBuilder() { - + public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder + getAnnotationSpecBuilder() { + onChanged(); return getAnnotationSpecFieldBuilder().getBuilder(); } /** + * + * *
        * The annotation spec of a predicted label.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder + getAnnotationSpecOrBuilder() { if (annotationSpecBuilder_ != null) { return annotationSpecBuilder_.getMessageOrBuilder(); } else { - return annotationSpec_ == null ? - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } } /** + * + * *
        * The annotation spec of a predicted label.
        * 
@@ -769,27 +887,33 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotati * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> getAnnotationSpecFieldBuilder() { if (annotationSpecBuilder_ == null) { - annotationSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( - getAnnotationSpec(), - getParentForChildren(), - isClean()); + annotationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( + getAnnotationSpec(), getParentForChildren(), isClean()); annotationSpec_ = null; } return annotationSpecBuilder_; } - private int itemCount_ ; + private int itemCount_; /** + * + * *
        * Number of items predicted to have this label. (The ground truth label for
        * these items is the `Row.annotationSpec` of this entry's parent.)
        * 
* * int32 item_count = 2; + * * @return The itemCount. */ @java.lang.Override @@ -797,36 +921,43 @@ public int getItemCount() { return itemCount_; } /** + * + * *
        * Number of items predicted to have this label. (The ground truth label for
        * these items is the `Row.annotationSpec` of this entry's parent.)
        * 
* * int32 item_count = 2; + * * @param value The itemCount to set. * @return This builder for chaining. */ public Builder setItemCount(int value) { - + itemCount_ = value; onChanged(); return this; } /** + * + * *
        * Number of items predicted to have this label. (The ground truth label for
        * these items is the `Row.annotationSpec` of this entry's parent.)
        * 
* * int32 item_count = 2; + * * @return This builder for chaining. */ public Builder clearItemCount() { - + itemCount_ = 0; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -839,30 +970,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry) - private static final com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry(); + DEFAULT_INSTANCE = + new com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry(); } - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConfusionMatrixEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ConfusionMatrixEntry(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConfusionMatrixEntry parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConfusionMatrixEntry(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -874,35 +1008,44 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - public interface RowOrBuilder extends + public interface RowOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The annotation spec of the ground truth label for this row.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ boolean hasAnnotationSpec(); /** + * + * *
      * The annotation spec of the ground truth label for this row.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec(); /** + * + * *
      * The annotation spec of the ground truth label for this row.
      * 
@@ -912,55 +1055,80 @@ public interface RowOrBuilder extends com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder(); /** + * + * *
      * A list of the confusion matrix entries. One entry for each possible
      * predicted label.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ - java.util.List + java.util.List getEntriesList(); /** + * + * *
      * A list of the confusion matrix entries. One entry for each possible
      * predicted label.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry getEntries(int index); + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry getEntries( + int index); /** + * + * *
      * A list of the confusion matrix entries. One entry for each possible
      * predicted label.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ int getEntriesCount(); /** + * + * *
      * A list of the confusion matrix entries. One entry for each possible
      * predicted label.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder> getEntriesOrBuilderList(); /** + * + * *
      * A list of the confusion matrix entries. One entry for each possible
      * predicted label.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder getEntriesOrBuilder( - int index); + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder + getEntriesOrBuilder(int index); } /** + * + * *
    * A row in the confusion matrix. Each entry in this row has the same
    * ground truth label.
@@ -968,31 +1136,31 @@ com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuil
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.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.datalabeling.v1beta1.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() {
       entries_ = 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 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)
@@ -1012,35 +1180,46 @@ private Row(
             case 0:
               done = true;
               break;
-            case 10: {
-              com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null;
-              if (annotationSpec_ != null) {
-                subBuilder = annotationSpec_.toBuilder();
+            case 10:
+              {
+                com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null;
+                if (annotationSpec_ != null) {
+                  subBuilder = annotationSpec_.toBuilder();
+                }
+                annotationSpec_ =
+                    input.readMessage(
+                        com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(),
+                        extensionRegistry);
+                if (subBuilder != null) {
+                  subBuilder.mergeFrom(annotationSpec_);
+                  annotationSpec_ = subBuilder.buildPartial();
+                }
+
+                break;
               }
-              annotationSpec_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(annotationSpec_);
-                annotationSpec_ = subBuilder.buildPartial();
+            case 18:
+              {
+                if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                  entries_ =
+                      new java.util.ArrayList<
+                          com.google.cloud.datalabeling.v1beta1.ConfusionMatrix
+                              .ConfusionMatrixEntry>();
+                  mutable_bitField0_ |= 0x00000001;
+                }
+                entries_.add(
+                    input.readMessage(
+                        com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry
+                            .parser(),
+                        extensionRegistry));
+                break;
               }
-
-              break;
-            }
-            case 18: {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                entries_ = new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              entries_.add(
-                  input.readMessage(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.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) {
@@ -1048,8 +1227,7 @@ private Row(
       } catch (com.google.protobuf.UninitializedMessageException e) {
         throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } 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)) {
           entries_ = java.util.Collections.unmodifiableList(entries_);
@@ -1058,27 +1236,33 @@ private Row(
         makeExtensionsImmutable();
       }
     }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor;
+
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.class, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.class,
+              com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder.class);
     }
 
     public static final int ANNOTATION_SPEC_FIELD_NUMBER = 1;
     private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_;
     /**
+     *
+     *
      * 
      * The annotation spec of the ground truth label for this row.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ @java.lang.Override @@ -1086,18 +1270,25 @@ public boolean hasAnnotationSpec() { return annotationSpec_ != null; } /** + * + * *
      * The annotation spec of the ground truth label for this row.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { - return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } /** + * + * *
      * The annotation spec of the ground truth label for this row.
      * 
@@ -1105,76 +1296,105 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder + getAnnotationSpecOrBuilder() { return getAnnotationSpec(); } public static final int ENTRIES_FIELD_NUMBER = 2; - private java.util.List entries_; + private java.util.List< + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry> + entries_; /** + * + * *
      * A list of the confusion matrix entries. One entry for each possible
      * predicted label.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ @java.lang.Override - public java.util.List getEntriesList() { + public java.util.List< + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry> + getEntriesList() { return entries_; } /** + * + * *
      * A list of the confusion matrix entries. One entry for each possible
      * predicted label.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder> getEntriesOrBuilderList() { return entries_; } /** + * + * *
      * A list of the confusion matrix entries. One entry for each possible
      * predicted label.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ @java.lang.Override public int getEntriesCount() { return entries_.size(); } /** + * + * *
      * A list of the confusion matrix entries. One entry for each possible
      * predicted label.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry getEntries(int index) { + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry getEntries( + int index) { return entries_.get(index); } /** + * + * *
      * A list of the confusion matrix entries. One entry for each possible
      * predicted label.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder getEntriesOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder + getEntriesOrBuilder(int index) { return entries_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1186,8 +1406,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 (annotationSpec_ != null) { output.writeMessage(1, getAnnotationSpec()); } @@ -1204,12 +1423,10 @@ public int getSerializedSize() { size = 0; if (annotationSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAnnotationSpec()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnnotationSpec()); } for (int i = 0; i < entries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, entries_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, entries_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1219,20 +1436,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.datalabeling.v1beta1.ConfusionMatrix.Row)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row other = (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row) obj; + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row other = + (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row) obj; if (hasAnnotationSpec() != other.hasAnnotationSpec()) return false; if (hasAnnotationSpec()) { - if (!getAnnotationSpec() - .equals(other.getAnnotationSpec())) return false; + if (!getAnnotationSpec().equals(other.getAnnotationSpec())) return false; } - if (!getEntriesList() - .equals(other.getEntriesList())) return false; + if (!getEntriesList().equals(other.getEntriesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1258,87 +1474,94 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row 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.datalabeling.v1beta1.ConfusionMatrix.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.datalabeling.v1beta1.ConfusionMatrix.Row parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.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.datalabeling.v1beta1.ConfusionMatrix.Row parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.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.datalabeling.v1beta1.ConfusionMatrix.Row parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.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.datalabeling.v1beta1.ConfusionMatrix.Row parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.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.datalabeling.v1beta1.ConfusionMatrix.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.datalabeling.v1beta1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.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 @@ -1348,6 +1571,8 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A row in the confusion matrix. Each entry in this row has the same
      * ground truth label.
@@ -1355,21 +1580,24 @@ protected Builder newBuilderForType(
      *
      * Protobuf type {@code google.cloud.datalabeling.v1beta1.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.datalabeling.v1beta1.ConfusionMatrix.Row)
         com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor;
+      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+        return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
+            .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor;
       }
 
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
-        return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_fieldAccessorTable
+        return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
+            .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
-                com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.class, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder.class);
+                com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.class,
+                com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder.class);
       }
 
       // Construct using com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.newBuilder()
@@ -1377,17 +1605,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) {
           getEntriesFieldBuilder();
         }
       }
+
       @java.lang.Override
       public Builder clear() {
         super.clear();
@@ -1407,9 +1635,9 @@ public Builder clear() {
       }
 
       @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor;
+      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+        return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
+            .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor;
       }
 
       @java.lang.Override
@@ -1428,7 +1656,8 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row build() {
 
       @java.lang.Override
       public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row buildPartial() {
-        com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row result = new com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row(this);
+        com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row result =
+            new com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row(this);
         int from_bitField0_ = bitField0_;
         if (annotationSpecBuilder_ == null) {
           result.annotationSpec_ = annotationSpec_;
@@ -1452,38 +1681,41 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.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) {
+          int index,
+          java.lang.Object value) {
         return super.setRepeatedField(field, index, value);
       }
+
       @java.lang.Override
       public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
+          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
         return super.addRepeatedField(field, value);
       }
+
       @java.lang.Override
       public Builder mergeFrom(com.google.protobuf.Message other) {
         if (other instanceof com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row) {
-          return mergeFrom((com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row)other);
+          return mergeFrom((com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row) other);
         } else {
           super.mergeFrom(other);
           return this;
@@ -1491,7 +1723,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
       }
 
       public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row other) {
-        if (other == com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.getDefaultInstance()) return this;
+        if (other == com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.getDefaultInstance())
+          return this;
         if (other.hasAnnotationSpec()) {
           mergeAnnotationSpec(other.getAnnotationSpec());
         }
@@ -1513,9 +1746,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.R
               entriesBuilder_ = null;
               entries_ = other.entries_;
               bitField0_ = (bitField0_ & ~0x00000001);
-              entriesBuilder_ = 
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                   getEntriesFieldBuilder() : null;
+              entriesBuilder_ =
+                  com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                      ? getEntriesFieldBuilder()
+                      : null;
             } else {
               entriesBuilder_.addAllMessages(other.entries_);
             }
@@ -1540,7 +1774,8 @@ public Builder mergeFrom(
         try {
           parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row) e.getUnfinishedMessage();
+          parsedMessage =
+              (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row) e.getUnfinishedMessage();
           throw e.unwrapIOException();
         } finally {
           if (parsedMessage != null) {
@@ -1549,38 +1784,52 @@ public Builder mergeFrom(
         }
         return this;
       }
+
       private int bitField0_;
 
       private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_;
       private com.google.protobuf.SingleFieldBuilderV3<
-          com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecBuilder_;
+              com.google.cloud.datalabeling.v1beta1.AnnotationSpec,
+              com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder,
+              com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>
+          annotationSpecBuilder_;
       /**
+       *
+       *
        * 
        * The annotation spec of the ground truth label for this row.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ public boolean hasAnnotationSpec() { return annotationSpecBuilder_ != null || annotationSpec_ != null; } /** + * + * *
        * The annotation spec of the ground truth label for this row.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { if (annotationSpecBuilder_ == null) { - return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } else { return annotationSpecBuilder_.getMessage(); } } /** + * + * *
        * The annotation spec of the ground truth label for this row.
        * 
@@ -1601,6 +1850,8 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio return this; } /** + * + * *
        * The annotation spec of the ground truth label for this row.
        * 
@@ -1619,17 +1870,22 @@ public Builder setAnnotationSpec( return this; } /** + * + * *
        * The annotation spec of the ground truth label for this row.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.AnnotationSpec value) { + public Builder mergeAnnotationSpec( + com.google.cloud.datalabeling.v1beta1.AnnotationSpec value) { if (annotationSpecBuilder_ == null) { if (annotationSpec_ != null) { annotationSpec_ = - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_) + .mergeFrom(value) + .buildPartial(); } else { annotationSpec_ = value; } @@ -1641,6 +1897,8 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat return this; } /** + * + * *
        * The annotation spec of the ground truth label for this row.
        * 
@@ -1659,33 +1917,42 @@ public Builder clearAnnotationSpec() { return this; } /** + * + * *
        * The annotation spec of the ground truth label for this row.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotationSpecBuilder() { - + public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder + getAnnotationSpecBuilder() { + onChanged(); return getAnnotationSpecFieldBuilder().getBuilder(); } /** + * + * *
        * The annotation spec of the ground truth label for this row.
        * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder + getAnnotationSpecOrBuilder() { if (annotationSpecBuilder_ != null) { return annotationSpecBuilder_.getMessageOrBuilder(); } else { - return annotationSpec_ == null ? - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } } /** + * + * *
        * The annotation spec of the ground truth label for this row.
        * 
@@ -1693,40 +1960,57 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotati * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> getAnnotationSpecFieldBuilder() { if (annotationSpecBuilder_ == null) { - annotationSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( - getAnnotationSpec(), - getParentForChildren(), - isClean()); + annotationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( + getAnnotationSpec(), getParentForChildren(), isClean()); annotationSpec_ = null; } return annotationSpecBuilder_; } - private java.util.List entries_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry> + entries_ = java.util.Collections.emptyList(); + private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - entries_ = new java.util.ArrayList(entries_); + entries_ = + new java.util.ArrayList< + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry>( + entries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder> entriesBuilder_; + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry, + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder, + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder> + entriesBuilder_; /** + * + * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ - public java.util.List getEntriesList() { + public java.util.List< + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry> + getEntriesList() { if (entriesBuilder_ == null) { return java.util.Collections.unmodifiableList(entries_); } else { @@ -1734,12 +2018,16 @@ public java.util.List * A list of the confusion matrix entries. One entry for each possible * predicted label. *
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ public int getEntriesCount() { if (entriesBuilder_ == null) { @@ -1749,14 +2037,19 @@ public int getEntriesCount() { } } /** + * + * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry getEntries(int index) { + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry getEntries( + int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { @@ -1764,15 +2057,20 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntr } } /** + * + * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ public Builder setEntries( - int index, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry value) { + int index, + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1786,15 +2084,21 @@ public Builder setEntries( return this; } /** + * + * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ public Builder setEntries( - int index, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder builderForValue) { + int index, + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder + builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); @@ -1805,14 +2109,19 @@ public Builder setEntries( return this; } /** + * + * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ - public Builder addEntries(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry value) { + public Builder addEntries( + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1826,15 +2135,20 @@ public Builder addEntries(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix. return this; } /** + * + * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ public Builder addEntries( - int index, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry value) { + int index, + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1848,15 +2162,20 @@ public Builder addEntries( return this; } /** + * + * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ public Builder addEntries( - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder builderForValue) { + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder + builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(builderForValue.build()); @@ -1867,15 +2186,21 @@ public Builder addEntries( return this; } /** + * + * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ public Builder addEntries( - int index, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder builderForValue) { + int index, + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder + builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); @@ -1886,19 +2211,25 @@ public Builder addEntries( return this; } /** + * + * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ public Builder addAllEntries( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry> + values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, entries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); onChanged(); } else { entriesBuilder_.addAllMessages(values); @@ -1906,12 +2237,16 @@ public Builder addAllEntries( return this; } /** + * + * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ public Builder clearEntries() { if (entriesBuilder_ == null) { @@ -1924,12 +2259,16 @@ public Builder clearEntries() { return this; } /** + * + * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { @@ -1942,42 +2281,58 @@ public Builder removeEntries(int index) { return this; } /** + * + * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder getEntriesBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder + getEntriesBuilder(int index) { return getEntriesFieldBuilder().getBuilder(index); } /** + * + * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder getEntriesOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder + getEntriesOrBuilder(int index) { if (entriesBuilder_ == null) { - return entries_.get(index); } else { + return entries_.get(index); + } else { return entriesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ - public java.util.List - getEntriesOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix + .ConfusionMatrixEntryOrBuilder> + getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); } else { @@ -1985,56 +2340,81 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntr } } /** + * + * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder addEntriesBuilder() { - return getEntriesFieldBuilder().addBuilder( - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder + addEntriesBuilder() { + return getEntriesFieldBuilder() + .addBuilder( + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry + .getDefaultInstance()); } /** + * + * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ - public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder addEntriesBuilder( - int index) { - return getEntriesFieldBuilder().addBuilder( - index, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder + addEntriesBuilder(int index) { + return getEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry + .getDefaultInstance()); } /** + * + * *
        * A list of the confusion matrix entries. One entry for each possible
        * predicted label.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * + * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry entries = 2; + * */ - public java.util.List - getEntriesBuilderList() { + public java.util.List< + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder> + getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder> + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry, + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder, + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { - entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry.Builder, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntryOrBuilder>( - entries_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + entriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry, + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.ConfusionMatrixEntry + .Builder, + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix + .ConfusionMatrixEntryOrBuilder>( + entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); entries_ = null; } return entriesBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2047,12 +2427,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row) private static final com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row(); } @@ -2061,16 +2441,16 @@ public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row getDefau 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; @@ -2085,43 +2465,33 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int ROW_FIELD_NUMBER = 1; private java.util.List row_; - /** - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; - */ + /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */ @java.lang.Override public java.util.List getRowList() { return row_; } - /** - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; - */ + /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder> getRowOrBuilderList() { return row_; } - /** - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; - */ + /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */ @java.lang.Override public int getRowCount() { return row_.size(); } - /** - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; - */ + /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row getRow(int index) { return row_.get(index); } - /** - * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; - */ + /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder getRowOrBuilder( int index) { @@ -2129,6 +2499,7 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder getRow } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -2140,8 +2511,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 < row_.size(); i++) { output.writeMessage(1, row_.get(i)); } @@ -2155,8 +2525,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < row_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, row_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, row_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2166,15 +2535,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.datalabeling.v1beta1.ConfusionMatrix)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ConfusionMatrix other = (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix) obj; + com.google.cloud.datalabeling.v1beta1.ConfusionMatrix other = + (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix) obj; - if (!getRowList() - .equals(other.getRowList())) return false; + if (!getRowList().equals(other.getRowList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2196,96 +2565,104 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix 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.datalabeling.v1beta1.ConfusionMatrix parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.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.datalabeling.v1beta1.ConfusionMatrix parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.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 - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Confusion matrix of the model running the classification. Only applicable
    * when the metrics entry aggregates multiple labels. Not applicable when the
@@ -2294,21 +2671,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.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.datalabeling.v1beta1.ConfusionMatrix)
       com.google.cloud.datalabeling.v1beta1.ConfusionMatrixOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.class, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.class,
+              com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.newBuilder()
@@ -2316,17 +2695,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) {
         getRowFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -2340,9 +2719,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor;
     }
 
     @java.lang.Override
@@ -2361,7 +2740,8 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.ConfusionMatrix result = new com.google.cloud.datalabeling.v1beta1.ConfusionMatrix(this);
+      com.google.cloud.datalabeling.v1beta1.ConfusionMatrix result =
+          new com.google.cloud.datalabeling.v1beta1.ConfusionMatrix(this);
       int from_bitField0_ = bitField0_;
       if (rowBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -2380,38 +2760,39 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.ConfusionMatrix) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.ConfusionMatrix)other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.ConfusionMatrix) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -2419,7 +2800,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.getDefaultInstance()) return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.getDefaultInstance())
+        return this;
       if (rowBuilder_ == null) {
         if (!other.row_.isEmpty()) {
           if (row_.isEmpty()) {
@@ -2438,9 +2820,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix o
             rowBuilder_ = null;
             row_ = other.row_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            rowBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getRowFieldBuilder() : null;
+            rowBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getRowFieldBuilder()
+                    : null;
           } else {
             rowBuilder_.addAllMessages(other.row_);
           }
@@ -2465,7 +2848,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.datalabeling.v1beta1.ConfusionMatrix) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -2474,23 +2858,28 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List row_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureRowIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        row_ = new java.util.ArrayList(row_);
+        row_ =
+            new java.util.ArrayList(
+                row_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder> rowBuilder_;
+            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row,
+            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder,
+            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder>
+        rowBuilder_;
 
-    /**
-     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
-     */
+    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
     public java.util.List getRowList() {
       if (rowBuilder_ == null) {
         return java.util.Collections.unmodifiableList(row_);
@@ -2498,9 +2887,7 @@ public java.util.List
         return rowBuilder_.getMessageList();
       }
     }
-    /**
-     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
-     */
+    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
     public int getRowCount() {
       if (rowBuilder_ == null) {
         return row_.size();
@@ -2508,9 +2895,7 @@ public int getRowCount() {
         return rowBuilder_.getCount();
       }
     }
-    /**
-     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
-     */
+    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
     public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row getRow(int index) {
       if (rowBuilder_ == null) {
         return row_.get(index);
@@ -2518,9 +2903,7 @@ public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row getRow(int inde
         return rowBuilder_.getMessage(index);
       }
     }
-    /**
-     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
-     */
+    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
     public Builder setRow(
         int index, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row value) {
       if (rowBuilder_ == null) {
@@ -2535,11 +2918,10 @@ public Builder setRow(
       }
       return this;
     }
-    /**
-     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
-     */
+    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
     public Builder setRow(
-        int index, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder builderForValue) {
+        int index,
+        com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder builderForValue) {
       if (rowBuilder_ == null) {
         ensureRowIsMutable();
         row_.set(index, builderForValue.build());
@@ -2549,9 +2931,7 @@ public Builder setRow(
       }
       return this;
     }
-    /**
-     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
-     */
+    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
     public Builder addRow(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row value) {
       if (rowBuilder_ == null) {
         if (value == null) {
@@ -2565,9 +2945,7 @@ public Builder addRow(com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row
       }
       return this;
     }
-    /**
-     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
-     */
+    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
     public Builder addRow(
         int index, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row value) {
       if (rowBuilder_ == null) {
@@ -2582,9 +2960,7 @@ public Builder addRow(
       }
       return this;
     }
-    /**
-     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
-     */
+    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
     public Builder addRow(
         com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder builderForValue) {
       if (rowBuilder_ == null) {
@@ -2596,11 +2972,10 @@ public Builder addRow(
       }
       return this;
     }
-    /**
-     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
-     */
+    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
     public Builder addRow(
-        int index, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder builderForValue) {
+        int index,
+        com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder builderForValue) {
       if (rowBuilder_ == null) {
         ensureRowIsMutable();
         row_.add(index, builderForValue.build());
@@ -2610,24 +2985,20 @@ public Builder addRow(
       }
       return this;
     }
-    /**
-     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
-     */
+    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
     public Builder addAllRow(
-        java.lang.Iterable 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);
       }
       return this;
     }
-    /**
-     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
-     */
+    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
     public Builder clearRow() {
       if (rowBuilder_ == null) {
         row_ = java.util.Collections.emptyList();
@@ -2638,9 +3009,7 @@ public Builder clearRow() {
       }
       return this;
     }
-    /**
-     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
-     */
+    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
     public Builder removeRow(int index) {
       if (rowBuilder_ == null) {
         ensureRowIsMutable();
@@ -2651,73 +3020,69 @@ public Builder removeRow(int index) {
       }
       return this;
     }
-    /**
-     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
-     */
+    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
     public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder getRowBuilder(
         int index) {
       return getRowFieldBuilder().getBuilder(index);
     }
-    /**
-     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
-     */
+    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
     public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder getRowOrBuilder(
         int index) {
       if (rowBuilder_ == null) {
-        return row_.get(index);  } else {
+        return row_.get(index);
+      } else {
         return rowBuilder_.getMessageOrBuilder(index);
       }
     }
-    /**
-     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
-     */
-    public java.util.List 
-         getRowOrBuilderList() {
+    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
+    public java.util.List<
+            ? extends com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder>
+        getRowOrBuilderList() {
       if (rowBuilder_ != null) {
         return rowBuilder_.getMessageOrBuilderList();
       } else {
         return java.util.Collections.unmodifiableList(row_);
       }
     }
-    /**
-     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
-     */
+    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
     public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder addRowBuilder() {
-      return getRowFieldBuilder().addBuilder(
-          com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.getDefaultInstance());
+      return getRowFieldBuilder()
+          .addBuilder(
+              com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.getDefaultInstance());
     }
-    /**
-     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
-     */
+    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
     public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder addRowBuilder(
         int index) {
-      return getRowFieldBuilder().addBuilder(
-          index, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.getDefaultInstance());
-    }
-    /**
-     * repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1;
-     */
-    public java.util.List 
-         getRowBuilderList() {
+      return getRowFieldBuilder()
+          .addBuilder(
+              index,
+              com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.getDefaultInstance());
+    }
+    /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
+    public java.util.List
+        getRowBuilderList() {
       return getRowFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder> 
+            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row,
+            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder,
+            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder>
         getRowFieldBuilder() {
       if (rowBuilder_ == null) {
-        rowBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder, com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder>(
-                row_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        rowBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row,
+                com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row.Builder,
+                com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder>(
+                row_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         row_ = null;
       }
       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);
     }
 
@@ -2727,12 +3092,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ConfusionMatrix)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ConfusionMatrix)
   private static final com.google.cloud.datalabeling.v1beta1.ConfusionMatrix DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ConfusionMatrix();
   }
@@ -2741,16 +3106,16 @@ public static com.google.cloud.datalabeling.v1beta1.ConfusionMatrix getDefaultIn
     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;
@@ -2765,6 +3130,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datalabeling.v1beta1.ConfusionMatrix getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrixOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrixOrBuilder.java
new file mode 100644
index 00000000..04ee7017
--- /dev/null
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ConfusionMatrixOrBuilder.java
@@ -0,0 +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/datalabeling/v1beta1/evaluation.proto
+
+package com.google.cloud.datalabeling.v1beta1;
+
+public interface ConfusionMatrixOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ConfusionMatrix)
+    com.google.protobuf.MessageOrBuilder {
+
+  /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
+  java.util.List getRowList();
+  /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
+  com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row getRow(int index);
+  /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
+  int getRowCount();
+  /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
+  java.util.List
+      getRowOrBuilderList();
+  /** repeated .google.cloud.datalabeling.v1beta1.ConfusionMatrix.Row row = 1; */
+  com.google.cloud.datalabeling.v1beta1.ConfusionMatrix.RowOrBuilder getRowOrBuilder(int index);
+}
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequest.java
similarity index 61%
rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequest.java
rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequest.java
index a9d9252d..368469a7 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequest.java
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequest.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/datalabeling/v1beta1/data_labeling_service.proto
 
 package com.google.cloud.datalabeling.v1beta1;
 
 /**
+ *
+ *
  * 
  * Request message for CreateAnnotationSpecSet.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest} */ -public final class CreateAnnotationSpecSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateAnnotationSpecSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) CreateAnnotationSpecSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateAnnotationSpecSetRequest.newBuilder() to construct. - private CreateAnnotationSpecSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private CreateAnnotationSpecSetRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateAnnotationSpecSetRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateAnnotationSpecSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateAnnotationSpecSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +71,37 @@ private CreateAnnotationSpecSetRequest( 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.datalabeling.v1beta1.AnnotationSpecSet.Builder subBuilder = null; - if (annotationSpecSet_ != null) { - subBuilder = annotationSpecSet_.toBuilder(); + parent_ = s; + break; } - annotationSpecSet_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotationSpecSet_); - annotationSpecSet_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder subBuilder = null; + if (annotationSpecSet_ != null) { + subBuilder = annotationSpecSet_.toBuilder(); + } + annotationSpecSet_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotationSpecSet_); + annotationSpecSet_ = 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) { @@ -86,35 +109,42 @@ private CreateAnnotationSpecSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.class, com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.class, + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. AnnotationSpecSet resource parent, format:
    * projects/{project_id}
    * 
* - * 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 @@ -123,30 +153,32 @@ 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. AnnotationSpecSet resource parent, format:
    * projects/{project_id}
    * 
* - * 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 { @@ -157,13 +189,18 @@ public java.lang.String getParent() { public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotationSpecSet_; /** + * + * *
    * Required. Annotation spec set to create. Annotation specs must be included.
    * Only one annotation spec will be accepted for annotation specs with same
    * display_name.
    * 
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the annotationSpecSet field is set. */ @java.lang.Override @@ -171,34 +208,47 @@ public boolean hasAnnotationSpecSet() { return annotationSpecSet_ != null; } /** + * + * *
    * Required. Annotation spec set to create. Annotation specs must be included.
    * Only one annotation spec will be accepted for annotation specs with same
    * display_name.
    * 
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The annotationSpecSet. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpecSet() { - return annotationSpecSet_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance() : annotationSpecSet_; + return annotationSpecSet_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance() + : annotationSpecSet_; } /** + * + * *
    * Required. Annotation spec set to create. Annotation specs must be included.
    * Only one annotation spec will be accepted for annotation specs with same
    * display_name.
    * 
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder getAnnotationSpecSetOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder + getAnnotationSpecSetOrBuilder() { return getAnnotationSpecSet(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -210,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(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -231,8 +280,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (annotationSpecSet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAnnotationSpecSet()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAnnotationSpecSet()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -242,19 +290,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.datalabeling.v1beta1.CreateAnnotationSpecSetRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest other = (com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) obj; + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest other = + (com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasAnnotationSpecSet() != other.hasAnnotationSpecSet()) return false; if (hasAnnotationSpecSet()) { - if (!getAnnotationSpecSet() - .equals(other.getAnnotationSpecSet())) return false; + if (!getAnnotationSpecSet().equals(other.getAnnotationSpecSet())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -279,134 +326,145 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest 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.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest 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.datalabeling.v1beta1.CreateAnnotationSpecSetRequest + 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.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 CreateAnnotationSpecSet.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.class, com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.class, + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.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(); @@ -422,14 +480,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest + .getDefaultInstance(); } @java.lang.Override @@ -443,7 +503,8 @@ public com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest buil @java.lang.Override public com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest result = new com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest(this); + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest result = + new com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest(this); result.parent_ = parent_; if (annotationSpecSetBuilder_ == null) { result.annotationSpecSet_ = annotationSpecSet_; @@ -458,46 +519,51 @@ public com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest 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.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest)other); + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest other) { + if (other + == com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -524,7 +590,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -536,19 +604,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. AnnotationSpecSet resource parent, format:
      * projects/{project_id}
      * 
* - * 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; @@ -557,21 +629,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. AnnotationSpecSet resource parent, format:
      * projects/{project_id}
      * 
* - * 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 { @@ -579,57 +654,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. AnnotationSpecSet resource parent, format:
      * projects/{project_id}
      * 
* - * 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. AnnotationSpecSet resource parent, format:
      * projects/{project_id}
      * 
* - * 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. AnnotationSpecSet resource parent, format:
      * projects/{project_id}
      * 
* - * 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; @@ -637,47 +725,67 @@ public Builder setParentBytes( private com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotationSpecSet_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder> annotationSpecSetBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder> + annotationSpecSetBuilder_; /** + * + * *
      * Required. Annotation spec set to create. Annotation specs must be included.
      * Only one annotation spec will be accepted for annotation specs with same
      * display_name.
      * 
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the annotationSpecSet field is set. */ public boolean hasAnnotationSpecSet() { return annotationSpecSetBuilder_ != null || annotationSpecSet_ != null; } /** + * + * *
      * Required. Annotation spec set to create. Annotation specs must be included.
      * Only one annotation spec will be accepted for annotation specs with same
      * display_name.
      * 
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The annotationSpecSet. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpecSet() { if (annotationSpecSetBuilder_ == null) { - return annotationSpecSet_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance() : annotationSpecSet_; + return annotationSpecSet_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance() + : annotationSpecSet_; } else { return annotationSpecSetBuilder_.getMessage(); } } /** + * + * *
      * Required. Annotation spec set to create. Annotation specs must be included.
      * Only one annotation spec will be accepted for annotation specs with same
      * display_name.
      * 
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet value) { + public Builder setAnnotationSpecSet( + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet value) { if (annotationSpecSetBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -691,13 +799,17 @@ public Builder setAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.Annota return this; } /** + * + * *
      * Required. Annotation spec set to create. Annotation specs must be included.
      * Only one annotation spec will be accepted for annotation specs with same
      * display_name.
      * 
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAnnotationSpecSet( com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder builderForValue) { @@ -711,19 +823,26 @@ public Builder setAnnotationSpecSet( return this; } /** + * + * *
      * Required. Annotation spec set to create. Annotation specs must be included.
      * Only one annotation spec will be accepted for annotation specs with same
      * display_name.
      * 
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet value) { + public Builder mergeAnnotationSpecSet( + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet value) { if (annotationSpecSetBuilder_ == null) { if (annotationSpecSet_ != null) { annotationSpecSet_ = - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.newBuilder(annotationSpecSet_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.newBuilder(annotationSpecSet_) + .mergeFrom(value) + .buildPartial(); } else { annotationSpecSet_ = value; } @@ -735,13 +854,17 @@ public Builder mergeAnnotationSpecSet(com.google.cloud.datalabeling.v1beta1.Anno return this; } /** + * + * *
      * Required. Annotation spec set to create. Annotation specs must be included.
      * Only one annotation spec will be accepted for annotation specs with same
      * display_name.
      * 
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAnnotationSpecSet() { if (annotationSpecSetBuilder_ == null) { @@ -755,61 +878,79 @@ public Builder clearAnnotationSpecSet() { return this; } /** + * + * *
      * Required. Annotation spec set to create. Annotation specs must be included.
      * Only one annotation spec will be accepted for annotation specs with same
      * display_name.
      * 
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder getAnnotationSpecSetBuilder() { - + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder + getAnnotationSpecSetBuilder() { + onChanged(); return getAnnotationSpecSetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Annotation spec set to create. Annotation specs must be included.
      * Only one annotation spec will be accepted for annotation specs with same
      * display_name.
      * 
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder getAnnotationSpecSetOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder + getAnnotationSpecSetOrBuilder() { if (annotationSpecSetBuilder_ != null) { return annotationSpecSetBuilder_.getMessageOrBuilder(); } else { - return annotationSpecSet_ == null ? - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance() : annotationSpecSet_; + return annotationSpecSet_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance() + : annotationSpecSet_; } } /** + * + * *
      * Required. Annotation spec set to create. Annotation specs must be included.
      * Only one annotation spec will be accepted for annotation specs with same
      * display_name.
      * 
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder> getAnnotationSpecSetFieldBuilder() { if (annotationSpecSetBuilder_ == null) { - annotationSpecSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder>( - getAnnotationSpecSet(), - getParentForChildren(), - isClean()); + annotationSpecSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder>( + getAnnotationSpecSet(), getParentForChildren(), isClean()); annotationSpecSet_ = null; } return annotationSpecSetBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -819,30 +960,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) - private static final com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest(); } - public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateAnnotationSpecSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateAnnotationSpecSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAnnotationSpecSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateAnnotationSpecSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -854,9 +997,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequestOrBuilder.java similarity index 52% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequestOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequestOrBuilder.java index cc8e9ad2..a7ea72c5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequestOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateAnnotationSpecSetRequestOrBuilder.java @@ -1,64 +1,103 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface CreateAnnotationSpecSetRequestOrBuilder extends +public interface CreateAnnotationSpecSetRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. AnnotationSpecSet resource parent, format:
    * projects/{project_id}
    * 
* - * 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. AnnotationSpecSet resource parent, format:
    * projects/{project_id}
    * 
* - * 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. Annotation spec set to create. Annotation specs must be included.
    * Only one annotation spec will be accepted for annotation specs with same
    * display_name.
    * 
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the annotationSpecSet field is set. */ boolean hasAnnotationSpecSet(); /** + * + * *
    * Required. Annotation spec set to create. Annotation specs must be included.
    * Only one annotation spec will be accepted for annotation specs with same
    * display_name.
    * 
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The annotationSpecSet. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpecSet(); /** + * + * *
    * Required. Annotation spec set to create. Annotation specs must be included.
    * Only one annotation spec will be accepted for annotation specs with same
    * display_name.
    * 
* - * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder getAnnotationSpecSetOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequest.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequest.java index 4e43c873..066593a0 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for CreateDataset.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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,32 +70,36 @@ 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.datalabeling.v1beta1.Dataset.Builder subBuilder = null; - if (dataset_ != null) { - subBuilder = dataset_.toBuilder(); + parent_ = s; + break; } - dataset_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.Dataset.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dataset_); - dataset_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.datalabeling.v1beta1.Dataset.Builder subBuilder = null; + if (dataset_ != null) { + subBuilder = dataset_.toBuilder(); + } + dataset_ = + input.readMessage( + com.google.cloud.datalabeling.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) { @@ -86,35 +107,42 @@ private CreateDatasetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.class, com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.class, + com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Dataset resource parent, format:
    * projects/{project_id}
    * 
* - * 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 @@ -123,30 +151,32 @@ 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. Dataset resource parent, format:
    * projects/{project_id}
    * 
* - * 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 { @@ -157,11 +187,16 @@ public java.lang.String getParent() { public static final int DATASET_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.Dataset dataset_; /** + * + * *
    * Required. The dataset to be created.
    * 
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the dataset field is set. */ @java.lang.Override @@ -169,23 +204,34 @@ public boolean hasDataset() { return dataset_ != null; } /** + * + * *
    * Required. The dataset to be created.
    * 
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dataset. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.Dataset getDataset() { - return dataset_ == null ? com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance() : dataset_; + return dataset_ == null + ? com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance() + : dataset_; } /** + * + * *
    * Required. The dataset to be created.
    * 
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetOrBuilder() { @@ -193,6 +239,7 @@ public com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetOrBuilde } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,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(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -225,8 +271,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; @@ -236,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.datalabeling.v1beta1.CreateDatasetRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest other = (com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest) obj; + com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest other = + (com.google.cloud.datalabeling.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; @@ -273,117 +317,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.CreateDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.CreateDatasetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.CreateDatasetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.CreateDatasetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.CreateDatasetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.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 CreateDataset.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.CreateDatasetRequest) com.google.cloud.datalabeling.v1beta1.CreateDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.class, com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.class, + com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.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.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_descriptor; } @java.lang.Override @@ -437,7 +490,8 @@ public com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest result = new com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest(this); + com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest result = + new com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest(this); result.parent_ = parent_; if (datasetBuilder_ == null) { result.dataset_ = dataset_; @@ -452,38 +506,39 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.CreateDatasetRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest) other); } else { super.mergeFrom(other); return this; @@ -491,7 +546,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -518,7 +574,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -530,19 +587,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Dataset resource parent, format:
      * projects/{project_id}
      * 
* - * 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; @@ -551,21 +612,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Dataset resource parent, format:
      * projects/{project_id}
      * 
* - * 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 { @@ -573,57 +637,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Dataset resource parent, format:
      * projects/{project_id}
      * 
* - * 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. Dataset resource parent, format:
      * projects/{project_id}
      * 
* - * 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. Dataset resource parent, format:
      * projects/{project_id}
      * 
* - * 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; @@ -631,39 +708,58 @@ public Builder setParentBytes( private com.google.cloud.datalabeling.v1beta1.Dataset dataset_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Dataset, com.google.cloud.datalabeling.v1beta1.Dataset.Builder, com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder> datasetBuilder_; + com.google.cloud.datalabeling.v1beta1.Dataset, + com.google.cloud.datalabeling.v1beta1.Dataset.Builder, + com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder> + datasetBuilder_; /** + * + * *
      * Required. The dataset to be created.
      * 
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.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 be created.
      * 
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The dataset. */ public com.google.cloud.datalabeling.v1beta1.Dataset getDataset() { if (datasetBuilder_ == null) { - return dataset_ == null ? com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance() : dataset_; + return dataset_ == null + ? com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance() + : dataset_; } else { return datasetBuilder_.getMessage(); } } /** + * + * *
      * Required. The dataset to be created.
      * 
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDataset(com.google.cloud.datalabeling.v1beta1.Dataset value) { if (datasetBuilder_ == null) { @@ -679,11 +775,15 @@ public Builder setDataset(com.google.cloud.datalabeling.v1beta1.Dataset value) { return this; } /** + * + * *
      * Required. The dataset to be created.
      * 
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setDataset( com.google.cloud.datalabeling.v1beta1.Dataset.Builder builderForValue) { @@ -697,17 +797,23 @@ public Builder setDataset( return this; } /** + * + * *
      * Required. The dataset to be created.
      * 
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeDataset(com.google.cloud.datalabeling.v1beta1.Dataset value) { if (datasetBuilder_ == null) { if (dataset_ != null) { dataset_ = - com.google.cloud.datalabeling.v1beta1.Dataset.newBuilder(dataset_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.Dataset.newBuilder(dataset_) + .mergeFrom(value) + .buildPartial(); } else { dataset_ = value; } @@ -719,11 +825,15 @@ public Builder mergeDataset(com.google.cloud.datalabeling.v1beta1.Dataset value) return this; } /** + * + * *
      * Required. The dataset to be created.
      * 
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearDataset() { if (datasetBuilder_ == null) { @@ -737,55 +847,71 @@ public Builder clearDataset() { return this; } /** + * + * *
      * Required. The dataset to be created.
      * 
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.Dataset.Builder getDatasetBuilder() { - + onChanged(); return getDatasetFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The dataset to be created.
      * 
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetOrBuilder() { if (datasetBuilder_ != null) { return datasetBuilder_.getMessageOrBuilder(); } else { - return dataset_ == null ? - com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance() : dataset_; + return dataset_ == null + ? com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance() + : dataset_; } } /** + * + * *
      * Required. The dataset to be created.
      * 
* - * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Dataset, com.google.cloud.datalabeling.v1beta1.Dataset.Builder, com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder> + com.google.cloud.datalabeling.v1beta1.Dataset, + com.google.cloud.datalabeling.v1beta1.Dataset.Builder, + com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder> getDatasetFieldBuilder() { if (datasetBuilder_ == null) { - datasetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Dataset, com.google.cloud.datalabeling.v1beta1.Dataset.Builder, com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder>( - getDataset(), - getParentForChildren(), - isClean()); + datasetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.Dataset, + com.google.cloud.datalabeling.v1beta1.Dataset.Builder, + com.google.cloud.datalabeling.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); } @@ -795,12 +921,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.CreateDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.CreateDatasetRequest) private static final com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest(); } @@ -809,16 +935,16 @@ public static com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest getDefa 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; @@ -833,6 +959,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.CreateDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequestOrBuilder.java new file mode 100644 index 00000000..a3f7ab25 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateDatasetRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface CreateDatasetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.CreateDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Dataset resource parent, format:
+   * projects/{project_id}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Dataset resource parent, format:
+   * projects/{project_id}
+   * 
+ * + * + * 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 be created.
+   * 
+ * + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataset field is set. + */ + boolean hasDataset(); + /** + * + * + *
+   * Required. The dataset to be created.
+   * 
+ * + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataset. + */ + com.google.cloud.datalabeling.v1beta1.Dataset getDataset(); + /** + * + * + *
+   * Required. The dataset to be created.
+   * 
+ * + * + * .google.cloud.datalabeling.v1beta1.Dataset dataset = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetOrBuilder(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequest.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequest.java index ef30b648..f7c1495d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for CreateEvaluationJob.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest} */ -public final class CreateEvaluationJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateEvaluationJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) CreateEvaluationJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateEvaluationJobRequest.newBuilder() to construct. private CreateEvaluationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateEvaluationJobRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateEvaluationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateEvaluationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,37 @@ private CreateEvaluationJobRequest( 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.datalabeling.v1beta1.EvaluationJob.Builder subBuilder = null; - if (job_ != null) { - subBuilder = job_.toBuilder(); + parent_ = s; + break; } - job_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.EvaluationJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(job_); - job_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder subBuilder = null; + if (job_ != null) { + subBuilder = job_.toBuilder(); + } + job_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.EvaluationJob.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(job_); + job_ = 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) { @@ -86,35 +108,42 @@ private CreateEvaluationJobRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.class, + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Evaluation job resource parent. Format:
    * "projects/<var>{project_id}</var>"
    * 
* - * 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 @@ -123,30 +152,32 @@ 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. Evaluation job resource parent. Format:
    * "projects/<var>{project_id}</var>"
    * 
* - * 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 { @@ -157,11 +188,16 @@ public java.lang.String getParent() { public static final int JOB_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.EvaluationJob job_; /** + * + * *
    * Required. The evaluation job to create.
    * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the job field is set. */ @java.lang.Override @@ -169,23 +205,34 @@ public boolean hasJob() { return job_ != null; } /** + * + * *
    * Required. The evaluation job to create.
    * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The job. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EvaluationJob getJob() { - return job_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() : job_; + return job_ == null + ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() + : job_; } /** + * + * *
    * Required. The evaluation job to create.
    * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getJobOrBuilder() { @@ -193,6 +240,7 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getJobOrBuil } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,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(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -225,8 +272,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (job_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getJob()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getJob()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -236,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.datalabeling.v1beta1.CreateEvaluationJobRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest other = (com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) obj; + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest other = + (com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasJob() != other.hasJob()) return false; if (hasJob()) { - if (!getJob() - .equals(other.getJob())) return false; + if (!getJob().equals(other.getJob())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,117 +318,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest 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.datalabeling.v1beta1.CreateEvaluationJobRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 CreateEvaluationJob.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.class, + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.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,13 +470,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.getDefaultInstance(); } @@ -437,7 +492,8 @@ public com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest result = new com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest(this); + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest result = + new com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest(this); result.parent_ = parent_; if (jobBuilder_ == null) { result.job_ = job_; @@ -452,46 +508,50 @@ public com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest 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.datalabeling.v1beta1.CreateEvaluationJobRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest other) { + if (other + == com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -518,7 +578,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -530,19 +592,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Evaluation job resource parent. Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * 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; @@ -551,21 +617,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Evaluation job resource parent. Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * 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 { @@ -573,57 +642,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Evaluation job resource parent. Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * 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. Evaluation job resource parent. Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * 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. Evaluation job resource parent. Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * 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; @@ -631,39 +713,58 @@ public Builder setParentBytes( private com.google.cloud.datalabeling.v1beta1.EvaluationJob job_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJob, com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> jobBuilder_; + com.google.cloud.datalabeling.v1beta1.EvaluationJob, + com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, + com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> + jobBuilder_; /** + * + * *
      * Required. The evaluation job to create.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the job field is set. */ public boolean hasJob() { return jobBuilder_ != null || job_ != null; } /** + * + * *
      * Required. The evaluation job to create.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The job. */ public com.google.cloud.datalabeling.v1beta1.EvaluationJob getJob() { if (jobBuilder_ == null) { - return job_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() : job_; + return job_ == null + ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() + : job_; } else { return jobBuilder_.getMessage(); } } /** + * + * *
      * Required. The evaluation job to create.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setJob(com.google.cloud.datalabeling.v1beta1.EvaluationJob value) { if (jobBuilder_ == null) { @@ -679,11 +780,15 @@ public Builder setJob(com.google.cloud.datalabeling.v1beta1.EvaluationJob value) return this; } /** + * + * *
      * Required. The evaluation job to create.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setJob( com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder builderForValue) { @@ -697,17 +802,23 @@ public Builder setJob( return this; } /** + * + * *
      * Required. The evaluation job to create.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeJob(com.google.cloud.datalabeling.v1beta1.EvaluationJob value) { if (jobBuilder_ == null) { if (job_ != null) { job_ = - com.google.cloud.datalabeling.v1beta1.EvaluationJob.newBuilder(job_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.EvaluationJob.newBuilder(job_) + .mergeFrom(value) + .buildPartial(); } else { job_ = value; } @@ -719,11 +830,15 @@ public Builder mergeJob(com.google.cloud.datalabeling.v1beta1.EvaluationJob valu return this; } /** + * + * *
      * Required. The evaluation job to create.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearJob() { if (jobBuilder_ == null) { @@ -737,55 +852,71 @@ public Builder clearJob() { return this; } /** + * + * *
      * Required. The evaluation job to create.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder getJobBuilder() { - + onChanged(); return getJobFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The evaluation job to create.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getJobOrBuilder() { if (jobBuilder_ != null) { return jobBuilder_.getMessageOrBuilder(); } else { - return job_ == null ? - com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() : job_; + return job_ == null + ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() + : job_; } } /** + * + * *
      * Required. The evaluation job to create.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJob, com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> + com.google.cloud.datalabeling.v1beta1.EvaluationJob, + com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, + com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> getJobFieldBuilder() { if (jobBuilder_ == null) { - jobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJob, com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder>( - getJob(), - getParentForChildren(), - isClean()); + jobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.EvaluationJob, + com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, + com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder>( + getJob(), getParentForChildren(), isClean()); job_ = null; } return jobBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -795,30 +926,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) - private static final com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest(); } - public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateEvaluationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateEvaluationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateEvaluationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateEvaluationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -830,9 +963,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequestOrBuilder.java new file mode 100644 index 00000000..fdfe981c --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateEvaluationJobRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface CreateEvaluationJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.CreateEvaluationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Evaluation job resource parent. Format:
+   * "projects/<var>{project_id}</var>"
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Evaluation job resource parent. Format:
+   * "projects/<var>{project_id}</var>"
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The evaluation job to create.
+   * 
+ * + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the job field is set. + */ + boolean hasJob(); + /** + * + * + *
+   * Required. The evaluation job to create.
+   * 
+ * + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The job. + */ + com.google.cloud.datalabeling.v1beta1.EvaluationJob getJob(); + /** + * + * + *
+   * Required. The evaluation job to create.
+   * 
+ * + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob job = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getJobOrBuilder(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadata.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadata.java similarity index 74% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadata.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadata.java index c5d4fc5c..97e514fd 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadata.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadata.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Metadata of a CreateInstruction operation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.CreateInstructionMetadata} */ -public final class CreateInstructionMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateInstructionMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.CreateInstructionMetadata) CreateInstructionMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateInstructionMetadata.newBuilder() to construct. private CreateInstructionMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateInstructionMetadata() { instruction_ = ""; partialFailures_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private CreateInstructionMetadata() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateInstructionMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateInstructionMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,41 +72,45 @@ private CreateInstructionMetadata( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - instruction_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - partialFailures_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + instruction_ = s; + break; } - 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; - } - 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) { @@ -97,8 +118,7 @@ private CreateInstructionMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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_); @@ -107,28 +127,34 @@ private CreateInstructionMetadata( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.class, com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.class, + com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.Builder.class); } public static final int INSTRUCTION_FIELD_NUMBER = 1; private volatile java.lang.Object instruction_; /** + * + * *
    * The name of the created Instruction.
    * projects/{project_id}/instructions/{instruction_id}
    * 
* * string instruction = 1; + * * @return The instruction. */ @java.lang.Override @@ -137,30 +163,30 @@ public java.lang.String getInstruction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instruction_ = s; return s; } } /** + * + * *
    * The name of the created Instruction.
    * projects/{project_id}/instructions/{instruction_id}
    * 
* * string instruction = 1; + * * @return The bytes for instruction. */ @java.lang.Override - public com.google.protobuf.ByteString - getInstructionBytes() { + public com.google.protobuf.ByteString getInstructionBytes() { java.lang.Object ref = instruction_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instruction_ = b; return b; } else { @@ -171,6 +197,8 @@ public java.lang.String getInstruction() { public static final int PARTIAL_FAILURES_FIELD_NUMBER = 2; private java.util.List partialFailures_; /** + * + * *
    * Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -184,6 +212,8 @@ public java.util.List getPartialFailuresList() {
     return partialFailures_;
   }
   /**
+   *
+   *
    * 
    * Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -193,11 +223,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_;
   }
   /**
+   *
+   *
    * 
    * Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -211,6 +243,8 @@ public int getPartialFailuresCount() {
     return partialFailures_.size();
   }
   /**
+   *
+   *
    * 
    * Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -224,6 +258,8 @@ public com.google.rpc.Status getPartialFailures(int index) {
     return partialFailures_.get(index);
   }
   /**
+   *
+   *
    * 
    * Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -233,19 +269,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_;
   /**
+   *
+   *
    * 
    * Timestamp when create instruction request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -253,11 +291,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Timestamp when create instruction request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return The createTime. */ @java.lang.Override @@ -265,6 +306,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Timestamp when create instruction request was created.
    * 
@@ -277,6 +320,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,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(instruction_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instruction_); } @@ -312,12 +355,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instruction_); } 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()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -327,21 +368,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.datalabeling.v1beta1.CreateInstructionMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata other = (com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata) obj; + com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata other = + (com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata) obj; - if (!getInstruction() - .equals(other.getInstruction())) return false; - if (!getPartialFailuresList() - .equals(other.getPartialFailuresList())) return false; + if (!getInstruction().equals(other.getInstruction())) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -370,117 +409,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata 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.datalabeling.v1beta1.CreateInstructionMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 of a CreateInstruction operation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.CreateInstructionMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.CreateInstructionMetadata) com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.class, com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.class, + com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.newBuilder() @@ -488,17 +537,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(); @@ -520,13 +569,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.getDefaultInstance(); } @@ -541,7 +591,8 @@ public com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata result = new com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata(this); + com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata result = + new com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata(this); int from_bitField0_ = bitField0_; result.instruction_ = instruction_; if (partialFailuresBuilder_ == null) { @@ -566,46 +617,50 @@ public com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata 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.datalabeling.v1beta1.CreateInstructionMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata other) { - if (other == com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata other) { + if (other + == com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata.getDefaultInstance()) + return this; if (!other.getInstruction().isEmpty()) { instruction_ = other.instruction_; onChanged(); @@ -628,9 +683,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.CreateInstruction 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_); } @@ -658,7 +714,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -667,23 +725,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object instruction_ = ""; /** + * + * *
      * The name of the created Instruction.
      * projects/{project_id}/instructions/{instruction_id}
      * 
* * string instruction = 1; + * * @return The instruction. */ public java.lang.String getInstruction() { java.lang.Object ref = instruction_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instruction_ = s; return s; @@ -692,21 +753,22 @@ public java.lang.String getInstruction() { } } /** + * + * *
      * The name of the created Instruction.
      * projects/{project_id}/instructions/{instruction_id}
      * 
* * string instruction = 1; + * * @return The bytes for instruction. */ - public com.google.protobuf.ByteString - getInstructionBytes() { + public com.google.protobuf.ByteString getInstructionBytes() { java.lang.Object ref = instruction_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instruction_ = b; return b; } else { @@ -714,75 +776,86 @@ public java.lang.String getInstruction() { } } /** + * + * *
      * The name of the created Instruction.
      * projects/{project_id}/instructions/{instruction_id}
      * 
* * string instruction = 1; + * * @param value The instruction to set. * @return This builder for chaining. */ - public Builder setInstruction( - java.lang.String value) { + public Builder setInstruction(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instruction_ = value; onChanged(); return this; } /** + * + * *
      * The name of the created Instruction.
      * projects/{project_id}/instructions/{instruction_id}
      * 
* * string instruction = 1; + * * @return This builder for chaining. */ public Builder clearInstruction() { - + instruction_ = getDefaultInstance().getInstruction(); onChanged(); return this; } /** + * + * *
      * The name of the created Instruction.
      * projects/{project_id}/instructions/{instruction_id}
      * 
* * string instruction = 1; + * * @param value The bytes for instruction to set. * @return This builder for chaining. */ - public Builder setInstructionBytes( - com.google.protobuf.ByteString value) { + public Builder setInstructionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instruction_ = value; 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_; /** + * + * *
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -799,6 +872,8 @@ public java.util.List getPartialFailuresList() {
       }
     }
     /**
+     *
+     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -815,6 +890,8 @@ public int getPartialFailuresCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -831,6 +908,8 @@ public com.google.rpc.Status getPartialFailures(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -839,8 +918,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();
@@ -854,6 +932,8 @@ public Builder setPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -862,8 +942,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());
@@ -874,6 +953,8 @@ public Builder setPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -896,6 +977,8 @@ public Builder addPartialFailures(com.google.rpc.Status value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -904,8 +987,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();
@@ -919,6 +1001,8 @@ public Builder addPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -927,8 +1011,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());
@@ -939,6 +1022,8 @@ public Builder addPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -947,8 +1032,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());
@@ -959,6 +1043,8 @@ public Builder addPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -971,8 +1057,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);
@@ -980,6 +1065,8 @@ public Builder addAllPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -999,6 +1086,8 @@ public Builder clearPartialFailures() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1018,6 +1107,8 @@ public Builder removePartialFailures(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1026,11 +1117,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);
     }
     /**
+     *
+     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1039,14 +1131,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);
       }
     }
     /**
+     *
+     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1055,8 +1149,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 {
@@ -1064,6 +1158,8 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1073,10 +1169,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());
     }
     /**
+     *
+     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1085,12 +1183,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());
     }
     /**
+     *
+     *
      * 
      * Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1099,16 +1198,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(),
@@ -1120,34 +1222,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_;
     /**
+     *
+     *
      * 
      * Timestamp when create instruction request was created.
      * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Timestamp when create instruction request 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(); } } /** + * + * *
      * Timestamp when create instruction request was created.
      * 
@@ -1168,14 +1283,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Timestamp when create instruction request 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(); @@ -1186,6 +1302,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Timestamp when create instruction request was created.
      * 
@@ -1196,7 +1314,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; } @@ -1208,6 +1326,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Timestamp when create instruction request was created.
      * 
@@ -1226,6 +1346,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Timestamp when create instruction request was created.
      * 
@@ -1233,11 +1355,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 3; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Timestamp when create instruction request was created.
      * 
@@ -1248,11 +1372,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_; } } /** + * + * *
      * Timestamp when create instruction request was created.
      * 
@@ -1260,21 +1387,24 @@ 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_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1284,30 +1414,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.CreateInstructionMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.CreateInstructionMetadata) - private static final com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateInstructionMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateInstructionMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateInstructionMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateInstructionMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1319,9 +1451,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.CreateInstructionMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadataOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadataOrBuilder.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadataOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadataOrBuilder.java index e9491a44..c92a8d1b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadataOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface CreateInstructionMetadataOrBuilder extends +public interface CreateInstructionMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.CreateInstructionMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the created Instruction.
    * projects/{project_id}/instructions/{instruction_id}
    * 
* * string instruction = 1; + * * @return The instruction. */ java.lang.String getInstruction(); /** + * + * *
    * The name of the created Instruction.
    * projects/{project_id}/instructions/{instruction_id}
    * 
* * string instruction = 1; + * * @return The bytes for instruction. */ - com.google.protobuf.ByteString - getInstructionBytes(); + com.google.protobuf.ByteString getInstructionBytes(); /** + * + * *
    * Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -38,9 +61,10 @@ public interface CreateInstructionMetadataOrBuilder extends
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  java.util.List 
-      getPartialFailuresList();
+  java.util.List getPartialFailuresList();
   /**
+   *
+   *
    * 
    * Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -51,6 +75,8 @@ public interface CreateInstructionMetadataOrBuilder extends
    */
   com.google.rpc.Status getPartialFailures(int index);
   /**
+   *
+   *
    * 
    * Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -61,6 +87,8 @@ public interface CreateInstructionMetadataOrBuilder extends
    */
   int getPartialFailuresCount();
   /**
+   *
+   *
    * 
    * Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -69,9 +97,10 @@ public interface CreateInstructionMetadataOrBuilder extends
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  java.util.List 
-      getPartialFailuresOrBuilderList();
+  java.util.List getPartialFailuresOrBuilderList();
   /**
+   *
+   *
    * 
    * Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -80,28 +109,35 @@ public interface CreateInstructionMetadataOrBuilder extends
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
-      int index);
+  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Timestamp when create instruction request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Timestamp when create instruction request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Timestamp when create instruction request was created.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequest.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequest.java index c5a2ecd6..f008dd0a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for CreateInstruction.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.CreateInstructionRequest} */ -public final class CreateInstructionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateInstructionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.CreateInstructionRequest) CreateInstructionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateInstructionRequest.newBuilder() to construct. private CreateInstructionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateInstructionRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateInstructionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateInstructionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,37 @@ private CreateInstructionRequest( 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.datalabeling.v1beta1.Instruction.Builder subBuilder = null; - if (instruction_ != null) { - subBuilder = instruction_.toBuilder(); + parent_ = s; + break; } - instruction_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.Instruction.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(instruction_); - instruction_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.datalabeling.v1beta1.Instruction.Builder subBuilder = null; + if (instruction_ != null) { + subBuilder = instruction_.toBuilder(); + } + instruction_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.Instruction.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(instruction_); + instruction_ = 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) { @@ -86,35 +108,42 @@ private CreateInstructionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.class, com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.class, + com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Instruction resource parent, format:
    * projects/{project_id}
    * 
* - * 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 @@ -123,30 +152,32 @@ 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. Instruction resource parent, format:
    * projects/{project_id}
    * 
* - * 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 { @@ -157,11 +188,16 @@ public java.lang.String getParent() { public static final int INSTRUCTION_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.Instruction instruction_; /** + * + * *
    * Required. Instruction of how to perform the labeling task.
    * 
* - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instruction field is set. */ @java.lang.Override @@ -169,23 +205,34 @@ public boolean hasInstruction() { return instruction_ != null; } /** + * + * *
    * Required. Instruction of how to perform the labeling task.
    * 
* - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instruction. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.Instruction getInstruction() { - return instruction_ == null ? com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance() : instruction_; + return instruction_ == null + ? com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance() + : instruction_; } /** + * + * *
    * Required. Instruction of how to perform the labeling task.
    * 
* - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstructionOrBuilder() { @@ -193,6 +240,7 @@ public com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstruction } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,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(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -225,8 +272,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (instruction_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getInstruction()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInstruction()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -236,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.datalabeling.v1beta1.CreateInstructionRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest other = (com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest) obj; + com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest other = + (com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasInstruction() != other.hasInstruction()) return false; if (hasInstruction()) { - if (!getInstruction() - .equals(other.getInstruction())) return false; + if (!getInstruction().equals(other.getInstruction())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -273,117 +318,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest 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.datalabeling.v1beta1.CreateInstructionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 CreateInstruction.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.CreateInstructionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.CreateInstructionRequest) com.google.cloud.datalabeling.v1beta1.CreateInstructionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.class, com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.class, + com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.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,13 +470,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.getDefaultInstance(); } @@ -437,7 +492,8 @@ public com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest result = new com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest(this); + com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest result = + new com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest(this); result.parent_ = parent_; if (instructionBuilder_ == null) { result.instruction_ = instruction_; @@ -452,38 +508,39 @@ public com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest 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.datalabeling.v1beta1.CreateInstructionRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest) other); } else { super.mergeFrom(other); return this; @@ -491,7 +548,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -518,7 +577,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -530,19 +591,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Instruction resource parent, format:
      * projects/{project_id}
      * 
* - * 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; @@ -551,21 +616,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Instruction resource parent, format:
      * projects/{project_id}
      * 
* - * 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 { @@ -573,57 +641,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Instruction resource parent, format:
      * projects/{project_id}
      * 
* - * 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. Instruction resource parent, format:
      * projects/{project_id}
      * 
* - * 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. Instruction resource parent, format:
      * projects/{project_id}
      * 
* - * 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; @@ -631,39 +712,58 @@ public Builder setParentBytes( private com.google.cloud.datalabeling.v1beta1.Instruction instruction_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Instruction, com.google.cloud.datalabeling.v1beta1.Instruction.Builder, com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder> instructionBuilder_; + com.google.cloud.datalabeling.v1beta1.Instruction, + com.google.cloud.datalabeling.v1beta1.Instruction.Builder, + com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder> + instructionBuilder_; /** + * + * *
      * Required. Instruction of how to perform the labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the instruction field is set. */ public boolean hasInstruction() { return instructionBuilder_ != null || instruction_ != null; } /** + * + * *
      * Required. Instruction of how to perform the labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The instruction. */ public com.google.cloud.datalabeling.v1beta1.Instruction getInstruction() { if (instructionBuilder_ == null) { - return instruction_ == null ? com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance() : instruction_; + return instruction_ == null + ? com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance() + : instruction_; } else { return instructionBuilder_.getMessage(); } } /** + * + * *
      * Required. Instruction of how to perform the labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInstruction(com.google.cloud.datalabeling.v1beta1.Instruction value) { if (instructionBuilder_ == null) { @@ -679,11 +779,15 @@ public Builder setInstruction(com.google.cloud.datalabeling.v1beta1.Instruction return this; } /** + * + * *
      * Required. Instruction of how to perform the labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInstruction( com.google.cloud.datalabeling.v1beta1.Instruction.Builder builderForValue) { @@ -697,17 +801,23 @@ public Builder setInstruction( return this; } /** + * + * *
      * Required. Instruction of how to perform the labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInstruction(com.google.cloud.datalabeling.v1beta1.Instruction value) { if (instructionBuilder_ == null) { if (instruction_ != null) { instruction_ = - com.google.cloud.datalabeling.v1beta1.Instruction.newBuilder(instruction_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.Instruction.newBuilder(instruction_) + .mergeFrom(value) + .buildPartial(); } else { instruction_ = value; } @@ -719,11 +829,15 @@ public Builder mergeInstruction(com.google.cloud.datalabeling.v1beta1.Instructio return this; } /** + * + * *
      * Required. Instruction of how to perform the labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInstruction() { if (instructionBuilder_ == null) { @@ -737,55 +851,71 @@ public Builder clearInstruction() { return this; } /** + * + * *
      * Required. Instruction of how to perform the labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.Instruction.Builder getInstructionBuilder() { - + onChanged(); return getInstructionFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Instruction of how to perform the labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstructionOrBuilder() { if (instructionBuilder_ != null) { return instructionBuilder_.getMessageOrBuilder(); } else { - return instruction_ == null ? - com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance() : instruction_; + return instruction_ == null + ? com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance() + : instruction_; } } /** + * + * *
      * Required. Instruction of how to perform the labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Instruction, com.google.cloud.datalabeling.v1beta1.Instruction.Builder, com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder> + com.google.cloud.datalabeling.v1beta1.Instruction, + com.google.cloud.datalabeling.v1beta1.Instruction.Builder, + com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder> getInstructionFieldBuilder() { if (instructionBuilder_ == null) { - instructionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Instruction, com.google.cloud.datalabeling.v1beta1.Instruction.Builder, com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder>( - getInstruction(), - getParentForChildren(), - isClean()); + instructionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.Instruction, + com.google.cloud.datalabeling.v1beta1.Instruction.Builder, + com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder>( + getInstruction(), getParentForChildren(), isClean()); instruction_ = null; } return instructionBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -795,30 +925,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.CreateInstructionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.CreateInstructionRequest) - private static final com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest(); } - public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateInstructionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateInstructionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateInstructionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateInstructionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -830,9 +962,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.CreateInstructionRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequestOrBuilder.java new file mode 100644 index 00000000..5292f185 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CreateInstructionRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface CreateInstructionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.CreateInstructionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Instruction resource parent, format:
+   * projects/{project_id}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Instruction resource parent, format:
+   * projects/{project_id}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Instruction of how to perform the labeling task.
+   * 
+ * + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the instruction field is set. + */ + boolean hasInstruction(); + /** + * + * + *
+   * Required. Instruction of how to perform the labeling task.
+   * 
+ * + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The instruction. + */ + com.google.cloud.datalabeling.v1beta1.Instruction getInstruction(); + /** + * + * + *
+   * Required. Instruction of how to perform the labeling task.
+   * 
+ * + * + * .google.cloud.datalabeling.v1beta1.Instruction instruction = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstructionOrBuilder(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstruction.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstruction.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstruction.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstruction.java index 7ac0a30f..cc7fb5e6 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstruction.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstruction.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/datalabeling/v1beta1/instruction.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Deprecated: this instruction format is not supported any more.
  * Instruction from a CSV file.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.CsvInstruction}
  */
-public final class CsvInstruction extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class CsvInstruction extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.CsvInstruction)
     CsvInstructionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use CsvInstruction.newBuilder() to construct.
   private CsvInstruction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private CsvInstruction() {
     gcsFileUri_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new CsvInstruction();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private CsvInstruction(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,19 +71,20 @@ private CsvInstruction(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            gcsFileUri_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              gcsFileUri_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -74,34 +92,39 @@ private CsvInstruction(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.CsvInstruction.class, com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.CsvInstruction.class,
+            com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder.class);
   }
 
   public static final int GCS_FILE_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object gcsFileUri_;
   /**
+   *
+   *
    * 
    * CSV file for the instruction. Only gcs path is allowed.
    * 
* * string gcs_file_uri = 1; + * * @return The gcsFileUri. */ @java.lang.Override @@ -110,29 +133,29 @@ public java.lang.String getGcsFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsFileUri_ = s; return s; } } /** + * + * *
    * CSV file for the instruction. Only gcs path is allowed.
    * 
* * string gcs_file_uri = 1; + * * @return The bytes for gcsFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcsFileUriBytes() { + public com.google.protobuf.ByteString getGcsFileUriBytes() { java.lang.Object ref = gcsFileUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsFileUri_ = b; return b; } else { @@ -141,6 +164,7 @@ public java.lang.String getGcsFileUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -152,8 +176,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(gcsFileUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcsFileUri_); } @@ -177,15 +200,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.datalabeling.v1beta1.CsvInstruction)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.CsvInstruction other = (com.google.cloud.datalabeling.v1beta1.CsvInstruction) obj; + com.google.cloud.datalabeling.v1beta1.CsvInstruction other = + (com.google.cloud.datalabeling.v1beta1.CsvInstruction) obj; - if (!getGcsFileUri() - .equals(other.getGcsFileUri())) return false; + if (!getGcsFileUri().equals(other.getGcsFileUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -205,96 +228,103 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.CsvInstruction 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.datalabeling.v1beta1.CsvInstruction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.CsvInstruction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.CsvInstruction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Deprecated: this instruction format is not supported any more.
    * Instruction from a CSV file.
@@ -302,21 +332,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.CsvInstruction}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.CsvInstruction)
       com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.CsvInstruction.class, com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.CsvInstruction.class,
+              com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.CsvInstruction.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.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor;
     }
 
     @java.lang.Override
@@ -364,7 +395,8 @@ public com.google.cloud.datalabeling.v1beta1.CsvInstruction build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.CsvInstruction buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.CsvInstruction result = new com.google.cloud.datalabeling.v1beta1.CsvInstruction(this);
+      com.google.cloud.datalabeling.v1beta1.CsvInstruction result =
+          new com.google.cloud.datalabeling.v1beta1.CsvInstruction(this);
       result.gcsFileUri_ = gcsFileUri_;
       onBuilt();
       return result;
@@ -374,38 +406,39 @@ public com.google.cloud.datalabeling.v1beta1.CsvInstruction buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.CsvInstruction) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.CsvInstruction)other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.CsvInstruction) 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.datalabeling.v1beta1.CsvInstruction other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.CsvInstruction.getDefaultInstance()) return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.CsvInstruction.getDefaultInstance())
+        return this;
       if (!other.getGcsFileUri().isEmpty()) {
         gcsFileUri_ = other.gcsFileUri_;
         onChanged();
@@ -437,7 +471,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.datalabeling.v1beta1.CsvInstruction) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.datalabeling.v1beta1.CsvInstruction) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -449,18 +484,20 @@ public Builder mergeFrom(
 
     private java.lang.Object gcsFileUri_ = "";
     /**
+     *
+     *
      * 
      * CSV file for the instruction. Only gcs path is allowed.
      * 
* * string gcs_file_uri = 1; + * * @return The gcsFileUri. */ public java.lang.String getGcsFileUri() { java.lang.Object ref = gcsFileUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsFileUri_ = s; return s; @@ -469,20 +506,21 @@ public java.lang.String getGcsFileUri() { } } /** + * + * *
      * CSV file for the instruction. Only gcs path is allowed.
      * 
* * string gcs_file_uri = 1; + * * @return The bytes for gcsFileUri. */ - public com.google.protobuf.ByteString - getGcsFileUriBytes() { + public com.google.protobuf.ByteString getGcsFileUriBytes() { java.lang.Object ref = gcsFileUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsFileUri_ = b; return b; } else { @@ -490,61 +528,68 @@ public java.lang.String getGcsFileUri() { } } /** + * + * *
      * CSV file for the instruction. Only gcs path is allowed.
      * 
* * string gcs_file_uri = 1; + * * @param value The gcsFileUri to set. * @return This builder for chaining. */ - public Builder setGcsFileUri( - java.lang.String value) { + public Builder setGcsFileUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcsFileUri_ = value; onChanged(); return this; } /** + * + * *
      * CSV file for the instruction. Only gcs path is allowed.
      * 
* * string gcs_file_uri = 1; + * * @return This builder for chaining. */ public Builder clearGcsFileUri() { - + gcsFileUri_ = getDefaultInstance().getGcsFileUri(); onChanged(); return this; } /** + * + * *
      * CSV file for the instruction. Only gcs path is allowed.
      * 
* * string gcs_file_uri = 1; + * * @param value The bytes for gcsFileUri to set. * @return This builder for chaining. */ - public Builder setGcsFileUriBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsFileUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsFileUri_ = 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); } @@ -554,12 +599,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.CsvInstruction) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.CsvInstruction) private static final com.google.cloud.datalabeling.v1beta1.CsvInstruction DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.CsvInstruction(); } @@ -568,16 +613,16 @@ public static com.google.cloud.datalabeling.v1beta1.CsvInstruction getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CsvInstruction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CsvInstruction(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CsvInstruction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CsvInstruction(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -592,6 +637,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.CsvInstruction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstructionOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstructionOrBuilder.java new file mode 100644 index 00000000..670e7737 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/CsvInstructionOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/instruction.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface CsvInstructionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.CsvInstruction) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * CSV file for the instruction. Only gcs path is allowed.
+   * 
+ * + * string gcs_file_uri = 1; + * + * @return The gcsFileUri. + */ + java.lang.String getGcsFileUri(); + /** + * + * + *
+   * CSV file for the instruction. Only gcs path is allowed.
+   * 
+ * + * string gcs_file_uri = 1; + * + * @return The bytes for gcsFileUri. + */ + com.google.protobuf.ByteString getGcsFileUriBytes(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItem.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItem.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItem.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItem.java index f74549cb..58fb6db8 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItem.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItem.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * DataItem is a piece of data, without annotation. For example, an image.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.DataItem} */ -public final class DataItem extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DataItem extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.DataItem) DataItemOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DataItem.newBuilder() to construct. private DataItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DataItem() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DataItem(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DataItem( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,61 +70,74 @@ private DataItem( 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.datalabeling.v1beta1.ImagePayload.Builder subBuilder = null; - if (payloadCase_ == 2) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_).toBuilder(); - } - payload_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.ImagePayload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_); - payload_ = subBuilder.buildPartial(); - } - payloadCase_ = 2; - break; - } - case 26: { - com.google.cloud.datalabeling.v1beta1.TextPayload.Builder subBuilder = null; - if (payloadCase_ == 3) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.TextPayload) payload_).toBuilder(); + name_ = s; + break; } - payload_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.TextPayload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextPayload) payload_); - payload_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder subBuilder = null; + if (payloadCase_ == 2) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_).toBuilder(); + } + payload_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.ImagePayload.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_); + payload_ = subBuilder.buildPartial(); + } + payloadCase_ = 2; + break; } - payloadCase_ = 3; - break; - } - case 34: { - com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder subBuilder = null; - if (payloadCase_ == 4) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_).toBuilder(); + case 26: + { + com.google.cloud.datalabeling.v1beta1.TextPayload.Builder subBuilder = null; + if (payloadCase_ == 3) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.TextPayload) payload_).toBuilder(); + } + payload_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.TextPayload.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextPayload) payload_); + payload_ = subBuilder.buildPartial(); + } + payloadCase_ = 3; + break; } - payload_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.VideoPayload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_); - payload_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder subBuilder = null; + if (payloadCase_ == 4) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_).toBuilder(); + } + payload_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.VideoPayload.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_); + payload_ = subBuilder.buildPartial(); + } + payloadCase_ = 4; + break; } - payloadCase_ = 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) { @@ -115,36 +145,41 @@ private DataItem( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DataItem_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DataItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DataItem.class, com.google.cloud.datalabeling.v1beta1.DataItem.Builder.class); + com.google.cloud.datalabeling.v1beta1.DataItem.class, + com.google.cloud.datalabeling.v1beta1.DataItem.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_PAYLOAD(2), TEXT_PAYLOAD(3), VIDEO_PAYLOAD(4), PAYLOAD_NOT_SET(0); private final int value; + private PayloadCase(int value) { this.value = value; } @@ -160,31 +195,38 @@ public static PayloadCase valueOf(int value) { public static PayloadCase forNumber(int value) { switch (value) { - case 2: return IMAGE_PAYLOAD; - case 3: return TEXT_PAYLOAD; - case 4: return VIDEO_PAYLOAD; - case 0: return PAYLOAD_NOT_SET; - default: return null; + case 2: + return IMAGE_PAYLOAD; + case 3: + return TEXT_PAYLOAD; + case 4: + return VIDEO_PAYLOAD; + 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_PAYLOAD_FIELD_NUMBER = 2; /** + * + * *
    * The image payload, a container of the image bytes/uri.
    * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; + * * @return Whether the imagePayload field is set. */ @java.lang.Override @@ -192,21 +234,26 @@ public boolean hasImagePayload() { return payloadCase_ == 2; } /** + * + * *
    * The image payload, a container of the image bytes/uri.
    * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; + * * @return The imagePayload. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImagePayload getImagePayload() { if (payloadCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_; } return com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance(); } /** + * + * *
    * The image payload, a container of the image bytes/uri.
    * 
@@ -216,18 +263,21 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayload getImagePayload() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder getImagePayloadOrBuilder() { if (payloadCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_; } return com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance(); } public static final int TEXT_PAYLOAD_FIELD_NUMBER = 3; /** + * + * *
    * The text payload, a container of text content.
    * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3; + * * @return Whether the textPayload field is set. */ @java.lang.Override @@ -235,21 +285,26 @@ public boolean hasTextPayload() { return payloadCase_ == 3; } /** + * + * *
    * The text payload, a container of text content.
    * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3; + * * @return The textPayload. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextPayload getTextPayload() { if (payloadCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_; } return com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance(); } /** + * + * *
    * The text payload, a container of text content.
    * 
@@ -259,18 +314,21 @@ public com.google.cloud.datalabeling.v1beta1.TextPayload getTextPayload() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder getTextPayloadOrBuilder() { if (payloadCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_; } return com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance(); } public static final int VIDEO_PAYLOAD_FIELD_NUMBER = 4; /** + * + * *
    * The video payload, a container of the video uri.
    * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4; + * * @return Whether the videoPayload field is set. */ @java.lang.Override @@ -278,21 +336,26 @@ public boolean hasVideoPayload() { return payloadCase_ == 4; } /** + * + * *
    * The video payload, a container of the video uri.
    * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4; + * * @return The videoPayload. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.VideoPayload getVideoPayload() { if (payloadCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_; } return com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance(); } /** + * + * *
    * The video payload, a container of the video uri.
    * 
@@ -302,7 +365,7 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayload getVideoPayload() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPayloadOrBuilder() { if (payloadCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_; } return com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance(); } @@ -310,12 +373,15 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPaylo public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. Name of the data item, in format of:
    * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -324,30 +390,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. Name of the data item, in format of:
    * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_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 { @@ -356,6 +422,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -367,8 +434,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_); } @@ -394,16 +460,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (payloadCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_); } if (payloadCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_); } if (payloadCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -413,28 +482,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.datalabeling.v1beta1.DataItem)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.DataItem other = (com.google.cloud.datalabeling.v1beta1.DataItem) obj; + com.google.cloud.datalabeling.v1beta1.DataItem other = + (com.google.cloud.datalabeling.v1beta1.DataItem) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!getPayloadCase().equals(other.getPayloadCase())) return false; switch (payloadCase_) { case 2: - if (!getImagePayload() - .equals(other.getImagePayload())) return false; + if (!getImagePayload().equals(other.getImagePayload())) return false; break; case 3: - if (!getTextPayload() - .equals(other.getTextPayload())) return false; + if (!getTextPayload().equals(other.getTextPayload())) return false; break; case 4: - if (!getVideoPayload() - .equals(other.getVideoPayload())) return false; + if (!getVideoPayload().equals(other.getVideoPayload())) return false; break; case 0: default: @@ -473,118 +539,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.DataItem parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datalabeling.v1beta1.DataItem parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.DataItem parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.DataItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.DataItem parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.DataItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.DataItem parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.DataItem 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.datalabeling.v1beta1.DataItem parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.DataItem parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.DataItem parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.DataItem parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.DataItem parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.DataItem parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.DataItem prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * DataItem is a piece of data, without annotation. For example, an image.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.DataItem} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.DataItem) com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DataItem_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DataItem_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DataItem.class, com.google.cloud.datalabeling.v1beta1.DataItem.Builder.class); + com.google.cloud.datalabeling.v1beta1.DataItem.class, + com.google.cloud.datalabeling.v1beta1.DataItem.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.DataItem.newBuilder() @@ -592,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(); @@ -613,9 +687,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor; } @java.lang.Override @@ -634,7 +708,8 @@ public com.google.cloud.datalabeling.v1beta1.DataItem build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.DataItem buildPartial() { - com.google.cloud.datalabeling.v1beta1.DataItem result = new com.google.cloud.datalabeling.v1beta1.DataItem(this); + com.google.cloud.datalabeling.v1beta1.DataItem result = + new com.google.cloud.datalabeling.v1beta1.DataItem(this); if (payloadCase_ == 2) { if (imagePayloadBuilder_ == null) { result.payload_ = payload_; @@ -666,38 +741,39 @@ public com.google.cloud.datalabeling.v1beta1.DataItem buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.DataItem) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.DataItem)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.DataItem) other); } else { super.mergeFrom(other); return this; @@ -711,21 +787,25 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.DataItem other) { onChanged(); } switch (other.getPayloadCase()) { - case IMAGE_PAYLOAD: { - mergeImagePayload(other.getImagePayload()); - break; - } - case TEXT_PAYLOAD: { - mergeTextPayload(other.getTextPayload()); - break; - } - case VIDEO_PAYLOAD: { - mergeVideoPayload(other.getVideoPayload()); - break; - } - case PAYLOAD_NOT_SET: { - break; - } + case IMAGE_PAYLOAD: + { + mergeImagePayload(other.getImagePayload()); + break; + } + case TEXT_PAYLOAD: + { + mergeTextPayload(other.getTextPayload()); + break; + } + case VIDEO_PAYLOAD: + { + mergeVideoPayload(other.getVideoPayload()); + break; + } + case PAYLOAD_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -755,12 +835,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() { @@ -770,15 +850,20 @@ public Builder clearPayload() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImagePayload, com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder, com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder> imagePayloadBuilder_; + com.google.cloud.datalabeling.v1beta1.ImagePayload, + com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder, + com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder> + imagePayloadBuilder_; /** + * + * *
      * The image payload, a container of the image bytes/uri.
      * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; + * * @return Whether the imagePayload field is set. */ @java.lang.Override @@ -786,11 +871,14 @@ public boolean hasImagePayload() { return payloadCase_ == 2; } /** + * + * *
      * The image payload, a container of the image bytes/uri.
      * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; + * * @return The imagePayload. */ @java.lang.Override @@ -808,6 +896,8 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayload getImagePayload() { } } /** + * + * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -828,6 +918,8 @@ public Builder setImagePayload(com.google.cloud.datalabeling.v1beta1.ImagePayloa return this; } /** + * + * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -846,6 +938,8 @@ public Builder setImagePayload( return this; } /** + * + * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -854,10 +948,14 @@ public Builder setImagePayload( */ public Builder mergeImagePayload(com.google.cloud.datalabeling.v1beta1.ImagePayload value) { if (imagePayloadBuilder_ == null) { - if (payloadCase_ == 2 && - payload_ != com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance()) { - payload_ = com.google.cloud.datalabeling.v1beta1.ImagePayload.newBuilder((com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_) - .mergeFrom(value).buildPartial(); + if (payloadCase_ == 2 + && payload_ + != com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance()) { + payload_ = + com.google.cloud.datalabeling.v1beta1.ImagePayload.newBuilder( + (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_) + .mergeFrom(value) + .buildPartial(); } else { payload_ = value; } @@ -873,6 +971,8 @@ public Builder mergeImagePayload(com.google.cloud.datalabeling.v1beta1.ImagePayl return this; } /** + * + * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -896,6 +996,8 @@ public Builder clearImagePayload() { return this; } /** + * + * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -906,6 +1008,8 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder getImagePayloa return getImagePayloadFieldBuilder().getBuilder(); } /** + * + * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -924,6 +1028,8 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder getImagePaylo } } /** + * + * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -931,32 +1037,44 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder getImagePaylo * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImagePayload, com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder, com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder> + com.google.cloud.datalabeling.v1beta1.ImagePayload, + com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder, + com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder> getImagePayloadFieldBuilder() { if (imagePayloadBuilder_ == null) { if (!(payloadCase_ == 2)) { payload_ = com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance(); } - imagePayloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImagePayload, com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder, com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder>( + imagePayloadBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ImagePayload, + com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder, + com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder>( (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 2; - onChanged();; + onChanged(); + ; return imagePayloadBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextPayload, com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder> textPayloadBuilder_; + com.google.cloud.datalabeling.v1beta1.TextPayload, + com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, + com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder> + textPayloadBuilder_; /** + * + * *
      * The text payload, a container of text content.
      * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3; + * * @return Whether the textPayload field is set. */ @java.lang.Override @@ -964,11 +1082,14 @@ public boolean hasTextPayload() { return payloadCase_ == 3; } /** + * + * *
      * The text payload, a container of text content.
      * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3; + * * @return The textPayload. */ @java.lang.Override @@ -986,6 +1107,8 @@ public com.google.cloud.datalabeling.v1beta1.TextPayload getTextPayload() { } } /** + * + * *
      * The text payload, a container of text content.
      * 
@@ -1006,6 +1129,8 @@ public Builder setTextPayload(com.google.cloud.datalabeling.v1beta1.TextPayload return this; } /** + * + * *
      * The text payload, a container of text content.
      * 
@@ -1024,6 +1149,8 @@ public Builder setTextPayload( return this; } /** + * + * *
      * The text payload, a container of text content.
      * 
@@ -1032,10 +1159,13 @@ public Builder setTextPayload( */ public Builder mergeTextPayload(com.google.cloud.datalabeling.v1beta1.TextPayload value) { if (textPayloadBuilder_ == null) { - if (payloadCase_ == 3 && - payload_ != com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance()) { - payload_ = com.google.cloud.datalabeling.v1beta1.TextPayload.newBuilder((com.google.cloud.datalabeling.v1beta1.TextPayload) payload_) - .mergeFrom(value).buildPartial(); + if (payloadCase_ == 3 + && payload_ != com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance()) { + payload_ = + com.google.cloud.datalabeling.v1beta1.TextPayload.newBuilder( + (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_) + .mergeFrom(value) + .buildPartial(); } else { payload_ = value; } @@ -1051,6 +1181,8 @@ public Builder mergeTextPayload(com.google.cloud.datalabeling.v1beta1.TextPayloa return this; } /** + * + * *
      * The text payload, a container of text content.
      * 
@@ -1074,6 +1206,8 @@ public Builder clearTextPayload() { return this; } /** + * + * *
      * The text payload, a container of text content.
      * 
@@ -1084,6 +1218,8 @@ public com.google.cloud.datalabeling.v1beta1.TextPayload.Builder getTextPayloadB return getTextPayloadFieldBuilder().getBuilder(); } /** + * + * *
      * The text payload, a container of text content.
      * 
@@ -1102,6 +1238,8 @@ public com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder getTextPayload } } /** + * + * *
      * The text payload, a container of text content.
      * 
@@ -1109,32 +1247,44 @@ public com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder getTextPayload * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextPayload, com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder> + com.google.cloud.datalabeling.v1beta1.TextPayload, + com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, + com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder> getTextPayloadFieldBuilder() { if (textPayloadBuilder_ == null) { if (!(payloadCase_ == 3)) { payload_ = com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance(); } - textPayloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextPayload, com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder>( + textPayloadBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TextPayload, + com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, + com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder>( (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 3; - onChanged();; + onChanged(); + ; return textPayloadBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoPayload, com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder> videoPayloadBuilder_; + com.google.cloud.datalabeling.v1beta1.VideoPayload, + com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, + com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder> + videoPayloadBuilder_; /** + * + * *
      * The video payload, a container of the video uri.
      * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4; + * * @return Whether the videoPayload field is set. */ @java.lang.Override @@ -1142,11 +1292,14 @@ public boolean hasVideoPayload() { return payloadCase_ == 4; } /** + * + * *
      * The video payload, a container of the video uri.
      * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4; + * * @return The videoPayload. */ @java.lang.Override @@ -1164,6 +1317,8 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayload getVideoPayload() { } } /** + * + * *
      * The video payload, a container of the video uri.
      * 
@@ -1184,6 +1339,8 @@ public Builder setVideoPayload(com.google.cloud.datalabeling.v1beta1.VideoPayloa return this; } /** + * + * *
      * The video payload, a container of the video uri.
      * 
@@ -1202,6 +1359,8 @@ public Builder setVideoPayload( return this; } /** + * + * *
      * The video payload, a container of the video uri.
      * 
@@ -1210,10 +1369,14 @@ public Builder setVideoPayload( */ public Builder mergeVideoPayload(com.google.cloud.datalabeling.v1beta1.VideoPayload value) { if (videoPayloadBuilder_ == null) { - if (payloadCase_ == 4 && - payload_ != com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance()) { - payload_ = com.google.cloud.datalabeling.v1beta1.VideoPayload.newBuilder((com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_) - .mergeFrom(value).buildPartial(); + if (payloadCase_ == 4 + && payload_ + != com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance()) { + payload_ = + com.google.cloud.datalabeling.v1beta1.VideoPayload.newBuilder( + (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_) + .mergeFrom(value) + .buildPartial(); } else { payload_ = value; } @@ -1229,6 +1392,8 @@ public Builder mergeVideoPayload(com.google.cloud.datalabeling.v1beta1.VideoPayl return this; } /** + * + * *
      * The video payload, a container of the video uri.
      * 
@@ -1252,6 +1417,8 @@ public Builder clearVideoPayload() { return this; } /** + * + * *
      * The video payload, a container of the video uri.
      * 
@@ -1262,6 +1429,8 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder getVideoPayloa return getVideoPayloadFieldBuilder().getBuilder(); } /** + * + * *
      * The video payload, a container of the video uri.
      * 
@@ -1280,6 +1449,8 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPaylo } } /** + * + * *
      * The video payload, a container of the video uri.
      * 
@@ -1287,39 +1458,47 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPaylo * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoPayload, com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder> + com.google.cloud.datalabeling.v1beta1.VideoPayload, + com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, + com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder> getVideoPayloadFieldBuilder() { if (videoPayloadBuilder_ == null) { if (!(payloadCase_ == 4)) { payload_ = com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance(); } - videoPayloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoPayload, com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder>( + videoPayloadBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.VideoPayload, + com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, + com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder>( (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 4; - onChanged();; + onChanged(); + ; return videoPayloadBuilder_; } private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Name of the data item, in format of:
      * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_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; @@ -1328,21 +1507,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Name of the data item, in format of:
      * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_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 { @@ -1350,64 +1530,71 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Name of the data item, in format of:
      * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_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. Name of the data item, in format of:
      * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Name of the data item, in format of:
      * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_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; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1417,12 +1604,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.DataItem) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.DataItem) private static final com.google.cloud.datalabeling.v1beta1.DataItem DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.DataItem(); } @@ -1431,16 +1618,16 @@ public static com.google.cloud.datalabeling.v1beta1.DataItem getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DataItem(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataItem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DataItem(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1455,6 +1642,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.DataItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemName.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemName.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemOrBuilder.java similarity index 79% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemOrBuilder.java index 9813687f..23eb0cf1 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataItemOrBuilder.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; -public interface DataItemOrBuilder extends +public interface DataItemOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.DataItem) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The image payload, a container of the image bytes/uri.
    * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; + * * @return Whether the imagePayload field is set. */ boolean hasImagePayload(); /** + * + * *
    * The image payload, a container of the image bytes/uri.
    * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; + * * @return The imagePayload. */ com.google.cloud.datalabeling.v1beta1.ImagePayload getImagePayload(); /** + * + * *
    * The image payload, a container of the image bytes/uri.
    * 
@@ -35,24 +59,32 @@ public interface DataItemOrBuilder extends com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder getImagePayloadOrBuilder(); /** + * + * *
    * The text payload, a container of text content.
    * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3; + * * @return Whether the textPayload field is set. */ boolean hasTextPayload(); /** + * + * *
    * The text payload, a container of text content.
    * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 3; + * * @return The textPayload. */ com.google.cloud.datalabeling.v1beta1.TextPayload getTextPayload(); /** + * + * *
    * The text payload, a container of text content.
    * 
@@ -62,24 +94,32 @@ public interface DataItemOrBuilder extends com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder getTextPayloadOrBuilder(); /** + * + * *
    * The video payload, a container of the video uri.
    * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4; + * * @return Whether the videoPayload field is set. */ boolean hasVideoPayload(); /** + * + * *
    * The video payload, a container of the video uri.
    * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 4; + * * @return The videoPayload. */ com.google.cloud.datalabeling.v1beta1.VideoPayload getVideoPayload(); /** + * + * *
    * The video payload, a container of the video uri.
    * 
@@ -89,26 +129,31 @@ public interface DataItemOrBuilder extends com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPayloadOrBuilder(); /** + * + * *
    * Output only. Name of the data item, in format of:
    * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Name of the data item, in format of:
    * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); public com.google.cloud.datalabeling.v1beta1.DataItem.PayloadCase getPayloadCase(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceOuterClass.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceOuterClass.java new file mode 100644 index 00000000..81835a36 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataLabelingServiceOuterClass.java @@ -0,0 +1,1027 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public final class DataLabelingServiceOuterClass { + private DataLabelingServiceOuterClass() {} + + 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_datalabeling_v1beta1_CreateDatasetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_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/datalabeling/v1beta1/data" + + "_labeling_service.proto\022!google.cloud.da" + + "talabeling.v1beta1\032\034google/api/annotatio" + + "ns.proto\032\027google/api/client.proto\032\037googl" + + "e/api/field_behavior.proto\032\031google/api/r" + + "esource.proto\032;google/cloud/datalabeling" + + "/v1beta1/annotation_spec_set.proto\032/goog" + + "le/cloud/datalabeling/v1beta1/dataset.pr" + + "oto\0322google/cloud/datalabeling/v1beta1/e" + + "valuation.proto\0326google/cloud/datalabeli" + + "ng/v1beta1/evaluation_job.proto\032?google/" + + "cloud/datalabeling/v1beta1/human_annotat" + + "ion_config.proto\0323google/cloud/datalabel" + + "ing/v1beta1/instruction.proto\032#google/lo" + + "ngrunning/operations.proto\032\033google/proto" + + "buf/empty.proto\032 google/protobuf/field_m" + + "ask.proto\"\235\001\n\024CreateDatasetRequest\022C\n\006pa" + + "rent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager" + + ".googleapis.com/Project\022@\n\007dataset\030\002 \001(\013" + + "2*.google.cloud.datalabeling.v1beta1.Dat" + + "asetB\003\340A\002\"N\n\021GetDatasetRequest\0229\n\004name\030\001" + + " \001(\tB+\340A\002\372A%\n#datalabeling.googleapis.co" + + "m/Dataset\"\240\001\n\023ListDatasetsRequest\022C\n\006par" + + "ent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager." + + "googleapis.com/Project\022\023\n\006filter\030\002 \001(\tB\003" + + "\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_toke" + + "n\030\004 \001(\tB\003\340A\001\"m\n\024ListDatasetsResponse\022<\n\010" + + "datasets\030\001 \003(\0132*.google.cloud.datalabeli" + + "ng.v1beta1.Dataset\022\027\n\017next_page_token\030\002 " + + "\001(\t\"Q\n\024DeleteDatasetRequest\0229\n\004name\030\001 \001(" + + "\tB+\340A\002\372A%\n#datalabeling.googleapis.com/D" + + "ataset\"\265\001\n\021ImportDataRequest\0229\n\004name\030\001 \001" + + "(\tB+\340A\002\372A%\n#datalabeling.googleapis.com/" + + "Dataset\022I\n\014input_config\030\002 \001(\0132..google.c" + + "loud.datalabeling.v1beta1.InputConfigB\003\340" + + "A\002\022\032\n\022user_email_address\030\003 \001(\t\"\235\002\n\021Expor" + + "tDataRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#data" + + "labeling.googleapis.com/Dataset\022O\n\021annot" + + "ated_dataset\030\002 \001(\tB4\340A\002\372A.\n,datalabeling" + + ".googleapis.com/AnnotatedDataset\022\023\n\006filt" + + "er\030\003 \001(\tB\003\340A\001\022K\n\routput_config\030\004 \001(\0132/.g" + + "oogle.cloud.datalabeling.v1beta1.OutputC" + + "onfigB\003\340A\002\022\032\n\022user_email_address\030\005 \001(\t\"P" + + "\n\022GetDataItemRequest\022:\n\004name\030\001 \001(\tB,\340A\002\372" + + "A&\n$datalabeling.googleapis.com/DataItem" + + "\"\231\001\n\024ListDataItemsRequest\022;\n\006parent\030\001 \001(" + + "\tB+\340A\002\372A%\n#datalabeling.googleapis.com/D" + + "ataset\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size" + + "\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\"q\n\025" + + "ListDataItemsResponse\022?\n\ndata_items\030\001 \003(" + + "\0132+.google.cloud.datalabeling.v1beta1.Da" + + "taItem\022\027\n\017next_page_token\030\002 \001(\t\"`\n\032GetAn" + + "notatedDatasetRequest\022B\n\004name\030\001 \001(\tB4\340A\002" + + "\372A.\n,datalabeling.googleapis.com/Annotat" + + "edDataset\"\241\001\n\034ListAnnotatedDatasetsReque" + + "st\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#datalabeling" + + ".googleapis.com/Dataset\022\023\n\006filter\030\002 \001(\tB" + + "\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_tok" + + "en\030\004 \001(\tB\003\340A\001\"\211\001\n\035ListAnnotatedDatasetsR" + + "esponse\022O\n\022annotated_datasets\030\001 \003(\01323.go" + + "ogle.cloud.datalabeling.v1beta1.Annotate" + + "dDataset\022\027\n\017next_page_token\030\002 \001(\t\"c\n\035Del" + + "eteAnnotatedDatasetRequest\022B\n\004name\030\001 \001(\t" + + "B4\340A\002\372A.\n,datalabeling.googleapis.com/An" + + "notatedDataset\"\204\006\n\021LabelImageRequest\022c\n\033" + + "image_classification_config\030\004 \001(\0132<.goog" + + "le.cloud.datalabeling.v1beta1.ImageClass" + + "ificationConfigH\000\022U\n\024bounding_poly_confi" + + "g\030\005 \001(\01325.google.cloud.datalabeling.v1be" + + "ta1.BoundingPolyConfigH\000\022L\n\017polyline_con" + + "fig\030\006 \001(\01321.google.cloud.datalabeling.v1" + + "beta1.PolylineConfigH\000\022T\n\023segmentation_c" + + "onfig\030\007 \001(\01325.google.cloud.datalabeling." + + "v1beta1.SegmentationConfigH\000\022;\n\006parent\030\001" + + " \001(\tB+\340A\002\372A%\n#datalabeling.googleapis.co" + + "m/Dataset\022S\n\014basic_config\030\002 \001(\01328.google" + + ".cloud.datalabeling.v1beta1.HumanAnnotat" + + "ionConfigB\003\340A\002\022R\n\007feature\030\003 \001(\0162<.google" + + ".cloud.datalabeling.v1beta1.LabelImageRe" + + "quest.FeatureB\003\340A\002\"\226\001\n\007Feature\022\027\n\023FEATUR" + + "E_UNSPECIFIED\020\000\022\022\n\016CLASSIFICATION\020\001\022\020\n\014B" + + "OUNDING_BOX\020\002\022\031\n\025ORIENTED_BOUNDING_BOX\020\006" + + "\022\021\n\rBOUNDING_POLY\020\003\022\014\n\010POLYLINE\020\004\022\020\n\014SEG" + + "MENTATION\020\005B\020\n\016request_config\"\336\005\n\021LabelV" + + "ideoRequest\022c\n\033video_classification_conf" + + "ig\030\004 \001(\0132<.google.cloud.datalabeling.v1b" + + "eta1.VideoClassificationConfigH\000\022[\n\027obje" + + "ct_detection_config\030\005 \001(\01328.google.cloud" + + ".datalabeling.v1beta1.ObjectDetectionCon" + + "figH\000\022Y\n\026object_tracking_config\030\006 \001(\01327." + + "google.cloud.datalabeling.v1beta1.Object" + + "TrackingConfigH\000\022F\n\014event_config\030\007 \001(\0132." + + ".google.cloud.datalabeling.v1beta1.Event" + + "ConfigH\000\022;\n\006parent\030\001 \001(\tB+\340A\002\372A%\n#datala" + + "beling.googleapis.com/Dataset\022S\n\014basic_c" + + "onfig\030\002 \001(\01328.google.cloud.datalabeling." + + "v1beta1.HumanAnnotationConfigB\003\340A\002\022R\n\007fe" + + "ature\030\003 \001(\0162<.google.cloud.datalabeling." + + "v1beta1.LabelVideoRequest.FeatureB\003\340A\002\"l" + + "\n\007Feature\022\027\n\023FEATURE_UNSPECIFIED\020\000\022\022\n\016CL" + + "ASSIFICATION\020\001\022\024\n\020OBJECT_DETECTION\020\002\022\023\n\017" + + "OBJECT_TRACKING\020\003\022\t\n\005EVENT\020\004B\020\n\016request_" + + "config\"\255\004\n\020LabelTextRequest\022a\n\032text_clas" + + "sification_config\030\004 \001(\0132;.google.cloud.d" + + "atalabeling.v1beta1.TextClassificationCo" + + "nfigH\000\022f\n\035text_entity_extraction_config\030" + + "\005 \001(\0132=.google.cloud.datalabeling.v1beta" + + "1.TextEntityExtractionConfigH\000\022;\n\006parent" + + "\030\001 \001(\tB+\340A\002\372A%\n#datalabeling.googleapis." + + "com/Dataset\022S\n\014basic_config\030\002 \001(\01328.goog" + + "le.cloud.datalabeling.v1beta1.HumanAnnot" + + "ationConfigB\003\340A\002\022Q\n\007feature\030\006 \001(\0162;.goog" + + "le.cloud.datalabeling.v1beta1.LabelTextR" + + "equest.FeatureB\003\340A\002\"W\n\007Feature\022\027\n\023FEATUR" + + "E_UNSPECIFIED\020\000\022\027\n\023TEXT_CLASSIFICATION\020\001" + + "\022\032\n\026TEXT_ENTITY_EXTRACTION\020\002B\020\n\016request_" + + "config\"c\n\021GetExampleRequest\0229\n\004name\030\001 \001(" + + "\tB+\340A\002\372A%\n#datalabeling.googleapis.com/E" + + "xample\022\023\n\006filter\030\002 \001(\tB\003\340A\001\"\241\001\n\023ListExam" + + "plesRequest\022D\n\006parent\030\001 \001(\tB4\340A\002\372A.\n,dat" + + "alabeling.googleapis.com/AnnotatedDatase" + + "t\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(" + + "\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A\001\"m\n\024ListE" + + "xamplesResponse\022<\n\010examples\030\001 \003(\0132*.goog" + + "le.cloud.datalabeling.v1beta1.Example\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\275\001\n\036CreateAnnotat" + + "ionSpecSetRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A" + + "-\n+cloudresourcemanager.googleapis.com/P" + + "roject\022V\n\023annotation_spec_set\030\002 \001(\01324.go" + + "ogle.cloud.datalabeling.v1beta1.Annotati" + + "onSpecSetB\003\340A\002\"b\n\033GetAnnotationSpecSetRe" + + "quest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-datalabelin" + + "g.googleapis.com/AnnotationSpecSet\"\252\001\n\035L" + + "istAnnotationSpecSetsRequest\022C\n\006parent\030\001" + + " \001(\tB3\340A\002\372A-\n+cloudresourcemanager.googl" + + "eapis.com/Project\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026" + + "\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001" + + "(\tB\003\340A\001\"\215\001\n\036ListAnnotationSpecSetsRespon" + + "se\022R\n\024annotation_spec_sets\030\001 \003(\01324.googl" + + "e.cloud.datalabeling.v1beta1.AnnotationS" + + "pecSet\022\027\n\017next_page_token\030\002 \001(\t\"e\n\036Delet" + + "eAnnotationSpecSetRequest\022C\n\004name\030\001 \001(\tB" + + "5\340A\002\372A/\n-datalabeling.googleapis.com/Ann" + + "otationSpecSet\"\251\001\n\030CreateInstructionRequ" + + "est\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresour" + + "cemanager.googleapis.com/Project\022H\n\013inst" + + "ruction\030\002 \001(\0132..google.cloud.datalabelin" + + "g.v1beta1.InstructionB\003\340A\002\"V\n\025GetInstruc" + + "tionRequest\022=\n\004name\030\001 \001(\tB/\340A\002\372A)\n\'datal" + + "abeling.googleapis.com/Instruction\"Y\n\030De" + + "leteInstructionRequest\022=\n\004name\030\001 \001(\tB/\340A" + + "\002\372A)\n\'datalabeling.googleapis.com/Instru" + + "ction\"\244\001\n\027ListInstructionsRequest\022C\n\006par" + + "ent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanager." + + "googleapis.com/Project\022\023\n\006filter\030\002 \001(\tB\003" + + "\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_toke" + + "n\030\004 \001(\tB\003\340A\001\"y\n\030ListInstructionsResponse" + + "\022D\n\014instructions\030\001 \003(\0132..google.cloud.da" + + "talabeling.v1beta1.Instruction\022\027\n\017next_p" + + "age_token\030\002 \001(\t\"T\n\024GetEvaluationRequest\022" + + "<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&datalabeling.goog" + + "leapis.com/Evaluation\"\240\001\n\030SearchEvaluati" + + "onsRequest\022>\n\006parent\030\001 \001(\tB.\340A\002\372A(\n&data" + + "labeling.googleapis.com/Evaluation\022\023\n\006fi" + + "lter\030\002 \001(\tB\003\340A\001\022\026\n\tpage_size\030\003 \001(\005B\003\340A\001\022" + + "\027\n\npage_token\030\004 \001(\tB\003\340A\001\"x\n\031SearchEvalua" + + "tionsResponse\022B\n\013evaluations\030\001 \003(\0132-.goo" + + "gle.cloud.datalabeling.v1beta1.Evaluatio" + + "n\022\027\n\017next_page_token\030\002 \001(\t\"\222\001\n\037SearchExa" + + "mpleComparisonsRequest\022>\n\006parent\030\001 \001(\tB." + + "\340A\002\372A(\n&datalabeling.googleapis.com/Eval" + + "uation\022\026\n\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\npage_t" + + "oken\030\003 \001(\tB\003\340A\001\"\333\002\n SearchExampleCompari" + + "sonsResponse\022r\n\023example_comparisons\030\001 \003(" + + "\0132U.google.cloud.datalabeling.v1beta1.Se" + + "archExampleComparisonsResponse.ExampleCo" + + "mparison\022\027\n\017next_page_token\030\002 \001(\t\032\251\001\n\021Ex" + + "ampleComparison\022H\n\024ground_truth_example\030" + + "\001 \001(\0132*.google.cloud.datalabeling.v1beta" + + "1.Example\022J\n\026model_created_examples\030\002 \003(" + + "\0132*.google.cloud.datalabeling.v1beta1.Ex" + + "ample\"\245\001\n\032CreateEvaluationJobRequest\022C\n\006" + + "parent\030\001 \001(\tB3\340A\002\372A-\n+cloudresourcemanag" + + "er.googleapis.com/Project\022B\n\003job\030\002 \001(\01320" + + ".google.cloud.datalabeling.v1beta1.Evalu" + + "ationJobB\003\340A\002\"\241\001\n\032UpdateEvaluationJobReq" + + "uest\022M\n\016evaluation_job\030\001 \001(\01320.google.cl" + + "oud.datalabeling.v1beta1.EvaluationJobB\003" + + "\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protob" + + "uf.FieldMaskB\003\340A\001\"Z\n\027GetEvaluationJobReq" + + "uest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)datalabeling" + + ".googleapis.com/EvaluationJob\"\\\n\031PauseEv" + + "aluationJobRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+" + + "\n)datalabeling.googleapis.com/Evaluation" + + "Job\"]\n\032ResumeEvaluationJobRequest\022?\n\004nam" + + "e\030\001 \001(\tB1\340A\002\372A+\n)datalabeling.googleapis" + + ".com/EvaluationJob\"]\n\032DeleteEvaluationJo" + + "bRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)datalabe" + + "ling.googleapis.com/EvaluationJob\"\246\001\n\031Li" + + "stEvaluationJobsRequest\022C\n\006parent\030\001 \001(\tB" + + "3\340A\002\372A-\n+cloudresourcemanager.googleapis" + + ".com/Project\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026\n\tpag" + + "e_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340" + + "A\001\"\200\001\n\032ListEvaluationJobsResponse\022I\n\017eva" + + "luation_jobs\030\001 \003(\01320.google.cloud.datala" + + "beling.v1beta1.EvaluationJob\022\027\n\017next_pag" + + "e_token\030\002 \001(\t2\2468\n\023DataLabelingService\022\267\001" + + "\n\rCreateDataset\0227.google.cloud.datalabel" + + "ing.v1beta1.CreateDatasetRequest\032*.googl" + + "e.cloud.datalabeling.v1beta1.Dataset\"A\202\323" + + "\344\223\002*\"%/v1beta1/{parent=projects/*}/datas" + + "ets:\001*\332A\016parent,dataset\022\244\001\n\nGetDataset\0224" + + ".google.cloud.datalabeling.v1beta1.GetDa" + + "tasetRequest\032*.google.cloud.datalabeling" + + ".v1beta1.Dataset\"4\202\323\344\223\002\'\022%/v1beta1/{name" + + "=projects/*/datasets/*}\332A\004name\022\276\001\n\014ListD" + + "atasets\0226.google.cloud.datalabeling.v1be" + + "ta1.ListDatasetsRequest\0327.google.cloud.d" + + "atalabeling.v1beta1.ListDatasetsResponse" + + "\"=\202\323\344\223\002\'\022%/v1beta1/{parent=projects/*}/d" + + "atasets\332A\rparent,filter\022\226\001\n\rDeleteDatase" + + "t\0227.google.cloud.datalabeling.v1beta1.De" + + "leteDatasetRequest\032\026.google.protobuf.Emp" + + "ty\"4\202\323\344\223\002\'*%/v1beta1/{name=projects/*/da" + + "tasets/*}\332A\004name\022\360\001\n\nImportData\0224.google" + + ".cloud.datalabeling.v1beta1.ImportDataRe" + + "quest\032\035.google.longrunning.Operation\"\214\001\202" + + "\323\344\223\0025\"0/v1beta1/{name=projects/*/dataset" + + "s/*}:importData:\001*\332A\021name,input_config\312A" + + ":\n\033ImportDataOperationResponse\022\033ImportDa" + + "taOperationMetadata\022\212\002\n\nExportData\0224.goo" + + "gle.cloud.datalabeling.v1beta1.ExportDat" + + "aRequest\032\035.google.longrunning.Operation\"" + + "\246\001\202\323\344\223\0025\"0/v1beta1/{name=projects/*/data" + + "sets/*}:exportData:\001*\332A+name,annotated_d" + + "ataset,filter,output_config\312A:\n\033ExportDa" + + "taOperationResponse\022\033ExportDataOperation" + + "Metadata\022\263\001\n\013GetDataItem\0225.google.cloud." + + "datalabeling.v1beta1.GetDataItemRequest\032" + + "+.google.cloud.datalabeling.v1beta1.Data" + + "Item\"@\202\323\344\223\0023\0221/v1beta1/{name=projects/*/" + + "datasets/*/dataItems/*}\332A\004name\022\315\001\n\rListD" + + "ataItems\0227.google.cloud.datalabeling.v1b" + + "eta1.ListDataItemsRequest\0328.google.cloud" + + ".datalabeling.v1beta1.ListDataItemsRespo" + + "nse\"I\202\323\344\223\0023\0221/v1beta1/{parent=projects/*" + + "/datasets/*}/dataItems\332A\rparent,filter\022\323" + + "\001\n\023GetAnnotatedDataset\022=.google.cloud.da" + + "talabeling.v1beta1.GetAnnotatedDatasetRe" + + "quest\0323.google.cloud.datalabeling.v1beta" + + "1.AnnotatedDataset\"H\202\323\344\223\002;\0229/v1beta1/{na" + + "me=projects/*/datasets/*/annotatedDatase" + + "ts/*}\332A\004name\022\355\001\n\025ListAnnotatedDatasets\022?" + + ".google.cloud.datalabeling.v1beta1.ListA" + + "nnotatedDatasetsRequest\032@.google.cloud.d" + + "atalabeling.v1beta1.ListAnnotatedDataset" + + "sResponse\"Q\202\323\344\223\002;\0229/v1beta1/{parent=proj" + + "ects/*/datasets/*}/annotatedDatasets\332A\rp" + + "arent,filter\022\265\001\n\026DeleteAnnotatedDataset\022" + + "@.google.cloud.datalabeling.v1beta1.Dele" + + "teAnnotatedDatasetRequest\032\026.google.proto" + + "buf.Empty\"A\202\323\344\223\002;*9/v1beta1/{name=projec" + + "ts/*/datasets/*/annotatedDatasets/*}\022\355\001\n" + + "\nLabelImage\0224.google.cloud.datalabeling." + + "v1beta1.LabelImageRequest\032\035.google.longr" + + "unning.Operation\"\211\001\202\323\344\223\0028\"3/v1beta1/{par" + + "ent=projects/*/datasets/*}/image:label:\001" + + "*\332A\033parent,basic_config,feature\312A*\n\020Anno" + + "tatedDataset\022\026LabelOperationMetadata\022\355\001\n" + + "\nLabelVideo\0224.google.cloud.datalabeling." + + "v1beta1.LabelVideoRequest\032\035.google.longr" + + "unning.Operation\"\211\001\202\323\344\223\0028\"3/v1beta1/{par" + + "ent=projects/*/datasets/*}/video:label:\001" + + "*\332A\033parent,basic_config,feature\312A*\n\020Anno" + + "tatedDataset\022\026LabelOperationMetadata\022\352\001\n" + + "\tLabelText\0223.google.cloud.datalabeling.v" + + "1beta1.LabelTextRequest\032\035.google.longrun" + + "ning.Operation\"\210\001\202\323\344\223\0027\"2/v1beta1/{paren" + + "t=projects/*/datasets/*}/text:label:\001*\332A" + + "\033parent,basic_config,feature\312A*\n\020Annotat" + + "edDataset\022\026LabelOperationMetadata\022\312\001\n\nGe" + + "tExample\0224.google.cloud.datalabeling.v1b" + + "eta1.GetExampleRequest\032*.google.cloud.da" + + "talabeling.v1beta1.Example\"Z\202\323\344\223\002F\022D/v1b" + + "eta1/{name=projects/*/datasets/*/annotat" + + "edDatasets/*/examples/*}\332A\013name,filter\022\335" + + "\001\n\014ListExamples\0226.google.cloud.datalabel" + + "ing.v1beta1.ListExamplesRequest\0327.google" + + ".cloud.datalabeling.v1beta1.ListExamples" + + "Response\"\\\202\323\344\223\002F\022D/v1beta1/{parent=proje" + + "cts/*/datasets/*/annotatedDatasets/*}/ex" + + "amples\332A\rparent,filter\022\353\001\n\027CreateAnnotat" + + "ionSpecSet\022A.google.cloud.datalabeling.v" + + "1beta1.CreateAnnotationSpecSetRequest\0324." + + "google.cloud.datalabeling.v1beta1.Annota" + + "tionSpecSet\"W\202\323\344\223\0024\"//v1beta1/{parent=pr" + + "ojects/*}/annotationSpecSets:\001*\332A\032parent" + + ",annotation_spec_set\022\314\001\n\024GetAnnotationSp" + + "ecSet\022>.google.cloud.datalabeling.v1beta" + + "1.GetAnnotationSpecSetRequest\0324.google.c" + + "loud.datalabeling.v1beta1.AnnotationSpec" + + "Set\">\202\323\344\223\0021\022//v1beta1/{name=projects/*/a" + + "nnotationSpecSets/*}\332A\004name\022\346\001\n\026ListAnno" + + "tationSpecSets\022@.google.cloud.datalabeli" + + "ng.v1beta1.ListAnnotationSpecSetsRequest" + + "\032A.google.cloud.datalabeling.v1beta1.Lis" + + "tAnnotationSpecSetsResponse\"G\202\323\344\223\0021\022//v1" + + "beta1/{parent=projects/*}/annotationSpec" + + "Sets\332A\rparent,filter\022\264\001\n\027DeleteAnnotatio" + + "nSpecSet\022A.google.cloud.datalabeling.v1b" + + "eta1.DeleteAnnotationSpecSetRequest\032\026.go" + + "ogle.protobuf.Empty\">\202\323\344\223\0021*//v1beta1/{n" + + "ame=projects/*/annotationSpecSets/*}\332A\004n" + + "ame\022\345\001\n\021CreateInstruction\022;.google.cloud" + + ".datalabeling.v1beta1.CreateInstructionR" + + "equest\032\035.google.longrunning.Operation\"t\202" + + "\323\344\223\002.\")/v1beta1/{parent=projects/*}/inst" + + "ructions:\001*\332A\022parent,instruction\312A(\n\013Ins" + + "truction\022\031CreateInstructionMetadata\022\264\001\n\016" + + "GetInstruction\0228.google.cloud.datalabeli" + + "ng.v1beta1.GetInstructionRequest\032..googl" + + "e.cloud.datalabeling.v1beta1.Instruction" + + "\"8\202\323\344\223\002+\022)/v1beta1/{name=projects/*/inst" + + "ructions/*}\332A\004name\022\316\001\n\020ListInstructions\022" + + ":.google.cloud.datalabeling.v1beta1.List" + + "InstructionsRequest\032;.google.cloud.datal" + + "abeling.v1beta1.ListInstructionsResponse" + + "\"A\202\323\344\223\002+\022)/v1beta1/{parent=projects/*}/i" + + "nstructions\332A\rparent,filter\022\242\001\n\021DeleteIn" + + "struction\022;.google.cloud.datalabeling.v1" + + "beta1.DeleteInstructionRequest\032\026.google." + + "protobuf.Empty\"8\202\323\344\223\002+*)/v1beta1/{name=p" + + "rojects/*/instructions/*}\332A\004name\022\273\001\n\rGet" + + "Evaluation\0227.google.cloud.datalabeling.v" + + "1beta1.GetEvaluationRequest\032-.google.clo" + + "ud.datalabeling.v1beta1.Evaluation\"B\202\323\344\223" + + "\0025\0223/v1beta1/{name=projects/*/datasets/*" + + "/evaluations/*}\332A\004name\022\327\001\n\021SearchEvaluat" + + "ions\022;.google.cloud.datalabeling.v1beta1" + + ".SearchEvaluationsRequest\032<.google.cloud" + + ".datalabeling.v1beta1.SearchEvaluationsR" + + "esponse\"G\202\323\344\223\0021\022//v1beta1/{parent=projec" + + "ts/*}/evaluations:search\332A\rparent,filter" + + "\022\210\002\n\030SearchExampleComparisons\022B.google.c" + + "loud.datalabeling.v1beta1.SearchExampleC" + + "omparisonsRequest\032C.google.cloud.datalab" + + "eling.v1beta1.SearchExampleComparisonsRe" + + "sponse\"c\202\323\344\223\002T\"O/v1beta1/{parent=project" + + "s/*/datasets/*/evaluations/*}/exampleCom" + + "parisons:search:\001*\332A\006parent\022\313\001\n\023CreateEv" + + "aluationJob\022=.google.cloud.datalabeling." + + "v1beta1.CreateEvaluationJobRequest\0320.goo" + + "gle.cloud.datalabeling.v1beta1.Evaluatio" + + "nJob\"C\202\323\344\223\0020\"+/v1beta1/{parent=projects/" + + "*}/evaluationJobs:\001*\332A\nparent,job\022\367\001\n\023Up" + + "dateEvaluationJob\022=.google.cloud.datalab" + + "eling.v1beta1.UpdateEvaluationJobRequest" + + "\0320.google.cloud.datalabeling.v1beta1.Eva" + + "luationJob\"o\202\323\344\223\002L2:/v1beta1/{evaluation" + + "_job.name=projects/*/evaluationJobs/*}:\016" + + "evaluation_job\332A\032evaluation_job,update_m" + + "ask\022\274\001\n\020GetEvaluationJob\022:.google.cloud." + + "datalabeling.v1beta1.GetEvaluationJobReq" + + "uest\0320.google.cloud.datalabeling.v1beta1" + + ".EvaluationJob\":\202\323\344\223\002-\022+/v1beta1/{name=p" + + "rojects/*/evaluationJobs/*}\332A\004name\022\257\001\n\022P" + + "auseEvaluationJob\022<.google.cloud.datalab" + + "eling.v1beta1.PauseEvaluationJobRequest\032" + + "\026.google.protobuf.Empty\"C\202\323\344\223\0026\"1/v1beta" + + "1/{name=projects/*/evaluationJobs/*}:pau" + + "se:\001*\332A\004name\022\262\001\n\023ResumeEvaluationJob\022=.g" + + "oogle.cloud.datalabeling.v1beta1.ResumeE" + + "valuationJobRequest\032\026.google.protobuf.Em" + + "pty\"D\202\323\344\223\0027\"2/v1beta1/{name=projects/*/e" + + "valuationJobs/*}:resume:\001*\332A\004name\022\250\001\n\023De" + + "leteEvaluationJob\022=.google.cloud.datalab" + + "eling.v1beta1.DeleteEvaluationJobRequest" + + "\032\026.google.protobuf.Empty\":\202\323\344\223\002-*+/v1bet" + + "a1/{name=projects/*/evaluationJobs/*}\332A\004" + + "name\022\326\001\n\022ListEvaluationJobs\022<.google.clo" + + "ud.datalabeling.v1beta1.ListEvaluationJo" + + "bsRequest\032=.google.cloud.datalabeling.v1" + + "beta1.ListEvaluationJobsResponse\"C\202\323\344\223\002-" + + "\022+/v1beta1/{parent=projects/*}/evaluatio" + + "nJobs\332A\rparent,filter\032O\312A\033datalabeling.g" + + "oogleapis.com\322A.https://www.googleapis.c" + + "om/auth/cloud-platformB\347\001\n%com.google.cl" + + "oud.datalabeling.v1beta1P\001ZMgoogle.golan" + + "g.org/genproto/googleapis/cloud/datalabe" + + "ling/v1beta1;datalabeling\252\002!Google.Cloud" + + ".DataLabeling.V1Beta1\312\002!Google\\Cloud\\Dat" + + "aLabeling\\V1beta1\352\002$Google::Cloud::DataL" + + "abeling::V1beta1b\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.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_CreateDatasetRequest_descriptor, + new java.lang.String[] { + "Parent", "Dataset", + }); + internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", + }); + internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor, + new java.lang.String[] { + "Datasets", "NextPageToken", + }); + internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor, + new java.lang.String[] { + "Name", "InputConfig", "UserEmailAddress", + }); + internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor, + new java.lang.String[] { + "Name", "AnnotatedDataset", "Filter", "OutputConfig", "UserEmailAddress", + }); + internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", + }); + internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor, + new java.lang.String[] { + "DataItems", "NextPageToken", + }); + internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", + }); + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor, + new java.lang.String[] { + "AnnotatedDatasets", "NextPageToken", + }); + internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor, + new java.lang.String[] { + "ImageClassificationConfig", + "BoundingPolyConfig", + "PolylineConfig", + "SegmentationConfig", + "Parent", + "BasicConfig", + "Feature", + "RequestConfig", + }); + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor, + new java.lang.String[] { + "VideoClassificationConfig", + "ObjectDetectionConfig", + "ObjectTrackingConfig", + "EventConfig", + "Parent", + "BasicConfig", + "Feature", + "RequestConfig", + }); + internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor, + new java.lang.String[] { + "TextClassificationConfig", + "TextEntityExtractionConfig", + "Parent", + "BasicConfig", + "Feature", + "RequestConfig", + }); + internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor, + new java.lang.String[] { + "Name", "Filter", + }); + internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", + }); + internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor, + new java.lang.String[] { + "Examples", "NextPageToken", + }); + internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_CreateAnnotationSpecSetRequest_descriptor, + new java.lang.String[] { + "Parent", "AnnotationSpecSet", + }); + internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", + }); + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor, + new java.lang.String[] { + "AnnotationSpecSets", "NextPageToken", + }); + internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionRequest_descriptor, + new java.lang.String[] { + "Parent", "Instruction", + }); + internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", + }); + internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor, + new java.lang.String[] { + "Instructions", "NextPageToken", + }); + internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", + }); + internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor, + new java.lang.String[] { + "Evaluations", "NextPageToken", + }); + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor, + new java.lang.String[] { + "ExampleComparisons", "NextPageToken", + }); + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor = + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor, + new java.lang.String[] { + "GroundTruthExample", "ModelCreatedExamples", + }); + internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_CreateEvaluationJobRequest_descriptor, + new java.lang.String[] { + "Parent", "Job", + }); + internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor, + new java.lang.String[] { + "EvaluationJob", "UpdateMask", + }); + internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "PageSize", "PageToken", + }); + internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor, + new java.lang.String[] { + "EvaluationJobs", "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.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataPayloads.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataPayloads.java new file mode 100644 index 00000000..f3c23f7e --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataPayloads.java @@ -0,0 +1,123 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_payloads.proto + +package com.google.cloud.datalabeling.v1beta1; + +public final class DataPayloads { + private DataPayloads() {} + + 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_datalabeling_v1beta1_ImagePayload_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_TextPayload_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n5google/cloud/datalabeling/v1beta1/data" + + "_payloads.proto\022!google.cloud.datalabeli" + + "ng.v1beta1\032\034google/api/annotations.proto" + + "\032\036google/protobuf/duration.proto\032\037google" + + "/protobuf/timestamp.proto\"a\n\014ImagePayloa" + + "d\022\021\n\tmime_type\030\001 \001(\t\022\027\n\017image_thumbnail\030" + + "\002 \001(\014\022\021\n\timage_uri\030\003 \001(\t\022\022\n\nsigned_uri\030\004" + + " \001(\t\"#\n\013TextPayload\022\024\n\014text_content\030\001 \001(" + + "\t\"S\n\016VideoThumbnail\022\021\n\tthumbnail\030\001 \001(\014\022." + + "\n\013time_offset\030\002 \001(\0132\031.google.protobuf.Du" + + "ration\"\251\001\n\014VideoPayload\022\021\n\tmime_type\030\001 \001" + + "(\t\022\021\n\tvideo_uri\030\002 \001(\t\022K\n\020video_thumbnail" + + "s\030\003 \003(\01321.google.cloud.datalabeling.v1be" + + "ta1.VideoThumbnail\022\022\n\nframe_rate\030\004 \001(\002\022\022" + + "\n\nsigned_uri\030\005 \001(\tB\347\001\n%com.google.cloud." + + "datalabeling.v1beta1P\001ZMgoogle.golang.or" + + "g/genproto/googleapis/cloud/datalabeling" + + "/v1beta1;datalabeling\252\002!Google.Cloud.Dat" + + "aLabeling.V1Beta1\312\002!Google\\Cloud\\DataLab" + + "eling\\V1beta1\352\002$Google::Cloud::DataLabel" + + "ing::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_descriptor, + new java.lang.String[] { + "MimeType", "ImageThumbnail", "ImageUri", "SignedUri", + }); + internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datalabeling_v1beta1_TextPayload_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor, + new java.lang.String[] { + "TextContent", + }); + internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor, + new java.lang.String[] { + "Thumbnail", "TimeOffset", + }); + internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor, + new java.lang.String[] { + "MimeType", "VideoUri", "VideoThumbnails", "FrameRate", "SignedUri", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataType.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataType.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataType.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataType.java index b5ba6ac7..a9ed84f2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataType.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DataType.java @@ -1,18 +1,30 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; -/** - * Protobuf enum {@code google.cloud.datalabeling.v1beta1.DataType} - */ -public enum DataType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * DATA_TYPE_UNSPECIFIED = 0; - */ +/** Protobuf enum {@code google.cloud.datalabeling.v1beta1.DataType} */ +public enum DataType implements com.google.protobuf.ProtocolMessageEnum { + /** DATA_TYPE_UNSPECIFIED = 0; */ DATA_TYPE_UNSPECIFIED(0), /** + * + * *
    * Allowed for continuous evaluation.
    * 
@@ -20,11 +32,11 @@ public enum DataType * IMAGE = 1; */ IMAGE(1), - /** - * VIDEO = 2; - */ + /** VIDEO = 2; */ VIDEO(2), /** + * + * *
    * Allowed for continuous evaluation.
    * 
@@ -33,6 +45,8 @@ public enum DataType */ TEXT(4), /** + * + * *
    * Allowed for continuous evaluation.
    * 
@@ -43,11 +57,11 @@ public enum DataType UNRECOGNIZED(-1), ; - /** - * DATA_TYPE_UNSPECIFIED = 0; - */ + /** DATA_TYPE_UNSPECIFIED = 0; */ public static final int DATA_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Allowed for continuous evaluation.
    * 
@@ -55,11 +69,11 @@ public enum DataType * IMAGE = 1; */ public static final int IMAGE_VALUE = 1; - /** - * VIDEO = 2; - */ + /** VIDEO = 2; */ public static final int VIDEO_VALUE = 2; /** + * + * *
    * Allowed for continuous evaluation.
    * 
@@ -68,6 +82,8 @@ public enum DataType */ public static final int TEXT_VALUE = 4; /** + * + * *
    * Allowed for continuous evaluation.
    * 
@@ -76,7 +92,6 @@ public enum DataType */ public static final int GENERAL_DATA_VALUE = 6; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -101,51 +116,55 @@ public static DataType valueOf(int value) { */ public static DataType forNumber(int value) { switch (value) { - case 0: return DATA_TYPE_UNSPECIFIED; - case 1: return IMAGE; - case 2: return VIDEO; - case 4: return TEXT; - case 6: return GENERAL_DATA; - default: return null; + case 0: + return DATA_TYPE_UNSPECIFIED; + case 1: + return IMAGE; + case 2: + return VIDEO; + case 4: + return TEXT; + case 6: + return GENERAL_DATA; + 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< - DataType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DataType findValueByNumber(int number) { - return DataType.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 DataType findValueByNumber(int number) { + return DataType.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.datalabeling.v1beta1.DatasetOuterClass.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor() + .getEnumTypes() + .get(0); } private static final DataType[] VALUES = values(); - public static DataType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static DataType 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; @@ -161,4 +180,3 @@ private DataType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.datalabeling.v1beta1.DataType) } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Dataset.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Dataset.java similarity index 77% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Dataset.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Dataset.java index cdb2d079..b9f2e475 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Dataset.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Dataset is the resource to hold your data. You can request multiple labeling
  * tasks for a dataset while each one will generate an AnnotatedDataset.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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_ = "";
@@ -30,16 +48,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)
@@ -59,67 +76,77 @@ 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;
-          }
-          case 34: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+              description_ = s;
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 34:
+            {
+              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 42: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              inputConfigs_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 42:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                inputConfigs_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              inputConfigs_.add(
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.InputConfig.parser(),
+                      extensionRegistry));
+              break;
             }
-            inputConfigs_.add(
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.InputConfig.parser(), extensionRegistry));
-            break;
-          }
-          case 50: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
-              blockingResources_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000002;
+          case 50:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+                blockingResources_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000002;
+              }
+              blockingResources_.add(s);
+              break;
             }
-            blockingResources_.add(s);
-            break;
-          }
-          case 56: {
-
-            dataItemCount_ = input.readInt64();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 56:
+            {
+              dataItemCount_ = input.readInt64();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -127,8 +154,7 @@ private Dataset(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } 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_);
@@ -140,28 +166,34 @@ private Dataset(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Dataset_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_Dataset_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Dataset_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_Dataset_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.Dataset.class, com.google.cloud.datalabeling.v1beta1.Dataset.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.Dataset.class,
+            com.google.cloud.datalabeling.v1beta1.Dataset.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Output only. Dataset resource name, format is:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -170,30 +202,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. Dataset resource name, format is:
    * projects/{project_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 { @@ -204,11 +236,14 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * Required. The display name of the dataset. Maximum of 64 characters.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -217,29 +252,29 @@ 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 display name of the dataset. Maximum of 64 characters.
    * 
* * 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 { @@ -250,12 +285,15 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * Optional. User-provided description of the annotation specification set.
    * The description can be up to 10000 characters long.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -264,30 +302,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; } } /** + * + * *
    * Optional. User-provided description of the annotation specification set.
    * The description can be up to 10000 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 { @@ -298,11 +336,14 @@ public java.lang.String getDescription() { public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Time the dataset is created.
    * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -310,11 +351,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time the dataset is created.
    * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return The createTime. */ @java.lang.Override @@ -322,6 +366,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time the dataset is created.
    * 
@@ -336,6 +382,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int INPUT_CONFIGS_FIELD_NUMBER = 5; private java.util.List inputConfigs_; /** + * + * *
    * Output only. This is populated with the original input configs
    * where ImportData is called. It is available only after the clients
@@ -349,6 +397,8 @@ public java.util.List getInpu
     return inputConfigs_;
   }
   /**
+   *
+   *
    * 
    * Output only. This is populated with the original input configs
    * where ImportData is called. It is available only after the clients
@@ -358,11 +408,13 @@ public java.util.List getInpu
    * repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getInputConfigsOrBuilderList() {
     return inputConfigs_;
   }
   /**
+   *
+   *
    * 
    * Output only. This is populated with the original input configs
    * where ImportData is called. It is available only after the clients
@@ -376,6 +428,8 @@ public int getInputConfigsCount() {
     return inputConfigs_.size();
   }
   /**
+   *
+   *
    * 
    * Output only. This is populated with the original input configs
    * where ImportData is called. It is available only after the clients
@@ -389,6 +443,8 @@ public com.google.cloud.datalabeling.v1beta1.InputConfig getInputConfigs(int ind
     return inputConfigs_.get(index);
   }
   /**
+   *
+   *
    * 
    * Output only. This is populated with the original input configs
    * where ImportData is called. It is available only after the clients
@@ -406,37 +462,45 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig
   public static final int BLOCKING_RESOURCES_FIELD_NUMBER = 6;
   private com.google.protobuf.LazyStringList blockingResources_;
   /**
+   *
+   *
    * 
    * Output only. The names of any related resources that are blocking changes
    * to the dataset.
    * 
* * repeated string blocking_resources = 6; + * * @return A list containing the blockingResources. */ - public com.google.protobuf.ProtocolStringList - getBlockingResourcesList() { + public com.google.protobuf.ProtocolStringList getBlockingResourcesList() { return blockingResources_; } /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the dataset.
    * 
* * repeated string blocking_resources = 6; + * * @return The count of blockingResources. */ public int getBlockingResourcesCount() { return blockingResources_.size(); } /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the dataset.
    * 
* * repeated string blocking_resources = 6; + * * @param index The index of the element to return. * @return The blockingResources at the given index. */ @@ -444,28 +508,33 @@ public java.lang.String getBlockingResources(int index) { return blockingResources_.get(index); } /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the dataset.
    * 
* * repeated string blocking_resources = 6; + * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - public com.google.protobuf.ByteString - getBlockingResourcesBytes(int index) { + public com.google.protobuf.ByteString getBlockingResourcesBytes(int index) { return blockingResources_.getByteString(index); } public static final int DATA_ITEM_COUNT_FIELD_NUMBER = 7; private long dataItemCount_; /** + * + * *
    * Output only. The number of data items in the dataset.
    * 
* * int64 data_item_count = 7; + * * @return The dataItemCount. */ @java.lang.Override @@ -474,6 +543,7 @@ public long getDataItemCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -485,8 +555,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_); } @@ -527,12 +596,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); } 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)); } { int dataSize = 0; @@ -543,8 +610,7 @@ public int getSerializedSize() { size += 1 * getBlockingResourcesList().size(); } if (dataItemCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, dataItemCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, dataItemCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -554,30 +620,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.datalabeling.v1beta1.Dataset)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.Dataset other = (com.google.cloud.datalabeling.v1beta1.Dataset) obj; + com.google.cloud.datalabeling.v1beta1.Dataset other = + (com.google.cloud.datalabeling.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 (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; - } - if (!getInputConfigsList() - .equals(other.getInputConfigsList())) return false; - if (!getBlockingResourcesList() - .equals(other.getBlockingResourcesList())) return false; - if (getDataItemCount() - != other.getDataItemCount()) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getInputConfigsList().equals(other.getInputConfigsList())) return false; + if (!getBlockingResourcesList().equals(other.getBlockingResourcesList())) return false; + if (getDataItemCount() != other.getDataItemCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -608,104 +668,110 @@ public int hashCode() { hash = (53 * hash) + getBlockingResourcesList().hashCode(); } hash = (37 * hash) + DATA_ITEM_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getDataItemCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDataItemCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.datalabeling.v1beta1.Dataset parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datalabeling.v1beta1.Dataset parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.Dataset parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.Dataset parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.Dataset parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.Dataset parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.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; } /** + * + * *
    * Dataset is the resource to hold your data. You can request multiple labeling
    * tasks for a dataset while each one will generate an AnnotatedDataset.
@@ -713,21 +779,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.Dataset)
       com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Dataset_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_Dataset_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Dataset_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_Dataset_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.Dataset.class, com.google.cloud.datalabeling.v1beta1.Dataset.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.Dataset.class,
+              com.google.cloud.datalabeling.v1beta1.Dataset.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.Dataset.newBuilder()
@@ -735,17 +803,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();
@@ -775,9 +843,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Dataset_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_Dataset_descriptor;
     }
 
     @java.lang.Override
@@ -796,7 +864,8 @@ public com.google.cloud.datalabeling.v1beta1.Dataset build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.Dataset buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.Dataset result = new com.google.cloud.datalabeling.v1beta1.Dataset(this);
+      com.google.cloud.datalabeling.v1beta1.Dataset result =
+          new com.google.cloud.datalabeling.v1beta1.Dataset(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.displayName_ = displayName_;
@@ -829,38 +898,39 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.Dataset) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Dataset)other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Dataset) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -902,9 +972,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.Dataset 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_);
           }
@@ -951,23 +1022,26 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Dataset resource name, format is:
      * projects/{project_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; @@ -976,21 +1050,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Dataset resource name, format is:
      * projects/{project_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 { @@ -998,57 +1073,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Dataset resource name, format is:
      * projects/{project_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. Dataset resource name, format is:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Dataset resource name, format is:
      * projects/{project_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; @@ -1056,18 +1138,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. The display name of the dataset. Maximum of 64 characters.
      * 
* * 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; @@ -1076,20 +1160,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. The display name of the dataset. Maximum of 64 characters.
      * 
* * 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 { @@ -1097,54 +1182,61 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. The display name of the dataset. Maximum of 64 characters.
      * 
* * 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 display name of the dataset. Maximum of 64 characters.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Required. The display name of the dataset. Maximum of 64 characters.
      * 
* * 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; @@ -1152,19 +1244,21 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Optional. User-provided description of the annotation specification set.
      * The description can be up to 10000 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; @@ -1173,21 +1267,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. User-provided description of the annotation specification set.
      * The description can be up to 10000 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 { @@ -1195,57 +1290,64 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. User-provided description of the annotation specification set.
      * The description can be up to 10000 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; } /** + * + * *
      * Optional. User-provided description of the annotation specification set.
      * The description can be up to 10000 characters long.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Optional. User-provided description of the annotation specification set.
      * The description can be up to 10000 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; @@ -1253,34 +1355,47 @@ public Builder setDescriptionBytes( 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 the dataset is created.
      * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Time the dataset is created.
      * 
* * .google.protobuf.Timestamp create_time = 4; + * * @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 the dataset is created.
      * 
@@ -1301,14 +1416,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time the dataset is created.
      * 
* * .google.protobuf.Timestamp create_time = 4; */ - 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(); @@ -1319,6 +1435,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time the dataset is created.
      * 
@@ -1329,7 +1447,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; } @@ -1341,6 +1459,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time the dataset is created.
      * 
@@ -1359,6 +1479,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time the dataset is created.
      * 
@@ -1366,11 +1488,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 4; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time the dataset is created.
      * 
@@ -1381,11 +1505,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 the dataset is created.
      * 
@@ -1393,32 +1520,43 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_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> 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 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.datalabeling.v1beta1.InputConfig, com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder> inputConfigsBuilder_; + com.google.cloud.datalabeling.v1beta1.InputConfig, + com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, + com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder> + inputConfigsBuilder_; /** + * + * *
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1435,6 +1573,8 @@ public java.util.List getInpu
       }
     }
     /**
+     *
+     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1451,6 +1591,8 @@ public int getInputConfigsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1467,6 +1609,8 @@ public com.google.cloud.datalabeling.v1beta1.InputConfig getInputConfigs(int ind
       }
     }
     /**
+     *
+     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1490,6 +1634,8 @@ public Builder setInputConfigs(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1510,6 +1656,8 @@ public Builder setInputConfigs(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1532,6 +1680,8 @@ public Builder addInputConfigs(com.google.cloud.datalabeling.v1beta1.InputConfig
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1555,6 +1705,8 @@ public Builder addInputConfigs(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1575,6 +1727,8 @@ public Builder addInputConfigs(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1595,6 +1749,8 @@ public Builder addInputConfigs(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1607,8 +1763,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);
@@ -1616,6 +1771,8 @@ public Builder addAllInputConfigs(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1635,6 +1792,8 @@ public Builder clearInputConfigs() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1654,6 +1813,8 @@ public Builder removeInputConfigs(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1667,6 +1828,8 @@ public com.google.cloud.datalabeling.v1beta1.InputConfig.Builder getInputConfigs
       return getInputConfigsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1678,11 +1841,14 @@ public com.google.cloud.datalabeling.v1beta1.InputConfig.Builder getInputConfigs
     public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfigsOrBuilder(
         int index) {
       if (inputConfigsBuilder_ == null) {
-        return inputConfigs_.get(index);  } else {
+        return inputConfigs_.get(index);
+      } else {
         return inputConfigsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1691,8 +1857,8 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig
      *
      * repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;
      */
-    public java.util.List 
-         getInputConfigsOrBuilderList() {
+    public java.util.List
+        getInputConfigsOrBuilderList() {
       if (inputConfigsBuilder_ != null) {
         return inputConfigsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1700,6 +1866,8 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig
       }
     }
     /**
+     *
+     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1709,10 +1877,12 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig
      * repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;
      */
     public com.google.cloud.datalabeling.v1beta1.InputConfig.Builder addInputConfigsBuilder() {
-      return getInputConfigsFieldBuilder().addBuilder(
-          com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance());
+      return getInputConfigsFieldBuilder()
+          .addBuilder(com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1723,10 +1893,13 @@ public com.google.cloud.datalabeling.v1beta1.InputConfig.Builder addInputConfigs
      */
     public com.google.cloud.datalabeling.v1beta1.InputConfig.Builder addInputConfigsBuilder(
         int index) {
-      return getInputConfigsFieldBuilder().addBuilder(
-          index, com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance());
+      return getInputConfigsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Output only. This is populated with the original input configs
      * where ImportData is called. It is available only after the clients
@@ -1735,64 +1908,77 @@ public com.google.cloud.datalabeling.v1beta1.InputConfig.Builder addInputConfigs
      *
      * repeated .google.cloud.datalabeling.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.datalabeling.v1beta1.InputConfig, com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder> 
+            com.google.cloud.datalabeling.v1beta1.InputConfig,
+            com.google.cloud.datalabeling.v1beta1.InputConfig.Builder,
+            com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder>
         getInputConfigsFieldBuilder() {
       if (inputConfigsBuilder_ == null) {
-        inputConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.InputConfig, com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder>(
-                inputConfigs_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        inputConfigsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.datalabeling.v1beta1.InputConfig,
+                com.google.cloud.datalabeling.v1beta1.InputConfig.Builder,
+                com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder>(
+                inputConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         inputConfigs_ = null;
       }
       return inputConfigsBuilder_;
     }
 
-    private com.google.protobuf.LazyStringList blockingResources_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList blockingResources_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensureBlockingResourcesIsMutable() {
       if (!((bitField0_ & 0x00000002) != 0)) {
         blockingResources_ = new com.google.protobuf.LazyStringArrayList(blockingResources_);
         bitField0_ |= 0x00000002;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * Output only. The names of any related resources that are blocking changes
      * to the dataset.
      * 
* * repeated string blocking_resources = 6; + * * @return A list containing the blockingResources. */ - public com.google.protobuf.ProtocolStringList - getBlockingResourcesList() { + public com.google.protobuf.ProtocolStringList getBlockingResourcesList() { return blockingResources_.getUnmodifiableView(); } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the dataset.
      * 
* * repeated string blocking_resources = 6; + * * @return The count of blockingResources. */ public int getBlockingResourcesCount() { return blockingResources_.size(); } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the dataset.
      * 
* * repeated string blocking_resources = 6; + * * @param index The index of the element to return. * @return The blockingResources at the given index. */ @@ -1800,85 +1986,95 @@ public java.lang.String getBlockingResources(int index) { return blockingResources_.get(index); } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the dataset.
      * 
* * repeated string blocking_resources = 6; + * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - public com.google.protobuf.ByteString - getBlockingResourcesBytes(int index) { + public com.google.protobuf.ByteString getBlockingResourcesBytes(int index) { return blockingResources_.getByteString(index); } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the dataset.
      * 
* * repeated string blocking_resources = 6; + * * @param index The index to set the value at. * @param value The blockingResources to set. * @return This builder for chaining. */ - public Builder setBlockingResources( - int index, java.lang.String value) { + public Builder setBlockingResources(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlockingResourcesIsMutable(); + throw new NullPointerException(); + } + ensureBlockingResourcesIsMutable(); blockingResources_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the dataset.
      * 
* * repeated string blocking_resources = 6; + * * @param value The blockingResources to add. * @return This builder for chaining. */ - public Builder addBlockingResources( - java.lang.String value) { + public Builder addBlockingResources(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlockingResourcesIsMutable(); + throw new NullPointerException(); + } + ensureBlockingResourcesIsMutable(); blockingResources_.add(value); onChanged(); return this; } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the dataset.
      * 
* * repeated string blocking_resources = 6; + * * @param values The blockingResources to add. * @return This builder for chaining. */ - public Builder addAllBlockingResources( - java.lang.Iterable values) { + public Builder addAllBlockingResources(java.lang.Iterable values) { ensureBlockingResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, blockingResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blockingResources_); onChanged(); return this; } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the dataset.
      * 
* * repeated string blocking_resources = 6; + * * @return This builder for chaining. */ public Builder clearBlockingResources() { @@ -1888,34 +2084,39 @@ public Builder clearBlockingResources() { return this; } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the dataset.
      * 
* * repeated string blocking_resources = 6; + * * @param value The bytes of the blockingResources to add. * @return This builder for chaining. */ - public Builder addBlockingResourcesBytes( - com.google.protobuf.ByteString value) { + public Builder addBlockingResourcesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureBlockingResourcesIsMutable(); blockingResources_.add(value); onChanged(); return this; } - private long dataItemCount_ ; + private long dataItemCount_; /** + * + * *
      * Output only. The number of data items in the dataset.
      * 
* * int64 data_item_count = 7; + * * @return The dataItemCount. */ @java.lang.Override @@ -1923,37 +2124,43 @@ public long getDataItemCount() { return dataItemCount_; } /** + * + * *
      * Output only. The number of data items in the dataset.
      * 
* * int64 data_item_count = 7; + * * @param value The dataItemCount to set. * @return This builder for chaining. */ public Builder setDataItemCount(long value) { - + dataItemCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The number of data items in the dataset.
      * 
* * int64 data_item_count = 7; + * * @return This builder for chaining. */ public Builder clearDataItemCount() { - + dataItemCount_ = 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); } @@ -1963,12 +2170,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.Dataset) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Dataset) private static final com.google.cloud.datalabeling.v1beta1.Dataset DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.Dataset(); } @@ -1977,16 +2184,16 @@ public static com.google.cloud.datalabeling.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; @@ -2001,6 +2208,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.Dataset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetName.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetName.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOrBuilder.java similarity index 81% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOrBuilder.java index d4829b17..daa8a150 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOrBuilder.java @@ -1,95 +1,134 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; -public interface DatasetOrBuilder extends +public interface DatasetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.Dataset) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Dataset resource name, format is:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Dataset resource name, format is:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The display name of the dataset. Maximum of 64 characters.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. The display name of the dataset. Maximum of 64 characters.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Optional. User-provided description of the annotation specification set.
    * The description can be up to 10000 characters long.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. User-provided description of the annotation specification set.
    * The description can be up to 10000 characters long.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. Time the dataset is created.
    * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time the dataset is created.
    * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time the dataset is created.
    * 
@@ -99,6 +138,8 @@ public interface DatasetOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. This is populated with the original input configs
    * where ImportData is called. It is available only after the clients
@@ -107,9 +148,10 @@ public interface DatasetOrBuilder extends
    *
    * repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;
    */
-  java.util.List 
-      getInputConfigsList();
+  java.util.List getInputConfigsList();
   /**
+   *
+   *
    * 
    * Output only. This is populated with the original input configs
    * where ImportData is called. It is available only after the clients
@@ -120,6 +162,8 @@ public interface DatasetOrBuilder extends
    */
   com.google.cloud.datalabeling.v1beta1.InputConfig getInputConfigs(int index);
   /**
+   *
+   *
    * 
    * Output only. This is populated with the original input configs
    * where ImportData is called. It is available only after the clients
@@ -130,6 +174,8 @@ public interface DatasetOrBuilder extends
    */
   int getInputConfigsCount();
   /**
+   *
+   *
    * 
    * Output only. This is populated with the original input configs
    * where ImportData is called. It is available only after the clients
@@ -138,9 +184,11 @@ public interface DatasetOrBuilder extends
    *
    * repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;
    */
-  java.util.List 
+  java.util.List
       getInputConfigsOrBuilderList();
   /**
+   *
+   *
    * 
    * Output only. This is populated with the original input configs
    * where ImportData is called. It is available only after the clients
@@ -149,60 +197,72 @@ public interface DatasetOrBuilder extends
    *
    * repeated .google.cloud.datalabeling.v1beta1.InputConfig input_configs = 5;
    */
-  com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfigsOrBuilder(
-      int index);
+  com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfigsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Output only. The names of any related resources that are blocking changes
    * to the dataset.
    * 
* * repeated string blocking_resources = 6; + * * @return A list containing the blockingResources. */ - java.util.List - getBlockingResourcesList(); + java.util.List getBlockingResourcesList(); /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the dataset.
    * 
* * repeated string blocking_resources = 6; + * * @return The count of blockingResources. */ int getBlockingResourcesCount(); /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the dataset.
    * 
* * repeated string blocking_resources = 6; + * * @param index The index of the element to return. * @return The blockingResources at the given index. */ java.lang.String getBlockingResources(int index); /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the dataset.
    * 
* * repeated string blocking_resources = 6; + * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - com.google.protobuf.ByteString - getBlockingResourcesBytes(int index); + com.google.protobuf.ByteString getBlockingResourcesBytes(int index); /** + * + * *
    * Output only. The number of data items in the dataset.
    * 
* * int64 data_item_count = 7; + * * @return The dataItemCount. */ long getDataItemCount(); diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOuterClass.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOuterClass.java new file mode 100644 index 00000000..aadb0018 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DatasetOuterClass.java @@ -0,0 +1,402 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/dataset.proto + +package com.google.cloud.datalabeling.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_datalabeling_v1beta1_Dataset_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_Dataset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_InputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_DataItem_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_Example_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/datalabeling/v1beta1/data" + + "set.proto\022!google.cloud.datalabeling.v1b" + + "eta1\032\034google/api/annotations.proto\032\031goog" + + "le/api/resource.proto\0322google/cloud/data" + + "labeling/v1beta1/annotation.proto\032;googl" + + "e/cloud/datalabeling/v1beta1/annotation_" + + "spec_set.proto\0325google/cloud/datalabelin" + + "g/v1beta1/data_payloads.proto\032?google/cl" + + "oud/datalabeling/v1beta1/human_annotatio" + + "n_config.proto\032\037google/protobuf/timestam" + + "p.proto\"\300\002\n\007Dataset\022\014\n\004name\030\001 \001(\t\022\024\n\014dis" + + "play_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022/\n\013" + + "create_time\030\004 \001(\0132\032.google.protobuf.Time" + + "stamp\022E\n\rinput_configs\030\005 \003(\0132..google.cl" + + "oud.datalabeling.v1beta1.InputConfig\022\032\n\022" + + "blocking_resources\030\006 \003(\t\022\027\n\017data_item_co" + + "unt\030\007 \001(\003:O\352AL\n#datalabeling.googleapis." + + "com/Dataset\022%projects/{project}/datasets" + + "/{dataset}\"\361\003\n\013InputConfig\022H\n\rtext_metad" + + "ata\030\006 \001(\0132/.google.cloud.datalabeling.v1" + + "beta1.TextMetadataH\000\022B\n\ngcs_source\030\002 \001(\013" + + "2,.google.cloud.datalabeling.v1beta1.Gcs" + + "SourceH\001\022L\n\017bigquery_source\030\005 \001(\01321.goog" + + "le.cloud.datalabeling.v1beta1.BigQuerySo" + + "urceH\001\022>\n\tdata_type\030\001 \001(\0162+.google.cloud" + + ".datalabeling.v1beta1.DataType\022J\n\017annota" + + "tion_type\030\003 \001(\01621.google.cloud.datalabel" + + "ing.v1beta1.AnnotationType\022Z\n\027classifica" + + "tion_metadata\030\004 \001(\01329.google.cloud.datal" + + "abeling.v1beta1.ClassificationMetadataB\024" + + "\n\022data_type_metadataB\010\n\006source\"%\n\014TextMe" + + "tadata\022\025\n\rlanguage_code\030\001 \001(\t\"0\n\026Classif" + + "icationMetadata\022\026\n\016is_multi_label\030\001 \001(\010\"" + + "1\n\tGcsSource\022\021\n\tinput_uri\030\001 \001(\t\022\021\n\tmime_" + + "type\030\002 \001(\t\"#\n\016BigQuerySource\022\021\n\tinput_ur" + + "i\030\001 \001(\t\"\306\001\n\014OutputConfig\022L\n\017gcs_destinat" + + "ion\030\001 \001(\01321.google.cloud.datalabeling.v1" + + "beta1.GcsDestinationH\000\022Y\n\026gcs_folder_des" + + "tination\030\002 \001(\01327.google.cloud.datalabeli" + + "ng.v1beta1.GcsFolderDestinationH\000B\r\n\013des" + + "tination\"7\n\016GcsDestination\022\022\n\noutput_uri" + + "\030\001 \001(\t\022\021\n\tmime_type\030\002 \001(\t\"1\n\024GcsFolderDe" + + "stination\022\031\n\021output_folder_uri\030\001 \001(\t\"\347\002\n" + + "\010DataItem\022H\n\rimage_payload\030\002 \001(\0132/.googl" + + "e.cloud.datalabeling.v1beta1.ImagePayloa" + + "dH\000\022F\n\014text_payload\030\003 \001(\0132..google.cloud" + + ".datalabeling.v1beta1.TextPayloadH\000\022H\n\rv" + + "ideo_payload\030\004 \001(\0132/.google.cloud.datala" + + "beling.v1beta1.VideoPayloadH\000\022\014\n\004name\030\001 " + + "\001(\t:f\352Ac\n$datalabeling.googleapis.com/Da" + + "taItem\022;projects/{project}/datasets/{dat" + + "aset}/dataItems/{data_item}B\t\n\007payload\"\377" + + "\004\n\020AnnotatedDataset\022\014\n\004name\030\001 \001(\t\022\024\n\014dis" + + "play_name\030\002 \001(\t\022\023\n\013description\030\t \001(\t\022N\n\021" + + "annotation_source\030\003 \001(\01623.google.cloud.d" + + "atalabeling.v1beta1.AnnotationSource\022J\n\017" + + "annotation_type\030\010 \001(\01621.google.cloud.dat" + + "alabeling.v1beta1.AnnotationType\022\025\n\rexam" + + "ple_count\030\004 \001(\003\022\037\n\027completed_example_cou" + + "nt\030\005 \001(\003\022B\n\013label_stats\030\006 \001(\0132-.google.c" + + "loud.datalabeling.v1beta1.LabelStats\022/\n\013" + + "create_time\030\007 \001(\0132\032.google.protobuf.Time" + + "stamp\022M\n\010metadata\030\n \001(\0132;.google.cloud.d" + + "atalabeling.v1beta1.AnnotatedDatasetMeta" + + "data\022\032\n\022blocking_resources\030\013 \003(\t:~\352A{\n,d" + + "atalabeling.googleapis.com/AnnotatedData" + + "set\022Kprojects/{project}/datasets/{datase" + + "t}/annotatedDatasets/{annotated_dataset}" + + "\"\231\001\n\nLabelStats\022V\n\rexample_count\030\001 \003(\0132?" + + ".google.cloud.datalabeling.v1beta1.Label" + + "Stats.ExampleCountEntry\0323\n\021ExampleCountE" + + "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\003:\0028\001\"\242\010\n" + + "\030AnnotatedDatasetMetadata\022c\n\033image_class" + + "ification_config\030\002 \001(\0132<.google.cloud.da" + + "talabeling.v1beta1.ImageClassificationCo" + + "nfigH\000\022U\n\024bounding_poly_config\030\003 \001(\01325.g" + + "oogle.cloud.datalabeling.v1beta1.Boundin" + + "gPolyConfigH\000\022L\n\017polyline_config\030\004 \001(\01321" + + ".google.cloud.datalabeling.v1beta1.Polyl" + + "ineConfigH\000\022T\n\023segmentation_config\030\005 \001(\013" + + "25.google.cloud.datalabeling.v1beta1.Seg" + + "mentationConfigH\000\022c\n\033video_classificatio" + + "n_config\030\006 \001(\0132<.google.cloud.datalabeli" + + "ng.v1beta1.VideoClassificationConfigH\000\022[" + + "\n\027object_detection_config\030\007 \001(\01328.google" + + ".cloud.datalabeling.v1beta1.ObjectDetect" + + "ionConfigH\000\022Y\n\026object_tracking_config\030\010 " + + "\001(\01327.google.cloud.datalabeling.v1beta1." + + "ObjectTrackingConfigH\000\022F\n\014event_config\030\t" + + " \001(\0132..google.cloud.datalabeling.v1beta1" + + ".EventConfigH\000\022a\n\032text_classification_co" + + "nfig\030\n \001(\0132;.google.cloud.datalabeling.v" + + "1beta1.TextClassificationConfigH\000\022f\n\035tex" + + "t_entity_extraction_config\030\013 \001(\0132=.googl" + + "e.cloud.datalabeling.v1beta1.TextEntityE" + + "xtractionConfigH\000\022Y\n\027human_annotation_co" + + "nfig\030\001 \001(\01328.google.cloud.datalabeling.v" + + "1beta1.HumanAnnotationConfigB\033\n\031annotati" + + "on_request_config\"\316\003\n\007Example\022H\n\rimage_p" + + "ayload\030\002 \001(\0132/.google.cloud.datalabeling" + + ".v1beta1.ImagePayloadH\000\022F\n\014text_payload\030" + + "\006 \001(\0132..google.cloud.datalabeling.v1beta" + + "1.TextPayloadH\000\022H\n\rvideo_payload\030\007 \001(\0132/" + + ".google.cloud.datalabeling.v1beta1.Video" + + "PayloadH\000\022\014\n\004name\030\001 \001(\t\022B\n\013annotations\030\005" + + " \003(\0132-.google.cloud.datalabeling.v1beta1" + + ".Annotation:\211\001\352A\205\001\n#datalabeling.googlea" + + "pis.com/Example\022^projects/{project}/data" + + "sets/{dataset}/annotatedDatasets/{annota" + + "ted_dataset}/examples/{example}B\t\n\007paylo" + + "ad*W\n\010DataType\022\031\n\025DATA_TYPE_UNSPECIFIED\020" + + "\000\022\t\n\005IMAGE\020\001\022\t\n\005VIDEO\020\002\022\010\n\004TEXT\020\004\022\020\n\014GEN" + + "ERAL_DATA\020\006B\347\001\n%com.google.cloud.datalab" + + "eling.v1beta1P\001ZMgoogle.golang.org/genpr" + + "oto/googleapis/cloud/datalabeling/v1beta" + + "1;datalabeling\252\002!Google.Cloud.DataLabeli" + + "ng.V1Beta1\312\002!Google\\Cloud\\DataLabeling\\V" + + "1beta1\352\002$Google::Cloud::DataLabeling::V1" + + "beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.DataPayloads.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_datalabeling_v1beta1_Dataset_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_Dataset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_Dataset_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "CreateTime", + "InputConfigs", + "BlockingResources", + "DataItemCount", + }); + internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datalabeling_v1beta1_InputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor, + new java.lang.String[] { + "TextMetadata", + "GcsSource", + "BigquerySource", + "DataType", + "AnnotationType", + "ClassificationMetadata", + "DataTypeMetadata", + "Source", + }); + internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor, + new java.lang.String[] { + "LanguageCode", + }); + internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetadata_descriptor, + new java.lang.String[] { + "IsMultiLabel", + }); + internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datalabeling_v1beta1_GcsSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor, + new java.lang.String[] { + "InputUri", "MimeType", + }); + internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_BigQuerySource_descriptor, + new java.lang.String[] { + "InputUri", + }); + internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor, + new java.lang.String[] { + "GcsDestination", "GcsFolderDestination", "Destination", + }); + internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor, + new java.lang.String[] { + "OutputUri", "MimeType", + }); + internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor, + new java.lang.String[] { + "OutputFolderUri", + }); + internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_datalabeling_v1beta1_DataItem_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_DataItem_descriptor, + new java.lang.String[] { + "ImagePayload", "TextPayload", "VideoPayload", "Name", "Payload", + }); + internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDataset_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "AnnotationSource", + "AnnotationType", + "ExampleCount", + "CompletedExampleCount", + "LabelStats", + "CreateTime", + "Metadata", + "BlockingResources", + }); + internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_datalabeling_v1beta1_LabelStats_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor, + new java.lang.String[] { + "ExampleCount", + }); + internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_descriptor = + internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_AnnotatedDatasetMetadata_descriptor, + new java.lang.String[] { + "ImageClassificationConfig", + "BoundingPolyConfig", + "PolylineConfig", + "SegmentationConfig", + "VideoClassificationConfig", + "ObjectDetectionConfig", + "ObjectTrackingConfig", + "EventConfig", + "TextClassificationConfig", + "TextEntityExtractionConfig", + "HumanAnnotationConfig", + "AnnotationRequestConfig", + }); + internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_datalabeling_v1beta1_Example_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor, + new java.lang.String[] { + "ImagePayload", "TextPayload", "VideoPayload", "Name", "Annotations", "Payload", + }); + 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.AnnotationsProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.DataPayloads.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequest.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequest.java index 1a6978aa..19b7ec38 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for DeleteAnnotatedDataset.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest} */ -public final class DeleteAnnotatedDatasetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteAnnotatedDatasetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) DeleteAnnotatedDatasetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteAnnotatedDatasetRequest.newBuilder() to construct. private DeleteAnnotatedDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteAnnotatedDatasetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteAnnotatedDatasetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteAnnotatedDatasetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteAnnotatedDatasetRequest( 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) { @@ -73,36 +91,43 @@ private DeleteAnnotatedDatasetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.class, com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.class, + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the annotated dataset to delete, format:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
    * {annotated_dataset_id}
    * 
* - * string 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 @@ -111,31 +136,33 @@ 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 annotated dataset to delete, format:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
    * {annotated_dataset_id}
    * 
* - * string 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 { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,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.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest other = (com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) obj; + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest other = + (com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,134 +235,145 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest 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.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest 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.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest + 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.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 DeleteAnnotatedDataset.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.class, com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.class, + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.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(); @@ -345,14 +383,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotatedDatasetRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest + .getDefaultInstance(); } @java.lang.Override @@ -366,7 +406,8 @@ public com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest build @java.lang.Override public com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest result = new com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest(this); + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest result = + new com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,46 +417,51 @@ public com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest 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.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest)other); + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest other) { + if (other + == com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +485,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +499,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the annotated dataset to delete, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}
      * 
* - * string 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; @@ -473,22 +525,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the annotated dataset to delete, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}
      * 
* - * string 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 { @@ -496,67 +551,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the annotated dataset to delete, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}
      * 
* - * 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 annotated dataset to delete, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}
      * 
* - * string 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 annotated dataset to delete, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}
      * 
* - * 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); } @@ -566,30 +634,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) - private static final com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest(); } - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAnnotatedDatasetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteAnnotatedDatasetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAnnotatedDatasetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteAnnotatedDatasetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -601,9 +671,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequestOrBuilder.java new file mode 100644 index 00000000..c230b886 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotatedDatasetRequestOrBuilder.java @@ -0,0 +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/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface DeleteAnnotatedDatasetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.DeleteAnnotatedDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the annotated dataset to delete, format:
+   * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
+   * {annotated_dataset_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the annotated dataset to delete, format:
+   * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
+   * {annotated_dataset_id}
+   * 
+ * + * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequest.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequest.java index dd06b30d..afaac884 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for DeleteAnnotationSpecSet.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest} */ -public final class DeleteAnnotationSpecSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteAnnotationSpecSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) DeleteAnnotationSpecSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteAnnotationSpecSetRequest.newBuilder() to construct. - private DeleteAnnotationSpecSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DeleteAnnotationSpecSetRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteAnnotationSpecSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteAnnotationSpecSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteAnnotationSpecSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +71,20 @@ private DeleteAnnotationSpecSetRequest( 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) { @@ -73,35 +92,42 @@ private DeleteAnnotationSpecSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.class, com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.class, + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. AnnotationSpec resource name, format:
    * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
    * 
* - * string 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 @@ -110,30 +136,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. AnnotationSpec resource name, format:
    * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
    * 
* - * string 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 { @@ -142,6 +170,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -178,15 +206,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.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest other = (com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) obj; + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest other = + (com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,134 +234,145 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest 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.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest 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.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest + 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.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 DeleteAnnotationSpecSet.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.class, com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.class, + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.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(); @@ -343,14 +382,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteAnnotationSpecSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest + .getDefaultInstance(); } @java.lang.Override @@ -364,7 +405,8 @@ public com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest buil @java.lang.Override public com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest result = new com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest(this); + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest result = + new com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +416,51 @@ public com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest 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.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest)other); + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest other) { + if (other + == com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest + .getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +484,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +498,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. AnnotationSpec resource name, format:
      * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
      * 
* - * string 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; @@ -470,21 +523,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. AnnotationSpec resource name, format:
      * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
      * 
* - * string 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 { @@ -492,64 +548,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. AnnotationSpec resource name, format:
      * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
      * 
* - * 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. AnnotationSpec resource name, format:
      * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
      * 
* - * string 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. AnnotationSpec resource name, format:
      * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
      * 
* - * 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); } @@ -559,30 +628,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) - private static final com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest(); } - public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAnnotationSpecSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteAnnotationSpecSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAnnotationSpecSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteAnnotationSpecSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +665,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequestOrBuilder.java new file mode 100644 index 00000000..7e1ebdc6 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteAnnotationSpecSetRequestOrBuilder.java @@ -0,0 +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/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface DeleteAnnotationSpecSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.DeleteAnnotationSpecSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. AnnotationSpec resource name, format:
+   * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. AnnotationSpec resource name, format:
+   * `projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}`.
+   * 
+ * + * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequest.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequest.java index 88fc2c52..cbdbe7a6 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for DeleteDataset.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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,19 +70,20 @@ 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) { @@ -73,35 +91,42 @@ private DeleteDatasetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.class, com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.class, + com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Dataset resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * string 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 @@ -110,30 +135,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 resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * string 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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.datalabeling.v1beta1.DeleteDatasetRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest other = (com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest) obj; + com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest other = + (com.google.cloud.datalabeling.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; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.DeleteDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.DeleteDatasetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.DeleteDatasetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.DeleteDatasetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.DeleteDatasetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.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 DeleteDataset.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.DeleteDatasetRequest) com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.class, com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.class, + com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.newBuilder() @@ -324,16 +361,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 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteDatasetRequest_descriptor; } @java.lang.Override @@ -364,7 +400,8 @@ public com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest result = new com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest(this); + com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest result = + new com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +411,39 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.DeleteDatasetRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +451,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +476,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +489,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * string 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; @@ -470,21 +514,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * string 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 { @@ -492,64 +539,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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 resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * string 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 resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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); } @@ -559,12 +619,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.DeleteDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.DeleteDatasetRequest) private static final com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest(); } @@ -573,16 +633,16 @@ public static com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest getDefa 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; @@ -597,6 +657,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.DeleteDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequestOrBuilder.java new file mode 100644 index 00000000..71c7b616 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteDatasetRequestOrBuilder.java @@ -0,0 +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/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface DeleteDatasetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.DeleteDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Dataset resource name, format:
+   * projects/{project_id}/datasets/{dataset_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Dataset resource name, format:
+   * projects/{project_id}/datasets/{dataset_id}
+   * 
+ * + * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequest.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequest.java index 4fbabd25..4f17ee8b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message DeleteEvaluationJob.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest} */ -public final class DeleteEvaluationJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteEvaluationJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) DeleteEvaluationJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteEvaluationJobRequest.newBuilder() to construct. private DeleteEvaluationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteEvaluationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteEvaluationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteEvaluationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteEvaluationJobRequest( 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) { @@ -73,35 +91,42 @@ private DeleteEvaluationJobRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.class, + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the evaluation job that is going to be deleted. Format:
    * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string 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 @@ -110,30 +135,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. Name of the evaluation job that is going to be deleted. Format:
    * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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.datalabeling.v1beta1.DeleteEvaluationJobRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest other = (com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) obj; + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest other = + (com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest 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.datalabeling.v1beta1.DeleteEvaluationJobRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 DeleteEvaluationJob.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.class, + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.newBuilder() @@ -324,16 +361,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,13 +379,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteEvaluationJobRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.getDefaultInstance(); } @@ -364,7 +401,8 @@ public com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest result = new com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest(this); + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest result = + new com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +412,50 @@ public com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest 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.datalabeling.v1beta1.DeleteEvaluationJobRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest other) { + if (other + == com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +479,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +493,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the evaluation job that is going to be deleted. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string 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; @@ -470,21 +518,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the evaluation job that is going to be deleted. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string 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 { @@ -492,64 +543,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the evaluation job that is going to be deleted. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * 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 evaluation job that is going to be deleted. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string 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 evaluation job that is going to be deleted. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * 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); } @@ -559,30 +623,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) - private static final com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest(); } - public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteEvaluationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteEvaluationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteEvaluationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteEvaluationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +660,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequestOrBuilder.java new file mode 100644 index 00000000..3a876238 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteEvaluationJobRequestOrBuilder.java @@ -0,0 +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/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface DeleteEvaluationJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.DeleteEvaluationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the evaluation job that is going to be deleted. Format:
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the evaluation job that is going to be deleted. Format:
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
+   * 
+ * + * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequest.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequest.java index 3ad9ecd2..de010b8e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for DeleteInstruction.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.DeleteInstructionRequest} */ -public final class DeleteInstructionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteInstructionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) DeleteInstructionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteInstructionRequest.newBuilder() to construct. private DeleteInstructionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteInstructionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteInstructionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteInstructionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteInstructionRequest( 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) { @@ -73,35 +91,42 @@ private DeleteInstructionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.class, com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.class, + com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Instruction resource name, format:
    * projects/{project_id}/instructions/{instruction_id}
    * 
* - * string 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 @@ -110,30 +135,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. Instruction resource name, format:
    * projects/{project_id}/instructions/{instruction_id}
    * 
* - * string 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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.datalabeling.v1beta1.DeleteInstructionRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest other = (com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) obj; + com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest other = + (com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest 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.datalabeling.v1beta1.DeleteInstructionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 DeleteInstruction.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.DeleteInstructionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.class, com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.class, + com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.newBuilder() @@ -324,16 +361,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,13 +379,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_DeleteInstructionRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.getDefaultInstance(); } @@ -364,7 +401,8 @@ public com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest result = new com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest(this); + com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest result = + new com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +412,39 @@ public com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest 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.datalabeling.v1beta1.DeleteInstructionRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +452,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +478,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +492,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_id}
      * 
* - * string 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; @@ -470,21 +517,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_id}
      * 
* - * string 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 { @@ -492,64 +542,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_id}
      * 
* - * 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. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_id}
      * 
* - * string 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. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_id}
      * 
* - * 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); } @@ -559,30 +622,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) - private static final com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest(); } - public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteInstructionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteInstructionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteInstructionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteInstructionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +659,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.DeleteInstructionRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequestOrBuilder.java new file mode 100644 index 00000000..12de08fc --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/DeleteInstructionRequestOrBuilder.java @@ -0,0 +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/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface DeleteInstructionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.DeleteInstructionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Instruction resource name, format:
+   * projects/{project_id}/instructions/{instruction_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Instruction resource name, format:
+   * projects/{project_id}/instructions/{instruction_id}
+   * 
+ * + * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Evaluation.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Evaluation.java similarity index 74% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Evaluation.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Evaluation.java index 05ad66ca..05b516cd 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Evaluation.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Evaluation.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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Describes an evaluation between a machine learning model's predictions and
  * ground truth labels. Created when an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] runs successfully.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.Evaluation}
  */
-public final class Evaluation extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Evaluation extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.Evaluation)
     EvaluationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Evaluation.newBuilder() to construct.
   private Evaluation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Evaluation() {
     name_ = "";
     annotationType_ = 0;
@@ -27,16 +45,15 @@ private Evaluation() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Evaluation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Evaluation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,82 +72,96 @@ private Evaluation(
           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.datalabeling.v1beta1.EvaluationConfig.Builder subBuilder = null;
-            if (config_ != null) {
-              subBuilder = config_.toBuilder();
+              name_ = s;
+              break;
             }
-            config_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.EvaluationConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(config_);
-              config_ = subBuilder.buildPartial();
+          case 18:
+            {
+              com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder subBuilder = null;
+              if (config_ != null) {
+                subBuilder = config_.toBuilder();
+              }
+              config_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.EvaluationConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(config_);
+                config_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 26: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (evaluationJobRunTime_ != null) {
-              subBuilder = evaluationJobRunTime_.toBuilder();
+          case 26:
+            {
+              com.google.protobuf.Timestamp.Builder subBuilder = null;
+              if (evaluationJobRunTime_ != null) {
+                subBuilder = evaluationJobRunTime_.toBuilder();
+              }
+              evaluationJobRunTime_ =
+                  input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(evaluationJobRunTime_);
+                evaluationJobRunTime_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            evaluationJobRunTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(evaluationJobRunTime_);
-              evaluationJobRunTime_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 34: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+          case 34:
+            {
+              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 42:
+            {
+              com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder subBuilder = null;
+              if (evaluationMetrics_ != null) {
+                subBuilder = evaluationMetrics_.toBuilder();
+              }
+              evaluationMetrics_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(evaluationMetrics_);
+                evaluationMetrics_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 48:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 42: {
-            com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder subBuilder = null;
-            if (evaluationMetrics_ != null) {
-              subBuilder = evaluationMetrics_.toBuilder();
+              annotationType_ = rawValue;
+              break;
             }
-            evaluationMetrics_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(evaluationMetrics_);
-              evaluationMetrics_ = subBuilder.buildPartial();
+          case 56:
+            {
+              evaluatedItemCount_ = input.readInt64();
+              break;
             }
-
-            break;
-          }
-          case 48: {
-            int rawValue = input.readEnum();
-
-            annotationType_ = rawValue;
-            break;
-          }
-          case 56: {
-
-            evaluatedItemCount_ = 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) {
@@ -138,29 +169,33 @@ private Evaluation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Evaluation_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_Evaluation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Evaluation_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_Evaluation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.Evaluation.class, com.google.cloud.datalabeling.v1beta1.Evaluation.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.Evaluation.class,
+            com.google.cloud.datalabeling.v1beta1.Evaluation.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Output only. Resource name of an evaluation. The name has the following
    * format:
@@ -168,6 +203,7 @@ private Evaluation(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -176,14 +212,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 an evaluation. The name has the following
    * format:
@@ -191,16 +228,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 { @@ -211,12 +247,15 @@ public java.lang.String getName() { public static final int CONFIG_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.EvaluationConfig config_; /** + * + * *
    * Output only. Options used in the evaluation job that created this
    * evaluation.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; + * * @return Whether the config field is set. */ @java.lang.Override @@ -224,19 +263,26 @@ public boolean hasConfig() { return config_ != null; } /** + * + * *
    * Output only. Options used in the evaluation job that created this
    * evaluation.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; + * * @return The config. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EvaluationConfig getConfig() { - return config_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance() + : config_; } /** + * + * *
    * Output only. Options used in the evaluation job that created this
    * evaluation.
@@ -252,12 +298,15 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder getConfig
   public static final int EVALUATION_JOB_RUN_TIME_FIELD_NUMBER = 3;
   private com.google.protobuf.Timestamp evaluationJobRunTime_;
   /**
+   *
+   *
    * 
    * Output only. Timestamp for when the evaluation job that created this
    * evaluation ran.
    * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; + * * @return Whether the evaluationJobRunTime field is set. */ @java.lang.Override @@ -265,19 +314,26 @@ public boolean hasEvaluationJobRunTime() { return evaluationJobRunTime_ != null; } /** + * + * *
    * Output only. Timestamp for when the evaluation job that created this
    * evaluation ran.
    * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; + * * @return The evaluationJobRunTime. */ @java.lang.Override public com.google.protobuf.Timestamp getEvaluationJobRunTime() { - return evaluationJobRunTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : evaluationJobRunTime_; + return evaluationJobRunTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : evaluationJobRunTime_; } /** + * + * *
    * Output only. Timestamp for when the evaluation job that created this
    * evaluation ran.
@@ -293,11 +349,14 @@ public com.google.protobuf.TimestampOrBuilder getEvaluationJobRunTimeOrBuilder()
   public static final int CREATE_TIME_FIELD_NUMBER = 4;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * Output only. Timestamp for when this evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -305,11 +364,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Timestamp for when this evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return The createTime. */ @java.lang.Override @@ -317,6 +379,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Timestamp for when this evaluation was created.
    * 
@@ -331,11 +395,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int EVALUATION_METRICS_FIELD_NUMBER = 5; private com.google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluationMetrics_; /** + * + * *
    * Output only. Metrics comparing predictions to ground truth labels.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; + * * @return Whether the evaluationMetrics field is set. */ @java.lang.Override @@ -343,18 +410,25 @@ public boolean hasEvaluationMetrics() { return evaluationMetrics_ != null; } /** + * + * *
    * Output only. Metrics comparing predictions to ground truth labels.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; + * * @return The evaluationMetrics. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics getEvaluationMetrics() { - return evaluationMetrics_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.getDefaultInstance() : evaluationMetrics_; + return evaluationMetrics_ == null + ? com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.getDefaultInstance() + : evaluationMetrics_; } /** + * + * *
    * Output only. Metrics comparing predictions to ground truth labels.
    * 
@@ -362,13 +436,16 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics getEvaluationMetr * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder getEvaluationMetricsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder + getEvaluationMetricsOrBuilder() { return getEvaluationMetrics(); } public static final int ANNOTATION_TYPE_FIELD_NUMBER = 6; private int annotationType_; /** + * + * *
    * Output only. Type of task that the model version being evaluated performs,
    * as defined in the
@@ -377,12 +454,16 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder getEvalu
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; + * * @return The enum numeric value on the wire for annotationType. */ - @java.lang.Override public int getAnnotationTypeValue() { + @java.lang.Override + public int getAnnotationTypeValue() { return annotationType_; } /** + * + * *
    * Output only. Type of task that the model version being evaluated performs,
    * as defined in the
@@ -391,17 +472,24 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder getEvalu
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; + * * @return The annotationType. */ - @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType() { + @java.lang.Override + public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationType result = com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); - return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED : result; + com.google.cloud.datalabeling.v1beta1.AnnotationType result = + com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); + return result == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED + : result; } public static final int EVALUATED_ITEM_COUNT_FIELD_NUMBER = 7; private long evaluatedItemCount_; /** + * + * *
    * Output only. The number of items in the ground truth dataset that were used
    * for this evaluation. Only populated when the evaulation is for certain
@@ -409,6 +497,7 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder getEvalu
    * 
* * int64 evaluated_item_count = 7; + * * @return The evaluatedItemCount. */ @java.lang.Override @@ -417,6 +506,7 @@ public long getEvaluatedItemCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -428,8 +518,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_); } @@ -445,7 +534,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (evaluationMetrics_ != null) { output.writeMessage(5, getEvaluationMetrics()); } - if (annotationType_ != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED.getNumber()) { + if (annotationType_ + != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(6, annotationType_); } if (evaluatedItemCount_ != 0L) { @@ -464,28 +555,25 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (config_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfig()); } if (evaluationJobRunTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getEvaluationJobRunTime()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEvaluationJobRunTime()); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); } if (evaluationMetrics_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getEvaluationMetrics()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEvaluationMetrics()); } - if (annotationType_ != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, annotationType_); + if (annotationType_ + != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, annotationType_); } if (evaluatedItemCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, evaluatedItemCount_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, evaluatedItemCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -495,38 +583,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.datalabeling.v1beta1.Evaluation)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.Evaluation other = (com.google.cloud.datalabeling.v1beta1.Evaluation) obj; + com.google.cloud.datalabeling.v1beta1.Evaluation other = + (com.google.cloud.datalabeling.v1beta1.Evaluation) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasConfig() != other.hasConfig()) return false; if (hasConfig()) { - if (!getConfig() - .equals(other.getConfig())) return false; + if (!getConfig().equals(other.getConfig())) return false; } if (hasEvaluationJobRunTime() != other.hasEvaluationJobRunTime()) return false; if (hasEvaluationJobRunTime()) { - if (!getEvaluationJobRunTime() - .equals(other.getEvaluationJobRunTime())) return false; + if (!getEvaluationJobRunTime().equals(other.getEvaluationJobRunTime())) 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 (hasEvaluationMetrics() != other.hasEvaluationMetrics()) return false; if (hasEvaluationMetrics()) { - if (!getEvaluationMetrics() - .equals(other.getEvaluationMetrics())) return false; + if (!getEvaluationMetrics().equals(other.getEvaluationMetrics())) return false; } if (annotationType_ != other.annotationType_) return false; - if (getEvaluatedItemCount() - != other.getEvaluatedItemCount()) return false; + if (getEvaluatedItemCount() != other.getEvaluatedItemCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -559,104 +642,110 @@ public int hashCode() { hash = (37 * hash) + ANNOTATION_TYPE_FIELD_NUMBER; hash = (53 * hash) + annotationType_; hash = (37 * hash) + EVALUATED_ITEM_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getEvaluatedItemCount()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getEvaluatedItemCount()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Evaluation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.Evaluation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.Evaluation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.Evaluation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.Evaluation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Describes an evaluation between a machine learning model's predictions and
    * ground truth labels. Created when an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] runs successfully.
@@ -664,21 +753,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.Evaluation}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.Evaluation)
       com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Evaluation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_Evaluation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Evaluation_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_Evaluation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.Evaluation.class, com.google.cloud.datalabeling.v1beta1.Evaluation.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.Evaluation.class,
+              com.google.cloud.datalabeling.v1beta1.Evaluation.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.Evaluation.newBuilder()
@@ -686,16 +777,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();
@@ -733,9 +823,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Evaluation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_Evaluation_descriptor;
     }
 
     @java.lang.Override
@@ -754,7 +844,8 @@ public com.google.cloud.datalabeling.v1beta1.Evaluation build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.Evaluation buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.Evaluation result = new com.google.cloud.datalabeling.v1beta1.Evaluation(this);
+      com.google.cloud.datalabeling.v1beta1.Evaluation result =
+          new com.google.cloud.datalabeling.v1beta1.Evaluation(this);
       result.name_ = name_;
       if (configBuilder_ == null) {
         result.config_ = config_;
@@ -786,38 +877,39 @@ public com.google.cloud.datalabeling.v1beta1.Evaluation buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.Evaluation) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Evaluation)other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Evaluation) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -825,7 +917,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.Evaluation other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.Evaluation.getDefaultInstance()) return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.Evaluation.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -879,6 +972,8 @@ public Builder mergeFrom(
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Resource name of an evaluation. The name has the following
      * format:
@@ -886,13 +981,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; @@ -901,6 +996,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of an evaluation. The name has the following
      * format:
@@ -908,15 +1005,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 { @@ -924,6 +1020,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of an evaluation. The name has the following
      * format:
@@ -931,20 +1029,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 an evaluation. The name has the following
      * format:
@@ -952,15 +1052,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 an evaluation. The name has the following
      * format:
@@ -968,16 +1071,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; @@ -985,36 +1088,49 @@ public Builder setNameBytes( private com.google.cloud.datalabeling.v1beta1.EvaluationConfig config_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationConfig, com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder> configBuilder_; + com.google.cloud.datalabeling.v1beta1.EvaluationConfig, + com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder> + configBuilder_; /** + * + * *
      * Output only. Options used in the evaluation job that created this
      * evaluation.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; + * * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; } /** + * + * *
      * Output only. Options used in the evaluation job that created this
      * evaluation.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; + * * @return The config. */ public com.google.cloud.datalabeling.v1beta1.EvaluationConfig getConfig() { if (configBuilder_ == null) { - return config_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance() : config_; + return config_ == null + ? com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance() + : config_; } else { return configBuilder_.getMessage(); } } /** + * + * *
      * Output only. Options used in the evaluation job that created this
      * evaluation.
@@ -1036,6 +1152,8 @@ public Builder setConfig(com.google.cloud.datalabeling.v1beta1.EvaluationConfig
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Options used in the evaluation job that created this
      * evaluation.
@@ -1055,6 +1173,8 @@ public Builder setConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Options used in the evaluation job that created this
      * evaluation.
@@ -1066,7 +1186,9 @@ public Builder mergeConfig(com.google.cloud.datalabeling.v1beta1.EvaluationConfi
       if (configBuilder_ == null) {
         if (config_ != null) {
           config_ =
-            com.google.cloud.datalabeling.v1beta1.EvaluationConfig.newBuilder(config_).mergeFrom(value).buildPartial();
+              com.google.cloud.datalabeling.v1beta1.EvaluationConfig.newBuilder(config_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           config_ = value;
         }
@@ -1078,6 +1200,8 @@ public Builder mergeConfig(com.google.cloud.datalabeling.v1beta1.EvaluationConfi
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Options used in the evaluation job that created this
      * evaluation.
@@ -1097,6 +1221,8 @@ public Builder clearConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Options used in the evaluation job that created this
      * evaluation.
@@ -1105,11 +1231,13 @@ public Builder clearConfig() {
      * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2;
      */
     public com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder getConfigBuilder() {
-      
+
       onChanged();
       return getConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output only. Options used in the evaluation job that created this
      * evaluation.
@@ -1121,11 +1249,14 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder getConfig
       if (configBuilder_ != null) {
         return configBuilder_.getMessageOrBuilder();
       } else {
-        return config_ == null ?
-            com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance() : config_;
+        return config_ == null
+            ? com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance()
+            : config_;
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Options used in the evaluation job that created this
      * evaluation.
@@ -1134,14 +1265,17 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder getConfig
      * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.EvaluationConfig, com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder> 
+            com.google.cloud.datalabeling.v1beta1.EvaluationConfig,
+            com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder,
+            com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder>
         getConfigFieldBuilder() {
       if (configBuilder_ == null) {
-        configBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.EvaluationConfig, com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder>(
-                getConfig(),
-                getParentForChildren(),
-                isClean());
+        configBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.datalabeling.v1beta1.EvaluationConfig,
+                com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder,
+                com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder>(
+                getConfig(), getParentForChildren(), isClean());
         config_ = null;
       }
       return configBuilder_;
@@ -1149,36 +1283,49 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder getConfig
 
     private com.google.protobuf.Timestamp evaluationJobRunTime_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> evaluationJobRunTimeBuilder_;
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
+        evaluationJobRunTimeBuilder_;
     /**
+     *
+     *
      * 
      * Output only. Timestamp for when the evaluation job that created this
      * evaluation ran.
      * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; + * * @return Whether the evaluationJobRunTime field is set. */ public boolean hasEvaluationJobRunTime() { return evaluationJobRunTimeBuilder_ != null || evaluationJobRunTime_ != null; } /** + * + * *
      * Output only. Timestamp for when the evaluation job that created this
      * evaluation ran.
      * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; + * * @return The evaluationJobRunTime. */ public com.google.protobuf.Timestamp getEvaluationJobRunTime() { if (evaluationJobRunTimeBuilder_ == null) { - return evaluationJobRunTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : evaluationJobRunTime_; + return evaluationJobRunTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : evaluationJobRunTime_; } else { return evaluationJobRunTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Timestamp for when the evaluation job that created this
      * evaluation ran.
@@ -1200,6 +1347,8 @@ public Builder setEvaluationJobRunTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Timestamp for when the evaluation job that created this
      * evaluation ran.
@@ -1207,8 +1356,7 @@ public Builder setEvaluationJobRunTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp evaluation_job_run_time = 3;
      */
-    public Builder setEvaluationJobRunTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setEvaluationJobRunTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (evaluationJobRunTimeBuilder_ == null) {
         evaluationJobRunTime_ = builderForValue.build();
         onChanged();
@@ -1219,6 +1367,8 @@ public Builder setEvaluationJobRunTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Timestamp for when the evaluation job that created this
      * evaluation ran.
@@ -1230,7 +1380,9 @@ public Builder mergeEvaluationJobRunTime(com.google.protobuf.Timestamp value) {
       if (evaluationJobRunTimeBuilder_ == null) {
         if (evaluationJobRunTime_ != null) {
           evaluationJobRunTime_ =
-            com.google.protobuf.Timestamp.newBuilder(evaluationJobRunTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(evaluationJobRunTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           evaluationJobRunTime_ = value;
         }
@@ -1242,6 +1394,8 @@ public Builder mergeEvaluationJobRunTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Timestamp for when the evaluation job that created this
      * evaluation ran.
@@ -1261,6 +1415,8 @@ public Builder clearEvaluationJobRunTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Timestamp for when the evaluation job that created this
      * evaluation ran.
@@ -1269,11 +1425,13 @@ public Builder clearEvaluationJobRunTime() {
      * .google.protobuf.Timestamp evaluation_job_run_time = 3;
      */
     public com.google.protobuf.Timestamp.Builder getEvaluationJobRunTimeBuilder() {
-      
+
       onChanged();
       return getEvaluationJobRunTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output only. Timestamp for when the evaluation job that created this
      * evaluation ran.
@@ -1285,11 +1443,14 @@ public com.google.protobuf.TimestampOrBuilder getEvaluationJobRunTimeOrBuilder()
       if (evaluationJobRunTimeBuilder_ != null) {
         return evaluationJobRunTimeBuilder_.getMessageOrBuilder();
       } else {
-        return evaluationJobRunTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : evaluationJobRunTime_;
+        return evaluationJobRunTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : evaluationJobRunTime_;
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Timestamp for when the evaluation job that created this
      * evaluation ran.
@@ -1298,14 +1459,17 @@ public com.google.protobuf.TimestampOrBuilder getEvaluationJobRunTimeOrBuilder()
      * .google.protobuf.Timestamp evaluation_job_run_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>
         getEvaluationJobRunTimeFieldBuilder() {
       if (evaluationJobRunTimeBuilder_ == null) {
-        evaluationJobRunTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getEvaluationJobRunTime(),
-                getParentForChildren(),
-                isClean());
+        evaluationJobRunTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getEvaluationJobRunTime(), getParentForChildren(), isClean());
         evaluationJobRunTime_ = null;
       }
       return evaluationJobRunTimeBuilder_;
@@ -1313,34 +1477,47 @@ public com.google.protobuf.TimestampOrBuilder getEvaluationJobRunTimeOrBuilder()
 
     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 for when this evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Timestamp for when this evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 4; + * * @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 for when this evaluation was created.
      * 
@@ -1361,14 +1538,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp for when this evaluation was created.
      * 
* * .google.protobuf.Timestamp create_time = 4; */ - 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(); @@ -1379,6 +1557,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Timestamp for when this evaluation was created.
      * 
@@ -1389,7 +1569,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; } @@ -1401,6 +1581,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp for when this evaluation was created.
      * 
@@ -1419,6 +1601,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Timestamp for when this evaluation was created.
      * 
@@ -1426,11 +1610,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 4; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Timestamp for when this evaluation was created.
      * 
@@ -1441,11 +1627,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 for when this evaluation was created.
      * 
@@ -1453,14 +1642,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_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> 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_; @@ -1468,41 +1660,55 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluationMetrics_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics, com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder> evaluationMetricsBuilder_; + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics, + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder, + com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder> + evaluationMetricsBuilder_; /** + * + * *
      * Output only. Metrics comparing predictions to ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; + * * @return Whether the evaluationMetrics field is set. */ public boolean hasEvaluationMetrics() { return evaluationMetricsBuilder_ != null || evaluationMetrics_ != null; } /** + * + * *
      * Output only. Metrics comparing predictions to ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; + * * @return The evaluationMetrics. */ public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics getEvaluationMetrics() { if (evaluationMetricsBuilder_ == null) { - return evaluationMetrics_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.getDefaultInstance() : evaluationMetrics_; + return evaluationMetrics_ == null + ? com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.getDefaultInstance() + : evaluationMetrics_; } else { return evaluationMetricsBuilder_.getMessage(); } } /** + * + * *
      * Output only. Metrics comparing predictions to ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; */ - public Builder setEvaluationMetrics(com.google.cloud.datalabeling.v1beta1.EvaluationMetrics value) { + public Builder setEvaluationMetrics( + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics value) { if (evaluationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1516,6 +1722,8 @@ public Builder setEvaluationMetrics(com.google.cloud.datalabeling.v1beta1.Evalua return this; } /** + * + * *
      * Output only. Metrics comparing predictions to ground truth labels.
      * 
@@ -1534,17 +1742,22 @@ public Builder setEvaluationMetrics( return this; } /** + * + * *
      * Output only. Metrics comparing predictions to ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; */ - public Builder mergeEvaluationMetrics(com.google.cloud.datalabeling.v1beta1.EvaluationMetrics value) { + public Builder mergeEvaluationMetrics( + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics value) { if (evaluationMetricsBuilder_ == null) { if (evaluationMetrics_ != null) { evaluationMetrics_ = - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.newBuilder(evaluationMetrics_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.newBuilder(evaluationMetrics_) + .mergeFrom(value) + .buildPartial(); } else { evaluationMetrics_ = value; } @@ -1556,6 +1769,8 @@ public Builder mergeEvaluationMetrics(com.google.cloud.datalabeling.v1beta1.Eval return this; } /** + * + * *
      * Output only. Metrics comparing predictions to ground truth labels.
      * 
@@ -1574,33 +1789,42 @@ public Builder clearEvaluationMetrics() { return this; } /** + * + * *
      * Output only. Metrics comparing predictions to ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; */ - public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder getEvaluationMetricsBuilder() { - + public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder + getEvaluationMetricsBuilder() { + onChanged(); return getEvaluationMetricsFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Metrics comparing predictions to ground truth labels.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; */ - public com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder getEvaluationMetricsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder + getEvaluationMetricsOrBuilder() { if (evaluationMetricsBuilder_ != null) { return evaluationMetricsBuilder_.getMessageOrBuilder(); } else { - return evaluationMetrics_ == null ? - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.getDefaultInstance() : evaluationMetrics_; + return evaluationMetrics_ == null + ? com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.getDefaultInstance() + : evaluationMetrics_; } } /** + * + * *
      * Output only. Metrics comparing predictions to ground truth labels.
      * 
@@ -1608,14 +1832,17 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder getEvalu * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics, com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder> + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics, + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder, + com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder> getEvaluationMetricsFieldBuilder() { if (evaluationMetricsBuilder_ == null) { - evaluationMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics, com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder>( - getEvaluationMetrics(), - getParentForChildren(), - isClean()); + evaluationMetricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics, + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder, + com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder>( + getEvaluationMetrics(), getParentForChildren(), isClean()); evaluationMetrics_ = null; } return evaluationMetricsBuilder_; @@ -1623,6 +1850,8 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder getEvalu private int annotationType_ = 0; /** + * + * *
      * Output only. Type of task that the model version being evaluated performs,
      * as defined in the
@@ -1631,12 +1860,16 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder getEvalu
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; + * * @return The enum numeric value on the wire for annotationType. */ - @java.lang.Override public int getAnnotationTypeValue() { + @java.lang.Override + public int getAnnotationTypeValue() { return annotationType_; } /** + * + * *
      * Output only. Type of task that the model version being evaluated performs,
      * as defined in the
@@ -1645,16 +1878,19 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder getEvalu
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; + * * @param value The enum numeric value on the wire for annotationType to set. * @return This builder for chaining. */ public Builder setAnnotationTypeValue(int value) { - + annotationType_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Type of task that the model version being evaluated performs,
      * as defined in the
@@ -1663,15 +1899,21 @@ public Builder setAnnotationTypeValue(int value) {
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; + * * @return The annotationType. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationType result = com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); - return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED : result; + com.google.cloud.datalabeling.v1beta1.AnnotationType result = + com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); + return result == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Type of task that the model version being evaluated performs,
      * as defined in the
@@ -1680,6 +1922,7 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType()
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; + * * @param value The annotationType to set. * @return This builder for chaining. */ @@ -1687,12 +1930,14 @@ public Builder setAnnotationType(com.google.cloud.datalabeling.v1beta1.Annotatio if (value == null) { throw new NullPointerException(); } - + annotationType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. Type of task that the model version being evaluated performs,
      * as defined in the
@@ -1701,17 +1946,20 @@ public Builder setAnnotationType(com.google.cloud.datalabeling.v1beta1.Annotatio
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; + * * @return This builder for chaining. */ public Builder clearAnnotationType() { - + annotationType_ = 0; onChanged(); return this; } - private long evaluatedItemCount_ ; + private long evaluatedItemCount_; /** + * + * *
      * Output only. The number of items in the ground truth dataset that were used
      * for this evaluation. Only populated when the evaulation is for certain
@@ -1719,6 +1967,7 @@ public Builder clearAnnotationType() {
      * 
* * int64 evaluated_item_count = 7; + * * @return The evaluatedItemCount. */ @java.lang.Override @@ -1726,6 +1975,8 @@ public long getEvaluatedItemCount() { return evaluatedItemCount_; } /** + * + * *
      * Output only. The number of items in the ground truth dataset that were used
      * for this evaluation. Only populated when the evaulation is for certain
@@ -1733,16 +1984,19 @@ public long getEvaluatedItemCount() {
      * 
* * int64 evaluated_item_count = 7; + * * @param value The evaluatedItemCount to set. * @return This builder for chaining. */ public Builder setEvaluatedItemCount(long value) { - + evaluatedItemCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The number of items in the ground truth dataset that were used
      * for this evaluation. Only populated when the evaulation is for certain
@@ -1750,17 +2004,18 @@ public Builder setEvaluatedItemCount(long value) {
      * 
* * int64 evaluated_item_count = 7; + * * @return This builder for chaining. */ public Builder clearEvaluatedItemCount() { - + evaluatedItemCount_ = 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); } @@ -1770,12 +2025,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.Evaluation) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Evaluation) private static final com.google.cloud.datalabeling.v1beta1.Evaluation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.Evaluation(); } @@ -1784,16 +2039,16 @@ public static com.google.cloud.datalabeling.v1beta1.Evaluation getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Evaluation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Evaluation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Evaluation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Evaluation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1808,6 +2063,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.Evaluation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfig.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfig.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfig.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfig.java index 98ec63d5..5e87ae14 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfig.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfig.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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Configuration details used for calculating evaluation metrics and creating an
  * [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation].
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationConfig}
  */
-public final class EvaluationConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class EvaluationConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.EvaluationConfig)
     EvaluationConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use EvaluationConfig.newBuilder() to construct.
   private EvaluationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private EvaluationConfig() {
-  }
+
+  private EvaluationConfig() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new EvaluationConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private EvaluationConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,27 +69,36 @@ private EvaluationConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder subBuilder = null;
-            if (verticalOptionCase_ == 1) {
-              subBuilder = ((com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_).toBuilder();
+          case 10:
+            {
+              com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder
+                  subBuilder = null;
+              if (verticalOptionCase_ == 1) {
+                subBuilder =
+                    ((com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions)
+                            verticalOption_)
+                        .toBuilder();
+              }
+              verticalOption_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions)
+                        verticalOption_);
+                verticalOption_ = subBuilder.buildPartial();
+              }
+              verticalOptionCase_ = 1;
+              break;
             }
-            verticalOption_ =
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_);
-              verticalOption_ = subBuilder.buildPartial();
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            verticalOptionCase_ = 1;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
-            }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -81,34 +106,39 @@ private EvaluationConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.EvaluationConfig.class, com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.EvaluationConfig.class,
+            com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder.class);
   }
 
   private int verticalOptionCase_ = 0;
   private java.lang.Object verticalOption_;
+
   public enum VerticalOptionCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     BOUNDING_BOX_EVALUATION_OPTIONS(1),
     VERTICALOPTION_NOT_SET(0);
     private final int value;
+
     private VerticalOptionCase(int value) {
       this.value = value;
     }
@@ -124,31 +154,38 @@ public static VerticalOptionCase valueOf(int value) {
 
     public static VerticalOptionCase forNumber(int value) {
       switch (value) {
-        case 1: return BOUNDING_BOX_EVALUATION_OPTIONS;
-        case 0: return VERTICALOPTION_NOT_SET;
-        default: return null;
+        case 1:
+          return BOUNDING_BOX_EVALUATION_OPTIONS;
+        case 0:
+          return VERTICALOPTION_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public VerticalOptionCase
-  getVerticalOptionCase() {
-    return VerticalOptionCase.forNumber(
-        verticalOptionCase_);
+  public VerticalOptionCase getVerticalOptionCase() {
+    return VerticalOptionCase.forNumber(verticalOptionCase_);
   }
 
   public static final int BOUNDING_BOX_EVALUATION_OPTIONS_FIELD_NUMBER = 1;
   /**
+   *
+   *
    * 
    * Only specify this field if the related model performs image object
    * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
    * bounding boxes.
    * 
* - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * + * * @return Whether the boundingBoxEvaluationOptions field is set. */ @java.lang.Override @@ -156,40 +193,52 @@ public boolean hasBoundingBoxEvaluationOptions() { return verticalOptionCase_ == 1; } /** + * + * *
    * Only specify this field if the related model performs image object
    * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
    * bounding boxes.
    * 
* - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * + * * @return The boundingBoxEvaluationOptions. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions getBoundingBoxEvaluationOptions() { + public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions + getBoundingBoxEvaluationOptions() { if (verticalOptionCase_ == 1) { - return (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_; + return (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_; } return com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.getDefaultInstance(); } /** + * + * *
    * Only specify this field if the related model performs image object
    * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
    * bounding boxes.
    * 
* - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder getBoundingBoxEvaluationOptionsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder + getBoundingBoxEvaluationOptionsOrBuilder() { if (verticalOptionCase_ == 1) { - return (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_; + return (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_; } return com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -201,10 +250,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 { if (verticalOptionCase_ == 1) { - output.writeMessage(1, (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_); + output.writeMessage( + 1, (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_); } unknownFields.writeTo(output); } @@ -216,8 +265,10 @@ public int getSerializedSize() { size = 0; if (verticalOptionCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -227,18 +278,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.datalabeling.v1beta1.EvaluationConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.EvaluationConfig other = (com.google.cloud.datalabeling.v1beta1.EvaluationConfig) obj; + com.google.cloud.datalabeling.v1beta1.EvaluationConfig other = + (com.google.cloud.datalabeling.v1beta1.EvaluationConfig) obj; if (!getVerticalOptionCase().equals(other.getVerticalOptionCase())) return false; switch (verticalOptionCase_) { case 1: - if (!getBoundingBoxEvaluationOptions() - .equals(other.getBoundingBoxEvaluationOptions())) return false; + if (!getBoundingBoxEvaluationOptions().equals(other.getBoundingBoxEvaluationOptions())) + return false; break; case 0: default: @@ -268,96 +320,104 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig 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.datalabeling.v1beta1.EvaluationConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.EvaluationConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.EvaluationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configuration details used for calculating evaluation metrics and creating an
    * [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation].
@@ -365,21 +425,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.EvaluationConfig)
       com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.EvaluationConfig.class, com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.EvaluationConfig.class,
+              com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.EvaluationConfig.newBuilder()
@@ -387,16 +449,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();
@@ -406,9 +467,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor;
     }
 
     @java.lang.Override
@@ -427,7 +488,8 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfig build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.EvaluationConfig buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.EvaluationConfig result = new com.google.cloud.datalabeling.v1beta1.EvaluationConfig(this);
+      com.google.cloud.datalabeling.v1beta1.EvaluationConfig result =
+          new com.google.cloud.datalabeling.v1beta1.EvaluationConfig(this);
       if (verticalOptionCase_ == 1) {
         if (boundingBoxEvaluationOptionsBuilder_ == null) {
           result.verticalOption_ = verticalOption_;
@@ -444,38 +506,39 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfig buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.EvaluationConfig) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.EvaluationConfig)other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.EvaluationConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -483,15 +546,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.EvaluationConfig other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance())
+        return this;
       switch (other.getVerticalOptionCase()) {
-        case BOUNDING_BOX_EVALUATION_OPTIONS: {
-          mergeBoundingBoxEvaluationOptions(other.getBoundingBoxEvaluationOptions());
-          break;
-        }
-        case VERTICALOPTION_NOT_SET: {
-          break;
-        }
+        case BOUNDING_BOX_EVALUATION_OPTIONS:
+          {
+            mergeBoundingBoxEvaluationOptions(other.getBoundingBoxEvaluationOptions());
+            break;
+          }
+        case VERTICALOPTION_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -512,7 +578,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.datalabeling.v1beta1.EvaluationConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.datalabeling.v1beta1.EvaluationConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -521,12 +588,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int verticalOptionCase_ = 0;
     private java.lang.Object verticalOption_;
-    public VerticalOptionCase
-        getVerticalOptionCase() {
-      return VerticalOptionCase.forNumber(
-          verticalOptionCase_);
+
+    public VerticalOptionCase getVerticalOptionCase() {
+      return VerticalOptionCase.forNumber(verticalOptionCase_);
     }
 
     public Builder clearVerticalOption() {
@@ -536,17 +603,24 @@ public Builder clearVerticalOption() {
       return this;
     }
 
-
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions, com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder, com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder> boundingBoxEvaluationOptionsBuilder_;
+            com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions,
+            com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder,
+            com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder>
+        boundingBoxEvaluationOptionsBuilder_;
     /**
+     *
+     *
      * 
      * Only specify this field if the related model performs image object
      * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
      * bounding boxes.
      * 
* - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * + * * @return Whether the boundingBoxEvaluationOptions field is set. */ @java.lang.Override @@ -554,39 +628,53 @@ public boolean hasBoundingBoxEvaluationOptions() { return verticalOptionCase_ == 1; } /** + * + * *
      * Only specify this field if the related model performs image object
      * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
      * bounding boxes.
      * 
* - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * + * * @return The boundingBoxEvaluationOptions. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions getBoundingBoxEvaluationOptions() { + public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions + getBoundingBoxEvaluationOptions() { if (boundingBoxEvaluationOptionsBuilder_ == null) { if (verticalOptionCase_ == 1) { - return (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_; + return (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) + verticalOption_; } - return com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions + .getDefaultInstance(); } else { if (verticalOptionCase_ == 1) { return boundingBoxEvaluationOptionsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions + .getDefaultInstance(); } } /** + * + * *
      * Only specify this field if the related model performs image object
      * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
      * bounding boxes.
      * 
* - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * */ - public Builder setBoundingBoxEvaluationOptions(com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions value) { + public Builder setBoundingBoxEvaluationOptions( + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions value) { if (boundingBoxEvaluationOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -600,16 +688,21 @@ public Builder setBoundingBoxEvaluationOptions(com.google.cloud.datalabeling.v1b return this; } /** + * + * *
      * Only specify this field if the related model performs image object
      * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
      * bounding boxes.
      * 
* - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * */ public Builder setBoundingBoxEvaluationOptions( - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder builderForValue) { + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder + builderForValue) { if (boundingBoxEvaluationOptionsBuilder_ == null) { verticalOption_ = builderForValue.build(); onChanged(); @@ -620,20 +713,31 @@ public Builder setBoundingBoxEvaluationOptions( return this; } /** + * + * *
      * Only specify this field if the related model performs image object
      * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
      * bounding boxes.
      * 
* - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * */ - public Builder mergeBoundingBoxEvaluationOptions(com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions value) { + public Builder mergeBoundingBoxEvaluationOptions( + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions value) { if (boundingBoxEvaluationOptionsBuilder_ == null) { - if (verticalOptionCase_ == 1 && - verticalOption_ != com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.getDefaultInstance()) { - verticalOption_ = com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.newBuilder((com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_) - .mergeFrom(value).buildPartial(); + if (verticalOptionCase_ == 1 + && verticalOption_ + != com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions + .getDefaultInstance()) { + verticalOption_ = + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.newBuilder( + (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) + verticalOption_) + .mergeFrom(value) + .buildPartial(); } else { verticalOption_ = value; } @@ -649,13 +753,17 @@ public Builder mergeBoundingBoxEvaluationOptions(com.google.cloud.datalabeling.v return this; } /** + * + * *
      * Only specify this field if the related model performs image object
      * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
      * bounding boxes.
      * 
* - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * */ public Builder clearBoundingBoxEvaluationOptions() { if (boundingBoxEvaluationOptionsBuilder_ == null) { @@ -674,67 +782,92 @@ public Builder clearBoundingBoxEvaluationOptions() { return this; } /** + * + * *
      * Only specify this field if the related model performs image object
      * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
      * bounding boxes.
      * 
* - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder getBoundingBoxEvaluationOptionsBuilder() { + public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder + getBoundingBoxEvaluationOptionsBuilder() { return getBoundingBoxEvaluationOptionsFieldBuilder().getBuilder(); } /** + * + * *
      * Only specify this field if the related model performs image object
      * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
      * bounding boxes.
      * 
* - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder getBoundingBoxEvaluationOptionsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder + getBoundingBoxEvaluationOptionsOrBuilder() { if ((verticalOptionCase_ == 1) && (boundingBoxEvaluationOptionsBuilder_ != null)) { return boundingBoxEvaluationOptionsBuilder_.getMessageOrBuilder(); } else { if (verticalOptionCase_ == 1) { - return (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_; + return (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) + verticalOption_; } - return com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions + .getDefaultInstance(); } } /** + * + * *
      * Only specify this field if the related model performs image object
      * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
      * bounding boxes.
      * 
* - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions, com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder, com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder> + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions, + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder, + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder> getBoundingBoxEvaluationOptionsFieldBuilder() { if (boundingBoxEvaluationOptionsBuilder_ == null) { if (!(verticalOptionCase_ == 1)) { - verticalOption_ = com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.getDefaultInstance(); + verticalOption_ = + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions + .getDefaultInstance(); } - boundingBoxEvaluationOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions, com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder, com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) verticalOption_, + boundingBoxEvaluationOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions, + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions.Builder, + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions) + verticalOption_, getParentForChildren(), isClean()); verticalOption_ = null; } verticalOptionCase_ = 1; - onChanged();; + onChanged(); + ; return boundingBoxEvaluationOptionsBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -744,12 +877,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.EvaluationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.EvaluationConfig) private static final com.google.cloud.datalabeling.v1beta1.EvaluationConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.EvaluationConfig(); } @@ -758,16 +891,16 @@ public static com.google.cloud.datalabeling.v1beta1.EvaluationConfig getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvaluationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvaluationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvaluationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -782,6 +915,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.EvaluationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfigOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfigOrBuilder.java similarity index 51% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfigOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfigOrBuilder.java index 52eed7c3..e6086ad7 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfigOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationConfigOrBuilder.java @@ -1,44 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; -public interface EvaluationConfigOrBuilder extends +public interface EvaluationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.EvaluationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Only specify this field if the related model performs image object
    * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
    * bounding boxes.
    * 
* - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * + * * @return Whether the boundingBoxEvaluationOptions field is set. */ boolean hasBoundingBoxEvaluationOptions(); /** + * + * *
    * Only specify this field if the related model performs image object
    * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
    * bounding boxes.
    * 
* - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * + * * @return The boundingBoxEvaluationOptions. */ - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions getBoundingBoxEvaluationOptions(); + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions + getBoundingBoxEvaluationOptions(); /** + * + * *
    * Only specify this field if the related model performs image object
    * detection (`IMAGE_BOUNDING_BOX_ANNOTATION`). Describes how to evaluate
    * bounding boxes.
    * 
* - * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * + * .google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptions bounding_box_evaluation_options = 1; + * */ - com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder getBoundingBoxEvaluationOptionsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.BoundingBoxEvaluationOptionsOrBuilder + getBoundingBoxEvaluationOptionsOrBuilder(); - public com.google.cloud.datalabeling.v1beta1.EvaluationConfig.VerticalOptionCase getVerticalOptionCase(); + public com.google.cloud.datalabeling.v1beta1.EvaluationConfig.VerticalOptionCase + getVerticalOptionCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJob.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJob.java similarity index 78% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJob.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJob.java index 7e2cd838..05f01bdf 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJob.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJob.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/datalabeling/v1beta1/evaluation_job.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Defines an evaluation job that runs periodically to generate
  * [Evaluations][google.cloud.datalabeling.v1beta1.Evaluation]. [Creating an evaluation
@@ -13,15 +30,16 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJob}
  */
-public final class EvaluationJob extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class EvaluationJob extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.EvaluationJob)
     EvaluationJobOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use EvaluationJob.newBuilder() to construct.
   private EvaluationJob(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private EvaluationJob() {
     name_ = "";
     description_ = "";
@@ -34,16 +52,15 @@ private EvaluationJob() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new EvaluationJob();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private EvaluationJob(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -63,89 +80,104 @@ private EvaluationJob(
           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();
 
-            description_ = s;
-            break;
-          }
-          case 24: {
-            int rawValue = input.readEnum();
+              description_ = s;
+              break;
+            }
+          case 24:
+            {
+              int rawValue = input.readEnum();
 
-            state_ = rawValue;
-            break;
-          }
-          case 34: {
-            java.lang.String s = input.readStringRequireUtf8();
+              state_ = rawValue;
+              break;
+            }
+          case 34:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            schedule_ = s;
-            break;
-          }
-          case 42: {
-            java.lang.String s = input.readStringRequireUtf8();
+              schedule_ = s;
+              break;
+            }
+          case 42:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            modelVersion_ = s;
-            break;
-          }
-          case 50: {
-            com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder subBuilder = null;
-            if (evaluationJobConfig_ != null) {
-              subBuilder = evaluationJobConfig_.toBuilder();
+              modelVersion_ = s;
+              break;
             }
-            evaluationJobConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(evaluationJobConfig_);
-              evaluationJobConfig_ = subBuilder.buildPartial();
+          case 50:
+            {
+              com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder subBuilder = null;
+              if (evaluationJobConfig_ != null) {
+                subBuilder = evaluationJobConfig_.toBuilder();
+              }
+              evaluationJobConfig_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(evaluationJobConfig_);
+                evaluationJobConfig_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
+          case 58:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            break;
-          }
-          case 58: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            annotationSpecSet_ = s;
-            break;
-          }
-          case 64: {
-
-            labelMissingGroundTruth_ = input.readBool();
-            break;
-          }
-          case 74: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              attempts_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              annotationSpecSet_ = s;
+              break;
             }
-            attempts_.add(
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.Attempt.parser(), extensionRegistry));
-            break;
-          }
-          case 82: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (createTime_ != null) {
-              subBuilder = createTime_.toBuilder();
+          case 64:
+            {
+              labelMissingGroundTruth_ = input.readBool();
+              break;
             }
-            createTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(createTime_);
-              createTime_ = subBuilder.buildPartial();
+          case 74:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                attempts_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              attempts_.add(
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.Attempt.parser(), extensionRegistry));
+              break;
             }
-
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 82:
+            {
+              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;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -153,8 +185,7 @@ private EvaluationJob(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } 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)) {
         attempts_ = java.util.Collections.unmodifiableList(attempts_);
@@ -163,33 +194,37 @@ private EvaluationJob(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.EvaluationJob.class, com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.EvaluationJob.class,
+            com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder.class);
   }
 
   /**
+   *
+   *
    * 
    * State of the job.
    * 
* * Protobuf enum {@code google.cloud.datalabeling.v1beta1.EvaluationJob.State} */ - public enum State - implements com.google.protobuf.ProtocolMessageEnum { - /** - * STATE_UNSPECIFIED = 0; - */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** STATE_UNSPECIFIED = 0; */ STATE_UNSPECIFIED(0), /** + * + * *
      * The job is scheduled to run at the [configured interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. You
      * can [pause][google.cloud.datalabeling.v1beta1.DataLabelingService.PauseEvaluationJob] or
@@ -202,6 +237,8 @@ public enum State
      */
     SCHEDULED(1),
     /**
+     *
+     *
      * 
      * The job is currently running. When the job runs, Data Labeling Service
      * does several things:
@@ -232,6 +269,8 @@ public enum State
      */
     RUNNING(2),
     /**
+     *
+     *
      * 
      * The job is not sampling prediction input and output into your BigQuery
      * table and it will not run according to its schedule. You can
@@ -242,6 +281,8 @@ public enum State
      */
     PAUSED(3),
     /**
+     *
+     *
      * 
      * The job has this state right before it is deleted.
      * 
@@ -252,11 +293,11 @@ public enum State UNRECOGNIZED(-1), ; - /** - * STATE_UNSPECIFIED = 0; - */ + /** STATE_UNSPECIFIED = 0; */ public static final int STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * The job is scheduled to run at the [configured interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. You
      * can [pause][google.cloud.datalabeling.v1beta1.DataLabelingService.PauseEvaluationJob] or
@@ -269,6 +310,8 @@ public enum State
      */
     public static final int SCHEDULED_VALUE = 1;
     /**
+     *
+     *
      * 
      * The job is currently running. When the job runs, Data Labeling Service
      * does several things:
@@ -299,6 +342,8 @@ public enum State
      */
     public static final int RUNNING_VALUE = 2;
     /**
+     *
+     *
      * 
      * The job is not sampling prediction input and output into your BigQuery
      * table and it will not run according to its schedule. You can
@@ -309,6 +354,8 @@ public enum State
      */
     public static final int PAUSED_VALUE = 3;
     /**
+     *
+     *
      * 
      * The job has this state right before it is deleted.
      * 
@@ -317,7 +364,6 @@ public enum State */ public static final int STOPPED_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -342,51 +388,55 @@ public static State valueOf(int value) { */ public static State forNumber(int value) { switch (value) { - case 0: return STATE_UNSPECIFIED; - case 1: return SCHEDULED; - case 2: return RUNNING; - case 3: return PAUSED; - case 4: return STOPPED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + case 0: + return STATE_UNSPECIFIED; + case 1: + return SCHEDULED; + case 2: + return RUNNING; + case 3: + return PAUSED; + case 4: + return STOPPED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - State> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public State findValueByNumber(int number) { - return State.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 State findValueByNumber(int number) { + return State.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.datalabeling.v1beta1.EvaluationJob.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDescriptor() + .getEnumTypes() + .get(0); } private static final State[] VALUES = values(); - public static State valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static State 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; @@ -406,6 +456,8 @@ private State(int value) { public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. After you create a job, Data Labeling Service assigns a name
    * to the job with the following format:
@@ -413,6 +465,7 @@ private State(int value) {
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -421,14 +474,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. After you create a job, Data Labeling Service assigns a name
    * to the job with the following format:
@@ -436,16 +490,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 { @@ -456,12 +509,15 @@ public java.lang.String getName() { public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** + * + * *
    * Required. Description of the job. The description can be up to 25,000
    * characters long.
    * 
* * string description = 2; + * * @return The description. */ @java.lang.Override @@ -470,30 +526,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; } } /** + * + * *
    * Required. Description of the job. The description can be up to 25,000
    * characters long.
    * 
* * string description = 2; + * * @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 { @@ -504,33 +560,46 @@ public java.lang.String getDescription() { public static final int STATE_FIELD_NUMBER = 3; private int state_; /** + * + * *
    * Output only. Describes the current state of the job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
    * Output only. Describes the current state of the job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3; + * * @return The state. */ - @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EvaluationJob.State getState() { + @java.lang.Override + public com.google.cloud.datalabeling.v1beta1.EvaluationJob.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.EvaluationJob.State result = com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.valueOf(state_); - return result == null ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.UNRECOGNIZED : result; + com.google.cloud.datalabeling.v1beta1.EvaluationJob.State result = + com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.valueOf(state_); + return result == null + ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.UNRECOGNIZED + : result; } public static final int SCHEDULE_FIELD_NUMBER = 4; private volatile java.lang.Object schedule_; /** + * + * *
    * Required. Describes the interval at which the job runs. This interval must
    * be at least 1 day, and it is rounded to the nearest day. For example, if
@@ -544,6 +613,7 @@ public java.lang.String getDescription() {
    * 
* * string schedule = 4; + * * @return The schedule. */ @java.lang.Override @@ -552,14 +622,15 @@ public java.lang.String getSchedule() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schedule_ = s; return s; } } /** + * + * *
    * Required. Describes the interval at which the job runs. This interval must
    * be at least 1 day, and it is rounded to the nearest day. For example, if
@@ -573,16 +644,15 @@ public java.lang.String getSchedule() {
    * 
* * string schedule = 4; + * * @return The bytes for schedule. */ @java.lang.Override - public com.google.protobuf.ByteString - getScheduleBytes() { + public com.google.protobuf.ByteString getScheduleBytes() { java.lang.Object ref = schedule_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schedule_ = b; return b; } else { @@ -593,6 +663,8 @@ public java.lang.String getSchedule() { public static final int MODEL_VERSION_FIELD_NUMBER = 5; private volatile java.lang.Object modelVersion_; /** + * + * *
    * Required. The [AI Platform Prediction model
    * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
@@ -603,6 +675,7 @@ public java.lang.String getSchedule() {
    * 
* * string model_version = 5; + * * @return The modelVersion. */ @java.lang.Override @@ -611,14 +684,15 @@ public java.lang.String getModelVersion() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelVersion_ = s; return s; } } /** + * + * *
    * Required. The [AI Platform Prediction model
    * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
@@ -629,16 +703,15 @@ public java.lang.String getModelVersion() {
    * 
* * string model_version = 5; + * * @return The bytes for modelVersion. */ @java.lang.Override - public com.google.protobuf.ByteString - getModelVersionBytes() { + public com.google.protobuf.ByteString getModelVersionBytes() { java.lang.Object ref = modelVersion_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); modelVersion_ = b; return b; } else { @@ -649,11 +722,14 @@ public java.lang.String getModelVersion() { public static final int EVALUATION_JOB_CONFIG_FIELD_NUMBER = 6; private com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluationJobConfig_; /** + * + * *
    * Required. Configuration details for the evaluation job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; + * * @return Whether the evaluationJobConfig field is set. */ @java.lang.Override @@ -661,18 +737,25 @@ public boolean hasEvaluationJobConfig() { return evaluationJobConfig_ != null; } /** + * + * *
    * Required. Configuration details for the evaluation job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; + * * @return The evaluationJobConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig getEvaluationJobConfig() { - return evaluationJobConfig_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.getDefaultInstance() : evaluationJobConfig_; + return evaluationJobConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.getDefaultInstance() + : evaluationJobConfig_; } /** + * + * *
    * Required. Configuration details for the evaluation job.
    * 
@@ -680,13 +763,16 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig getEvaluationJo * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder getEvaluationJobConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder + getEvaluationJobConfigOrBuilder() { return getEvaluationJobConfig(); } public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER = 7; private volatile java.lang.Object annotationSpecSet_; /** + * + * *
    * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
    * labels that your machine learning model outputs. You must create this
@@ -696,6 +782,7 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder getEva
    * 
* * string annotation_spec_set = 7; + * * @return The annotationSpecSet. */ @java.lang.Override @@ -704,14 +791,15 @@ public java.lang.String getAnnotationSpecSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; } } /** + * + * *
    * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
    * labels that your machine learning model outputs. You must create this
@@ -721,16 +809,15 @@ public java.lang.String getAnnotationSpecSet() {
    * 
* * string annotation_spec_set = 7; + * * @return The bytes for annotationSpecSet. */ @java.lang.Override - public com.google.protobuf.ByteString - getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -741,6 +828,8 @@ public java.lang.String getAnnotationSpecSet() { public static final int LABEL_MISSING_GROUND_TRUTH_FIELD_NUMBER = 8; private boolean labelMissingGroundTruth_; /** + * + * *
    * Required. Whether you want Data Labeling Service to provide ground truth
    * labels for prediction input. If you want the service to assign human
@@ -750,6 +839,7 @@ public java.lang.String getAnnotationSpecSet() {
    * 
* * bool label_missing_ground_truth = 8; + * * @return The labelMissingGroundTruth. */ @java.lang.Override @@ -760,6 +850,8 @@ public boolean getLabelMissingGroundTruth() { public static final int ATTEMPTS_FIELD_NUMBER = 9; private java.util.List attempts_; /** + * + * *
    * Output only. Every time the evaluation job runs and an error occurs, the
    * failed attempt is appended to this array.
@@ -772,6 +864,8 @@ public java.util.List getAttempts
     return attempts_;
   }
   /**
+   *
+   *
    * 
    * Output only. Every time the evaluation job runs and an error occurs, the
    * failed attempt is appended to this array.
@@ -780,11 +874,13 @@ public java.util.List getAttempts
    * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getAttemptsOrBuilderList() {
     return attempts_;
   }
   /**
+   *
+   *
    * 
    * Output only. Every time the evaluation job runs and an error occurs, the
    * failed attempt is appended to this array.
@@ -797,6 +893,8 @@ public int getAttemptsCount() {
     return attempts_.size();
   }
   /**
+   *
+   *
    * 
    * Output only. Every time the evaluation job runs and an error occurs, the
    * failed attempt is appended to this array.
@@ -809,6 +907,8 @@ public com.google.cloud.datalabeling.v1beta1.Attempt getAttempts(int index) {
     return attempts_.get(index);
   }
   /**
+   *
+   *
    * 
    * Output only. Every time the evaluation job runs and an error occurs, the
    * failed attempt is appended to this array.
@@ -817,19 +917,21 @@ public com.google.cloud.datalabeling.v1beta1.Attempt getAttempts(int index) {
    * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder getAttemptsOrBuilder(
-      int index) {
+  public com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder getAttemptsOrBuilder(int index) {
     return attempts_.get(index);
   }
 
   public static final int CREATE_TIME_FIELD_NUMBER = 10;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * Output only. Timestamp of when this evaluation job was created.
    * 
* * .google.protobuf.Timestamp create_time = 10; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -837,11 +939,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Timestamp of when this evaluation job was created.
    * 
* * .google.protobuf.Timestamp create_time = 10; + * * @return The createTime. */ @java.lang.Override @@ -849,6 +954,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Timestamp of when this evaluation job was created.
    * 
@@ -861,6 +968,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -872,15 +980,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } - if (state_ != com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.STATE_UNSPECIFIED.getNumber()) { + if (state_ + != com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schedule_)) { @@ -919,9 +1028,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } - if (state_ != com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); + if (state_ + != com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schedule_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, schedule_); @@ -930,23 +1040,19 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, modelVersion_); } if (evaluationJobConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getEvaluationJobConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEvaluationJobConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationSpecSet_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, annotationSpecSet_); } if (labelMissingGroundTruth_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, labelMissingGroundTruth_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, labelMissingGroundTruth_); } for (int i = 0; i < attempts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, attempts_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, attempts_.get(i)); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getCreateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -956,37 +1062,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.EvaluationJob)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.EvaluationJob other = (com.google.cloud.datalabeling.v1beta1.EvaluationJob) obj; + com.google.cloud.datalabeling.v1beta1.EvaluationJob other = + (com.google.cloud.datalabeling.v1beta1.EvaluationJob) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDescription().equals(other.getDescription())) return false; if (state_ != other.state_) return false; - if (!getSchedule() - .equals(other.getSchedule())) return false; - if (!getModelVersion() - .equals(other.getModelVersion())) return false; + if (!getSchedule().equals(other.getSchedule())) return false; + if (!getModelVersion().equals(other.getModelVersion())) return false; if (hasEvaluationJobConfig() != other.hasEvaluationJobConfig()) return false; if (hasEvaluationJobConfig()) { - if (!getEvaluationJobConfig() - .equals(other.getEvaluationJobConfig())) return false; - } - if (!getAnnotationSpecSet() - .equals(other.getAnnotationSpecSet())) return false; - if (getLabelMissingGroundTruth() - != other.getLabelMissingGroundTruth()) return false; - if (!getAttemptsList() - .equals(other.getAttemptsList())) return false; + if (!getEvaluationJobConfig().equals(other.getEvaluationJobConfig())) return false; + } + if (!getAnnotationSpecSet().equals(other.getAnnotationSpecSet())) return false; + if (getLabelMissingGroundTruth() != other.getLabelMissingGroundTruth()) return false; + if (!getAttemptsList().equals(other.getAttemptsList())) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -1016,8 +1114,7 @@ public int hashCode() { hash = (37 * hash) + ANNOTATION_SPEC_SET_FIELD_NUMBER; hash = (53 * hash) + getAnnotationSpecSet().hashCode(); hash = (37 * hash) + LABEL_MISSING_GROUND_TRUTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLabelMissingGroundTruth()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLabelMissingGroundTruth()); if (getAttemptsCount() > 0) { hash = (37 * hash) + ATTEMPTS_FIELD_NUMBER; hash = (53 * hash) + getAttemptsList().hashCode(); @@ -1032,96 +1129,103 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.EvaluationJob 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.datalabeling.v1beta1.EvaluationJob parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationJob parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.EvaluationJob prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Defines an evaluation job that runs periodically to generate
    * [Evaluations][google.cloud.datalabeling.v1beta1.Evaluation]. [Creating an evaluation
@@ -1131,21 +1235,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJob}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.EvaluationJob)
       com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.EvaluationJob.class, com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.EvaluationJob.class,
+              com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.EvaluationJob.newBuilder()
@@ -1153,17 +1259,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) {
         getAttemptsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1203,9 +1309,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_descriptor;
     }
 
     @java.lang.Override
@@ -1224,7 +1330,8 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.EvaluationJob buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.EvaluationJob result = new com.google.cloud.datalabeling.v1beta1.EvaluationJob(this);
+      com.google.cloud.datalabeling.v1beta1.EvaluationJob result =
+          new com.google.cloud.datalabeling.v1beta1.EvaluationJob(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.description_ = description_;
@@ -1260,38 +1367,39 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.EvaluationJob) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.EvaluationJob)other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.EvaluationJob) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1299,7 +1407,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.EvaluationJob other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance()) return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1347,9 +1456,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.EvaluationJob oth
             attemptsBuilder_ = null;
             attempts_ = other.attempts_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            attemptsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getAttemptsFieldBuilder() : null;
+            attemptsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getAttemptsFieldBuilder()
+                    : null;
           } else {
             attemptsBuilder_.addAllMessages(other.attempts_);
           }
@@ -1377,7 +1487,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.datalabeling.v1beta1.EvaluationJob) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.datalabeling.v1beta1.EvaluationJob) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1386,10 +1497,13 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. After you create a job, Data Labeling Service assigns a name
      * to the job with the following format:
@@ -1397,13 +1511,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; @@ -1412,6 +1526,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. After you create a job, Data Labeling Service assigns a name
      * to the job with the following format:
@@ -1419,15 +1535,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 { @@ -1435,6 +1550,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. After you create a job, Data Labeling Service assigns a name
      * to the job with the following format:
@@ -1442,20 +1559,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. After you create a job, Data Labeling Service assigns a name
      * to the job with the following format:
@@ -1463,15 +1582,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. After you create a job, Data Labeling Service assigns a name
      * to the job with the following format:
@@ -1479,16 +1601,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; @@ -1496,19 +1618,21 @@ public Builder setNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Required. Description of the job. The description can be up to 25,000
      * characters long.
      * 
* * string description = 2; + * * @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; @@ -1517,21 +1641,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Required. Description of the job. The description can be up to 25,000
      * characters long.
      * 
* * string description = 2; + * * @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 { @@ -1539,57 +1664,64 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Required. Description of the job. The description can be up to 25,000
      * characters long.
      * 
* * string description = 2; + * * @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; } /** + * + * *
      * Required. Description of the job. The description can be up to 25,000
      * characters long.
      * 
* * string description = 2; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Required. Description of the job. The description can be up to 25,000
      * characters long.
      * 
* * string description = 2; + * * @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; @@ -1597,51 +1729,67 @@ public Builder setDescriptionBytes( private int state_ = 0; /** + * + * *
      * Output only. Describes the current state of the job.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3; + * * @return The enum numeric value on the wire for state. */ - @java.lang.Override public int getStateValue() { + @java.lang.Override + public int getStateValue() { return state_; } /** + * + * *
      * Output only. Describes the current state of the job.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3; + * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. */ public Builder setStateValue(int value) { - + state_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Describes the current state of the job.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3; + * * @return The state. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EvaluationJob.State getState() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.EvaluationJob.State result = com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.valueOf(state_); - return result == null ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.UNRECOGNIZED : result; + com.google.cloud.datalabeling.v1beta1.EvaluationJob.State result = + com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.valueOf(state_); + return result == null + ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.State.UNRECOGNIZED + : result; } /** + * + * *
      * Output only. Describes the current state of the job.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3; + * * @param value The state to set. * @return This builder for chaining. */ @@ -1649,21 +1797,24 @@ public Builder setState(com.google.cloud.datalabeling.v1beta1.EvaluationJob.Stat if (value == null) { throw new NullPointerException(); } - + state_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Output only. Describes the current state of the job.
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3; + * * @return This builder for chaining. */ public Builder clearState() { - + state_ = 0; onChanged(); return this; @@ -1671,6 +1822,8 @@ public Builder clearState() { private java.lang.Object schedule_ = ""; /** + * + * *
      * Required. Describes the interval at which the job runs. This interval must
      * be at least 1 day, and it is rounded to the nearest day. For example, if
@@ -1684,13 +1837,13 @@ public Builder clearState() {
      * 
* * string schedule = 4; + * * @return The schedule. */ public java.lang.String getSchedule() { java.lang.Object ref = schedule_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); schedule_ = s; return s; @@ -1699,6 +1852,8 @@ public java.lang.String getSchedule() { } } /** + * + * *
      * Required. Describes the interval at which the job runs. This interval must
      * be at least 1 day, and it is rounded to the nearest day. For example, if
@@ -1712,15 +1867,14 @@ public java.lang.String getSchedule() {
      * 
* * string schedule = 4; + * * @return The bytes for schedule. */ - public com.google.protobuf.ByteString - getScheduleBytes() { + public com.google.protobuf.ByteString getScheduleBytes() { java.lang.Object ref = schedule_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); schedule_ = b; return b; } else { @@ -1728,6 +1882,8 @@ public java.lang.String getSchedule() { } } /** + * + * *
      * Required. Describes the interval at which the job runs. This interval must
      * be at least 1 day, and it is rounded to the nearest day. For example, if
@@ -1741,20 +1897,22 @@ public java.lang.String getSchedule() {
      * 
* * string schedule = 4; + * * @param value The schedule to set. * @return This builder for chaining. */ - public Builder setSchedule( - java.lang.String value) { + public Builder setSchedule(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + schedule_ = value; onChanged(); return this; } /** + * + * *
      * Required. Describes the interval at which the job runs. This interval must
      * be at least 1 day, and it is rounded to the nearest day. For example, if
@@ -1768,15 +1926,18 @@ public Builder setSchedule(
      * 
* * string schedule = 4; + * * @return This builder for chaining. */ public Builder clearSchedule() { - + schedule_ = getDefaultInstance().getSchedule(); onChanged(); return this; } /** + * + * *
      * Required. Describes the interval at which the job runs. This interval must
      * be at least 1 day, and it is rounded to the nearest day. For example, if
@@ -1790,16 +1951,16 @@ public Builder clearSchedule() {
      * 
* * string schedule = 4; + * * @param value The bytes for schedule to set. * @return This builder for chaining. */ - public Builder setScheduleBytes( - com.google.protobuf.ByteString value) { + public Builder setScheduleBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + schedule_ = value; onChanged(); return this; @@ -1807,6 +1968,8 @@ public Builder setScheduleBytes( private java.lang.Object modelVersion_ = ""; /** + * + * *
      * Required. The [AI Platform Prediction model
      * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
@@ -1817,13 +1980,13 @@ public Builder setScheduleBytes(
      * 
* * string model_version = 5; + * * @return The modelVersion. */ public java.lang.String getModelVersion() { java.lang.Object ref = modelVersion_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); modelVersion_ = s; return s; @@ -1832,6 +1995,8 @@ public java.lang.String getModelVersion() { } } /** + * + * *
      * Required. The [AI Platform Prediction model
      * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
@@ -1842,15 +2007,14 @@ public java.lang.String getModelVersion() {
      * 
* * string model_version = 5; + * * @return The bytes for modelVersion. */ - public com.google.protobuf.ByteString - getModelVersionBytes() { + public com.google.protobuf.ByteString getModelVersionBytes() { java.lang.Object ref = modelVersion_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); modelVersion_ = b; return b; } else { @@ -1858,6 +2022,8 @@ public java.lang.String getModelVersion() { } } /** + * + * *
      * Required. The [AI Platform Prediction model
      * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
@@ -1868,20 +2034,22 @@ public java.lang.String getModelVersion() {
      * 
* * string model_version = 5; + * * @param value The modelVersion to set. * @return This builder for chaining. */ - public Builder setModelVersion( - java.lang.String value) { + public Builder setModelVersion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + modelVersion_ = value; onChanged(); return this; } /** + * + * *
      * Required. The [AI Platform Prediction model
      * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
@@ -1892,15 +2060,18 @@ public Builder setModelVersion(
      * 
* * string model_version = 5; + * * @return This builder for chaining. */ public Builder clearModelVersion() { - + modelVersion_ = getDefaultInstance().getModelVersion(); onChanged(); return this; } /** + * + * *
      * Required. The [AI Platform Prediction model
      * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
@@ -1911,16 +2082,16 @@ public Builder clearModelVersion() {
      * 
* * string model_version = 5; + * * @param value The bytes for modelVersion to set. * @return This builder for chaining. */ - public Builder setModelVersionBytes( - com.google.protobuf.ByteString value) { + public Builder setModelVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + modelVersion_ = value; onChanged(); return this; @@ -1928,41 +2099,58 @@ public Builder setModelVersionBytes( private com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluationJobConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig, com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder> evaluationJobConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig, + com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder, + com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder> + evaluationJobConfigBuilder_; /** + * + * *
      * Required. Configuration details for the evaluation job.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; + * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; + * + * * @return Whether the evaluationJobConfig field is set. */ public boolean hasEvaluationJobConfig() { return evaluationJobConfigBuilder_ != null || evaluationJobConfig_ != null; } /** + * + * *
      * Required. Configuration details for the evaluation job.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; + * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; + * + * * @return The evaluationJobConfig. */ public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig getEvaluationJobConfig() { if (evaluationJobConfigBuilder_ == null) { - return evaluationJobConfig_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.getDefaultInstance() : evaluationJobConfig_; + return evaluationJobConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.getDefaultInstance() + : evaluationJobConfig_; } else { return evaluationJobConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Configuration details for the evaluation job.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; + * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; + * */ - public Builder setEvaluationJobConfig(com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig value) { + public Builder setEvaluationJobConfig( + com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig value) { if (evaluationJobConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1976,11 +2164,14 @@ public Builder setEvaluationJobConfig(com.google.cloud.datalabeling.v1beta1.Eval return this; } /** + * + * *
      * Required. Configuration details for the evaluation job.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; + * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; + * */ public Builder setEvaluationJobConfig( com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder builderForValue) { @@ -1994,17 +2185,24 @@ public Builder setEvaluationJobConfig( return this; } /** + * + * *
      * Required. Configuration details for the evaluation job.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; + * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; + * */ - public Builder mergeEvaluationJobConfig(com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig value) { + public Builder mergeEvaluationJobConfig( + com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig value) { if (evaluationJobConfigBuilder_ == null) { if (evaluationJobConfig_ != null) { evaluationJobConfig_ = - com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.newBuilder(evaluationJobConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.newBuilder( + evaluationJobConfig_) + .mergeFrom(value) + .buildPartial(); } else { evaluationJobConfig_ = value; } @@ -2016,11 +2214,14 @@ public Builder mergeEvaluationJobConfig(com.google.cloud.datalabeling.v1beta1.Ev return this; } /** + * + * *
      * Required. Configuration details for the evaluation job.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; + * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; + * */ public Builder clearEvaluationJobConfig() { if (evaluationJobConfigBuilder_ == null) { @@ -2034,48 +2235,63 @@ public Builder clearEvaluationJobConfig() { return this; } /** + * + * *
      * Required. Configuration details for the evaluation job.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; + * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; + * */ - public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder getEvaluationJobConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder + getEvaluationJobConfigBuilder() { + onChanged(); return getEvaluationJobConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Configuration details for the evaluation job.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; + * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; + * */ - public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder getEvaluationJobConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder + getEvaluationJobConfigOrBuilder() { if (evaluationJobConfigBuilder_ != null) { return evaluationJobConfigBuilder_.getMessageOrBuilder(); } else { - return evaluationJobConfig_ == null ? - com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.getDefaultInstance() : evaluationJobConfig_; + return evaluationJobConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.getDefaultInstance() + : evaluationJobConfig_; } } /** + * + * *
      * Required. Configuration details for the evaluation job.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; + * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig, com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig, + com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder, + com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder> getEvaluationJobConfigFieldBuilder() { if (evaluationJobConfigBuilder_ == null) { - evaluationJobConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig, com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder>( - getEvaluationJobConfig(), - getParentForChildren(), - isClean()); + evaluationJobConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig, + com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder, + com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder>( + getEvaluationJobConfig(), getParentForChildren(), isClean()); evaluationJobConfig_ = null; } return evaluationJobConfigBuilder_; @@ -2083,6 +2299,8 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder getEva private java.lang.Object annotationSpecSet_ = ""; /** + * + * *
      * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
      * labels that your machine learning model outputs. You must create this
@@ -2092,13 +2310,13 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder getEva
      * 
* * string annotation_spec_set = 7; + * * @return The annotationSpecSet. */ public java.lang.String getAnnotationSpecSet() { java.lang.Object ref = annotationSpecSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; @@ -2107,6 +2325,8 @@ public java.lang.String getAnnotationSpecSet() { } } /** + * + * *
      * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
      * labels that your machine learning model outputs. You must create this
@@ -2116,15 +2336,14 @@ public java.lang.String getAnnotationSpecSet() {
      * 
* * string annotation_spec_set = 7; + * * @return The bytes for annotationSpecSet. */ - public com.google.protobuf.ByteString - getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -2132,6 +2351,8 @@ public java.lang.String getAnnotationSpecSet() { } } /** + * + * *
      * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
      * labels that your machine learning model outputs. You must create this
@@ -2141,20 +2362,22 @@ public java.lang.String getAnnotationSpecSet() {
      * 
* * string annotation_spec_set = 7; + * * @param value The annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSet( - java.lang.String value) { + public Builder setAnnotationSpecSet(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecSet_ = value; onChanged(); return this; } /** + * + * *
      * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
      * labels that your machine learning model outputs. You must create this
@@ -2164,15 +2387,18 @@ public Builder setAnnotationSpecSet(
      * 
* * string annotation_spec_set = 7; + * * @return This builder for chaining. */ public Builder clearAnnotationSpecSet() { - + annotationSpecSet_ = getDefaultInstance().getAnnotationSpecSet(); onChanged(); return this; } /** + * + * *
      * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
      * labels that your machine learning model outputs. You must create this
@@ -2182,23 +2408,25 @@ public Builder clearAnnotationSpecSet() {
      * 
* * string annotation_spec_set = 7; + * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSetBytes( - com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecSet_ = value; onChanged(); return this; } - private boolean labelMissingGroundTruth_ ; + private boolean labelMissingGroundTruth_; /** + * + * *
      * Required. Whether you want Data Labeling Service to provide ground truth
      * labels for prediction input. If you want the service to assign human
@@ -2208,6 +2436,7 @@ public Builder setAnnotationSpecSetBytes(
      * 
* * bool label_missing_ground_truth = 8; + * * @return The labelMissingGroundTruth. */ @java.lang.Override @@ -2215,6 +2444,8 @@ public boolean getLabelMissingGroundTruth() { return labelMissingGroundTruth_; } /** + * + * *
      * Required. Whether you want Data Labeling Service to provide ground truth
      * labels for prediction input. If you want the service to assign human
@@ -2224,16 +2455,19 @@ public boolean getLabelMissingGroundTruth() {
      * 
* * bool label_missing_ground_truth = 8; + * * @param value The labelMissingGroundTruth to set. * @return This builder for chaining. */ public Builder setLabelMissingGroundTruth(boolean value) { - + labelMissingGroundTruth_ = value; onChanged(); return this; } /** + * + * *
      * Required. Whether you want Data Labeling Service to provide ground truth
      * labels for prediction input. If you want the service to assign human
@@ -2243,28 +2477,36 @@ public Builder setLabelMissingGroundTruth(boolean value) {
      * 
* * bool label_missing_ground_truth = 8; + * * @return This builder for chaining. */ public Builder clearLabelMissingGroundTruth() { - + labelMissingGroundTruth_ = false; onChanged(); return this; } private java.util.List attempts_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAttemptsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - attempts_ = new java.util.ArrayList(attempts_); + attempts_ = + new java.util.ArrayList(attempts_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Attempt, com.google.cloud.datalabeling.v1beta1.Attempt.Builder, com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder> attemptsBuilder_; + com.google.cloud.datalabeling.v1beta1.Attempt, + com.google.cloud.datalabeling.v1beta1.Attempt.Builder, + com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder> + attemptsBuilder_; /** + * + * *
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2280,6 +2522,8 @@ public java.util.List getAttempts
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2295,6 +2539,8 @@ public int getAttemptsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2310,6 +2556,8 @@ public com.google.cloud.datalabeling.v1beta1.Attempt getAttempts(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2317,8 +2565,7 @@ public com.google.cloud.datalabeling.v1beta1.Attempt getAttempts(int index) {
      *
      * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
      */
-    public Builder setAttempts(
-        int index, com.google.cloud.datalabeling.v1beta1.Attempt value) {
+    public Builder setAttempts(int index, com.google.cloud.datalabeling.v1beta1.Attempt value) {
       if (attemptsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2332,6 +2579,8 @@ public Builder setAttempts(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2351,6 +2600,8 @@ public Builder setAttempts(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2372,6 +2623,8 @@ public Builder addAttempts(com.google.cloud.datalabeling.v1beta1.Attempt value)
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2379,8 +2632,7 @@ public Builder addAttempts(com.google.cloud.datalabeling.v1beta1.Attempt value)
      *
      * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
      */
-    public Builder addAttempts(
-        int index, com.google.cloud.datalabeling.v1beta1.Attempt value) {
+    public Builder addAttempts(int index, com.google.cloud.datalabeling.v1beta1.Attempt value) {
       if (attemptsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2394,6 +2646,8 @@ public Builder addAttempts(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2413,6 +2667,8 @@ public Builder addAttempts(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2432,6 +2688,8 @@ public Builder addAttempts(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2443,8 +2701,7 @@ public Builder addAllAttempts(
         java.lang.Iterable values) {
       if (attemptsBuilder_ == null) {
         ensureAttemptsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, attempts_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attempts_);
         onChanged();
       } else {
         attemptsBuilder_.addAllMessages(values);
@@ -2452,6 +2709,8 @@ public Builder addAllAttempts(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2470,6 +2729,8 @@ public Builder clearAttempts() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2488,6 +2749,8 @@ public Builder removeAttempts(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2495,11 +2758,12 @@ public Builder removeAttempts(int index) {
      *
      * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
      */
-    public com.google.cloud.datalabeling.v1beta1.Attempt.Builder getAttemptsBuilder(
-        int index) {
+    public com.google.cloud.datalabeling.v1beta1.Attempt.Builder getAttemptsBuilder(int index) {
       return getAttemptsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2507,14 +2771,16 @@ public com.google.cloud.datalabeling.v1beta1.Attempt.Builder getAttemptsBuilder(
      *
      * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
      */
-    public com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder getAttemptsOrBuilder(
-        int index) {
+    public com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder getAttemptsOrBuilder(int index) {
       if (attemptsBuilder_ == null) {
-        return attempts_.get(index);  } else {
+        return attempts_.get(index);
+      } else {
         return attemptsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2522,8 +2788,8 @@ public com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder getAttemptsOrBuild
      *
      * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
      */
-    public java.util.List 
-         getAttemptsOrBuilderList() {
+    public java.util.List
+        getAttemptsOrBuilderList() {
       if (attemptsBuilder_ != null) {
         return attemptsBuilder_.getMessageOrBuilderList();
       } else {
@@ -2531,6 +2797,8 @@ public com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder getAttemptsOrBuild
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2539,10 +2807,12 @@ public com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder getAttemptsOrBuild
      * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
      */
     public com.google.cloud.datalabeling.v1beta1.Attempt.Builder addAttemptsBuilder() {
-      return getAttemptsFieldBuilder().addBuilder(
-          com.google.cloud.datalabeling.v1beta1.Attempt.getDefaultInstance());
+      return getAttemptsFieldBuilder()
+          .addBuilder(com.google.cloud.datalabeling.v1beta1.Attempt.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2550,12 +2820,13 @@ public com.google.cloud.datalabeling.v1beta1.Attempt.Builder addAttemptsBuilder(
      *
      * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
      */
-    public com.google.cloud.datalabeling.v1beta1.Attempt.Builder addAttemptsBuilder(
-        int index) {
-      return getAttemptsFieldBuilder().addBuilder(
-          index, com.google.cloud.datalabeling.v1beta1.Attempt.getDefaultInstance());
+    public com.google.cloud.datalabeling.v1beta1.Attempt.Builder addAttemptsBuilder(int index) {
+      return getAttemptsFieldBuilder()
+          .addBuilder(index, com.google.cloud.datalabeling.v1beta1.Attempt.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Output only. Every time the evaluation job runs and an error occurs, the
      * failed attempt is appended to this array.
@@ -2563,20 +2834,23 @@ public com.google.cloud.datalabeling.v1beta1.Attempt.Builder addAttemptsBuilder(
      *
      * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
      */
-    public java.util.List 
-         getAttemptsBuilderList() {
+    public java.util.List
+        getAttemptsBuilderList() {
       return getAttemptsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.Attempt, com.google.cloud.datalabeling.v1beta1.Attempt.Builder, com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder> 
+            com.google.cloud.datalabeling.v1beta1.Attempt,
+            com.google.cloud.datalabeling.v1beta1.Attempt.Builder,
+            com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder>
         getAttemptsFieldBuilder() {
       if (attemptsBuilder_ == null) {
-        attemptsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.Attempt, com.google.cloud.datalabeling.v1beta1.Attempt.Builder, com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder>(
-                attempts_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        attemptsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.datalabeling.v1beta1.Attempt,
+                com.google.cloud.datalabeling.v1beta1.Attempt.Builder,
+                com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder>(
+                attempts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         attempts_ = null;
       }
       return attemptsBuilder_;
@@ -2584,34 +2858,47 @@ public com.google.cloud.datalabeling.v1beta1.Attempt.Builder addAttemptsBuilder(
 
     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 of when this evaluation job was created.
      * 
* * .google.protobuf.Timestamp create_time = 10; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Timestamp of when this evaluation job was created.
      * 
* * .google.protobuf.Timestamp create_time = 10; + * * @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 of when this evaluation job was created.
      * 
@@ -2632,14 +2919,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp of when this evaluation job was created.
      * 
* * .google.protobuf.Timestamp create_time = 10; */ - 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(); @@ -2650,6 +2938,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Timestamp of when this evaluation job was created.
      * 
@@ -2660,7 +2950,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; } @@ -2672,6 +2962,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp of when this evaluation job was created.
      * 
@@ -2690,6 +2982,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Timestamp of when this evaluation job was created.
      * 
@@ -2697,11 +2991,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 10; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Timestamp of when this evaluation job was created.
      * 
@@ -2712,11 +3008,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 of when this evaluation job was created.
      * 
@@ -2724,21 +3023,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 10; */ 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_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -2748,12 +3050,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.EvaluationJob) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.EvaluationJob) private static final com.google.cloud.datalabeling.v1beta1.EvaluationJob DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.EvaluationJob(); } @@ -2762,16 +3064,16 @@ public static com.google.cloud.datalabeling.v1beta1.EvaluationJob getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvaluationJob parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvaluationJob(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationJob parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvaluationJob(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2786,6 +3088,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.EvaluationJob getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfig.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfig.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfig.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfig.java index faba264a..297b2d7c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfig.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfig.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/datalabeling/v1beta1/evaluation_job.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Provides details for how an evaluation job sends email alerts based on the
  * results of a run.
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig}
  */
-public final class EvaluationJobAlertConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class EvaluationJobAlertConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig)
     EvaluationJobAlertConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use EvaluationJobAlertConfig.newBuilder() to construct.
   private EvaluationJobAlertConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private EvaluationJobAlertConfig() {
     email_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new EvaluationJobAlertConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private EvaluationJobAlertConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,24 +71,25 @@ private EvaluationJobAlertConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            email_ = s;
-            break;
-          }
-          case 17: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            minAcceptableMeanAveragePrecision_ = input.readDouble();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              email_ = s;
+              break;
+            }
+          case 17:
+            {
+              minAcceptableMeanAveragePrecision_ = input.readDouble();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -79,34 +97,39 @@ private EvaluationJobAlertConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.class, com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.class,
+            com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder.class);
   }
 
   public static final int EMAIL_FIELD_NUMBER = 1;
   private volatile java.lang.Object email_;
   /**
+   *
+   *
    * 
    * Required. An email address to send alerts to.
    * 
* * string email = 1; + * * @return The email. */ @java.lang.Override @@ -115,29 +138,29 @@ public java.lang.String getEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } } /** + * + * *
    * Required. An email address to send alerts to.
    * 
* * string email = 1; + * * @return The bytes for email. */ @java.lang.Override - public com.google.protobuf.ByteString - getEmailBytes() { + public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); email_ = b; return b; } else { @@ -148,6 +171,8 @@ public java.lang.String getEmail() { public static final int MIN_ACCEPTABLE_MEAN_AVERAGE_PRECISION_FIELD_NUMBER = 2; private double minAcceptableMeanAveragePrecision_; /** + * + * *
    * Required. A number between 0 and 1 that describes a minimum mean average
    * precision threshold. When the evaluation job runs, if it calculates that
@@ -157,6 +182,7 @@ public java.lang.String getEmail() {
    * 
* * double min_acceptable_mean_average_precision = 2; + * * @return The minAcceptableMeanAveragePrecision. */ @java.lang.Override @@ -165,6 +191,7 @@ public double getMinAcceptableMeanAveragePrecision() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -176,8 +203,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(email_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, email_); } @@ -197,8 +223,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, email_); } if (java.lang.Double.doubleToRawLongBits(minAcceptableMeanAveragePrecision_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(2, minAcceptableMeanAveragePrecision_); + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 2, minAcceptableMeanAveragePrecision_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -208,18 +235,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.datalabeling.v1beta1.EvaluationJobAlertConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig other = (com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig) obj; + com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig other = + (com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig) obj; - if (!getEmail() - .equals(other.getEmail())) return false; + if (!getEmail().equals(other.getEmail())) return false; if (java.lang.Double.doubleToLongBits(getMinAcceptableMeanAveragePrecision()) - != java.lang.Double.doubleToLongBits( - other.getMinAcceptableMeanAveragePrecision())) return false; + != java.lang.Double.doubleToLongBits(other.getMinAcceptableMeanAveragePrecision())) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -234,104 +261,114 @@ public int hashCode() { hash = (37 * hash) + EMAIL_FIELD_NUMBER; hash = (53 * hash) + getEmail().hashCode(); hash = (37 * hash) + MIN_ACCEPTABLE_MEAN_AVERAGE_PRECISION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMinAcceptableMeanAveragePrecision())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMinAcceptableMeanAveragePrecision())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig 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.datalabeling.v1beta1.EvaluationJobAlertConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Provides details for how an evaluation job sends email alerts based on the
    * results of a run.
@@ -339,21 +376,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig)
       com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.class, com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.class,
+              com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.newBuilder()
@@ -361,16 +400,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();
@@ -382,13 +420,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig getDefaultInstanceForType() {
+    public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig
+        getDefaultInstanceForType() {
       return com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.getDefaultInstance();
     }
 
@@ -403,7 +442,8 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig result = new com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig(this);
+      com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig result =
+          new com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig(this);
       result.email_ = email_;
       result.minAcceptableMeanAveragePrecision_ = minAcceptableMeanAveragePrecision_;
       onBuilt();
@@ -414,38 +454,39 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig 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.datalabeling.v1beta1.EvaluationJobAlertConfig) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig)other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -453,7 +494,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.getDefaultInstance())
+        return this;
       if (!other.getEmail().isEmpty()) {
         email_ = other.email_;
         onChanged();
@@ -480,7 +523,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -492,18 +537,20 @@ public Builder mergeFrom(
 
     private java.lang.Object email_ = "";
     /**
+     *
+     *
      * 
      * Required. An email address to send alerts to.
      * 
* * string email = 1; + * * @return The email. */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; @@ -512,20 +559,21 @@ public java.lang.String getEmail() { } } /** + * + * *
      * Required. An email address to send alerts to.
      * 
* * string email = 1; + * * @return The bytes for email. */ - public com.google.protobuf.ByteString - getEmailBytes() { + public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); email_ = b; return b; } else { @@ -533,61 +581,70 @@ public java.lang.String getEmail() { } } /** + * + * *
      * Required. An email address to send alerts to.
      * 
* * string email = 1; + * * @param value The email to set. * @return This builder for chaining. */ - public Builder setEmail( - java.lang.String value) { + public Builder setEmail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + email_ = value; onChanged(); return this; } /** + * + * *
      * Required. An email address to send alerts to.
      * 
* * string email = 1; + * * @return This builder for chaining. */ public Builder clearEmail() { - + email_ = getDefaultInstance().getEmail(); onChanged(); return this; } /** + * + * *
      * Required. An email address to send alerts to.
      * 
* * string email = 1; + * * @param value The bytes for email to set. * @return This builder for chaining. */ - public Builder setEmailBytes( - com.google.protobuf.ByteString value) { + public Builder setEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + email_ = value; onChanged(); return this; } - private double minAcceptableMeanAveragePrecision_ ; + private double minAcceptableMeanAveragePrecision_; /** + * + * *
      * Required. A number between 0 and 1 that describes a minimum mean average
      * precision threshold. When the evaluation job runs, if it calculates that
@@ -597,6 +654,7 @@ public Builder setEmailBytes(
      * 
* * double min_acceptable_mean_average_precision = 2; + * * @return The minAcceptableMeanAveragePrecision. */ @java.lang.Override @@ -604,6 +662,8 @@ public double getMinAcceptableMeanAveragePrecision() { return minAcceptableMeanAveragePrecision_; } /** + * + * *
      * Required. A number between 0 and 1 that describes a minimum mean average
      * precision threshold. When the evaluation job runs, if it calculates that
@@ -613,16 +673,19 @@ public double getMinAcceptableMeanAveragePrecision() {
      * 
* * double min_acceptable_mean_average_precision = 2; + * * @param value The minAcceptableMeanAveragePrecision to set. * @return This builder for chaining. */ public Builder setMinAcceptableMeanAveragePrecision(double value) { - + minAcceptableMeanAveragePrecision_ = value; onChanged(); return this; } /** + * + * *
      * Required. A number between 0 and 1 that describes a minimum mean average
      * precision threshold. When the evaluation job runs, if it calculates that
@@ -632,17 +695,18 @@ public Builder setMinAcceptableMeanAveragePrecision(double value) {
      * 
* * double min_acceptable_mean_average_precision = 2; + * * @return This builder for chaining. */ public Builder clearMinAcceptableMeanAveragePrecision() { - + minAcceptableMeanAveragePrecision_ = 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); } @@ -652,30 +716,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig) - private static final com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig(); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvaluationJobAlertConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvaluationJobAlertConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationJobAlertConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvaluationJobAlertConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -687,9 +753,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfigOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfigOrBuilder.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfigOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfigOrBuilder.java index 618f4967..41f5499b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfigOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobAlertConfigOrBuilder.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/datalabeling/v1beta1/evaluation_job.proto package com.google.cloud.datalabeling.v1beta1; -public interface EvaluationJobAlertConfigOrBuilder extends +public interface EvaluationJobAlertConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. An email address to send alerts to.
    * 
* * string email = 1; + * * @return The email. */ java.lang.String getEmail(); /** + * + * *
    * Required. An email address to send alerts to.
    * 
* * string email = 1; + * * @return The bytes for email. */ - com.google.protobuf.ByteString - getEmailBytes(); + com.google.protobuf.ByteString getEmailBytes(); /** + * + * *
    * Required. A number between 0 and 1 that describes a minimum mean average
    * precision threshold. When the evaluation job runs, if it calculates that
@@ -37,6 +60,7 @@ public interface EvaluationJobAlertConfigOrBuilder extends
    * 
* * double min_acceptable_mean_average_precision = 2; + * * @return The minAcceptableMeanAveragePrecision. */ double getMinAcceptableMeanAveragePrecision(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig.java similarity index 74% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig.java index dd520432..2967c317 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfig.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/datalabeling/v1beta1/evaluation_job.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Configures specific details of how a continuous evaluation job works. Provide
  * this configuration when you create an EvaluationJob.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJobConfig}
  */
-public final class EvaluationJobConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class EvaluationJobConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.EvaluationJobConfig)
     EvaluationJobConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use EvaluationJobConfig.newBuilder() to construct.
   private EvaluationJobConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private EvaluationJobConfig() {
-  }
+
+  private EvaluationJobConfig() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new EvaluationJobConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private EvaluationJobConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -54,130 +70,178 @@ private EvaluationJobConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.datalabeling.v1beta1.InputConfig.Builder subBuilder = null;
-            if (inputConfig_ != null) {
-              subBuilder = inputConfig_.toBuilder();
-            }
-            inputConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.InputConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(inputConfig_);
-              inputConfig_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 18: {
-            com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder subBuilder = null;
-            if (evaluationConfig_ != null) {
-              subBuilder = evaluationConfig_.toBuilder();
+          case 10:
+            {
+              com.google.cloud.datalabeling.v1beta1.InputConfig.Builder subBuilder = null;
+              if (inputConfig_ != null) {
+                subBuilder = inputConfig_.toBuilder();
+              }
+              inputConfig_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.InputConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(inputConfig_);
+                inputConfig_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            evaluationConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.EvaluationConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(evaluationConfig_);
-              evaluationConfig_ = subBuilder.buildPartial();
+          case 18:
+            {
+              com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder subBuilder = null;
+              if (evaluationConfig_ != null) {
+                subBuilder = evaluationConfig_.toBuilder();
+              }
+              evaluationConfig_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.EvaluationConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(evaluationConfig_);
+                evaluationConfig_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 26: {
-            com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null;
-            if (humanAnnotationConfig_ != null) {
-              subBuilder = humanAnnotationConfig_.toBuilder();
+          case 26:
+            {
+              com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null;
+              if (humanAnnotationConfig_ != null) {
+                subBuilder = humanAnnotationConfig_.toBuilder();
+              }
+              humanAnnotationConfig_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(humanAnnotationConfig_);
+                humanAnnotationConfig_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            humanAnnotationConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(humanAnnotationConfig_);
-              humanAnnotationConfig_ = subBuilder.buildPartial();
+          case 34:
+            {
+              com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder subBuilder =
+                  null;
+              if (humanAnnotationRequestConfigCase_ == 4) {
+                subBuilder =
+                    ((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig)
+                            humanAnnotationRequestConfig_)
+                        .toBuilder();
+              }
+              humanAnnotationRequestConfig_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig)
+                        humanAnnotationRequestConfig_);
+                humanAnnotationRequestConfig_ = subBuilder.buildPartial();
+              }
+              humanAnnotationRequestConfigCase_ = 4;
+              break;
             }
-
-            break;
-          }
-          case 34: {
-            com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder subBuilder = null;
-            if (humanAnnotationRequestConfigCase_ == 4) {
-              subBuilder = ((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) humanAnnotationRequestConfig_).toBuilder();
+          case 42:
+            {
+              com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder subBuilder = null;
+              if (humanAnnotationRequestConfigCase_ == 5) {
+                subBuilder =
+                    ((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig)
+                            humanAnnotationRequestConfig_)
+                        .toBuilder();
+              }
+              humanAnnotationRequestConfig_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig)
+                        humanAnnotationRequestConfig_);
+                humanAnnotationRequestConfig_ = subBuilder.buildPartial();
+              }
+              humanAnnotationRequestConfigCase_ = 5;
+              break;
             }
-            humanAnnotationRequestConfig_ =
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) humanAnnotationRequestConfig_);
-              humanAnnotationRequestConfig_ = subBuilder.buildPartial();
-            }
-            humanAnnotationRequestConfigCase_ = 4;
-            break;
-          }
-          case 42: {
-            com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder subBuilder = null;
-            if (humanAnnotationRequestConfigCase_ == 5) {
-              subBuilder = ((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_).toBuilder();
-            }
-            humanAnnotationRequestConfig_ =
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_);
-              humanAnnotationRequestConfig_ = subBuilder.buildPartial();
-            }
-            humanAnnotationRequestConfigCase_ = 5;
-            break;
-          }
-          case 66: {
-            com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder subBuilder = null;
-            if (humanAnnotationRequestConfigCase_ == 8) {
-              subBuilder = ((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) humanAnnotationRequestConfig_).toBuilder();
+          case 66:
+            {
+              com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder subBuilder =
+                  null;
+              if (humanAnnotationRequestConfigCase_ == 8) {
+                subBuilder =
+                    ((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig)
+                            humanAnnotationRequestConfig_)
+                        .toBuilder();
+              }
+              humanAnnotationRequestConfig_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig)
+                        humanAnnotationRequestConfig_);
+                humanAnnotationRequestConfig_ = subBuilder.buildPartial();
+              }
+              humanAnnotationRequestConfigCase_ = 8;
+              break;
             }
-            humanAnnotationRequestConfig_ =
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) humanAnnotationRequestConfig_);
-              humanAnnotationRequestConfig_ = subBuilder.buildPartial();
+          case 74:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                bigqueryImportKeys_ =
+                    com.google.protobuf.MapField.newMapField(
+                        BigqueryImportKeysDefaultEntryHolder.defaultEntry);
+                mutable_bitField0_ |= 0x00000001;
+              }
+              com.google.protobuf.MapEntry
+                  bigqueryImportKeys__ =
+                      input.readMessage(
+                          BigqueryImportKeysDefaultEntryHolder.defaultEntry.getParserForType(),
+                          extensionRegistry);
+              bigqueryImportKeys_
+                  .getMutableMap()
+                  .put(bigqueryImportKeys__.getKey(), bigqueryImportKeys__.getValue());
+              break;
             }
-            humanAnnotationRequestConfigCase_ = 8;
-            break;
-          }
-          case 74: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              bigqueryImportKeys_ = com.google.protobuf.MapField.newMapField(
-                  BigqueryImportKeysDefaultEntryHolder.defaultEntry);
-              mutable_bitField0_ |= 0x00000001;
+          case 80:
+            {
+              exampleCount_ = input.readInt32();
+              break;
             }
-            com.google.protobuf.MapEntry
-            bigqueryImportKeys__ = input.readMessage(
-                BigqueryImportKeysDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-            bigqueryImportKeys_.getMutableMap().put(
-                bigqueryImportKeys__.getKey(), bigqueryImportKeys__.getValue());
-            break;
-          }
-          case 80: {
-
-            exampleCount_ = input.readInt32();
-            break;
-          }
-          case 89: {
-
-            exampleSamplePercentage_ = input.readDouble();
-            break;
-          }
-          case 106: {
-            com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder subBuilder = null;
-            if (evaluationJobAlertConfig_ != null) {
-              subBuilder = evaluationJobAlertConfig_.toBuilder();
+          case 89:
+            {
+              exampleSamplePercentage_ = input.readDouble();
+              break;
             }
-            evaluationJobAlertConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(evaluationJobAlertConfig_);
-              evaluationJobAlertConfig_ = subBuilder.buildPartial();
+          case 106:
+            {
+              com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder subBuilder =
+                  null;
+              if (evaluationJobAlertConfig_ != null) {
+                subBuilder = evaluationJobAlertConfig_.toBuilder();
+              }
+              evaluationJobAlertConfig_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(evaluationJobAlertConfig_);
+                evaluationJobAlertConfig_ = 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) {
@@ -185,48 +249,52 @@ private EvaluationJobConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_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 9:
         return internalGetBigqueryImportKeys();
       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.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.class, com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.class,
+            com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder.class);
   }
 
   private int humanAnnotationRequestConfigCase_ = 0;
   private java.lang.Object humanAnnotationRequestConfig_;
+
   public enum HumanAnnotationRequestConfigCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     IMAGE_CLASSIFICATION_CONFIG(4),
     BOUNDING_POLY_CONFIG(5),
     TEXT_CLASSIFICATION_CONFIG(8),
     HUMANANNOTATIONREQUESTCONFIG_NOT_SET(0);
     private final int value;
+
     private HumanAnnotationRequestConfigCase(int value) {
       this.value = value;
     }
@@ -242,26 +310,32 @@ public static HumanAnnotationRequestConfigCase valueOf(int value) {
 
     public static HumanAnnotationRequestConfigCase forNumber(int value) {
       switch (value) {
-        case 4: return IMAGE_CLASSIFICATION_CONFIG;
-        case 5: return BOUNDING_POLY_CONFIG;
-        case 8: return TEXT_CLASSIFICATION_CONFIG;
-        case 0: return HUMANANNOTATIONREQUESTCONFIG_NOT_SET;
-        default: return null;
+        case 4:
+          return IMAGE_CLASSIFICATION_CONFIG;
+        case 5:
+          return BOUNDING_POLY_CONFIG;
+        case 8:
+          return TEXT_CLASSIFICATION_CONFIG;
+        case 0:
+          return HUMANANNOTATIONREQUESTCONFIG_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public HumanAnnotationRequestConfigCase
-  getHumanAnnotationRequestConfigCase() {
-    return HumanAnnotationRequestConfigCase.forNumber(
-        humanAnnotationRequestConfigCase_);
+  public HumanAnnotationRequestConfigCase getHumanAnnotationRequestConfigCase() {
+    return HumanAnnotationRequestConfigCase.forNumber(humanAnnotationRequestConfigCase_);
   }
 
   public static final int IMAGE_CLASSIFICATION_CONFIG_FIELD_NUMBER = 4;
   /**
+   *
+   *
    * 
    * Specify this field if your model version performs image classification or
    * general classification.
@@ -271,7 +345,10 @@ public int getNumber() {
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * * @return Whether the imageClassificationConfig field is set. */ @java.lang.Override @@ -279,6 +356,8 @@ public boolean hasImageClassificationConfig() { return humanAnnotationRequestConfigCase_ == 4; } /** + * + * *
    * Specify this field if your model version performs image classification or
    * general classification.
@@ -288,17 +367,24 @@ public boolean hasImageClassificationConfig() {
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * * @return The imageClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig + getImageClassificationConfig() { if (humanAnnotationRequestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) humanAnnotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) + humanAnnotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } /** + * + * *
    * Specify this field if your model version performs image classification or
    * general classification.
@@ -308,18 +394,24 @@ public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageC
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder getImageClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder + getImageClassificationConfigOrBuilder() { if (humanAnnotationRequestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) humanAnnotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) + humanAnnotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } public static final int BOUNDING_POLY_CONFIG_FIELD_NUMBER = 5; /** + * + * *
    * Specify this field if your model version performs image object detection
    * (bounding box detection).
@@ -328,6 +420,7 @@ public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; + * * @return Whether the boundingPolyConfig field is set. */ @java.lang.Override @@ -335,6 +428,8 @@ public boolean hasBoundingPolyConfig() { return humanAnnotationRequestConfigCase_ == 5; } /** + * + * *
    * Specify this field if your model version performs image object detection
    * (bounding box detection).
@@ -343,16 +438,20 @@ public boolean hasBoundingPolyConfig() {
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; + * * @return The boundingPolyConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyConfig() { if (humanAnnotationRequestConfigCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) + humanAnnotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance(); } /** + * + * *
    * Specify this field if your model version performs image object detection
    * (bounding box detection).
@@ -363,15 +462,19 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyC
    * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoundingPolyConfigOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder
+      getBoundingPolyConfigOrBuilder() {
     if (humanAnnotationRequestConfigCase_ == 5) {
-       return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_;
+      return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig)
+          humanAnnotationRequestConfig_;
     }
     return com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance();
   }
 
   public static final int TEXT_CLASSIFICATION_CONFIG_FIELD_NUMBER = 8;
   /**
+   *
+   *
    * 
    * Specify this field if your model version performs text classification.
    * `annotationSpecSet` in this configuration must match
@@ -380,7 +483,10 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoun
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * + * * @return Whether the textClassificationConfig field is set. */ @java.lang.Override @@ -388,6 +494,8 @@ public boolean hasTextClassificationConfig() { return humanAnnotationRequestConfigCase_ == 8; } /** + * + * *
    * Specify this field if your model version performs text classification.
    * `annotationSpecSet` in this configuration must match
@@ -396,17 +504,24 @@ public boolean hasTextClassificationConfig() {
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * + * * @return The textClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig + getTextClassificationConfig() { if (humanAnnotationRequestConfigCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) humanAnnotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) + humanAnnotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } /** + * + * *
    * Specify this field if your model version performs text classification.
    * `annotationSpecSet` in this configuration must match
@@ -415,12 +530,16 @@ public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextCla
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder getTextClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder + getTextClassificationConfigOrBuilder() { if (humanAnnotationRequestConfigCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) humanAnnotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) + humanAnnotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } @@ -428,6 +547,8 @@ public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder g public static final int INPUT_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.InputConfig inputConfig_; /** + * + * *
    * Rquired. Details for the sampled prediction input. Within this
    * configuration, there are requirements for several fields:
@@ -441,6 +562,7 @@ public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder g
    * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -448,6 +570,8 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Rquired. Details for the sampled prediction input. Within this
    * configuration, there are requirements for several fields:
@@ -461,13 +585,18 @@ public boolean hasInputConfig() {
    * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.InputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Rquired. Details for the sampled prediction input. Within this
    * configuration, there are requirements for several fields:
@@ -490,6 +619,8 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig
   public static final int EVALUATION_CONFIG_FIELD_NUMBER = 2;
   private com.google.cloud.datalabeling.v1beta1.EvaluationConfig evaluationConfig_;
   /**
+   *
+   *
    * 
    * Required. Details for calculating evaluation metrics and creating
    * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -499,6 +630,7 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; + * * @return Whether the evaluationConfig field is set. */ @java.lang.Override @@ -506,6 +638,8 @@ public boolean hasEvaluationConfig() { return evaluationConfig_ != null; } /** + * + * *
    * Required. Details for calculating evaluation metrics and creating
    * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -515,13 +649,18 @@ public boolean hasEvaluationConfig() {
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; + * * @return The evaluationConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EvaluationConfig getEvaluationConfig() { - return evaluationConfig_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance() : evaluationConfig_; + return evaluationConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance() + : evaluationConfig_; } /** + * + * *
    * Required. Details for calculating evaluation metrics and creating
    * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -533,13 +672,16 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfig getEvaluationConfi
    * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder getEvaluationConfigOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder
+      getEvaluationConfigOrBuilder() {
     return getEvaluationConfig();
   }
 
   public static final int HUMAN_ANNOTATION_CONFIG_FIELD_NUMBER = 3;
   private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig humanAnnotationConfig_;
   /**
+   *
+   *
    * 
    * Optional. Details for human annotation of your data. If you set
    * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -550,7 +692,9 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder getEvalua
    * `instruction` field within this configuration.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * + * * @return Whether the humanAnnotationConfig field is set. */ @java.lang.Override @@ -558,6 +702,8 @@ public boolean hasHumanAnnotationConfig() { return humanAnnotationConfig_ != null; } /** + * + * *
    * Optional. Details for human annotation of your data. If you set
    * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -568,14 +714,20 @@ public boolean hasHumanAnnotationConfig() {
    * `instruction` field within this configuration.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * + * * @return The humanAnnotationConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getHumanAnnotationConfig() { - return humanAnnotationConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : humanAnnotationConfig_; + return humanAnnotationConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : humanAnnotationConfig_; } /** + * + * *
    * Optional. Details for human annotation of your data. If you set
    * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -586,29 +738,32 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getHumanAnnot
    * `instruction` field within this configuration.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getHumanAnnotationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getHumanAnnotationConfigOrBuilder() { return getHumanAnnotationConfig(); } public static final int BIGQUERY_IMPORT_KEYS_FIELD_NUMBER = 9; + private static final class BigqueryImportKeysDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> bigqueryImportKeys_; + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + private com.google.protobuf.MapField bigqueryImportKeys_; + private com.google.protobuf.MapField - internalGetBigqueryImportKeys() { + internalGetBigqueryImportKeys() { if (bigqueryImportKeys_ == null) { return com.google.protobuf.MapField.emptyMapField( BigqueryImportKeysDefaultEntryHolder.defaultEntry); @@ -620,6 +775,8 @@ public int getBigqueryImportKeysCount() { return internalGetBigqueryImportKeys().getMap().size(); } /** + * + * *
    * Required. Prediction keys that tell Data Labeling Service where to find the
    * data for evaluation in your BigQuery table. When the service samples
@@ -641,22 +798,22 @@ public int getBigqueryImportKeysCount() {
    *
    * map<string, string> bigquery_import_keys = 9;
    */
-
   @java.lang.Override
-  public boolean containsBigqueryImportKeys(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsBigqueryImportKeys(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetBigqueryImportKeys().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getBigqueryImportKeysMap()} instead.
-   */
+  /** Use {@link #getBigqueryImportKeysMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getBigqueryImportKeys() {
     return getBigqueryImportKeysMap();
   }
   /**
+   *
+   *
    * 
    * Required. Prediction keys that tell Data Labeling Service where to find the
    * data for evaluation in your BigQuery table. When the service samples
@@ -679,11 +836,12 @@ public java.util.Map getBigqueryImportKeys()
    * map<string, string> bigquery_import_keys = 9;
    */
   @java.lang.Override
-
   public java.util.Map getBigqueryImportKeysMap() {
     return internalGetBigqueryImportKeys().getMap();
   }
   /**
+   *
+   *
    * 
    * Required. Prediction keys that tell Data Labeling Service where to find the
    * data for evaluation in your BigQuery table. When the service samples
@@ -706,16 +864,18 @@ public java.util.Map getBigqueryImportKeysMa
    * map<string, string> bigquery_import_keys = 9;
    */
   @java.lang.Override
-
   public java.lang.String getBigqueryImportKeysOrDefault(
-      java.lang.String key,
-      java.lang.String defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
+      java.lang.String key, java.lang.String defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetBigqueryImportKeys().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Required. Prediction keys that tell Data Labeling Service where to find the
    * data for evaluation in your BigQuery table. When the service samples
@@ -738,10 +898,10 @@ public java.lang.String getBigqueryImportKeysOrDefault(
    * map<string, string> bigquery_import_keys = 9;
    */
   @java.lang.Override
-
-  public java.lang.String getBigqueryImportKeysOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public java.lang.String getBigqueryImportKeysOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     java.util.Map map =
         internalGetBigqueryImportKeys().getMap();
     if (!map.containsKey(key)) {
@@ -753,6 +913,8 @@ public java.lang.String getBigqueryImportKeysOrThrow(
   public static final int EXAMPLE_COUNT_FIELD_NUMBER = 10;
   private int exampleCount_;
   /**
+   *
+   *
    * 
    * Required. The maximum number of predictions to sample and save to BigQuery
    * during each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. This limit
@@ -762,6 +924,7 @@ public java.lang.String getBigqueryImportKeysOrThrow(
    * 
* * int32 example_count = 10; + * * @return The exampleCount. */ @java.lang.Override @@ -772,6 +935,8 @@ public int getExampleCount() { public static final int EXAMPLE_SAMPLE_PERCENTAGE_FIELD_NUMBER = 11; private double exampleSamplePercentage_; /** + * + * *
    * Required. Fraction of predictions to sample and save to BigQuery during
    * each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. For example, 0.1 means
@@ -779,6 +944,7 @@ public int getExampleCount() {
    * 
* * double example_sample_percentage = 11; + * * @return The exampleSamplePercentage. */ @java.lang.Override @@ -789,13 +955,18 @@ public double getExampleSamplePercentage() { public static final int EVALUATION_JOB_ALERT_CONFIG_FIELD_NUMBER = 13; private com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluationJobAlertConfig_; /** + * + * *
    * Optional. Configuration details for evaluation job alerts. Specify this
    * field if you want to receive email alerts if the evaluation job finds that
    * your predictions have low mean average precision during a run.
    * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * + * * @return Whether the evaluationJobAlertConfig field is set. */ @java.lang.Override @@ -803,34 +974,48 @@ public boolean hasEvaluationJobAlertConfig() { return evaluationJobAlertConfig_ != null; } /** + * + * *
    * Optional. Configuration details for evaluation job alerts. Specify this
    * field if you want to receive email alerts if the evaluation job finds that
    * your predictions have low mean average precision during a run.
    * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * + * * @return The evaluationJobAlertConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig getEvaluationJobAlertConfig() { - return evaluationJobAlertConfig_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.getDefaultInstance() : evaluationJobAlertConfig_; + public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig + getEvaluationJobAlertConfig() { + return evaluationJobAlertConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.getDefaultInstance() + : evaluationJobAlertConfig_; } /** + * + * *
    * Optional. Configuration details for evaluation job alerts. Specify this
    * field if you want to receive email alerts if the evaluation job finds that
    * your predictions have low mean average precision during a run.
    * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder getEvaluationJobAlertConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder + getEvaluationJobAlertConfigOrBuilder() { return getEvaluationJobAlertConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -842,8 +1027,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()); } @@ -854,16 +1038,23 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(3, getHumanAnnotationConfig()); } if (humanAnnotationRequestConfigCase_ == 4) { - output.writeMessage(4, (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) humanAnnotationRequestConfig_); + output.writeMessage( + 4, + (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) + humanAnnotationRequestConfig_); } if (humanAnnotationRequestConfigCase_ == 5) { - output.writeMessage(5, (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_); + output.writeMessage( + 5, + (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_); } if (humanAnnotationRequestConfigCase_ == 8) { - output.writeMessage(8, (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) humanAnnotationRequestConfig_); + output.writeMessage( + 8, + (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) + humanAnnotationRequestConfig_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( output, internalGetBigqueryImportKeys(), BigqueryImportKeysDefaultEntryHolder.defaultEntry, @@ -887,50 +1078,56 @@ 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 (evaluationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEvaluationConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEvaluationConfig()); } if (humanAnnotationConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getHumanAnnotationConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHumanAnnotationConfig()); } if (humanAnnotationRequestConfigCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) humanAnnotationRequestConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) + humanAnnotationRequestConfig_); } if (humanAnnotationRequestConfigCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) + humanAnnotationRequestConfig_); } if (humanAnnotationRequestConfigCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) humanAnnotationRequestConfig_); - } - for (java.util.Map.Entry entry - : internalGetBigqueryImportKeys().getMap().entrySet()) { - com.google.protobuf.MapEntry - bigqueryImportKeys__ = BigqueryImportKeysDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, bigqueryImportKeys__); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, + (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) + humanAnnotationRequestConfig_); + } + for (java.util.Map.Entry entry : + internalGetBigqueryImportKeys().getMap().entrySet()) { + com.google.protobuf.MapEntry bigqueryImportKeys__ = + BigqueryImportKeysDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, bigqueryImportKeys__); } if (exampleCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(10, exampleCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(10, exampleCount_); } if (java.lang.Double.doubleToRawLongBits(exampleSamplePercentage_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(11, exampleSamplePercentage_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(11, exampleSamplePercentage_); } if (evaluationJobAlertConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, getEvaluationJobAlertConfig()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, getEvaluationJobAlertConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -940,53 +1137,48 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig other = (com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig) obj; + com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig other = + (com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig) obj; if (hasInputConfig() != other.hasInputConfig()) return false; if (hasInputConfig()) { - if (!getInputConfig() - .equals(other.getInputConfig())) return false; + if (!getInputConfig().equals(other.getInputConfig())) return false; } if (hasEvaluationConfig() != other.hasEvaluationConfig()) return false; if (hasEvaluationConfig()) { - if (!getEvaluationConfig() - .equals(other.getEvaluationConfig())) return false; + if (!getEvaluationConfig().equals(other.getEvaluationConfig())) return false; } if (hasHumanAnnotationConfig() != other.hasHumanAnnotationConfig()) return false; if (hasHumanAnnotationConfig()) { - if (!getHumanAnnotationConfig() - .equals(other.getHumanAnnotationConfig())) return false; + if (!getHumanAnnotationConfig().equals(other.getHumanAnnotationConfig())) return false; } - if (!internalGetBigqueryImportKeys().equals( - other.internalGetBigqueryImportKeys())) return false; - if (getExampleCount() - != other.getExampleCount()) return false; + if (!internalGetBigqueryImportKeys().equals(other.internalGetBigqueryImportKeys())) + return false; + if (getExampleCount() != other.getExampleCount()) return false; if (java.lang.Double.doubleToLongBits(getExampleSamplePercentage()) - != java.lang.Double.doubleToLongBits( - other.getExampleSamplePercentage())) return false; + != java.lang.Double.doubleToLongBits(other.getExampleSamplePercentage())) return false; if (hasEvaluationJobAlertConfig() != other.hasEvaluationJobAlertConfig()) return false; if (hasEvaluationJobAlertConfig()) { - if (!getEvaluationJobAlertConfig() - .equals(other.getEvaluationJobAlertConfig())) return false; + if (!getEvaluationJobAlertConfig().equals(other.getEvaluationJobAlertConfig())) return false; } - if (!getHumanAnnotationRequestConfigCase().equals(other.getHumanAnnotationRequestConfigCase())) return false; + if (!getHumanAnnotationRequestConfigCase().equals(other.getHumanAnnotationRequestConfigCase())) + return false; switch (humanAnnotationRequestConfigCase_) { case 4: - if (!getImageClassificationConfig() - .equals(other.getImageClassificationConfig())) return false; + if (!getImageClassificationConfig().equals(other.getImageClassificationConfig())) + return false; break; case 5: - if (!getBoundingPolyConfig() - .equals(other.getBoundingPolyConfig())) return false; + if (!getBoundingPolyConfig().equals(other.getBoundingPolyConfig())) return false; break; case 8: - if (!getTextClassificationConfig() - .equals(other.getTextClassificationConfig())) return false; + if (!getTextClassificationConfig().equals(other.getTextClassificationConfig())) + return false; break; case 0: default: @@ -1021,8 +1213,10 @@ public int hashCode() { hash = (37 * hash) + EXAMPLE_COUNT_FIELD_NUMBER; hash = (53 * hash) + getExampleCount(); hash = (37 * hash) + EXAMPLE_SAMPLE_PERCENTAGE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getExampleSamplePercentage())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getExampleSamplePercentage())); if (hasEvaluationJobAlertConfig()) { hash = (37 * hash) + EVALUATION_JOB_ALERT_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getEvaluationJobAlertConfig().hashCode(); @@ -1049,96 +1243,104 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig 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.datalabeling.v1beta1.EvaluationJobConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configures specific details of how a continuous evaluation job works. Provide
    * this configuration when you create an EvaluationJob.
@@ -1146,43 +1348,43 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationJobConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.EvaluationJobConfig)
       com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor;
     }
 
     @SuppressWarnings({"rawtypes"})
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
+    protected com.google.protobuf.MapField internalGetMapField(int number) {
       switch (number) {
         case 9:
           return internalGetBigqueryImportKeys();
         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 9:
           return internalGetMutableBigqueryImportKeys();
         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.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.class, com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.class,
+              com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.newBuilder()
@@ -1190,16 +1392,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();
@@ -1238,9 +1439,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.EvaluationJobOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor;
     }
 
     @java.lang.Override
@@ -1259,7 +1460,8 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig result = new com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig(this);
+      com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig result =
+          new com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig(this);
       int from_bitField0_ = bitField0_;
       if (humanAnnotationRequestConfigCase_ == 4) {
         if (imageClassificationConfigBuilder_ == null) {
@@ -1315,38 +1517,39 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig buildPartial()
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig)other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1354,7 +1557,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.getDefaultInstance())
+        return this;
       if (other.hasInputConfig()) {
         mergeInputConfig(other.getInputConfig());
       }
@@ -1364,8 +1568,7 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.EvaluationJobConf
       if (other.hasHumanAnnotationConfig()) {
         mergeHumanAnnotationConfig(other.getHumanAnnotationConfig());
       }
-      internalGetMutableBigqueryImportKeys().mergeFrom(
-          other.internalGetBigqueryImportKeys());
+      internalGetMutableBigqueryImportKeys().mergeFrom(other.internalGetBigqueryImportKeys());
       if (other.getExampleCount() != 0) {
         setExampleCount(other.getExampleCount());
       }
@@ -1376,21 +1579,25 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.EvaluationJobConf
         mergeEvaluationJobAlertConfig(other.getEvaluationJobAlertConfig());
       }
       switch (other.getHumanAnnotationRequestConfigCase()) {
-        case IMAGE_CLASSIFICATION_CONFIG: {
-          mergeImageClassificationConfig(other.getImageClassificationConfig());
-          break;
-        }
-        case BOUNDING_POLY_CONFIG: {
-          mergeBoundingPolyConfig(other.getBoundingPolyConfig());
-          break;
-        }
-        case TEXT_CLASSIFICATION_CONFIG: {
-          mergeTextClassificationConfig(other.getTextClassificationConfig());
-          break;
-        }
-        case HUMANANNOTATIONREQUESTCONFIG_NOT_SET: {
-          break;
-        }
+        case IMAGE_CLASSIFICATION_CONFIG:
+          {
+            mergeImageClassificationConfig(other.getImageClassificationConfig());
+            break;
+          }
+        case BOUNDING_POLY_CONFIG:
+          {
+            mergeBoundingPolyConfig(other.getBoundingPolyConfig());
+            break;
+          }
+        case TEXT_CLASSIFICATION_CONFIG:
+          {
+            mergeTextClassificationConfig(other.getTextClassificationConfig());
+            break;
+          }
+        case HUMANANNOTATIONREQUESTCONFIG_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1411,7 +1618,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1420,12 +1628,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int humanAnnotationRequestConfigCase_ = 0;
     private java.lang.Object humanAnnotationRequestConfig_;
-    public HumanAnnotationRequestConfigCase
-        getHumanAnnotationRequestConfigCase() {
-      return HumanAnnotationRequestConfigCase.forNumber(
-          humanAnnotationRequestConfigCase_);
+
+    public HumanAnnotationRequestConfigCase getHumanAnnotationRequestConfigCase() {
+      return HumanAnnotationRequestConfigCase.forNumber(humanAnnotationRequestConfigCase_);
     }
 
     public Builder clearHumanAnnotationRequestConfig() {
@@ -1438,8 +1646,13 @@ public Builder clearHumanAnnotationRequestConfig() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder> imageClassificationConfigBuilder_;
+            com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig,
+            com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder,
+            com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder>
+        imageClassificationConfigBuilder_;
     /**
+     *
+     *
      * 
      * Specify this field if your model version performs image classification or
      * general classification.
@@ -1449,7 +1662,10 @@ public Builder clearHumanAnnotationRequestConfig() {
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * * @return Whether the imageClassificationConfig field is set. */ @java.lang.Override @@ -1457,6 +1673,8 @@ public boolean hasImageClassificationConfig() { return humanAnnotationRequestConfigCase_ == 4; } /** + * + * *
      * Specify this field if your model version performs image classification or
      * general classification.
@@ -1466,14 +1684,19 @@ public boolean hasImageClassificationConfig() {
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * * @return The imageClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig + getImageClassificationConfig() { if (imageClassificationConfigBuilder_ == null) { if (humanAnnotationRequestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) humanAnnotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) + humanAnnotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } else { @@ -1484,6 +1707,8 @@ public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageC } } /** + * + * *
      * Specify this field if your model version performs image classification or
      * general classification.
@@ -1493,9 +1718,12 @@ public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageC
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * */ - public Builder setImageClassificationConfig(com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { + public Builder setImageClassificationConfig( + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { if (imageClassificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1509,6 +1737,8 @@ public Builder setImageClassificationConfig(com.google.cloud.datalabeling.v1beta return this; } /** + * + * *
      * Specify this field if your model version performs image classification or
      * general classification.
@@ -1518,7 +1748,9 @@ public Builder setImageClassificationConfig(com.google.cloud.datalabeling.v1beta
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * */ public Builder setImageClassificationConfig( com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder builderForValue) { @@ -1532,6 +1764,8 @@ public Builder setImageClassificationConfig( return this; } /** + * + * *
      * Specify this field if your model version performs image classification or
      * general classification.
@@ -1541,14 +1775,23 @@ public Builder setImageClassificationConfig(
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * */ - public Builder mergeImageClassificationConfig(com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { + public Builder mergeImageClassificationConfig( + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { if (imageClassificationConfigBuilder_ == null) { - if (humanAnnotationRequestConfigCase_ == 4 && - humanAnnotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance()) { - humanAnnotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) humanAnnotationRequestConfig_) - .mergeFrom(value).buildPartial(); + if (humanAnnotationRequestConfigCase_ == 4 + && humanAnnotationRequestConfig_ + != com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig + .getDefaultInstance()) { + humanAnnotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.newBuilder( + (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) + humanAnnotationRequestConfig_) + .mergeFrom(value) + .buildPartial(); } else { humanAnnotationRequestConfig_ = value; } @@ -1564,6 +1807,8 @@ public Builder mergeImageClassificationConfig(com.google.cloud.datalabeling.v1be return this; } /** + * + * *
      * Specify this field if your model version performs image classification or
      * general classification.
@@ -1573,7 +1818,9 @@ public Builder mergeImageClassificationConfig(com.google.cloud.datalabeling.v1be
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * */ public Builder clearImageClassificationConfig() { if (imageClassificationConfigBuilder_ == null) { @@ -1592,6 +1839,8 @@ public Builder clearImageClassificationConfig() { return this; } /** + * + * *
      * Specify this field if your model version performs image classification or
      * general classification.
@@ -1601,12 +1850,17 @@ public Builder clearImageClassificationConfig() {
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * */ - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder getImageClassificationConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder + getImageClassificationConfigBuilder() { return getImageClassificationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Specify this field if your model version performs image classification or
      * general classification.
@@ -1616,20 +1870,26 @@ public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder g
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder getImageClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder + getImageClassificationConfigOrBuilder() { if ((humanAnnotationRequestConfigCase_ == 4) && (imageClassificationConfigBuilder_ != null)) { return imageClassificationConfigBuilder_.getMessageOrBuilder(); } else { if (humanAnnotationRequestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) humanAnnotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) + humanAnnotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } } /** + * + * *
      * Specify this field if your model version performs image classification or
      * general classification.
@@ -1639,30 +1899,45 @@ public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder> getImageClassificationConfigFieldBuilder() { if (imageClassificationConfigBuilder_ == null) { if (!(humanAnnotationRequestConfigCase_ == 4)) { - humanAnnotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); + humanAnnotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } - imageClassificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) humanAnnotationRequestConfig_, + imageClassificationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) + humanAnnotationRequestConfig_, getParentForChildren(), isClean()); humanAnnotationRequestConfig_ = null; } humanAnnotationRequestConfigCase_ = 4; - onChanged();; + onChanged(); + ; return imageClassificationConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder> boundingPolyConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder> + boundingPolyConfigBuilder_; /** + * + * *
      * Specify this field if your model version performs image object detection
      * (bounding box detection).
@@ -1671,6 +1946,7 @@ public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder
      * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; + * * @return Whether the boundingPolyConfig field is set. */ @java.lang.Override @@ -1678,6 +1954,8 @@ public boolean hasBoundingPolyConfig() { return humanAnnotationRequestConfigCase_ == 5; } /** + * + * *
      * Specify this field if your model version performs image object detection
      * (bounding box detection).
@@ -1686,13 +1964,15 @@ public boolean hasBoundingPolyConfig() {
      * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; + * * @return The boundingPolyConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyConfig() { if (boundingPolyConfigBuilder_ == null) { if (humanAnnotationRequestConfigCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) + humanAnnotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance(); } else { @@ -1703,6 +1983,8 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyC } } /** + * + * *
      * Specify this field if your model version performs image object detection
      * (bounding box detection).
@@ -1712,7 +1994,8 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyC
      *
      * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
      */
-    public Builder setBoundingPolyConfig(com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) {
+    public Builder setBoundingPolyConfig(
+        com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) {
       if (boundingPolyConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1726,6 +2009,8 @@ public Builder setBoundingPolyConfig(com.google.cloud.datalabeling.v1beta1.Bound
       return this;
     }
     /**
+     *
+     *
      * 
      * Specify this field if your model version performs image object detection
      * (bounding box detection).
@@ -1747,6 +2032,8 @@ public Builder setBoundingPolyConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Specify this field if your model version performs image object detection
      * (bounding box detection).
@@ -1756,12 +2043,18 @@ public Builder setBoundingPolyConfig(
      *
      * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
      */
-    public Builder mergeBoundingPolyConfig(com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) {
+    public Builder mergeBoundingPolyConfig(
+        com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) {
       if (boundingPolyConfigBuilder_ == null) {
-        if (humanAnnotationRequestConfigCase_ == 5 &&
-            humanAnnotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance()) {
-          humanAnnotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_)
-              .mergeFrom(value).buildPartial();
+        if (humanAnnotationRequestConfigCase_ == 5
+            && humanAnnotationRequestConfig_
+                != com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance()) {
+          humanAnnotationRequestConfig_ =
+              com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.newBuilder(
+                      (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig)
+                          humanAnnotationRequestConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           humanAnnotationRequestConfig_ = value;
         }
@@ -1777,6 +2070,8 @@ public Builder mergeBoundingPolyConfig(com.google.cloud.datalabeling.v1beta1.Bou
       return this;
     }
     /**
+     *
+     *
      * 
      * Specify this field if your model version performs image object detection
      * (bounding box detection).
@@ -1803,6 +2098,8 @@ public Builder clearBoundingPolyConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Specify this field if your model version performs image object detection
      * (bounding box detection).
@@ -1812,10 +2109,13 @@ public Builder clearBoundingPolyConfig() {
      *
      * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
      */
-    public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder getBoundingPolyConfigBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder
+        getBoundingPolyConfigBuilder() {
       return getBoundingPolyConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Specify this field if your model version performs image object detection
      * (bounding box detection).
@@ -1826,17 +2126,21 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder getBound
      * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
      */
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoundingPolyConfigOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder
+        getBoundingPolyConfigOrBuilder() {
       if ((humanAnnotationRequestConfigCase_ == 5) && (boundingPolyConfigBuilder_ != null)) {
         return boundingPolyConfigBuilder_.getMessageOrBuilder();
       } else {
         if (humanAnnotationRequestConfigCase_ == 5) {
-          return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_;
+          return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig)
+              humanAnnotationRequestConfig_;
         }
         return com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance();
       }
     }
     /**
+     *
+     *
      * 
      * Specify this field if your model version performs image object detection
      * (bounding box detection).
@@ -1847,27 +2151,40 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoun
      * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder> 
+            com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig,
+            com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder,
+            com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder>
         getBoundingPolyConfigFieldBuilder() {
       if (boundingPolyConfigBuilder_ == null) {
         if (!(humanAnnotationRequestConfigCase_ == 5)) {
-          humanAnnotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance();
+          humanAnnotationRequestConfig_ =
+              com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance();
         }
-        boundingPolyConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder>(
-                (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) humanAnnotationRequestConfig_,
+        boundingPolyConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig,
+                com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder,
+                com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder>(
+                (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig)
+                    humanAnnotationRequestConfig_,
                 getParentForChildren(),
                 isClean());
         humanAnnotationRequestConfig_ = null;
       }
       humanAnnotationRequestConfigCase_ = 5;
-      onChanged();;
+      onChanged();
+      ;
       return boundingPolyConfigBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder> textClassificationConfigBuilder_;
+            com.google.cloud.datalabeling.v1beta1.TextClassificationConfig,
+            com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder,
+            com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder>
+        textClassificationConfigBuilder_;
     /**
+     *
+     *
      * 
      * Specify this field if your model version performs text classification.
      * `annotationSpecSet` in this configuration must match
@@ -1876,7 +2193,10 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoun
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * + * * @return Whether the textClassificationConfig field is set. */ @java.lang.Override @@ -1884,6 +2204,8 @@ public boolean hasTextClassificationConfig() { return humanAnnotationRequestConfigCase_ == 8; } /** + * + * *
      * Specify this field if your model version performs text classification.
      * `annotationSpecSet` in this configuration must match
@@ -1892,14 +2214,19 @@ public boolean hasTextClassificationConfig() {
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * + * * @return The textClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig + getTextClassificationConfig() { if (textClassificationConfigBuilder_ == null) { if (humanAnnotationRequestConfigCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) humanAnnotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) + humanAnnotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } else { @@ -1910,6 +2237,8 @@ public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextCla } } /** + * + * *
      * Specify this field if your model version performs text classification.
      * `annotationSpecSet` in this configuration must match
@@ -1918,9 +2247,12 @@ public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextCla
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * */ - public Builder setTextClassificationConfig(com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { + public Builder setTextClassificationConfig( + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { if (textClassificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1934,6 +2266,8 @@ public Builder setTextClassificationConfig(com.google.cloud.datalabeling.v1beta1 return this; } /** + * + * *
      * Specify this field if your model version performs text classification.
      * `annotationSpecSet` in this configuration must match
@@ -1942,7 +2276,9 @@ public Builder setTextClassificationConfig(com.google.cloud.datalabeling.v1beta1
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * */ public Builder setTextClassificationConfig( com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder builderForValue) { @@ -1956,6 +2292,8 @@ public Builder setTextClassificationConfig( return this; } /** + * + * *
      * Specify this field if your model version performs text classification.
      * `annotationSpecSet` in this configuration must match
@@ -1964,14 +2302,23 @@ public Builder setTextClassificationConfig(
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * */ - public Builder mergeTextClassificationConfig(com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { + public Builder mergeTextClassificationConfig( + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { if (textClassificationConfigBuilder_ == null) { - if (humanAnnotationRequestConfigCase_ == 8 && - humanAnnotationRequestConfig_ != com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance()) { - humanAnnotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) humanAnnotationRequestConfig_) - .mergeFrom(value).buildPartial(); + if (humanAnnotationRequestConfigCase_ == 8 + && humanAnnotationRequestConfig_ + != com.google.cloud.datalabeling.v1beta1.TextClassificationConfig + .getDefaultInstance()) { + humanAnnotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.newBuilder( + (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) + humanAnnotationRequestConfig_) + .mergeFrom(value) + .buildPartial(); } else { humanAnnotationRequestConfig_ = value; } @@ -1987,6 +2334,8 @@ public Builder mergeTextClassificationConfig(com.google.cloud.datalabeling.v1bet return this; } /** + * + * *
      * Specify this field if your model version performs text classification.
      * `annotationSpecSet` in this configuration must match
@@ -1995,7 +2344,9 @@ public Builder mergeTextClassificationConfig(com.google.cloud.datalabeling.v1bet
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * */ public Builder clearTextClassificationConfig() { if (textClassificationConfigBuilder_ == null) { @@ -2014,6 +2365,8 @@ public Builder clearTextClassificationConfig() { return this; } /** + * + * *
      * Specify this field if your model version performs text classification.
      * `annotationSpecSet` in this configuration must match
@@ -2022,12 +2375,17 @@ public Builder clearTextClassificationConfig() {
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * */ - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder getTextClassificationConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder + getTextClassificationConfigBuilder() { return getTextClassificationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Specify this field if your model version performs text classification.
      * `annotationSpecSet` in this configuration must match
@@ -2036,20 +2394,26 @@ public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder ge
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder getTextClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder + getTextClassificationConfigOrBuilder() { if ((humanAnnotationRequestConfigCase_ == 8) && (textClassificationConfigBuilder_ != null)) { return textClassificationConfigBuilder_.getMessageOrBuilder(); } else { if (humanAnnotationRequestConfigCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) humanAnnotationRequestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) + humanAnnotationRequestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } } /** + * + * *
      * Specify this field if your model version performs text classification.
      * `annotationSpecSet` in this configuration must match
@@ -2058,31 +2422,46 @@ public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder g
      * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder> getTextClassificationConfigFieldBuilder() { if (textClassificationConfigBuilder_ == null) { if (!(humanAnnotationRequestConfigCase_ == 8)) { - humanAnnotationRequestConfig_ = com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); + humanAnnotationRequestConfig_ = + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } - textClassificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) humanAnnotationRequestConfig_, + textClassificationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) + humanAnnotationRequestConfig_, getParentForChildren(), isClean()); humanAnnotationRequestConfig_ = null; } humanAnnotationRequestConfigCase_ = 8; - onChanged();; + onChanged(); + ; return textClassificationConfigBuilder_; } private com.google.cloud.datalabeling.v1beta1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.InputConfig, com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.InputConfig, + com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, + com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * Rquired. Details for the sampled prediction input. Within this
      * configuration, there are requirements for several fields:
@@ -2096,12 +2475,15 @@ public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder g
      * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
      * Rquired. Details for the sampled prediction input. Within this
      * configuration, there are requirements for several fields:
@@ -2115,16 +2497,21 @@ public boolean hasInputConfig() {
      * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ public com.google.cloud.datalabeling.v1beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Rquired. Details for the sampled prediction input. Within this
      * configuration, there are requirements for several fields:
@@ -2153,6 +2540,8 @@ public Builder setInputConfig(com.google.cloud.datalabeling.v1beta1.InputConfig
       return this;
     }
     /**
+     *
+     *
      * 
      * Rquired. Details for the sampled prediction input. Within this
      * configuration, there are requirements for several fields:
@@ -2179,6 +2568,8 @@ public Builder setInputConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Rquired. Details for the sampled prediction input. Within this
      * configuration, there are requirements for several fields:
@@ -2197,7 +2588,9 @@ public Builder mergeInputConfig(com.google.cloud.datalabeling.v1beta1.InputConfi
       if (inputConfigBuilder_ == null) {
         if (inputConfig_ != null) {
           inputConfig_ =
-            com.google.cloud.datalabeling.v1beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial();
+              com.google.cloud.datalabeling.v1beta1.InputConfig.newBuilder(inputConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           inputConfig_ = value;
         }
@@ -2209,6 +2602,8 @@ public Builder mergeInputConfig(com.google.cloud.datalabeling.v1beta1.InputConfi
       return this;
     }
     /**
+     *
+     *
      * 
      * Rquired. Details for the sampled prediction input. Within this
      * configuration, there are requirements for several fields:
@@ -2235,6 +2630,8 @@ public Builder clearInputConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Rquired. Details for the sampled prediction input. Within this
      * configuration, there are requirements for several fields:
@@ -2250,11 +2647,13 @@ public Builder clearInputConfig() {
      * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1;
      */
     public com.google.cloud.datalabeling.v1beta1.InputConfig.Builder getInputConfigBuilder() {
-      
+
       onChanged();
       return getInputConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Rquired. Details for the sampled prediction input. Within this
      * configuration, there are requirements for several fields:
@@ -2273,11 +2672,14 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig
       if (inputConfigBuilder_ != null) {
         return inputConfigBuilder_.getMessageOrBuilder();
       } else {
-        return inputConfig_ == null ?
-            com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance() : inputConfig_;
+        return inputConfig_ == null
+            ? com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance()
+            : inputConfig_;
       }
     }
     /**
+     *
+     *
      * 
      * Rquired. Details for the sampled prediction input. Within this
      * configuration, there are requirements for several fields:
@@ -2293,14 +2695,17 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig
      * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.InputConfig, com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder> 
+            com.google.cloud.datalabeling.v1beta1.InputConfig,
+            com.google.cloud.datalabeling.v1beta1.InputConfig.Builder,
+            com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder>
         getInputConfigFieldBuilder() {
       if (inputConfigBuilder_ == null) {
-        inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.InputConfig, com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder>(
-                getInputConfig(),
-                getParentForChildren(),
-                isClean());
+        inputConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.datalabeling.v1beta1.InputConfig,
+                com.google.cloud.datalabeling.v1beta1.InputConfig.Builder,
+                com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder>(
+                getInputConfig(), getParentForChildren(), isClean());
         inputConfig_ = null;
       }
       return inputConfigBuilder_;
@@ -2308,8 +2713,13 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig
 
     private com.google.cloud.datalabeling.v1beta1.EvaluationConfig evaluationConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.EvaluationConfig, com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder> evaluationConfigBuilder_;
+            com.google.cloud.datalabeling.v1beta1.EvaluationConfig,
+            com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder,
+            com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder>
+        evaluationConfigBuilder_;
     /**
+     *
+     *
      * 
      * Required. Details for calculating evaluation metrics and creating
      * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -2319,12 +2729,15 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; + * * @return Whether the evaluationConfig field is set. */ public boolean hasEvaluationConfig() { return evaluationConfigBuilder_ != null || evaluationConfig_ != null; } /** + * + * *
      * Required. Details for calculating evaluation metrics and creating
      * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -2334,16 +2747,21 @@ public boolean hasEvaluationConfig() {
      * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; + * * @return The evaluationConfig. */ public com.google.cloud.datalabeling.v1beta1.EvaluationConfig getEvaluationConfig() { if (evaluationConfigBuilder_ == null) { - return evaluationConfig_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance() : evaluationConfig_; + return evaluationConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance() + : evaluationConfig_; } else { return evaluationConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Details for calculating evaluation metrics and creating
      * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -2354,7 +2772,8 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfig getEvaluationConfi
      *
      * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2;
      */
-    public Builder setEvaluationConfig(com.google.cloud.datalabeling.v1beta1.EvaluationConfig value) {
+    public Builder setEvaluationConfig(
+        com.google.cloud.datalabeling.v1beta1.EvaluationConfig value) {
       if (evaluationConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -2368,6 +2787,8 @@ public Builder setEvaluationConfig(com.google.cloud.datalabeling.v1beta1.Evaluat
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Details for calculating evaluation metrics and creating
      * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -2390,6 +2811,8 @@ public Builder setEvaluationConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Details for calculating evaluation metrics and creating
      * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -2400,11 +2823,14 @@ public Builder setEvaluationConfig(
      *
      * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2;
      */
-    public Builder mergeEvaluationConfig(com.google.cloud.datalabeling.v1beta1.EvaluationConfig value) {
+    public Builder mergeEvaluationConfig(
+        com.google.cloud.datalabeling.v1beta1.EvaluationConfig value) {
       if (evaluationConfigBuilder_ == null) {
         if (evaluationConfig_ != null) {
           evaluationConfig_ =
-            com.google.cloud.datalabeling.v1beta1.EvaluationConfig.newBuilder(evaluationConfig_).mergeFrom(value).buildPartial();
+              com.google.cloud.datalabeling.v1beta1.EvaluationConfig.newBuilder(evaluationConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           evaluationConfig_ = value;
         }
@@ -2416,6 +2842,8 @@ public Builder mergeEvaluationConfig(com.google.cloud.datalabeling.v1beta1.Evalu
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Details for calculating evaluation metrics and creating
      * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -2438,6 +2866,8 @@ public Builder clearEvaluationConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Details for calculating evaluation metrics and creating
      * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -2448,12 +2878,15 @@ public Builder clearEvaluationConfig() {
      *
      * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2;
      */
-    public com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder getEvaluationConfigBuilder() {
-      
+    public com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder
+        getEvaluationConfigBuilder() {
+
       onChanged();
       return getEvaluationConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Required. Details for calculating evaluation metrics and creating
      * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -2464,15 +2897,19 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder getEvaluat
      *
      * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2;
      */
-    public com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder getEvaluationConfigOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder
+        getEvaluationConfigOrBuilder() {
       if (evaluationConfigBuilder_ != null) {
         return evaluationConfigBuilder_.getMessageOrBuilder();
       } else {
-        return evaluationConfig_ == null ?
-            com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance() : evaluationConfig_;
+        return evaluationConfig_ == null
+            ? com.google.cloud.datalabeling.v1beta1.EvaluationConfig.getDefaultInstance()
+            : evaluationConfig_;
       }
     }
     /**
+     *
+     *
      * 
      * Required. Details for calculating evaluation metrics and creating
      * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -2484,14 +2921,17 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder getEvalua
      * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.EvaluationConfig, com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder> 
+            com.google.cloud.datalabeling.v1beta1.EvaluationConfig,
+            com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder,
+            com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder>
         getEvaluationConfigFieldBuilder() {
       if (evaluationConfigBuilder_ == null) {
-        evaluationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.EvaluationConfig, com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder>(
-                getEvaluationConfig(),
-                getParentForChildren(),
-                isClean());
+        evaluationConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.datalabeling.v1beta1.EvaluationConfig,
+                com.google.cloud.datalabeling.v1beta1.EvaluationConfig.Builder,
+                com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder>(
+                getEvaluationConfig(), getParentForChildren(), isClean());
         evaluationConfig_ = null;
       }
       return evaluationConfigBuilder_;
@@ -2499,8 +2939,13 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder getEvalua
 
     private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig humanAnnotationConfig_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> humanAnnotationConfigBuilder_;
+            com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig,
+            com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder,
+            com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>
+        humanAnnotationConfigBuilder_;
     /**
+     *
+     *
      * 
      * Optional. Details for human annotation of your data. If you set
      * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -2511,13 +2956,17 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder getEvalua
      * `instruction` field within this configuration.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * + * * @return Whether the humanAnnotationConfig field is set. */ public boolean hasHumanAnnotationConfig() { return humanAnnotationConfigBuilder_ != null || humanAnnotationConfig_ != null; } /** + * + * *
      * Optional. Details for human annotation of your data. If you set
      * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -2528,17 +2977,23 @@ public boolean hasHumanAnnotationConfig() {
      * `instruction` field within this configuration.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * + * * @return The humanAnnotationConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getHumanAnnotationConfig() { if (humanAnnotationConfigBuilder_ == null) { - return humanAnnotationConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : humanAnnotationConfig_; + return humanAnnotationConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : humanAnnotationConfig_; } else { return humanAnnotationConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Details for human annotation of your data. If you set
      * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -2549,9 +3004,11 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getHumanAnnot
      * `instruction` field within this configuration.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * */ - public Builder setHumanAnnotationConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setHumanAnnotationConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (humanAnnotationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2565,6 +3022,8 @@ public Builder setHumanAnnotationConfig(com.google.cloud.datalabeling.v1beta1.Hu return this; } /** + * + * *
      * Optional. Details for human annotation of your data. If you set
      * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -2575,7 +3034,8 @@ public Builder setHumanAnnotationConfig(com.google.cloud.datalabeling.v1beta1.Hu
      * `instruction` field within this configuration.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * */ public Builder setHumanAnnotationConfig( com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder builderForValue) { @@ -2589,6 +3049,8 @@ public Builder setHumanAnnotationConfig( return this; } /** + * + * *
      * Optional. Details for human annotation of your data. If you set
      * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -2599,13 +3061,18 @@ public Builder setHumanAnnotationConfig(
      * `instruction` field within this configuration.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * */ - public Builder mergeHumanAnnotationConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeHumanAnnotationConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (humanAnnotationConfigBuilder_ == null) { if (humanAnnotationConfig_ != null) { humanAnnotationConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(humanAnnotationConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder( + humanAnnotationConfig_) + .mergeFrom(value) + .buildPartial(); } else { humanAnnotationConfig_ = value; } @@ -2617,6 +3084,8 @@ public Builder mergeHumanAnnotationConfig(com.google.cloud.datalabeling.v1beta1. return this; } /** + * + * *
      * Optional. Details for human annotation of your data. If you set
      * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -2627,7 +3096,8 @@ public Builder mergeHumanAnnotationConfig(com.google.cloud.datalabeling.v1beta1.
      * `instruction` field within this configuration.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * */ public Builder clearHumanAnnotationConfig() { if (humanAnnotationConfigBuilder_ == null) { @@ -2641,6 +3111,8 @@ public Builder clearHumanAnnotationConfig() { return this; } /** + * + * *
      * Optional. Details for human annotation of your data. If you set
      * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -2651,14 +3123,18 @@ public Builder clearHumanAnnotationConfig() {
      * `instruction` field within this configuration.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getHumanAnnotationConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder + getHumanAnnotationConfigBuilder() { + onChanged(); return getHumanAnnotationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Details for human annotation of your data. If you set
      * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -2669,17 +3145,22 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getHu
      * `instruction` field within this configuration.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getHumanAnnotationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getHumanAnnotationConfigOrBuilder() { if (humanAnnotationConfigBuilder_ != null) { return humanAnnotationConfigBuilder_.getMessageOrBuilder(); } else { - return humanAnnotationConfig_ == null ? - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : humanAnnotationConfig_; + return humanAnnotationConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : humanAnnotationConfig_; } } /** + * + * *
      * Optional. Details for human annotation of your data. If you set
      * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -2690,38 +3171,45 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getH
      * `instruction` field within this configuration.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getHumanAnnotationConfigFieldBuilder() { if (humanAnnotationConfigBuilder_ == null) { - humanAnnotationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getHumanAnnotationConfig(), - getParentForChildren(), - isClean()); + humanAnnotationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getHumanAnnotationConfig(), getParentForChildren(), isClean()); humanAnnotationConfig_ = null; } return humanAnnotationConfigBuilder_; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> bigqueryImportKeys_; + private com.google.protobuf.MapField bigqueryImportKeys_; + private com.google.protobuf.MapField - internalGetBigqueryImportKeys() { + internalGetBigqueryImportKeys() { if (bigqueryImportKeys_ == null) { return com.google.protobuf.MapField.emptyMapField( BigqueryImportKeysDefaultEntryHolder.defaultEntry); } return bigqueryImportKeys_; } + private com.google.protobuf.MapField - internalGetMutableBigqueryImportKeys() { - onChanged();; + internalGetMutableBigqueryImportKeys() { + onChanged(); + ; if (bigqueryImportKeys_ == null) { - bigqueryImportKeys_ = com.google.protobuf.MapField.newMapField( - BigqueryImportKeysDefaultEntryHolder.defaultEntry); + bigqueryImportKeys_ = + com.google.protobuf.MapField.newMapField( + BigqueryImportKeysDefaultEntryHolder.defaultEntry); } if (!bigqueryImportKeys_.isMutable()) { bigqueryImportKeys_ = bigqueryImportKeys_.copy(); @@ -2733,6 +3221,8 @@ public int getBigqueryImportKeysCount() { return internalGetBigqueryImportKeys().getMap().size(); } /** + * + * *
      * Required. Prediction keys that tell Data Labeling Service where to find the
      * data for evaluation in your BigQuery table. When the service samples
@@ -2754,22 +3244,22 @@ public int getBigqueryImportKeysCount() {
      *
      * map<string, string> bigquery_import_keys = 9;
      */
-
     @java.lang.Override
-    public boolean containsBigqueryImportKeys(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsBigqueryImportKeys(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetBigqueryImportKeys().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getBigqueryImportKeysMap()} instead.
-     */
+    /** Use {@link #getBigqueryImportKeysMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getBigqueryImportKeys() {
       return getBigqueryImportKeysMap();
     }
     /**
+     *
+     *
      * 
      * Required. Prediction keys that tell Data Labeling Service where to find the
      * data for evaluation in your BigQuery table. When the service samples
@@ -2792,11 +3282,12 @@ public java.util.Map getBigqueryImportKeys()
      * map<string, string> bigquery_import_keys = 9;
      */
     @java.lang.Override
-
     public java.util.Map getBigqueryImportKeysMap() {
       return internalGetBigqueryImportKeys().getMap();
     }
     /**
+     *
+     *
      * 
      * Required. Prediction keys that tell Data Labeling Service where to find the
      * data for evaluation in your BigQuery table. When the service samples
@@ -2819,16 +3310,18 @@ public java.util.Map getBigqueryImportKeysMa
      * map<string, string> bigquery_import_keys = 9;
      */
     @java.lang.Override
-
     public java.lang.String getBigqueryImportKeysOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
+        java.lang.String key, java.lang.String defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetBigqueryImportKeys().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Required. Prediction keys that tell Data Labeling Service where to find the
      * data for evaluation in your BigQuery table. When the service samples
@@ -2851,10 +3344,10 @@ public java.lang.String getBigqueryImportKeysOrDefault(
      * map<string, string> bigquery_import_keys = 9;
      */
     @java.lang.Override
-
-    public java.lang.String getBigqueryImportKeysOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public java.lang.String getBigqueryImportKeysOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       java.util.Map map =
           internalGetBigqueryImportKeys().getMap();
       if (!map.containsKey(key)) {
@@ -2864,11 +3357,12 @@ public java.lang.String getBigqueryImportKeysOrThrow(
     }
 
     public Builder clearBigqueryImportKeys() {
-      internalGetMutableBigqueryImportKeys().getMutableMap()
-          .clear();
+      internalGetMutableBigqueryImportKeys().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Prediction keys that tell Data Labeling Service where to find the
      * data for evaluation in your BigQuery table. When the service samples
@@ -2890,23 +3384,21 @@ public Builder clearBigqueryImportKeys() {
      *
      * map<string, string> bigquery_import_keys = 9;
      */
-
-    public Builder removeBigqueryImportKeys(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableBigqueryImportKeys().getMutableMap()
-          .remove(key);
+    public Builder removeBigqueryImportKeys(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableBigqueryImportKeys().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableBigqueryImportKeys() {
+    public java.util.Map getMutableBigqueryImportKeys() {
       return internalGetMutableBigqueryImportKeys().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Required. Prediction keys that tell Data Labeling Service where to find the
      * data for evaluation in your BigQuery table. When the service samples
@@ -2928,19 +3420,20 @@ public Builder removeBigqueryImportKeys(
      *
      * map<string, string> bigquery_import_keys = 9;
      */
-    public Builder putBigqueryImportKeys(
-        java.lang.String key,
-        java.lang.String value) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public Builder putBigqueryImportKeys(java.lang.String key, java.lang.String value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       if (value == null) {
-  throw new NullPointerException("map value");
-}
+        throw new NullPointerException("map value");
+      }
 
-      internalGetMutableBigqueryImportKeys().getMutableMap()
-          .put(key, value);
+      internalGetMutableBigqueryImportKeys().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Required. Prediction keys that tell Data Labeling Service where to find the
      * data for evaluation in your BigQuery table. When the service samples
@@ -2962,16 +3455,16 @@ public Builder putBigqueryImportKeys(
      *
      * map<string, string> bigquery_import_keys = 9;
      */
-
     public Builder putAllBigqueryImportKeys(
         java.util.Map values) {
-      internalGetMutableBigqueryImportKeys().getMutableMap()
-          .putAll(values);
+      internalGetMutableBigqueryImportKeys().getMutableMap().putAll(values);
       return this;
     }
 
-    private int exampleCount_ ;
+    private int exampleCount_;
     /**
+     *
+     *
      * 
      * Required. The maximum number of predictions to sample and save to BigQuery
      * during each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. This limit
@@ -2981,6 +3474,7 @@ public Builder putAllBigqueryImportKeys(
      * 
* * int32 example_count = 10; + * * @return The exampleCount. */ @java.lang.Override @@ -2988,6 +3482,8 @@ public int getExampleCount() { return exampleCount_; } /** + * + * *
      * Required. The maximum number of predictions to sample and save to BigQuery
      * during each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. This limit
@@ -2997,16 +3493,19 @@ public int getExampleCount() {
      * 
* * int32 example_count = 10; + * * @param value The exampleCount to set. * @return This builder for chaining. */ public Builder setExampleCount(int value) { - + exampleCount_ = value; onChanged(); return this; } /** + * + * *
      * Required. The maximum number of predictions to sample and save to BigQuery
      * during each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. This limit
@@ -3016,17 +3515,20 @@ public Builder setExampleCount(int value) {
      * 
* * int32 example_count = 10; + * * @return This builder for chaining. */ public Builder clearExampleCount() { - + exampleCount_ = 0; onChanged(); return this; } - private double exampleSamplePercentage_ ; + private double exampleSamplePercentage_; /** + * + * *
      * Required. Fraction of predictions to sample and save to BigQuery during
      * each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. For example, 0.1 means
@@ -3034,6 +3536,7 @@ public Builder clearExampleCount() {
      * 
* * double example_sample_percentage = 11; + * * @return The exampleSamplePercentage. */ @java.lang.Override @@ -3041,6 +3544,8 @@ public double getExampleSamplePercentage() { return exampleSamplePercentage_; } /** + * + * *
      * Required. Fraction of predictions to sample and save to BigQuery during
      * each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. For example, 0.1 means
@@ -3048,16 +3553,19 @@ public double getExampleSamplePercentage() {
      * 
* * double example_sample_percentage = 11; + * * @param value The exampleSamplePercentage to set. * @return This builder for chaining. */ public Builder setExampleSamplePercentage(double value) { - + exampleSamplePercentage_ = value; onChanged(); return this; } /** + * + * *
      * Required. Fraction of predictions to sample and save to BigQuery during
      * each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. For example, 0.1 means
@@ -3065,58 +3573,81 @@ public Builder setExampleSamplePercentage(double value) {
      * 
* * double example_sample_percentage = 11; + * * @return This builder for chaining. */ public Builder clearExampleSamplePercentage() { - + exampleSamplePercentage_ = 0D; onChanged(); return this; } - private com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluationJobAlertConfig_; + private com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig + evaluationJobAlertConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig, com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder> evaluationJobAlertConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig, + com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder, + com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder> + evaluationJobAlertConfigBuilder_; /** + * + * *
      * Optional. Configuration details for evaluation job alerts. Specify this
      * field if you want to receive email alerts if the evaluation job finds that
      * your predictions have low mean average precision during a run.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * + * * @return Whether the evaluationJobAlertConfig field is set. */ public boolean hasEvaluationJobAlertConfig() { return evaluationJobAlertConfigBuilder_ != null || evaluationJobAlertConfig_ != null; } /** + * + * *
      * Optional. Configuration details for evaluation job alerts. Specify this
      * field if you want to receive email alerts if the evaluation job finds that
      * your predictions have low mean average precision during a run.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * + * * @return The evaluationJobAlertConfig. */ - public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig getEvaluationJobAlertConfig() { + public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig + getEvaluationJobAlertConfig() { if (evaluationJobAlertConfigBuilder_ == null) { - return evaluationJobAlertConfig_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.getDefaultInstance() : evaluationJobAlertConfig_; + return evaluationJobAlertConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.getDefaultInstance() + : evaluationJobAlertConfig_; } else { return evaluationJobAlertConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Configuration details for evaluation job alerts. Specify this
      * field if you want to receive email alerts if the evaluation job finds that
      * your predictions have low mean average precision during a run.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * */ - public Builder setEvaluationJobAlertConfig(com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig value) { + public Builder setEvaluationJobAlertConfig( + com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig value) { if (evaluationJobAlertConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3130,13 +3661,17 @@ public Builder setEvaluationJobAlertConfig(com.google.cloud.datalabeling.v1beta1 return this; } /** + * + * *
      * Optional. Configuration details for evaluation job alerts. Specify this
      * field if you want to receive email alerts if the evaluation job finds that
      * your predictions have low mean average precision during a run.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * */ public Builder setEvaluationJobAlertConfig( com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder builderForValue) { @@ -3150,19 +3685,27 @@ public Builder setEvaluationJobAlertConfig( return this; } /** + * + * *
      * Optional. Configuration details for evaluation job alerts. Specify this
      * field if you want to receive email alerts if the evaluation job finds that
      * your predictions have low mean average precision during a run.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * */ - public Builder mergeEvaluationJobAlertConfig(com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig value) { + public Builder mergeEvaluationJobAlertConfig( + com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig value) { if (evaluationJobAlertConfigBuilder_ == null) { if (evaluationJobAlertConfig_ != null) { evaluationJobAlertConfig_ = - com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.newBuilder(evaluationJobAlertConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.newBuilder( + evaluationJobAlertConfig_) + .mergeFrom(value) + .buildPartial(); } else { evaluationJobAlertConfig_ = value; } @@ -3174,13 +3717,17 @@ public Builder mergeEvaluationJobAlertConfig(com.google.cloud.datalabeling.v1bet return this; } /** + * + * *
      * Optional. Configuration details for evaluation job alerts. Specify this
      * field if you want to receive email alerts if the evaluation job finds that
      * your predictions have low mean average precision during a run.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * */ public Builder clearEvaluationJobAlertConfig() { if (evaluationJobAlertConfigBuilder_ == null) { @@ -3194,61 +3741,79 @@ public Builder clearEvaluationJobAlertConfig() { return this; } /** + * + * *
      * Optional. Configuration details for evaluation job alerts. Specify this
      * field if you want to receive email alerts if the evaluation job finds that
      * your predictions have low mean average precision during a run.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * */ - public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder getEvaluationJobAlertConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder + getEvaluationJobAlertConfigBuilder() { + onChanged(); return getEvaluationJobAlertConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Configuration details for evaluation job alerts. Specify this
      * field if you want to receive email alerts if the evaluation job finds that
      * your predictions have low mean average precision during a run.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * */ - public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder getEvaluationJobAlertConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder + getEvaluationJobAlertConfigOrBuilder() { if (evaluationJobAlertConfigBuilder_ != null) { return evaluationJobAlertConfigBuilder_.getMessageOrBuilder(); } else { - return evaluationJobAlertConfig_ == null ? - com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.getDefaultInstance() : evaluationJobAlertConfig_; + return evaluationJobAlertConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.getDefaultInstance() + : evaluationJobAlertConfig_; } } /** + * + * *
      * Optional. Configuration details for evaluation job alerts. Specify this
      * field if you want to receive email alerts if the evaluation job finds that
      * your predictions have low mean average precision during a run.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig, com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig, + com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder, + com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder> getEvaluationJobAlertConfigFieldBuilder() { if (evaluationJobAlertConfigBuilder_ == null) { - evaluationJobAlertConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig, com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder>( - getEvaluationJobAlertConfig(), - getParentForChildren(), - isClean()); + evaluationJobAlertConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig, + com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig.Builder, + com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder>( + getEvaluationJobAlertConfig(), getParentForChildren(), isClean()); evaluationJobAlertConfig_ = null; } return evaluationJobAlertConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -3258,12 +3823,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.EvaluationJobConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.EvaluationJobConfig) private static final com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig(); } @@ -3272,16 +3837,16 @@ public static com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvaluationJobConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvaluationJobConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationJobConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvaluationJobConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -3296,6 +3861,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfigOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfigOrBuilder.java similarity index 86% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfigOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfigOrBuilder.java index 6d22f12c..99b520ba 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfigOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobConfigOrBuilder.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/datalabeling/v1beta1/evaluation_job.proto package com.google.cloud.datalabeling.v1beta1; -public interface EvaluationJobConfigOrBuilder extends +public interface EvaluationJobConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.EvaluationJobConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Specify this field if your model version performs image classification or
    * general classification.
@@ -17,11 +35,16 @@ public interface EvaluationJobConfigOrBuilder extends
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * * @return Whether the imageClassificationConfig field is set. */ boolean hasImageClassificationConfig(); /** + * + * *
    * Specify this field if your model version performs image classification or
    * general classification.
@@ -31,11 +54,16 @@ public interface EvaluationJobConfigOrBuilder extends
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * * @return The imageClassificationConfig. */ com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageClassificationConfig(); /** + * + * *
    * Specify this field if your model version performs image classification or
    * general classification.
@@ -45,11 +73,16 @@ public interface EvaluationJobConfigOrBuilder extends
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * */ - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder getImageClassificationConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder + getImageClassificationConfigOrBuilder(); /** + * + * *
    * Specify this field if your model version performs image object detection
    * (bounding box detection).
@@ -58,10 +91,13 @@ public interface EvaluationJobConfigOrBuilder extends
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; + * * @return Whether the boundingPolyConfig field is set. */ boolean hasBoundingPolyConfig(); /** + * + * *
    * Specify this field if your model version performs image object detection
    * (bounding box detection).
@@ -70,10 +106,13 @@ public interface EvaluationJobConfigOrBuilder extends
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; + * * @return The boundingPolyConfig. */ com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyConfig(); /** + * + * *
    * Specify this field if your model version performs image object detection
    * (bounding box detection).
@@ -83,9 +122,12 @@ public interface EvaluationJobConfigOrBuilder extends
    *
    * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
    */
-  com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoundingPolyConfigOrBuilder();
+  com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder
+      getBoundingPolyConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Specify this field if your model version performs text classification.
    * `annotationSpecSet` in this configuration must match
@@ -94,11 +136,16 @@ public interface EvaluationJobConfigOrBuilder extends
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * + * * @return Whether the textClassificationConfig field is set. */ boolean hasTextClassificationConfig(); /** + * + * *
    * Specify this field if your model version performs text classification.
    * `annotationSpecSet` in this configuration must match
@@ -107,11 +154,16 @@ public interface EvaluationJobConfigOrBuilder extends
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * + * * @return The textClassificationConfig. */ com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextClassificationConfig(); /** + * + * *
    * Specify this field if your model version performs text classification.
    * `annotationSpecSet` in this configuration must match
@@ -120,11 +172,16 @@ public interface EvaluationJobConfigOrBuilder extends
    * `classificationMetadata.isMultiLabel` in [input_config][google.cloud.datalabeling.v1beta1.EvaluationJobConfig.input_config].
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 8; + * */ - com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder getTextClassificationConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder + getTextClassificationConfigOrBuilder(); /** + * + * *
    * Rquired. Details for the sampled prediction input. Within this
    * configuration, there are requirements for several fields:
@@ -138,10 +195,13 @@ public interface EvaluationJobConfigOrBuilder extends
    * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * Rquired. Details for the sampled prediction input. Within this
    * configuration, there are requirements for several fields:
@@ -155,10 +215,13 @@ public interface EvaluationJobConfigOrBuilder extends
    * 
* * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 1; + * * @return The inputConfig. */ com.google.cloud.datalabeling.v1beta1.InputConfig getInputConfig(); /** + * + * *
    * Rquired. Details for the sampled prediction input. Within this
    * configuration, there are requirements for several fields:
@@ -176,6 +239,8 @@ public interface EvaluationJobConfigOrBuilder extends
   com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Required. Details for calculating evaluation metrics and creating
    * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -185,10 +250,13 @@ public interface EvaluationJobConfigOrBuilder extends
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; + * * @return Whether the evaluationConfig field is set. */ boolean hasEvaluationConfig(); /** + * + * *
    * Required. Details for calculating evaluation metrics and creating
    * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -198,10 +266,13 @@ public interface EvaluationJobConfigOrBuilder extends
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig evaluation_config = 2; + * * @return The evaluationConfig. */ com.google.cloud.datalabeling.v1beta1.EvaluationConfig getEvaluationConfig(); /** + * + * *
    * Required. Details for calculating evaluation metrics and creating
    * [Evaulations][google.cloud.datalabeling.v1beta1.Evaluation]. If your model version performs image object
@@ -215,6 +286,8 @@ public interface EvaluationJobConfigOrBuilder extends
   com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder getEvaluationConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Optional. Details for human annotation of your data. If you set
    * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -225,11 +298,15 @@ public interface EvaluationJobConfigOrBuilder extends
    * `instruction` field within this configuration.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * + * * @return Whether the humanAnnotationConfig field is set. */ boolean hasHumanAnnotationConfig(); /** + * + * *
    * Optional. Details for human annotation of your data. If you set
    * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -240,11 +317,15 @@ public interface EvaluationJobConfigOrBuilder extends
    * `instruction` field within this configuration.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * + * * @return The humanAnnotationConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getHumanAnnotationConfig(); /** + * + * *
    * Optional. Details for human annotation of your data. If you set
    * [labelMissingGroundTruth][google.cloud.datalabeling.v1beta1.EvaluationJob.label_missing_ground_truth] to
@@ -255,11 +336,15 @@ public interface EvaluationJobConfigOrBuilder extends
    * `instruction` field within this configuration.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 3; + * */ - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getHumanAnnotationConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getHumanAnnotationConfigOrBuilder(); /** + * + * *
    * Required. Prediction keys that tell Data Labeling Service where to find the
    * data for evaluation in your BigQuery table. When the service samples
@@ -283,6 +368,8 @@ public interface EvaluationJobConfigOrBuilder extends
    */
   int getBigqueryImportKeysCount();
   /**
+   *
+   *
    * 
    * Required. Prediction keys that tell Data Labeling Service where to find the
    * data for evaluation in your BigQuery table. When the service samples
@@ -304,15 +391,13 @@ public interface EvaluationJobConfigOrBuilder extends
    *
    * map<string, string> bigquery_import_keys = 9;
    */
-  boolean containsBigqueryImportKeys(
-      java.lang.String key);
-  /**
-   * Use {@link #getBigqueryImportKeysMap()} instead.
-   */
+  boolean containsBigqueryImportKeys(java.lang.String key);
+  /** Use {@link #getBigqueryImportKeysMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getBigqueryImportKeys();
+  java.util.Map getBigqueryImportKeys();
   /**
+   *
+   *
    * 
    * Required. Prediction keys that tell Data Labeling Service where to find the
    * data for evaluation in your BigQuery table. When the service samples
@@ -334,9 +419,10 @@ boolean containsBigqueryImportKeys(
    *
    * map<string, string> bigquery_import_keys = 9;
    */
-  java.util.Map
-  getBigqueryImportKeysMap();
+  java.util.Map getBigqueryImportKeysMap();
   /**
+   *
+   *
    * 
    * Required. Prediction keys that tell Data Labeling Service where to find the
    * data for evaluation in your BigQuery table. When the service samples
@@ -360,11 +446,13 @@ boolean containsBigqueryImportKeys(
    */
 
   /* nullable */
-java.lang.String getBigqueryImportKeysOrDefault(
+  java.lang.String getBigqueryImportKeysOrDefault(
       java.lang.String key,
       /* nullable */
-java.lang.String defaultValue);
+      java.lang.String defaultValue);
   /**
+   *
+   *
    * 
    * Required. Prediction keys that tell Data Labeling Service where to find the
    * data for evaluation in your BigQuery table. When the service samples
@@ -386,11 +474,11 @@ java.lang.String getBigqueryImportKeysOrDefault(
    *
    * map<string, string> bigquery_import_keys = 9;
    */
-
-  java.lang.String getBigqueryImportKeysOrThrow(
-      java.lang.String key);
+  java.lang.String getBigqueryImportKeysOrThrow(java.lang.String key);
 
   /**
+   *
+   *
    * 
    * Required. The maximum number of predictions to sample and save to BigQuery
    * during each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. This limit
@@ -400,11 +488,14 @@ java.lang.String getBigqueryImportKeysOrThrow(
    * 
* * int32 example_count = 10; + * * @return The exampleCount. */ int getExampleCount(); /** + * + * *
    * Required. Fraction of predictions to sample and save to BigQuery during
    * each [evaluation interval][google.cloud.datalabeling.v1beta1.EvaluationJob.schedule]. For example, 0.1 means
@@ -412,42 +503,59 @@ java.lang.String getBigqueryImportKeysOrThrow(
    * 
* * double example_sample_percentage = 11; + * * @return The exampleSamplePercentage. */ double getExampleSamplePercentage(); /** + * + * *
    * Optional. Configuration details for evaluation job alerts. Specify this
    * field if you want to receive email alerts if the evaluation job finds that
    * your predictions have low mean average precision during a run.
    * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * + * * @return Whether the evaluationJobAlertConfig field is set. */ boolean hasEvaluationJobAlertConfig(); /** + * + * *
    * Optional. Configuration details for evaluation job alerts. Specify this
    * field if you want to receive email alerts if the evaluation job finds that
    * your predictions have low mean average precision during a run.
    * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * + * * @return The evaluationJobAlertConfig. */ com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig getEvaluationJobAlertConfig(); /** + * + * *
    * Optional. Configuration details for evaluation job alerts. Specify this
    * field if you want to receive email alerts if the evaluation job finds that
    * your predictions have low mean average precision during a run.
    * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfig evaluation_job_alert_config = 13; + * */ - com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder getEvaluationJobAlertConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.EvaluationJobAlertConfigOrBuilder + getEvaluationJobAlertConfigOrBuilder(); - public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.HumanAnnotationRequestConfigCase getHumanAnnotationRequestConfigCase(); + public com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig.HumanAnnotationRequestConfigCase + getHumanAnnotationRequestConfigCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobName.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobName.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOrBuilder.java similarity index 87% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOrBuilder.java index 3d674255..9f678e69 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOrBuilder.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/datalabeling/v1beta1/evaluation_job.proto package com.google.cloud.datalabeling.v1beta1; -public interface EvaluationJobOrBuilder extends +public interface EvaluationJobOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.EvaluationJob) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. After you create a job, Data Labeling Service assigns a name
    * to the job with the following format:
@@ -15,10 +33,13 @@ public interface EvaluationJobOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. After you create a job, Data Labeling Service assigns a name
    * to the job with the following format:
@@ -26,53 +47,66 @@ public interface EvaluationJobOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. Description of the job. The description can be up to 25,000
    * characters long.
    * 
* * string description = 2; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Required. Description of the job. The description can be up to 25,000
    * characters long.
    * 
* * string description = 2; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. Describes the current state of the job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3; + * * @return The enum numeric value on the wire for state. */ int getStateValue(); /** + * + * *
    * Output only. Describes the current state of the job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJob.State state = 3; + * * @return The state. */ com.google.cloud.datalabeling.v1beta1.EvaluationJob.State getState(); /** + * + * *
    * Required. Describes the interval at which the job runs. This interval must
    * be at least 1 day, and it is rounded to the nearest day. For example, if
@@ -86,10 +120,13 @@ public interface EvaluationJobOrBuilder extends
    * 
* * string schedule = 4; + * * @return The schedule. */ java.lang.String getSchedule(); /** + * + * *
    * Required. Describes the interval at which the job runs. This interval must
    * be at least 1 day, and it is rounded to the nearest day. For example, if
@@ -103,12 +140,14 @@ public interface EvaluationJobOrBuilder extends
    * 
* * string schedule = 4; + * * @return The bytes for schedule. */ - com.google.protobuf.ByteString - getScheduleBytes(); + com.google.protobuf.ByteString getScheduleBytes(); /** + * + * *
    * Required. The [AI Platform Prediction model
    * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
@@ -119,10 +158,13 @@ public interface EvaluationJobOrBuilder extends
    * 
* * string model_version = 5; + * * @return The modelVersion. */ java.lang.String getModelVersion(); /** + * + * *
    * Required. The [AI Platform Prediction model
    * version](/ml-engine/docs/prediction-overview) to be evaluated. Prediction
@@ -133,39 +175,50 @@ public interface EvaluationJobOrBuilder extends
    * 
* * string model_version = 5; + * * @return The bytes for modelVersion. */ - com.google.protobuf.ByteString - getModelVersionBytes(); + com.google.protobuf.ByteString getModelVersionBytes(); /** + * + * *
    * Required. Configuration details for the evaluation job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; + * * @return Whether the evaluationJobConfig field is set. */ boolean hasEvaluationJobConfig(); /** + * + * *
    * Required. Configuration details for the evaluation job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; + * * @return The evaluationJobConfig. */ com.google.cloud.datalabeling.v1beta1.EvaluationJobConfig getEvaluationJobConfig(); /** + * + * *
    * Required. Configuration details for the evaluation job.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationJobConfig evaluation_job_config = 6; */ - com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder getEvaluationJobConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.EvaluationJobConfigOrBuilder + getEvaluationJobConfigOrBuilder(); /** + * + * *
    * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
    * labels that your machine learning model outputs. You must create this
@@ -175,10 +228,13 @@ public interface EvaluationJobOrBuilder extends
    * 
* * string annotation_spec_set = 7; + * * @return The annotationSpecSet. */ java.lang.String getAnnotationSpecSet(); /** + * + * *
    * Required. Name of the [AnnotationSpecSet][google.cloud.datalabeling.v1beta1.AnnotationSpecSet] describing all the
    * labels that your machine learning model outputs. You must create this
@@ -188,12 +244,14 @@ public interface EvaluationJobOrBuilder extends
    * 
* * string annotation_spec_set = 7; + * * @return The bytes for annotationSpecSet. */ - com.google.protobuf.ByteString - getAnnotationSpecSetBytes(); + com.google.protobuf.ByteString getAnnotationSpecSetBytes(); /** + * + * *
    * Required. Whether you want Data Labeling Service to provide ground truth
    * labels for prediction input. If you want the service to assign human
@@ -203,11 +261,14 @@ public interface EvaluationJobOrBuilder extends
    * 
* * bool label_missing_ground_truth = 8; + * * @return The labelMissingGroundTruth. */ boolean getLabelMissingGroundTruth(); /** + * + * *
    * Output only. Every time the evaluation job runs and an error occurs, the
    * failed attempt is appended to this array.
@@ -215,9 +276,10 @@ public interface EvaluationJobOrBuilder extends
    *
    * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
    */
-  java.util.List 
-      getAttemptsList();
+  java.util.List getAttemptsList();
   /**
+   *
+   *
    * 
    * Output only. Every time the evaluation job runs and an error occurs, the
    * failed attempt is appended to this array.
@@ -227,6 +289,8 @@ public interface EvaluationJobOrBuilder extends
    */
   com.google.cloud.datalabeling.v1beta1.Attempt getAttempts(int index);
   /**
+   *
+   *
    * 
    * Output only. Every time the evaluation job runs and an error occurs, the
    * failed attempt is appended to this array.
@@ -236,6 +300,8 @@ public interface EvaluationJobOrBuilder extends
    */
   int getAttemptsCount();
   /**
+   *
+   *
    * 
    * Output only. Every time the evaluation job runs and an error occurs, the
    * failed attempt is appended to this array.
@@ -243,9 +309,11 @@ public interface EvaluationJobOrBuilder extends
    *
    * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
    */
-  java.util.List 
+  java.util.List
       getAttemptsOrBuilderList();
   /**
+   *
+   *
    * 
    * Output only. Every time the evaluation job runs and an error occurs, the
    * failed attempt is appended to this array.
@@ -253,28 +321,35 @@ public interface EvaluationJobOrBuilder extends
    *
    * repeated .google.cloud.datalabeling.v1beta1.Attempt attempts = 9;
    */
-  com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder getAttemptsOrBuilder(
-      int index);
+  com.google.cloud.datalabeling.v1beta1.AttemptOrBuilder getAttemptsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Output only. Timestamp of when this evaluation job was created.
    * 
* * .google.protobuf.Timestamp create_time = 10; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Timestamp of when this evaluation job was created.
    * 
* * .google.protobuf.Timestamp create_time = 10; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Timestamp of when this evaluation job was created.
    * 
diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOuterClass.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOuterClass.java new file mode 100644 index 00000000..cc0bb788 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationJobOuterClass.java @@ -0,0 +1,207 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/evaluation_job.proto + +package com.google.cloud.datalabeling.v1beta1; + +public final class EvaluationJobOuterClass { + private EvaluationJobOuterClass() {} + + 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_datalabeling_v1beta1_EvaluationJob_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_Attempt_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/cloud/datalabeling/v1beta1/eval" + + "uation_job.proto\022!google.cloud.datalabel" + + "ing.v1beta1\032\034google/api/annotations.prot" + + "o\032\031google/api/resource.proto\032/google/clo" + + "ud/datalabeling/v1beta1/dataset.proto\0322g" + + "oogle/cloud/datalabeling/v1beta1/evaluat" + + "ion.proto\032?google/cloud/datalabeling/v1b" + + "eta1/human_annotation_config.proto\032\037goog" + + "le/protobuf/timestamp.proto\032\027google/rpc/" + + "status.proto\"\342\004\n\rEvaluationJob\022\014\n\004name\030\001" + + " \001(\t\022\023\n\013description\030\002 \001(\t\022E\n\005state\030\003 \001(\016" + + "26.google.cloud.datalabeling.v1beta1.Eva" + + "luationJob.State\022\020\n\010schedule\030\004 \001(\t\022\025\n\rmo" + + "del_version\030\005 \001(\t\022U\n\025evaluation_job_conf" + + "ig\030\006 \001(\01326.google.cloud.datalabeling.v1b" + + "eta1.EvaluationJobConfig\022\033\n\023annotation_s" + + "pec_set\030\007 \001(\t\022\"\n\032label_missing_ground_tr" + + "uth\030\010 \001(\010\022<\n\010attempts\030\t \003(\0132*.google.clo" + + "ud.datalabeling.v1beta1.Attempt\022/\n\013creat" + + "e_time\030\n \001(\0132\032.google.protobuf.Timestamp" + + "\"S\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\r\n\tSCHE" + + "DULED\020\001\022\013\n\007RUNNING\020\002\022\n\n\006PAUSED\020\003\022\013\n\007STOP" + + "PED\020\004:b\352A_\n)datalabeling.googleapis.com/" + + "EvaluationJob\0222projects/{project}/evalua" + + "tionJobs/{evaluation_job}\"\215\007\n\023Evaluation" + + "JobConfig\022c\n\033image_classification_config" + + "\030\004 \001(\0132<.google.cloud.datalabeling.v1bet" + + "a1.ImageClassificationConfigH\000\022U\n\024boundi" + + "ng_poly_config\030\005 \001(\01325.google.cloud.data" + + "labeling.v1beta1.BoundingPolyConfigH\000\022a\n" + + "\032text_classification_config\030\010 \001(\0132;.goog" + + "le.cloud.datalabeling.v1beta1.TextClassi" + + "ficationConfigH\000\022D\n\014input_config\030\001 \001(\0132." + + ".google.cloud.datalabeling.v1beta1.Input" + + "Config\022N\n\021evaluation_config\030\002 \001(\01323.goog" + + "le.cloud.datalabeling.v1beta1.Evaluation" + + "Config\022Y\n\027human_annotation_config\030\003 \001(\0132" + + "8.google.cloud.datalabeling.v1beta1.Huma" + + "nAnnotationConfig\022l\n\024bigquery_import_key" + + "s\030\t \003(\0132N.google.cloud.datalabeling.v1be" + + "ta1.EvaluationJobConfig.BigqueryImportKe" + + "ysEntry\022\025\n\rexample_count\030\n \001(\005\022!\n\031exampl" + + "e_sample_percentage\030\013 \001(\001\022`\n\033evaluation_" + + "job_alert_config\030\r \001(\0132;.google.cloud.da" + + "talabeling.v1beta1.EvaluationJobAlertCon" + + "fig\0329\n\027BigqueryImportKeysEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B!\n\037human_annotati" + + "on_request_config\"X\n\030EvaluationJobAlertC" + + "onfig\022\r\n\005email\030\001 \001(\t\022-\n%min_acceptable_m" + + "ean_average_precision\030\002 \001(\001\"i\n\007Attempt\0220" + + "\n\014attempt_time\030\001 \001(\0132\032.google.protobuf.T" + + "imestamp\022,\n\020partial_failures\030\002 \003(\0132\022.goo" + + "gle.rpc.StatusB\347\001\n%com.google.cloud.data" + + "labeling.v1beta1P\001ZMgoogle.golang.org/ge" + + "nproto/googleapis/cloud/datalabeling/v1b" + + "eta1;datalabeling\252\002!Google.Cloud.DataLab" + + "eling.V1Beta1\312\002!Google\\Cloud\\DataLabelin" + + "g\\V1beta1\352\002$Google::Cloud::DataLabeling:" + + ":V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJob_descriptor, + new java.lang.String[] { + "Name", + "Description", + "State", + "Schedule", + "ModelVersion", + "EvaluationJobConfig", + "AnnotationSpecSet", + "LabelMissingGroundTruth", + "Attempts", + "CreateTime", + }); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor, + new java.lang.String[] { + "ImageClassificationConfig", + "BoundingPolyConfig", + "TextClassificationConfig", + "InputConfig", + "EvaluationConfig", + "HumanAnnotationConfig", + "BigqueryImportKeys", + "ExampleCount", + "ExampleSamplePercentage", + "EvaluationJobAlertConfig", + "HumanAnnotationRequestConfig", + }); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_descriptor = + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobConfig_BigqueryImportKeysEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_EvaluationJobAlertConfig_descriptor, + new java.lang.String[] { + "Email", "MinAcceptableMeanAveragePrecision", + }); + internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datalabeling_v1beta1_Attempt_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_Attempt_descriptor, + new java.lang.String[] { + "AttemptTime", "PartialFailures", + }); + 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.AnnotationsProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetrics.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetrics.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetrics.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetrics.java index 10429715..88169df4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetrics.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetrics.java @@ -1,35 +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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; -/** - * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationMetrics} - */ -public final class EvaluationMetrics extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationMetrics} */ +public final class EvaluationMetrics extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.EvaluationMetrics) EvaluationMetricsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EvaluationMetrics.newBuilder() to construct. private EvaluationMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EvaluationMetrics() { - } + + private EvaluationMetrics() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EvaluationMetrics(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private EvaluationMetrics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -48,41 +60,54 @@ private EvaluationMetrics( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder subBuilder = null; - if (metricsCase_ == 1) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_).toBuilder(); + case 10: + { + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder subBuilder = null; + if (metricsCase_ == 1) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_) + .toBuilder(); + } + metrics_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_); + metrics_ = subBuilder.buildPartial(); + } + metricsCase_ = 1; + break; } - metrics_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_); - metrics_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder subBuilder = + null; + if (metricsCase_ == 2) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_) + .toBuilder(); + } + metrics_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_); + metrics_ = subBuilder.buildPartial(); + } + metricsCase_ = 2; + break; } - metricsCase_ = 1; - break; - } - case 18: { - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder subBuilder = null; - if (metricsCase_ == 2) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_).toBuilder(); - } - metrics_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_); - metrics_ = subBuilder.buildPartial(); - } - metricsCase_ = 2; - 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) { @@ -90,35 +115,40 @@ private EvaluationMetrics( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.class, com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder.class); + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.class, + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.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_METRICS(1), OBJECT_DETECTION_METRICS(2), METRICS_NOT_SET(0); private final int value; + private MetricsCase(int value) { this.value = value; } @@ -134,26 +164,31 @@ public static MetricsCase valueOf(int value) { public static MetricsCase forNumber(int value) { switch (value) { - case 1: return CLASSIFICATION_METRICS; - case 2: return OBJECT_DETECTION_METRICS; - case 0: return METRICS_NOT_SET; - default: return null; + case 1: + return CLASSIFICATION_METRICS; + case 2: + return OBJECT_DETECTION_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_METRICS_FIELD_NUMBER = 1; /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * + * * @return Whether the classificationMetrics field is set. */ @java.lang.Override @@ -161,30 +196,36 @@ public boolean hasClassificationMetrics() { return metricsCase_ == 1; } /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * + * * @return The classificationMetrics. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ClassificationMetrics getClassificationMetrics() { if (metricsCase_ == 1) { - return (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_; + return (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_; } return com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.getDefaultInstance(); } /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder getClassificationMetricsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder + getClassificationMetricsOrBuilder() { if (metricsCase_ == 1) { - return (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_; + return (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_; } return com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.getDefaultInstance(); } public static final int OBJECT_DETECTION_METRICS_FIELD_NUMBER = 2; /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * + * * @return Whether the objectDetectionMetrics field is set. */ @java.lang.Override @@ -192,28 +233,33 @@ public boolean hasObjectDetectionMetrics() { return metricsCase_ == 2; } /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * + * * @return The objectDetectionMetrics. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics getObjectDetectionMetrics() { if (metricsCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_; + return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_; } return com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.getDefaultInstance(); } /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder getObjectDetectionMetricsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder + getObjectDetectionMetricsOrBuilder() { if (metricsCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_; + return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_; } return com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,13 +271,14 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (metricsCase_ == 1) { - output.writeMessage(1, (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_); + output.writeMessage( + 1, (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_); } if (metricsCase_ == 2) { - output.writeMessage(2, (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_); + output.writeMessage( + 2, (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_); } unknownFields.writeTo(output); } @@ -243,12 +290,14 @@ public int getSerializedSize() { size = 0; if (metricsCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_); } if (metricsCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -258,22 +307,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.datalabeling.v1beta1.EvaluationMetrics)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics other = (com.google.cloud.datalabeling.v1beta1.EvaluationMetrics) obj; + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics other = + (com.google.cloud.datalabeling.v1beta1.EvaluationMetrics) obj; if (!getMetricsCase().equals(other.getMetricsCase())) return false; switch (metricsCase_) { case 1: - if (!getClassificationMetrics() - .equals(other.getClassificationMetrics())) return false; + if (!getClassificationMetrics().equals(other.getClassificationMetrics())) return false; break; case 2: - if (!getObjectDetectionMetrics() - .equals(other.getObjectDetectionMetrics())) return false; + if (!getObjectDetectionMetrics().equals(other.getObjectDetectionMetrics())) return false; break; case 0: default: @@ -307,113 +355,119 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics 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.datalabeling.v1beta1.EvaluationMetrics parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.EvaluationMetrics prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationMetrics} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datalabeling.v1beta1.EvaluationMetrics} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.EvaluationMetrics) com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.class, com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder.class); + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.class, + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.newBuilder() @@ -421,16 +475,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(); @@ -440,9 +493,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor; } @java.lang.Override @@ -461,7 +514,8 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics buildPartial() { - com.google.cloud.datalabeling.v1beta1.EvaluationMetrics result = new com.google.cloud.datalabeling.v1beta1.EvaluationMetrics(this); + com.google.cloud.datalabeling.v1beta1.EvaluationMetrics result = + new com.google.cloud.datalabeling.v1beta1.EvaluationMetrics(this); if (metricsCase_ == 1) { if (classificationMetricsBuilder_ == null) { result.metrics_ = metrics_; @@ -485,38 +539,39 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.EvaluationMetrics) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.EvaluationMetrics)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.EvaluationMetrics) other); } else { super.mergeFrom(other); return this; @@ -524,19 +579,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.EvaluationMetrics other) { - if (other == com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.getDefaultInstance()) + return this; switch (other.getMetricsCase()) { - case CLASSIFICATION_METRICS: { - mergeClassificationMetrics(other.getClassificationMetrics()); - break; - } - case OBJECT_DETECTION_METRICS: { - mergeObjectDetectionMetrics(other.getObjectDetectionMetrics()); - break; - } - case METRICS_NOT_SET: { - break; - } + case CLASSIFICATION_METRICS: + { + mergeClassificationMetrics(other.getClassificationMetrics()); + break; + } + case OBJECT_DETECTION_METRICS: + { + mergeObjectDetectionMetrics(other.getObjectDetectionMetrics()); + break; + } + case METRICS_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -557,7 +616,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.EvaluationMetrics) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.EvaluationMetrics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -566,12 +626,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() { @@ -581,11 +641,15 @@ public Builder clearMetrics() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics, com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder, com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder> classificationMetricsBuilder_; + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics, + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder, + com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder> + classificationMetricsBuilder_; /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * + * * @return Whether the classificationMetrics field is set. */ @java.lang.Override @@ -593,7 +657,9 @@ public boolean hasClassificationMetrics() { return metricsCase_ == 1; } /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * + * * @return The classificationMetrics. */ @java.lang.Override @@ -611,9 +677,11 @@ public com.google.cloud.datalabeling.v1beta1.ClassificationMetrics getClassifica } } /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * */ - public Builder setClassificationMetrics(com.google.cloud.datalabeling.v1beta1.ClassificationMetrics value) { + public Builder setClassificationMetrics( + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics value) { if (classificationMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -627,7 +695,8 @@ public Builder setClassificationMetrics(com.google.cloud.datalabeling.v1beta1.Cl return this; } /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * */ public Builder setClassificationMetrics( com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder builderForValue) { @@ -641,14 +710,21 @@ public Builder setClassificationMetrics( return this; } /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * */ - public Builder mergeClassificationMetrics(com.google.cloud.datalabeling.v1beta1.ClassificationMetrics value) { + public Builder mergeClassificationMetrics( + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics value) { if (classificationMetricsBuilder_ == null) { - if (metricsCase_ == 1 && - metrics_ != com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.getDefaultInstance()) { - metrics_ = com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.newBuilder((com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_) - .mergeFrom(value).buildPartial(); + if (metricsCase_ == 1 + && metrics_ + != com.google.cloud.datalabeling.v1beta1.ClassificationMetrics + .getDefaultInstance()) { + metrics_ = + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.newBuilder( + (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_) + .mergeFrom(value) + .buildPartial(); } else { metrics_ = value; } @@ -664,7 +740,8 @@ public Builder mergeClassificationMetrics(com.google.cloud.datalabeling.v1beta1. return this; } /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * */ public Builder clearClassificationMetrics() { if (classificationMetricsBuilder_ == null) { @@ -683,16 +760,20 @@ public Builder clearClassificationMetrics() { return this; } /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder getClassificationMetricsBuilder() { + public com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder + getClassificationMetricsBuilder() { return getClassificationMetricsFieldBuilder().getBuilder(); } /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder getClassificationMetricsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder + getClassificationMetricsOrBuilder() { if ((metricsCase_ == 1) && (classificationMetricsBuilder_ != null)) { return classificationMetricsBuilder_.getMessageOrBuilder(); } else { @@ -703,31 +784,44 @@ public com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder getC } } /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics, com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder, com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder> + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics, + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder, + com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder> getClassificationMetricsFieldBuilder() { if (classificationMetricsBuilder_ == null) { if (!(metricsCase_ == 1)) { - metrics_ = com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.getDefaultInstance(); + metrics_ = + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.getDefaultInstance(); } - classificationMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ClassificationMetrics, com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder, com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder>( + classificationMetricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics, + com.google.cloud.datalabeling.v1beta1.ClassificationMetrics.Builder, + com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder>( (com.google.cloud.datalabeling.v1beta1.ClassificationMetrics) metrics_, getParentForChildren(), isClean()); metrics_ = null; } metricsCase_ = 1; - onChanged();; + onChanged(); + ; return classificationMetricsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics, com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder, com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder> objectDetectionMetricsBuilder_; + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics, + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder, + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder> + objectDetectionMetricsBuilder_; /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * + * * @return Whether the objectDetectionMetrics field is set. */ @java.lang.Override @@ -735,11 +829,14 @@ public boolean hasObjectDetectionMetrics() { return metricsCase_ == 2; } /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * + * * @return The objectDetectionMetrics. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics getObjectDetectionMetrics() { + public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics + getObjectDetectionMetrics() { if (objectDetectionMetricsBuilder_ == null) { if (metricsCase_ == 2) { return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_; @@ -753,9 +850,11 @@ public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics getObjectDet } } /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * */ - public Builder setObjectDetectionMetrics(com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics value) { + public Builder setObjectDetectionMetrics( + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics value) { if (objectDetectionMetricsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -769,7 +868,8 @@ public Builder setObjectDetectionMetrics(com.google.cloud.datalabeling.v1beta1.O return this; } /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * */ public Builder setObjectDetectionMetrics( com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder builderForValue) { @@ -783,14 +883,21 @@ public Builder setObjectDetectionMetrics( return this; } /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * */ - public Builder mergeObjectDetectionMetrics(com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics value) { + public Builder mergeObjectDetectionMetrics( + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics value) { if (objectDetectionMetricsBuilder_ == null) { - if (metricsCase_ == 2 && - metrics_ != com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.getDefaultInstance()) { - metrics_ = com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.newBuilder((com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_) - .mergeFrom(value).buildPartial(); + if (metricsCase_ == 2 + && metrics_ + != com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics + .getDefaultInstance()) { + metrics_ = + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.newBuilder( + (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_) + .mergeFrom(value) + .buildPartial(); } else { metrics_ = value; } @@ -806,7 +913,8 @@ public Builder mergeObjectDetectionMetrics(com.google.cloud.datalabeling.v1beta1 return this; } /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * */ public Builder clearObjectDetectionMetrics() { if (objectDetectionMetricsBuilder_ == null) { @@ -825,16 +933,20 @@ public Builder clearObjectDetectionMetrics() { return this; } /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * */ - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder getObjectDetectionMetricsBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder + getObjectDetectionMetricsBuilder() { return getObjectDetectionMetricsFieldBuilder().getBuilder(); } /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder getObjectDetectionMetricsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder + getObjectDetectionMetricsOrBuilder() { if ((metricsCase_ == 2) && (objectDetectionMetricsBuilder_ != null)) { return objectDetectionMetricsBuilder_.getMessageOrBuilder(); } else { @@ -845,29 +957,37 @@ public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder get } } /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics, com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder, com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder> + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics, + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder, + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder> getObjectDetectionMetricsFieldBuilder() { if (objectDetectionMetricsBuilder_ == null) { if (!(metricsCase_ == 2)) { - metrics_ = com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.getDefaultInstance(); + metrics_ = + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.getDefaultInstance(); } - objectDetectionMetricsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics, com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder, com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder>( + objectDetectionMetricsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics, + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder, + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder>( (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) metrics_, getParentForChildren(), isClean()); metrics_ = null; } metricsCase_ = 2; - onChanged();; + onChanged(); + ; return objectDetectionMetricsBuilder_; } + @java.lang.Override - 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 +997,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.EvaluationMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.EvaluationMetrics) private static final com.google.cloud.datalabeling.v1beta1.EvaluationMetrics DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.EvaluationMetrics(); } @@ -891,16 +1011,16 @@ public static com.google.cloud.datalabeling.v1beta1.EvaluationMetrics getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EvaluationMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EvaluationMetrics(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EvaluationMetrics(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -915,6 +1035,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetricsOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetricsOrBuilder.java similarity index 58% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetricsOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetricsOrBuilder.java index a0c6395b..c003912c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetricsOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationMetricsOrBuilder.java @@ -1,41 +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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; -public interface EvaluationMetricsOrBuilder extends +public interface EvaluationMetricsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.EvaluationMetrics) com.google.protobuf.MessageOrBuilder { /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * + * * @return Whether the classificationMetrics field is set. */ boolean hasClassificationMetrics(); /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * + * * @return The classificationMetrics. */ com.google.cloud.datalabeling.v1beta1.ClassificationMetrics getClassificationMetrics(); /** - * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * .google.cloud.datalabeling.v1beta1.ClassificationMetrics classification_metrics = 1; + * */ - com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder getClassificationMetricsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ClassificationMetricsOrBuilder + getClassificationMetricsOrBuilder(); /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * + * * @return Whether the objectDetectionMetrics field is set. */ boolean hasObjectDetectionMetrics(); /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * + * * @return The objectDetectionMetrics. */ com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics getObjectDetectionMetrics(); /** - * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics object_detection_metrics = 2; + * */ - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder getObjectDetectionMetricsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder + getObjectDetectionMetricsOrBuilder(); public com.google.cloud.datalabeling.v1beta1.EvaluationMetrics.MetricsCase getMetricsCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationName.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationName.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOrBuilder.java similarity index 86% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOrBuilder.java index 8a009cef..66d5ce69 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOrBuilder.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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; -public interface EvaluationOrBuilder extends +public interface EvaluationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.Evaluation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Resource name of an evaluation. The name has the following
    * format:
@@ -15,10 +33,13 @@ public interface EvaluationOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Resource name of an evaluation. The name has the following
    * format:
@@ -26,32 +47,40 @@ public interface EvaluationOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. Options used in the evaluation job that created this
    * evaluation.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; + * * @return Whether the config field is set. */ boolean hasConfig(); /** + * + * *
    * Output only. Options used in the evaluation job that created this
    * evaluation.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationConfig config = 2; + * * @return The config. */ com.google.cloud.datalabeling.v1beta1.EvaluationConfig getConfig(); /** + * + * *
    * Output only. Options used in the evaluation job that created this
    * evaluation.
@@ -62,26 +91,34 @@ public interface EvaluationOrBuilder extends
   com.google.cloud.datalabeling.v1beta1.EvaluationConfigOrBuilder getConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. Timestamp for when the evaluation job that created this
    * evaluation ran.
    * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; + * * @return Whether the evaluationJobRunTime field is set. */ boolean hasEvaluationJobRunTime(); /** + * + * *
    * Output only. Timestamp for when the evaluation job that created this
    * evaluation ran.
    * 
* * .google.protobuf.Timestamp evaluation_job_run_time = 3; + * * @return The evaluationJobRunTime. */ com.google.protobuf.Timestamp getEvaluationJobRunTime(); /** + * + * *
    * Output only. Timestamp for when the evaluation job that created this
    * evaluation ran.
@@ -92,24 +129,32 @@ public interface EvaluationOrBuilder extends
   com.google.protobuf.TimestampOrBuilder getEvaluationJobRunTimeOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. Timestamp for when this evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Timestamp for when this evaluation was created.
    * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Timestamp for when this evaluation was created.
    * 
@@ -119,24 +164,32 @@ public interface EvaluationOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Metrics comparing predictions to ground truth labels.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; + * * @return Whether the evaluationMetrics field is set. */ boolean hasEvaluationMetrics(); /** + * + * *
    * Output only. Metrics comparing predictions to ground truth labels.
    * 
* * .google.cloud.datalabeling.v1beta1.EvaluationMetrics evaluation_metrics = 5; + * * @return The evaluationMetrics. */ com.google.cloud.datalabeling.v1beta1.EvaluationMetrics getEvaluationMetrics(); /** + * + * *
    * Output only. Metrics comparing predictions to ground truth labels.
    * 
@@ -146,6 +199,8 @@ public interface EvaluationOrBuilder extends com.google.cloud.datalabeling.v1beta1.EvaluationMetricsOrBuilder getEvaluationMetricsOrBuilder(); /** + * + * *
    * Output only. Type of task that the model version being evaluated performs,
    * as defined in the
@@ -154,10 +209,13 @@ public interface EvaluationOrBuilder extends
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; + * * @return The enum numeric value on the wire for annotationType. */ int getAnnotationTypeValue(); /** + * + * *
    * Output only. Type of task that the model version being evaluated performs,
    * as defined in the
@@ -166,11 +224,14 @@ public interface EvaluationOrBuilder extends
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 6; + * * @return The annotationType. */ com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType(); /** + * + * *
    * Output only. The number of items in the ground truth dataset that were used
    * for this evaluation. Only populated when the evaulation is for certain
@@ -178,6 +239,7 @@ public interface EvaluationOrBuilder extends
    * 
* * int64 evaluated_item_count = 7; + * * @return The evaluatedItemCount. */ long getEvaluatedItemCount(); diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOuterClass.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOuterClass.java new file mode 100644 index 00000000..8c19bf96 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EvaluationOuterClass.java @@ -0,0 +1,284 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/evaluation.proto + +package com.google.cloud.datalabeling.v1beta1; + +public final class EvaluationOuterClass { + private EvaluationOuterClass() {} + + 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_datalabeling_v1beta1_Evaluation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_Evaluation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_PrCurve_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_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 = { + "\n2google/cloud/datalabeling/v1beta1/eval" + + "uation.proto\022!google.cloud.datalabeling." + + "v1beta1\032\034google/api/annotations.proto\032\031g" + + "oogle/api/resource.proto\0322google/cloud/d" + + "atalabeling/v1beta1/annotation.proto\032;go" + + "ogle/cloud/datalabeling/v1beta1/annotati" + + "on_spec_set.proto\032\037google/protobuf/times" + + "tamp.proto\"\366\003\n\nEvaluation\022\014\n\004name\030\001 \001(\t\022" + + "C\n\006config\030\002 \001(\01323.google.cloud.datalabel" + + "ing.v1beta1.EvaluationConfig\022;\n\027evaluati" + + "on_job_run_time\030\003 \001(\0132\032.google.protobuf." + + "Timestamp\022/\n\013create_time\030\004 \001(\0132\032.google." + + "protobuf.Timestamp\022P\n\022evaluation_metrics" + + "\030\005 \001(\01324.google.cloud.datalabeling.v1bet" + + "a1.EvaluationMetrics\022J\n\017annotation_type\030" + + "\006 \001(\01621.google.cloud.datalabeling.v1beta" + + "1.AnnotationType\022\034\n\024evaluated_item_count" + + "\030\007 \001(\003:k\352Ah\n&datalabeling.googleapis.com" + + "/Evaluation\022>projects/{project}/datasets" + + "/{dataset}/evaluations/{evaluation}\"\221\001\n\020" + + "EvaluationConfig\022j\n\037bounding_box_evaluat" + + "ion_options\030\001 \001(\0132?.google.cloud.datalab" + + "eling.v1beta1.BoundingBoxEvaluationOptio" + + "nsH\000B\021\n\017vertical_option\"5\n\034BoundingBoxEv" + + "aluationOptions\022\025\n\riou_threshold\030\001 \001(\002\"\331" + + "\001\n\021EvaluationMetrics\022Z\n\026classification_m" + + "etrics\030\001 \001(\01328.google.cloud.datalabeling" + + ".v1beta1.ClassificationMetricsH\000\022]\n\030obje" + + "ct_detection_metrics\030\002 \001(\01329.google.clou" + + "d.datalabeling.v1beta1.ObjectDetectionMe" + + "tricsH\000B\t\n\007metrics\"\243\001\n\025ClassificationMet" + + "rics\022<\n\010pr_curve\030\001 \001(\0132*.google.cloud.da" + + "talabeling.v1beta1.PrCurve\022L\n\020confusion_" + + "matrix\030\002 \001(\01322.google.cloud.datalabeling" + + ".v1beta1.ConfusionMatrix\"V\n\026ObjectDetect" + + "ionMetrics\022<\n\010pr_curve\030\001 \001(\0132*.google.cl" + + "oud.datalabeling.v1beta1.PrCurve\"\346\003\n\007PrC" + + "urve\022J\n\017annotation_spec\030\001 \001(\01321.google.c" + + "loud.datalabeling.v1beta1.AnnotationSpec" + + "\022\030\n\020area_under_curve\030\002 \001(\002\022e\n\032confidence" + + "_metrics_entries\030\003 \003(\0132A.google.cloud.da" + + "talabeling.v1beta1.PrCurve.ConfidenceMet" + + "ricsEntry\022\036\n\026mean_average_precision\030\004 \001(" + + "\002\032\355\001\n\026ConfidenceMetricsEntry\022\034\n\024confiden" + + "ce_threshold\030\001 \001(\002\022\016\n\006recall\030\002 \001(\002\022\021\n\tpr" + + "ecision\030\003 \001(\002\022\020\n\010f1_score\030\004 \001(\002\022\022\n\nrecal" + + "l_at1\030\005 \001(\002\022\025\n\rprecision_at1\030\006 \001(\002\022\024\n\014f1" + + "_score_at1\030\007 \001(\002\022\022\n\nrecall_at5\030\010 \001(\002\022\025\n\r" + + "precision_at5\030\t \001(\002\022\024\n\014f1_score_at5\030\n \001(" + + "\002\"\374\002\n\017ConfusionMatrix\022C\n\003row\030\001 \003(\01326.goo" + + "gle.cloud.datalabeling.v1beta1.Confusion" + + "Matrix.Row\032v\n\024ConfusionMatrixEntry\022J\n\017an" + + "notation_spec\030\001 \001(\01321.google.cloud.datal" + + "abeling.v1beta1.AnnotationSpec\022\022\n\nitem_c" + + "ount\030\002 \001(\005\032\253\001\n\003Row\022J\n\017annotation_spec\030\001 " + + "\001(\01321.google.cloud.datalabeling.v1beta1." + + "AnnotationSpec\022X\n\007entries\030\002 \003(\0132G.google" + + ".cloud.datalabeling.v1beta1.ConfusionMat" + + "rix.ConfusionMatrixEntryB\347\001\n%com.google." + + "cloud.datalabeling.v1beta1P\001ZMgoogle.gol" + + "ang.org/genproto/googleapis/cloud/datala" + + "beling/v1beta1;datalabeling\252\002!Google.Clo" + + "ud.DataLabeling.V1Beta1\312\002!Google\\Cloud\\D" + + "ataLabeling\\V1beta1\352\002$Google::Cloud::Dat" + + "aLabeling::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_datalabeling_v1beta1_Evaluation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_Evaluation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_Evaluation_descriptor, + new java.lang.String[] { + "Name", + "Config", + "EvaluationJobRunTime", + "CreateTime", + "EvaluationMetrics", + "AnnotationType", + "EvaluatedItemCount", + }); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_EvaluationConfig_descriptor, + new java.lang.String[] { + "BoundingBoxEvaluationOptions", "VerticalOption", + }); + internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_BoundingBoxEvaluationOptions_descriptor, + new java.lang.String[] { + "IouThreshold", + }); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_EvaluationMetrics_descriptor, + new java.lang.String[] { + "ClassificationMetrics", "ObjectDetectionMetrics", "Metrics", + }); + internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ClassificationMetrics_descriptor, + new java.lang.String[] { + "PrCurve", "ConfusionMatrix", + }); + internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor, + new java.lang.String[] { + "PrCurve", + }); + internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_datalabeling_v1beta1_PrCurve_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor, + new java.lang.String[] { + "AnnotationSpec", + "AreaUnderCurve", + "ConfidenceMetricsEntries", + "MeanAveragePrecision", + }); + internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor = + internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor, + new java.lang.String[] { + "ConfidenceThreshold", + "Recall", + "Precision", + "F1Score", + "RecallAt1", + "PrecisionAt1", + "F1ScoreAt1", + "RecallAt5", + "PrecisionAt5", + "F1ScoreAt5", + }); + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor, + new java.lang.String[] { + "Row", + }); + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor = + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_ConfusionMatrixEntry_descriptor, + new java.lang.String[] { + "AnnotationSpec", "ItemCount", + }); + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor = + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ConfusionMatrix_Row_descriptor, + new java.lang.String[] { + "AnnotationSpec", "Entries", + }); + 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.AnnotationsProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfig.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfig.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfig.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfig.java index 34e7677e..c676cd3f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfig.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Config for video event human labeling task.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.EventConfig} */ -public final class EventConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EventConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.EventConfig) EventConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EventConfig.newBuilder() to construct. private EventConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EventConfig() { annotationSpecSets_ = 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 EventConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private EventConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,23 @@ private EventConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - annotationSpecSets_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + annotationSpecSets_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + annotationSpecSets_.add(s); + break; } - annotationSpecSets_.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) { @@ -77,8 +95,7 @@ private EventConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { annotationSpecSets_ = annotationSpecSets_.getUnmodifiableView(); @@ -87,56 +104,70 @@ private EventConfig( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EventConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_EventConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.EventConfig.class, com.google.cloud.datalabeling.v1beta1.EventConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.EventConfig.class, + com.google.cloud.datalabeling.v1beta1.EventConfig.Builder.class); } public static final int ANNOTATION_SPEC_SETS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList annotationSpecSets_; /** + * + * *
    * Required. The list of annotation spec set resource name. Similar to video
    * classification, we support selecting event from multiple AnnotationSpecSet
    * at the same time.
    * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the annotationSpecSets. */ - public com.google.protobuf.ProtocolStringList - getAnnotationSpecSetsList() { + public com.google.protobuf.ProtocolStringList getAnnotationSpecSetsList() { return annotationSpecSets_; } /** + * + * *
    * Required. The list of annotation spec set resource name. Similar to video
    * classification, we support selecting event from multiple AnnotationSpecSet
    * at the same time.
    * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of annotationSpecSets. */ public int getAnnotationSpecSetsCount() { return annotationSpecSets_.size(); } /** + * + * *
    * Required. The list of annotation spec set resource name. Similar to video
    * classification, we support selecting event from multiple AnnotationSpecSet
    * at the same time.
    * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The annotationSpecSets at the given index. */ @@ -144,22 +175,26 @@ public java.lang.String getAnnotationSpecSets(int index) { return annotationSpecSets_.get(index); } /** + * + * *
    * Required. The list of annotation spec set resource name. Similar to video
    * classification, we support selecting event from multiple AnnotationSpecSet
    * at the same time.
    * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the annotationSpecSets at the given index. */ - public com.google.protobuf.ByteString - getAnnotationSpecSetsBytes(int index) { + public com.google.protobuf.ByteString getAnnotationSpecSetsBytes(int index) { return annotationSpecSets_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -171,8 +206,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 < annotationSpecSets_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecSets_.getRaw(i)); } @@ -201,15 +235,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.datalabeling.v1beta1.EventConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.EventConfig other = (com.google.cloud.datalabeling.v1beta1.EventConfig) obj; + com.google.cloud.datalabeling.v1beta1.EventConfig other = + (com.google.cloud.datalabeling.v1beta1.EventConfig) obj; - if (!getAnnotationSpecSetsList() - .equals(other.getAnnotationSpecSetsList())) return false; + if (!getAnnotationSpecSetsList().equals(other.getAnnotationSpecSetsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -231,117 +265,126 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.EventConfig 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.datalabeling.v1beta1.EventConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.EventConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.EventConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.EventConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.EventConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EventConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.EventConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.EventConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.EventConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.EventConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.EventConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.EventConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.EventConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.EventConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Config for video event human labeling task.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.EventConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.EventConfig) com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EventConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_EventConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.EventConfig.class, com.google.cloud.datalabeling.v1beta1.EventConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.EventConfig.class, + com.google.cloud.datalabeling.v1beta1.EventConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.EventConfig.newBuilder() @@ -349,16 +392,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(); @@ -368,9 +410,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor; } @java.lang.Override @@ -389,7 +431,8 @@ public com.google.cloud.datalabeling.v1beta1.EventConfig build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EventConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.EventConfig result = new com.google.cloud.datalabeling.v1beta1.EventConfig(this); + com.google.cloud.datalabeling.v1beta1.EventConfig result = + new com.google.cloud.datalabeling.v1beta1.EventConfig(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { annotationSpecSets_ = annotationSpecSets_.getUnmodifiableView(); @@ -404,38 +447,39 @@ public com.google.cloud.datalabeling.v1beta1.EventConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.EventConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.EventConfig)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.EventConfig) other); } else { super.mergeFrom(other); return this; @@ -443,7 +487,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.EventConfig other) { - if (other == com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance()) + return this; if (!other.annotationSpecSets_.isEmpty()) { if (annotationSpecSets_.isEmpty()) { annotationSpecSets_ = other.annotationSpecSets_; @@ -473,7 +518,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.EventConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.EventConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -482,50 +528,64 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList annotationSpecSets_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList annotationSpecSets_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAnnotationSpecSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { annotationSpecSets_ = new com.google.protobuf.LazyStringArrayList(annotationSpecSets_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Required. The list of annotation spec set resource name. Similar to video
      * classification, we support selecting event from multiple AnnotationSpecSet
      * at the same time.
      * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the annotationSpecSets. */ - public com.google.protobuf.ProtocolStringList - getAnnotationSpecSetsList() { + public com.google.protobuf.ProtocolStringList getAnnotationSpecSetsList() { return annotationSpecSets_.getUnmodifiableView(); } /** + * + * *
      * Required. The list of annotation spec set resource name. Similar to video
      * classification, we support selecting event from multiple AnnotationSpecSet
      * at the same time.
      * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of annotationSpecSets. */ public int getAnnotationSpecSetsCount() { return annotationSpecSets_.size(); } /** + * + * *
      * Required. The list of annotation spec set resource name. Similar to video
      * classification, we support selecting event from multiple AnnotationSpecSet
      * at the same time.
      * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The annotationSpecSets at the given index. */ @@ -533,90 +593,105 @@ public java.lang.String getAnnotationSpecSets(int index) { return annotationSpecSets_.get(index); } /** + * + * *
      * Required. The list of annotation spec set resource name. Similar to video
      * classification, we support selecting event from multiple AnnotationSpecSet
      * at the same time.
      * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the annotationSpecSets at the given index. */ - public com.google.protobuf.ByteString - getAnnotationSpecSetsBytes(int index) { + public com.google.protobuf.ByteString getAnnotationSpecSetsBytes(int index) { return annotationSpecSets_.getByteString(index); } /** + * + * *
      * Required. The list of annotation spec set resource name. Similar to video
      * classification, we support selecting event from multiple AnnotationSpecSet
      * at the same time.
      * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index to set the value at. * @param value The annotationSpecSets to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSets( - int index, java.lang.String value) { + public Builder setAnnotationSpecSets(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecSetsIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecSetsIsMutable(); annotationSpecSets_.set(index, value); onChanged(); return this; } /** + * + * *
      * Required. The list of annotation spec set resource name. Similar to video
      * classification, we support selecting event from multiple AnnotationSpecSet
      * at the same time.
      * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The annotationSpecSets to add. * @return This builder for chaining. */ - public Builder addAnnotationSpecSets( - java.lang.String value) { + public Builder addAnnotationSpecSets(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureAnnotationSpecSetsIsMutable(); + throw new NullPointerException(); + } + ensureAnnotationSpecSetsIsMutable(); annotationSpecSets_.add(value); onChanged(); return this; } /** + * + * *
      * Required. The list of annotation spec set resource name. Similar to video
      * classification, we support selecting event from multiple AnnotationSpecSet
      * at the same time.
      * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param values The annotationSpecSets to add. * @return This builder for chaining. */ - public Builder addAllAnnotationSpecSets( - java.lang.Iterable values) { + public Builder addAllAnnotationSpecSets(java.lang.Iterable values) { ensureAnnotationSpecSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, annotationSpecSets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationSpecSets_); onChanged(); return this; } /** + * + * *
      * Required. The list of annotation spec set resource name. Similar to video
      * classification, we support selecting event from multiple AnnotationSpecSet
      * at the same time.
      * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearAnnotationSpecSets() { @@ -626,30 +701,33 @@ public Builder clearAnnotationSpecSets() { return this; } /** + * + * *
      * Required. The list of annotation spec set resource name. Similar to video
      * classification, we support selecting event from multiple AnnotationSpecSet
      * at the same time.
      * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The bytes of the annotationSpecSets to add. * @return This builder for chaining. */ - public Builder addAnnotationSpecSetsBytes( - com.google.protobuf.ByteString value) { + public Builder addAnnotationSpecSetsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureAnnotationSpecSetsIsMutable(); annotationSpecSets_.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); } @@ -659,12 +737,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.EventConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.EventConfig) private static final com.google.cloud.datalabeling.v1beta1.EventConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.EventConfig(); } @@ -673,16 +751,16 @@ public static com.google.cloud.datalabeling.v1beta1.EventConfig getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EventConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -697,6 +775,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.EventConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfigOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfigOrBuilder.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfigOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfigOrBuilder.java index f0873242..1002aafa 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfigOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/EventConfigOrBuilder.java @@ -1,58 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface EventConfigOrBuilder extends +public interface EventConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.EventConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The list of annotation spec set resource name. Similar to video
    * classification, we support selecting event from multiple AnnotationSpecSet
    * at the same time.
    * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return A list containing the annotationSpecSets. */ - java.util.List - getAnnotationSpecSetsList(); + java.util.List getAnnotationSpecSetsList(); /** + * + * *
    * Required. The list of annotation spec set resource name. Similar to video
    * classification, we support selecting event from multiple AnnotationSpecSet
    * at the same time.
    * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The count of annotationSpecSets. */ int getAnnotationSpecSetsCount(); /** + * + * *
    * Required. The list of annotation spec set resource name. Similar to video
    * classification, we support selecting event from multiple AnnotationSpecSet
    * at the same time.
    * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the element to return. * @return The annotationSpecSets at the given index. */ java.lang.String getAnnotationSpecSets(int index); /** + * + * *
    * Required. The list of annotation spec set resource name. Similar to video
    * classification, we support selecting event from multiple AnnotationSpecSet
    * at the same time.
    * 
* - * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * repeated string annotation_spec_sets = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param index The index of the value to return. * @return The bytes of the annotationSpecSets at the given index. */ - com.google.protobuf.ByteString - getAnnotationSpecSetsBytes(int index); + com.google.protobuf.ByteString getAnnotationSpecSetsBytes(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Example.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Example.java similarity index 75% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Example.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Example.java index 7189ceed..2281aab4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Example.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Example.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * An Example is a piece of data and its annotation. For example, an image with
  * label "house".
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.Example}
  */
-public final class Example extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Example extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.Example)
     ExampleOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Example.newBuilder() to construct.
   private Example(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Example() {
     name_ = "";
     annotations_ = java.util.Collections.emptyList();
@@ -27,16 +45,15 @@ private Example() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Example();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Example(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,70 +73,87 @@ private Example(
           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.datalabeling.v1beta1.ImagePayload.Builder subBuilder = null;
-            if (payloadCase_ == 2) {
-              subBuilder = ((com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_).toBuilder();
-            }
-            payload_ =
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.ImagePayload.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_);
-              payload_ = subBuilder.buildPartial();
-            }
-            payloadCase_ = 2;
-            break;
-          }
-          case 42: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              annotations_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+              name_ = s;
+              break;
             }
-            annotations_.add(
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.Annotation.parser(), extensionRegistry));
-            break;
-          }
-          case 50: {
-            com.google.cloud.datalabeling.v1beta1.TextPayload.Builder subBuilder = null;
-            if (payloadCase_ == 6) {
-              subBuilder = ((com.google.cloud.datalabeling.v1beta1.TextPayload) payload_).toBuilder();
+          case 18:
+            {
+              com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder subBuilder = null;
+              if (payloadCase_ == 2) {
+                subBuilder =
+                    ((com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_).toBuilder();
+              }
+              payload_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.ImagePayload.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_);
+                payload_ = subBuilder.buildPartial();
+              }
+              payloadCase_ = 2;
+              break;
             }
-            payload_ =
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.TextPayload.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextPayload) payload_);
-              payload_ = subBuilder.buildPartial();
+          case 42:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                annotations_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              annotations_.add(
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.Annotation.parser(),
+                      extensionRegistry));
+              break;
             }
-            payloadCase_ = 6;
-            break;
-          }
-          case 58: {
-            com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder subBuilder = null;
-            if (payloadCase_ == 7) {
-              subBuilder = ((com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_).toBuilder();
+          case 50:
+            {
+              com.google.cloud.datalabeling.v1beta1.TextPayload.Builder subBuilder = null;
+              if (payloadCase_ == 6) {
+                subBuilder =
+                    ((com.google.cloud.datalabeling.v1beta1.TextPayload) payload_).toBuilder();
+              }
+              payload_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.TextPayload.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextPayload) payload_);
+                payload_ = subBuilder.buildPartial();
+              }
+              payloadCase_ = 6;
+              break;
             }
-            payload_ =
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.VideoPayload.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_);
-              payload_ = subBuilder.buildPartial();
+          case 58:
+            {
+              com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder subBuilder = null;
+              if (payloadCase_ == 7) {
+                subBuilder =
+                    ((com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_).toBuilder();
+              }
+              payload_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.VideoPayload.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_);
+                payload_ = subBuilder.buildPartial();
+              }
+              payloadCase_ = 7;
+              break;
             }
-            payloadCase_ = 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) {
@@ -127,8 +161,7 @@ private Example(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } 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)) {
         annotations_ = java.util.Collections.unmodifiableList(annotations_);
@@ -137,29 +170,35 @@ private Example(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Example_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_Example_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.Example.class, com.google.cloud.datalabeling.v1beta1.Example.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.Example.class,
+            com.google.cloud.datalabeling.v1beta1.Example.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_PAYLOAD(2),
     TEXT_PAYLOAD(6),
     VIDEO_PAYLOAD(7),
     PAYLOAD_NOT_SET(0);
     private final int value;
+
     private PayloadCase(int value) {
       this.value = value;
     }
@@ -175,31 +214,38 @@ public static PayloadCase valueOf(int value) {
 
     public static PayloadCase forNumber(int value) {
       switch (value) {
-        case 2: return IMAGE_PAYLOAD;
-        case 6: return TEXT_PAYLOAD;
-        case 7: return VIDEO_PAYLOAD;
-        case 0: return PAYLOAD_NOT_SET;
-        default: return null;
+        case 2:
+          return IMAGE_PAYLOAD;
+        case 6:
+          return TEXT_PAYLOAD;
+        case 7:
+          return VIDEO_PAYLOAD;
+        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_PAYLOAD_FIELD_NUMBER = 2;
   /**
+   *
+   *
    * 
    * The image payload, a container of the image bytes/uri.
    * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; + * * @return Whether the imagePayload field is set. */ @java.lang.Override @@ -207,21 +253,26 @@ public boolean hasImagePayload() { return payloadCase_ == 2; } /** + * + * *
    * The image payload, a container of the image bytes/uri.
    * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; + * * @return The imagePayload. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImagePayload getImagePayload() { if (payloadCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_; } return com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance(); } /** + * + * *
    * The image payload, a container of the image bytes/uri.
    * 
@@ -231,18 +282,21 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayload getImagePayload() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder getImagePayloadOrBuilder() { if (payloadCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_; } return com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance(); } public static final int TEXT_PAYLOAD_FIELD_NUMBER = 6; /** + * + * *
    * The text payload, a container of the text content.
    * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6; + * * @return Whether the textPayload field is set. */ @java.lang.Override @@ -250,21 +304,26 @@ public boolean hasTextPayload() { return payloadCase_ == 6; } /** + * + * *
    * The text payload, a container of the text content.
    * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6; + * * @return The textPayload. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextPayload getTextPayload() { if (payloadCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_; } return com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance(); } /** + * + * *
    * The text payload, a container of the text content.
    * 
@@ -274,18 +333,21 @@ public com.google.cloud.datalabeling.v1beta1.TextPayload getTextPayload() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder getTextPayloadOrBuilder() { if (payloadCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_; } return com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance(); } public static final int VIDEO_PAYLOAD_FIELD_NUMBER = 7; /** + * + * *
    * The video payload, a container of the video uri.
    * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7; + * * @return Whether the videoPayload field is set. */ @java.lang.Override @@ -293,21 +355,26 @@ public boolean hasVideoPayload() { return payloadCase_ == 7; } /** + * + * *
    * The video payload, a container of the video uri.
    * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7; + * * @return The videoPayload. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.VideoPayload getVideoPayload() { if (payloadCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_; } return com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance(); } /** + * + * *
    * The video payload, a container of the video uri.
    * 
@@ -317,7 +384,7 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayload getVideoPayload() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPayloadOrBuilder() { if (payloadCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_; + return (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_; } return com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance(); } @@ -325,6 +392,8 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPaylo public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Output only. Name of the example, in format of:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -332,6 +401,7 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPaylo
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -340,14 +410,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. Name of the example, in format of:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -355,16 +426,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 { @@ -375,6 +445,8 @@ public java.lang.String getName() { public static final int ANNOTATIONS_FIELD_NUMBER = 5; private java.util.List annotations_; /** + * + * *
    * Output only. Annotations for the piece of data in Example.
    * One piece of data can have multiple annotations.
@@ -387,6 +459,8 @@ public java.util.List getAnnot
     return annotations_;
   }
   /**
+   *
+   *
    * 
    * Output only. Annotations for the piece of data in Example.
    * One piece of data can have multiple annotations.
@@ -395,11 +469,13 @@ public java.util.List getAnnot
    * repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getAnnotationsOrBuilderList() {
     return annotations_;
   }
   /**
+   *
+   *
    * 
    * Output only. Annotations for the piece of data in Example.
    * One piece of data can have multiple annotations.
@@ -412,6 +488,8 @@ public int getAnnotationsCount() {
     return annotations_.size();
   }
   /**
+   *
+   *
    * 
    * Output only. Annotations for the piece of data in Example.
    * One piece of data can have multiple annotations.
@@ -424,6 +502,8 @@ public com.google.cloud.datalabeling.v1beta1.Annotation getAnnotations(int index
     return annotations_.get(index);
   }
   /**
+   *
+   *
    * 
    * Output only. Annotations for the piece of data in Example.
    * One piece of data can have multiple annotations.
@@ -438,6 +518,7 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder getAnnotationsO
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -449,8 +530,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_);
     }
@@ -479,20 +559,22 @@ public int getSerializedSize() {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
     }
     if (payloadCase_ == 2) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              2, (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_);
     }
     for (int i = 0; i < annotations_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(5, annotations_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations_.get(i));
     }
     if (payloadCase_ == 6) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(6, (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              6, (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_);
     }
     if (payloadCase_ == 7) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(7, (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_);
+      size +=
+          com.google.protobuf.CodedOutputStream.computeMessageSize(
+              7, (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -502,30 +584,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.datalabeling.v1beta1.Example)) {
       return super.equals(obj);
     }
-    com.google.cloud.datalabeling.v1beta1.Example other = (com.google.cloud.datalabeling.v1beta1.Example) obj;
+    com.google.cloud.datalabeling.v1beta1.Example other =
+        (com.google.cloud.datalabeling.v1beta1.Example) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getAnnotationsList()
-        .equals(other.getAnnotationsList())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getAnnotationsList().equals(other.getAnnotationsList())) return false;
     if (!getPayloadCase().equals(other.getPayloadCase())) return false;
     switch (payloadCase_) {
       case 2:
-        if (!getImagePayload()
-            .equals(other.getImagePayload())) return false;
+        if (!getImagePayload().equals(other.getImagePayload())) return false;
         break;
       case 6:
-        if (!getTextPayload()
-            .equals(other.getTextPayload())) return false;
+        if (!getTextPayload().equals(other.getTextPayload())) return false;
         break;
       case 7:
-        if (!getVideoPayload()
-            .equals(other.getVideoPayload())) return false;
+        if (!getVideoPayload().equals(other.getVideoPayload())) return false;
         break;
       case 0:
       default:
@@ -568,97 +646,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.datalabeling.v1beta1.Example parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.datalabeling.v1beta1.Example parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.Example parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.Example parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.Example parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.Example parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.Example parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.Example 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.datalabeling.v1beta1.Example parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.datalabeling.v1beta1.Example parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.datalabeling.v1beta1.Example parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.Example parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.Example parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.Example parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.Example prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected 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 Example is a piece of data and its annotation. For example, an image with
    * label "house".
@@ -666,21 +751,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.Example}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.Example)
       com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Example_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_Example_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.Example.class, com.google.cloud.datalabeling.v1beta1.Example.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.Example.class,
+              com.google.cloud.datalabeling.v1beta1.Example.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.Example.newBuilder()
@@ -688,17 +775,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) {
         getAnnotationsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -716,9 +803,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_Example_descriptor;
     }
 
     @java.lang.Override
@@ -737,7 +824,8 @@ public com.google.cloud.datalabeling.v1beta1.Example build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.Example buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.Example result = new com.google.cloud.datalabeling.v1beta1.Example(this);
+      com.google.cloud.datalabeling.v1beta1.Example result =
+          new com.google.cloud.datalabeling.v1beta1.Example(this);
       int from_bitField0_ = bitField0_;
       if (payloadCase_ == 2) {
         if (imagePayloadBuilder_ == null) {
@@ -779,38 +867,39 @@ public com.google.cloud.datalabeling.v1beta1.Example buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.Example) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Example)other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Example) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -841,30 +930,35 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.Example other) {
             annotationsBuilder_ = null;
             annotations_ = other.annotations_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            annotationsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getAnnotationsFieldBuilder() : null;
+            annotationsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getAnnotationsFieldBuilder()
+                    : null;
           } else {
             annotationsBuilder_.addAllMessages(other.annotations_);
           }
         }
       }
       switch (other.getPayloadCase()) {
-        case IMAGE_PAYLOAD: {
-          mergeImagePayload(other.getImagePayload());
-          break;
-        }
-        case TEXT_PAYLOAD: {
-          mergeTextPayload(other.getTextPayload());
-          break;
-        }
-        case VIDEO_PAYLOAD: {
-          mergeVideoPayload(other.getVideoPayload());
-          break;
-        }
-        case PAYLOAD_NOT_SET: {
-          break;
-        }
+        case IMAGE_PAYLOAD:
+          {
+            mergeImagePayload(other.getImagePayload());
+            break;
+          }
+        case TEXT_PAYLOAD:
+          {
+            mergeTextPayload(other.getTextPayload());
+            break;
+          }
+        case VIDEO_PAYLOAD:
+          {
+            mergeVideoPayload(other.getVideoPayload());
+            break;
+          }
+        case PAYLOAD_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -894,12 +988,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() {
@@ -912,13 +1006,19 @@ public Builder clearPayload() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.ImagePayload, com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder, com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder> imagePayloadBuilder_;
+            com.google.cloud.datalabeling.v1beta1.ImagePayload,
+            com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder,
+            com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder>
+        imagePayloadBuilder_;
     /**
+     *
+     *
      * 
      * The image payload, a container of the image bytes/uri.
      * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; + * * @return Whether the imagePayload field is set. */ @java.lang.Override @@ -926,11 +1026,14 @@ public boolean hasImagePayload() { return payloadCase_ == 2; } /** + * + * *
      * The image payload, a container of the image bytes/uri.
      * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; + * * @return The imagePayload. */ @java.lang.Override @@ -948,6 +1051,8 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayload getImagePayload() { } } /** + * + * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -968,6 +1073,8 @@ public Builder setImagePayload(com.google.cloud.datalabeling.v1beta1.ImagePayloa return this; } /** + * + * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -986,6 +1093,8 @@ public Builder setImagePayload( return this; } /** + * + * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -994,10 +1103,14 @@ public Builder setImagePayload( */ public Builder mergeImagePayload(com.google.cloud.datalabeling.v1beta1.ImagePayload value) { if (imagePayloadBuilder_ == null) { - if (payloadCase_ == 2 && - payload_ != com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance()) { - payload_ = com.google.cloud.datalabeling.v1beta1.ImagePayload.newBuilder((com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_) - .mergeFrom(value).buildPartial(); + if (payloadCase_ == 2 + && payload_ + != com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance()) { + payload_ = + com.google.cloud.datalabeling.v1beta1.ImagePayload.newBuilder( + (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_) + .mergeFrom(value) + .buildPartial(); } else { payload_ = value; } @@ -1013,6 +1126,8 @@ public Builder mergeImagePayload(com.google.cloud.datalabeling.v1beta1.ImagePayl return this; } /** + * + * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -1036,6 +1151,8 @@ public Builder clearImagePayload() { return this; } /** + * + * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -1046,6 +1163,8 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder getImagePayloa return getImagePayloadFieldBuilder().getBuilder(); } /** + * + * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -1064,6 +1183,8 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder getImagePaylo } } /** + * + * *
      * The image payload, a container of the image bytes/uri.
      * 
@@ -1071,32 +1192,44 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder getImagePaylo * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImagePayload, com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder, com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder> + com.google.cloud.datalabeling.v1beta1.ImagePayload, + com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder, + com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder> getImagePayloadFieldBuilder() { if (imagePayloadBuilder_ == null) { if (!(payloadCase_ == 2)) { payload_ = com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance(); } - imagePayloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImagePayload, com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder, com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder>( + imagePayloadBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ImagePayload, + com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder, + com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder>( (com.google.cloud.datalabeling.v1beta1.ImagePayload) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 2; - onChanged();; + onChanged(); + ; return imagePayloadBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextPayload, com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder> textPayloadBuilder_; + com.google.cloud.datalabeling.v1beta1.TextPayload, + com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, + com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder> + textPayloadBuilder_; /** + * + * *
      * The text payload, a container of the text content.
      * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6; + * * @return Whether the textPayload field is set. */ @java.lang.Override @@ -1104,11 +1237,14 @@ public boolean hasTextPayload() { return payloadCase_ == 6; } /** + * + * *
      * The text payload, a container of the text content.
      * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6; + * * @return The textPayload. */ @java.lang.Override @@ -1126,6 +1262,8 @@ public com.google.cloud.datalabeling.v1beta1.TextPayload getTextPayload() { } } /** + * + * *
      * The text payload, a container of the text content.
      * 
@@ -1146,6 +1284,8 @@ public Builder setTextPayload(com.google.cloud.datalabeling.v1beta1.TextPayload return this; } /** + * + * *
      * The text payload, a container of the text content.
      * 
@@ -1164,6 +1304,8 @@ public Builder setTextPayload( return this; } /** + * + * *
      * The text payload, a container of the text content.
      * 
@@ -1172,10 +1314,13 @@ public Builder setTextPayload( */ public Builder mergeTextPayload(com.google.cloud.datalabeling.v1beta1.TextPayload value) { if (textPayloadBuilder_ == null) { - if (payloadCase_ == 6 && - payload_ != com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance()) { - payload_ = com.google.cloud.datalabeling.v1beta1.TextPayload.newBuilder((com.google.cloud.datalabeling.v1beta1.TextPayload) payload_) - .mergeFrom(value).buildPartial(); + if (payloadCase_ == 6 + && payload_ != com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance()) { + payload_ = + com.google.cloud.datalabeling.v1beta1.TextPayload.newBuilder( + (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_) + .mergeFrom(value) + .buildPartial(); } else { payload_ = value; } @@ -1191,6 +1336,8 @@ public Builder mergeTextPayload(com.google.cloud.datalabeling.v1beta1.TextPayloa return this; } /** + * + * *
      * The text payload, a container of the text content.
      * 
@@ -1214,6 +1361,8 @@ public Builder clearTextPayload() { return this; } /** + * + * *
      * The text payload, a container of the text content.
      * 
@@ -1224,6 +1373,8 @@ public com.google.cloud.datalabeling.v1beta1.TextPayload.Builder getTextPayloadB return getTextPayloadFieldBuilder().getBuilder(); } /** + * + * *
      * The text payload, a container of the text content.
      * 
@@ -1242,6 +1393,8 @@ public com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder getTextPayload } } /** + * + * *
      * The text payload, a container of the text content.
      * 
@@ -1249,32 +1402,44 @@ public com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder getTextPayload * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextPayload, com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder> + com.google.cloud.datalabeling.v1beta1.TextPayload, + com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, + com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder> getTextPayloadFieldBuilder() { if (textPayloadBuilder_ == null) { if (!(payloadCase_ == 6)) { payload_ = com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance(); } - textPayloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextPayload, com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder>( + textPayloadBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TextPayload, + com.google.cloud.datalabeling.v1beta1.TextPayload.Builder, + com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder>( (com.google.cloud.datalabeling.v1beta1.TextPayload) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 6; - onChanged();; + onChanged(); + ; return textPayloadBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoPayload, com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder> videoPayloadBuilder_; + com.google.cloud.datalabeling.v1beta1.VideoPayload, + com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, + com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder> + videoPayloadBuilder_; /** + * + * *
      * The video payload, a container of the video uri.
      * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7; + * * @return Whether the videoPayload field is set. */ @java.lang.Override @@ -1282,11 +1447,14 @@ public boolean hasVideoPayload() { return payloadCase_ == 7; } /** + * + * *
      * The video payload, a container of the video uri.
      * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7; + * * @return The videoPayload. */ @java.lang.Override @@ -1304,6 +1472,8 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayload getVideoPayload() { } } /** + * + * *
      * The video payload, a container of the video uri.
      * 
@@ -1324,6 +1494,8 @@ public Builder setVideoPayload(com.google.cloud.datalabeling.v1beta1.VideoPayloa return this; } /** + * + * *
      * The video payload, a container of the video uri.
      * 
@@ -1342,6 +1514,8 @@ public Builder setVideoPayload( return this; } /** + * + * *
      * The video payload, a container of the video uri.
      * 
@@ -1350,10 +1524,14 @@ public Builder setVideoPayload( */ public Builder mergeVideoPayload(com.google.cloud.datalabeling.v1beta1.VideoPayload value) { if (videoPayloadBuilder_ == null) { - if (payloadCase_ == 7 && - payload_ != com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance()) { - payload_ = com.google.cloud.datalabeling.v1beta1.VideoPayload.newBuilder((com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_) - .mergeFrom(value).buildPartial(); + if (payloadCase_ == 7 + && payload_ + != com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance()) { + payload_ = + com.google.cloud.datalabeling.v1beta1.VideoPayload.newBuilder( + (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_) + .mergeFrom(value) + .buildPartial(); } else { payload_ = value; } @@ -1369,6 +1547,8 @@ public Builder mergeVideoPayload(com.google.cloud.datalabeling.v1beta1.VideoPayl return this; } /** + * + * *
      * The video payload, a container of the video uri.
      * 
@@ -1392,6 +1572,8 @@ public Builder clearVideoPayload() { return this; } /** + * + * *
      * The video payload, a container of the video uri.
      * 
@@ -1402,6 +1584,8 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder getVideoPayloa return getVideoPayloadFieldBuilder().getBuilder(); } /** + * + * *
      * The video payload, a container of the video uri.
      * 
@@ -1420,6 +1604,8 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPaylo } } /** + * + * *
      * The video payload, a container of the video uri.
      * 
@@ -1427,26 +1613,34 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPaylo * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoPayload, com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder> + com.google.cloud.datalabeling.v1beta1.VideoPayload, + com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, + com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder> getVideoPayloadFieldBuilder() { if (videoPayloadBuilder_ == null) { if (!(payloadCase_ == 7)) { payload_ = com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance(); } - videoPayloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoPayload, com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder>( + videoPayloadBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.VideoPayload, + com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder, + com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder>( (com.google.cloud.datalabeling.v1beta1.VideoPayload) payload_, getParentForChildren(), isClean()); payload_ = null; } payloadCase_ = 7; - onChanged();; + onChanged(); + ; return videoPayloadBuilder_; } private java.lang.Object name_ = ""; /** + * + * *
      * Output only. Name of the example, in format of:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -1454,13 +1648,13 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPaylo
      * 
* * 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; @@ -1469,6 +1663,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Name of the example, in format of:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -1476,15 +1672,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 { @@ -1492,6 +1687,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Name of the example, in format of:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -1499,20 +1696,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. Name of the example, in format of:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -1520,15 +1719,18 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Name of the example, in format of:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -1536,34 +1738,41 @@ 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; } private java.util.List annotations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAnnotationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - annotations_ = new java.util.ArrayList(annotations_); + annotations_ = + new java.util.ArrayList(annotations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Annotation, com.google.cloud.datalabeling.v1beta1.Annotation.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder> annotationsBuilder_; + com.google.cloud.datalabeling.v1beta1.Annotation, + com.google.cloud.datalabeling.v1beta1.Annotation.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder> + annotationsBuilder_; /** + * + * *
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1579,6 +1788,8 @@ public java.util.List getAnnot
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1594,6 +1805,8 @@ public int getAnnotationsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1609,6 +1822,8 @@ public com.google.cloud.datalabeling.v1beta1.Annotation getAnnotations(int index
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1631,6 +1846,8 @@ public Builder setAnnotations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1650,6 +1867,8 @@ public Builder setAnnotations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1671,6 +1890,8 @@ public Builder addAnnotations(com.google.cloud.datalabeling.v1beta1.Annotation v
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1693,6 +1914,8 @@ public Builder addAnnotations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1712,6 +1935,8 @@ public Builder addAnnotations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1731,6 +1956,8 @@ public Builder addAnnotations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1742,8 +1969,7 @@ public Builder addAllAnnotations(
         java.lang.Iterable values) {
       if (annotationsBuilder_ == null) {
         ensureAnnotationsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, annotations_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotations_);
         onChanged();
       } else {
         annotationsBuilder_.addAllMessages(values);
@@ -1751,6 +1977,8 @@ public Builder addAllAnnotations(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1769,6 +1997,8 @@ public Builder clearAnnotations() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1787,6 +2017,8 @@ public Builder removeAnnotations(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1799,6 +2031,8 @@ public com.google.cloud.datalabeling.v1beta1.Annotation.Builder getAnnotationsBu
       return getAnnotationsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1809,11 +2043,14 @@ public com.google.cloud.datalabeling.v1beta1.Annotation.Builder getAnnotationsBu
     public com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder getAnnotationsOrBuilder(
         int index) {
       if (annotationsBuilder_ == null) {
-        return annotations_.get(index);  } else {
+        return annotations_.get(index);
+      } else {
         return annotationsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1821,8 +2058,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder getAnnotationsO
      *
      * repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
      */
-    public java.util.List 
-         getAnnotationsOrBuilderList() {
+    public java.util.List
+        getAnnotationsOrBuilderList() {
       if (annotationsBuilder_ != null) {
         return annotationsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1830,6 +2067,8 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder getAnnotationsO
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1838,10 +2077,12 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder getAnnotationsO
      * repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
      */
     public com.google.cloud.datalabeling.v1beta1.Annotation.Builder addAnnotationsBuilder() {
-      return getAnnotationsFieldBuilder().addBuilder(
-          com.google.cloud.datalabeling.v1beta1.Annotation.getDefaultInstance());
+      return getAnnotationsFieldBuilder()
+          .addBuilder(com.google.cloud.datalabeling.v1beta1.Annotation.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1851,10 +2092,12 @@ public com.google.cloud.datalabeling.v1beta1.Annotation.Builder addAnnotationsBu
      */
     public com.google.cloud.datalabeling.v1beta1.Annotation.Builder addAnnotationsBuilder(
         int index) {
-      return getAnnotationsFieldBuilder().addBuilder(
-          index, com.google.cloud.datalabeling.v1beta1.Annotation.getDefaultInstance());
+      return getAnnotationsFieldBuilder()
+          .addBuilder(index, com.google.cloud.datalabeling.v1beta1.Annotation.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Output only. Annotations for the piece of data in Example.
      * One piece of data can have multiple annotations.
@@ -1862,27 +2105,30 @@ public com.google.cloud.datalabeling.v1beta1.Annotation.Builder addAnnotationsBu
      *
      * repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
      */
-    public java.util.List 
-         getAnnotationsBuilderList() {
+    public java.util.List
+        getAnnotationsBuilderList() {
       return getAnnotationsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.Annotation, com.google.cloud.datalabeling.v1beta1.Annotation.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder> 
+            com.google.cloud.datalabeling.v1beta1.Annotation,
+            com.google.cloud.datalabeling.v1beta1.Annotation.Builder,
+            com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder>
         getAnnotationsFieldBuilder() {
       if (annotationsBuilder_ == null) {
-        annotationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.Annotation, com.google.cloud.datalabeling.v1beta1.Annotation.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder>(
-                annotations_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        annotationsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.datalabeling.v1beta1.Annotation,
+                com.google.cloud.datalabeling.v1beta1.Annotation.Builder,
+                com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder>(
+                annotations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         annotations_ = null;
       }
       return annotationsBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1892,12 +2138,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.Example)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Example)
   private static final com.google.cloud.datalabeling.v1beta1.Example DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.Example();
   }
@@ -1906,16 +2152,16 @@ public static com.google.cloud.datalabeling.v1beta1.Example getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Example parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Example(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Example parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Example(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1930,6 +2176,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datalabeling.v1beta1.Example getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleName.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleName.java
similarity index 100%
rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleName.java
rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleName.java
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleOrBuilder.java
similarity index 83%
rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleOrBuilder.java
rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleOrBuilder.java
index 10f0cedd..89a81eb4 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleOrBuilder.java
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExampleOrBuilder.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/datalabeling/v1beta1/dataset.proto
 
 package com.google.cloud.datalabeling.v1beta1;
 
-public interface ExampleOrBuilder extends
+public interface ExampleOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.Example)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The image payload, a container of the image bytes/uri.
    * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; + * * @return Whether the imagePayload field is set. */ boolean hasImagePayload(); /** + * + * *
    * The image payload, a container of the image bytes/uri.
    * 
* * .google.cloud.datalabeling.v1beta1.ImagePayload image_payload = 2; + * * @return The imagePayload. */ com.google.cloud.datalabeling.v1beta1.ImagePayload getImagePayload(); /** + * + * *
    * The image payload, a container of the image bytes/uri.
    * 
@@ -35,24 +59,32 @@ public interface ExampleOrBuilder extends com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder getImagePayloadOrBuilder(); /** + * + * *
    * The text payload, a container of the text content.
    * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6; + * * @return Whether the textPayload field is set. */ boolean hasTextPayload(); /** + * + * *
    * The text payload, a container of the text content.
    * 
* * .google.cloud.datalabeling.v1beta1.TextPayload text_payload = 6; + * * @return The textPayload. */ com.google.cloud.datalabeling.v1beta1.TextPayload getTextPayload(); /** + * + * *
    * The text payload, a container of the text content.
    * 
@@ -62,24 +94,32 @@ public interface ExampleOrBuilder extends com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder getTextPayloadOrBuilder(); /** + * + * *
    * The video payload, a container of the video uri.
    * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7; + * * @return Whether the videoPayload field is set. */ boolean hasVideoPayload(); /** + * + * *
    * The video payload, a container of the video uri.
    * 
* * .google.cloud.datalabeling.v1beta1.VideoPayload video_payload = 7; + * * @return The videoPayload. */ com.google.cloud.datalabeling.v1beta1.VideoPayload getVideoPayload(); /** + * + * *
    * The video payload, a container of the video uri.
    * 
@@ -89,6 +129,8 @@ public interface ExampleOrBuilder extends com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder getVideoPayloadOrBuilder(); /** + * + * *
    * Output only. Name of the example, in format of:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -96,10 +138,13 @@ public interface ExampleOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Name of the example, in format of:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
@@ -107,12 +152,14 @@ public interface ExampleOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Output only. Annotations for the piece of data in Example.
    * One piece of data can have multiple annotations.
@@ -120,9 +167,10 @@ public interface ExampleOrBuilder extends
    *
    * repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
    */
-  java.util.List 
-      getAnnotationsList();
+  java.util.List getAnnotationsList();
   /**
+   *
+   *
    * 
    * Output only. Annotations for the piece of data in Example.
    * One piece of data can have multiple annotations.
@@ -132,6 +180,8 @@ public interface ExampleOrBuilder extends
    */
   com.google.cloud.datalabeling.v1beta1.Annotation getAnnotations(int index);
   /**
+   *
+   *
    * 
    * Output only. Annotations for the piece of data in Example.
    * One piece of data can have multiple annotations.
@@ -141,6 +191,8 @@ public interface ExampleOrBuilder extends
    */
   int getAnnotationsCount();
   /**
+   *
+   *
    * 
    * Output only. Annotations for the piece of data in Example.
    * One piece of data can have multiple annotations.
@@ -148,9 +200,11 @@ public interface ExampleOrBuilder extends
    *
    * repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
    */
-  java.util.List 
+  java.util.List
       getAnnotationsOrBuilderList();
   /**
+   *
+   *
    * 
    * Output only. Annotations for the piece of data in Example.
    * One piece of data can have multiple annotations.
@@ -158,8 +212,7 @@ public interface ExampleOrBuilder extends
    *
    * repeated .google.cloud.datalabeling.v1beta1.Annotation annotations = 5;
    */
-  com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder getAnnotationsOrBuilder(
-      int index);
+  com.google.cloud.datalabeling.v1beta1.AnnotationOrBuilder getAnnotationsOrBuilder(int index);
 
   public com.google.cloud.datalabeling.v1beta1.Example.PayloadCase getPayloadCase();
 }
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadata.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadata.java
similarity index 74%
rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadata.java
rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadata.java
index aa9d47d7..f9a52840 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadata.java
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadata.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/datalabeling/v1beta1/operations.proto
 
 package com.google.cloud.datalabeling.v1beta1;
 
 /**
+ *
+ *
  * 
  * Metadata of an ExportData operation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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() { dataset_ = ""; partialFailures_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ 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) @@ -55,41 +72,45 @@ private ExportDataOperationMetadata( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - dataset_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - partialFailures_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + dataset_ = s; + break; } - 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; - } - 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) { @@ -97,8 +118,7 @@ private ExportDataOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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_); @@ -107,28 +127,34 @@ private ExportDataOperationMetadata( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.Builder.class); } public static final int DATASET_FIELD_NUMBER = 1; private volatile java.lang.Object dataset_; /** + * + * *
    * Output only. The name of dataset to be exported.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; + * * @return The dataset. */ @java.lang.Override @@ -137,30 +163,30 @@ public java.lang.String getDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; } } /** + * + * *
    * Output only. The name of dataset to be exported.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; + * * @return The bytes for dataset. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatasetBytes() { + public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataset_ = b; return b; } else { @@ -171,6 +197,8 @@ public java.lang.String getDataset() { 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.
@@ -184,6 +212,8 @@ public java.util.List getPartialFailuresList() {
     return partialFailures_;
   }
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -193,11 +223,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.
@@ -211,6 +243,8 @@ public int getPartialFailuresCount() {
     return partialFailures_.size();
   }
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -224,6 +258,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.
@@ -233,19 +269,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. Timestamp when export dataset request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -253,11 +291,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Timestamp when export dataset request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return The createTime. */ @java.lang.Override @@ -265,6 +306,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Timestamp when export dataset request was created.
    * 
@@ -277,6 +320,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,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(dataset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); } @@ -312,12 +355,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataset_); } 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()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -327,21 +368,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.datalabeling.v1beta1.ExportDataOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata other = + (com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata) obj; - if (!getDataset() - .equals(other.getDataset())) return false; - if (!getPartialFailuresList() - .equals(other.getPartialFailuresList())) return false; + if (!getDataset().equals(other.getDataset())) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -370,135 +409,147 @@ public int hashCode() { } public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ExportDataOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ExportDataOperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ExportDataOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ExportDataOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ExportDataOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.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; } /** + * + * *
    * Metadata of an ExportData operation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.ExportDataOperationMetadata) com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.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) { getPartialFailuresFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -520,13 +571,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.getDefaultInstance(); } @@ -541,7 +593,8 @@ public com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata(this); + com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata result = + new com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata(this); int from_bitField0_ = bitField0_; result.dataset_ = dataset_; if (partialFailuresBuilder_ == null) { @@ -566,46 +619,50 @@ public com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata 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.datalabeling.v1beta1.ExportDataOperationMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata other) { - if (other == com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata other) { + if (other + == com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata.getDefaultInstance()) + return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; onChanged(); @@ -628,9 +685,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ExportDataOperati 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_); } @@ -658,7 +716,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -667,23 +727,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object dataset_ = ""; /** + * + * *
      * Output only. The name of dataset to be exported.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; + * * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; @@ -692,21 +755,22 @@ public java.lang.String getDataset() { } } /** + * + * *
      * Output only. The name of dataset to be exported.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; + * * @return The bytes for dataset. */ - public com.google.protobuf.ByteString - getDatasetBytes() { + public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataset_ = b; return b; } else { @@ -714,75 +778,86 @@ public java.lang.String getDataset() { } } /** + * + * *
      * Output only. The name of dataset to be exported.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; + * * @param value The dataset to set. * @return This builder for chaining. */ - public Builder setDataset( - java.lang.String value) { + public Builder setDataset(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataset_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The name of dataset to be exported.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; + * * @return This builder for chaining. */ public Builder clearDataset() { - + dataset_ = getDefaultInstance().getDataset(); onChanged(); return this; } /** + * + * *
      * Output only. The name of dataset to be exported.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; + * * @param value The bytes for dataset to set. * @return This builder for chaining. */ - public Builder setDatasetBytes( - com.google.protobuf.ByteString value) { + public Builder setDatasetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; 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.
@@ -799,6 +874,8 @@ public java.util.List getPartialFailuresList() {
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -815,6 +892,8 @@ public int getPartialFailuresCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -831,6 +910,8 @@ public com.google.rpc.Status getPartialFailures(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -839,8 +920,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();
@@ -854,6 +934,8 @@ public Builder setPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -862,8 +944,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());
@@ -874,6 +955,8 @@ public Builder setPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -896,6 +979,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.
@@ -904,8 +989,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();
@@ -919,6 +1003,8 @@ public Builder addPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -927,8 +1013,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());
@@ -939,6 +1024,8 @@ public Builder addPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -947,8 +1034,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());
@@ -959,6 +1045,8 @@ public Builder addPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -971,8 +1059,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);
@@ -980,6 +1067,8 @@ public Builder addAllPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -999,6 +1088,8 @@ public Builder clearPartialFailures() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1018,6 +1109,8 @@ public Builder removePartialFailures(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1026,11 +1119,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.
@@ -1039,14 +1133,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.
@@ -1055,8 +1151,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 {
@@ -1064,6 +1160,8 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1073,10 +1171,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.
@@ -1085,12 +1185,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.
@@ -1099,16 +1200,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(),
@@ -1120,34 +1224,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. Timestamp when export dataset request 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. Timestamp when export dataset request 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. Timestamp when export dataset request was created.
      * 
@@ -1168,14 +1285,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp when export dataset request 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(); @@ -1186,6 +1304,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Timestamp when export dataset request was created.
      * 
@@ -1196,7 +1316,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; } @@ -1208,6 +1328,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp when export dataset request was created.
      * 
@@ -1226,6 +1348,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Timestamp when export dataset request was created.
      * 
@@ -1233,11 +1357,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 3; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Timestamp when export dataset request was created.
      * 
@@ -1248,11 +1374,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 export dataset request was created.
      * 
@@ -1260,21 +1389,24 @@ 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_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1284,30 +1416,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportDataOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportDataOperationMetadata(input, extensionRegistry); - } - }; + 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; @@ -1319,9 +1453,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadataOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadataOrBuilder.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadataOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadataOrBuilder.java index b4a733cc..e55f8e78 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadataOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface ExportDataOperationMetadataOrBuilder extends +public interface ExportDataOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ExportDataOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The name of dataset to be exported.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; + * * @return The dataset. */ java.lang.String getDataset(); /** + * + * *
    * Output only. The name of dataset to be exported.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; + * * @return The bytes for dataset. */ - com.google.protobuf.ByteString - getDatasetBytes(); + com.google.protobuf.ByteString getDatasetBytes(); /** + * + * *
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -38,9 +61,10 @@ public interface ExportDataOperationMetadataOrBuilder 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.
@@ -51,6 +75,8 @@ public interface ExportDataOperationMetadataOrBuilder extends
    */
   com.google.rpc.Status getPartialFailures(int index);
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -61,6 +87,8 @@ public interface ExportDataOperationMetadataOrBuilder extends
    */
   int getPartialFailuresCount();
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -69,9 +97,10 @@ public interface ExportDataOperationMetadataOrBuilder 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.
@@ -80,28 +109,35 @@ public interface ExportDataOperationMetadataOrBuilder extends
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
-      int index);
+  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Output only. Timestamp when export dataset request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Timestamp when export dataset request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Timestamp when export dataset request was created.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponse.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponse.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponse.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponse.java index 6eab0988..32a04bcd 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponse.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponse.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Response used for ExportDataset longrunning operation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ExportDataOperationResponse} */ -public final class ExportDataOperationResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ExportDataOperationResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ExportDataOperationResponse) ExportDataOperationResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExportDataOperationResponse.newBuilder() to construct. private ExportDataOperationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ExportDataOperationResponse() { dataset_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ExportDataOperationResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ExportDataOperationResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,55 +70,63 @@ private ExportDataOperationResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - dataset_ = s; - break; - } - case 16: { - - totalCount_ = input.readInt32(); - break; - } - case 24: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - exportCount_ = input.readInt32(); - break; - } - case 34: { - com.google.cloud.datalabeling.v1beta1.LabelStats.Builder subBuilder = null; - if (labelStats_ != null) { - subBuilder = labelStats_.toBuilder(); + dataset_ = s; + break; } - labelStats_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelStats.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(labelStats_); - labelStats_ = subBuilder.buildPartial(); + case 16: + { + totalCount_ = input.readInt32(); + break; } - - break; - } - case 42: { - com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); + case 24: + { + exportCount_ = input.readInt32(); + break; } - outputConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.datalabeling.v1beta1.LabelStats.Builder subBuilder = null; + if (labelStats_ != null) { + subBuilder = labelStats_.toBuilder(); + } + labelStats_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.LabelStats.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(labelStats_); + labelStats_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 42: + { + com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.OutputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -109,35 +134,40 @@ private ExportDataOperationResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.class, com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.class, + com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.Builder.class); } public static final int DATASET_FIELD_NUMBER = 1; private volatile java.lang.Object dataset_; /** + * + * *
    * Ouptut only. The name of dataset.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; + * * @return The dataset. */ @java.lang.Override @@ -146,30 +176,30 @@ public java.lang.String getDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; } } /** + * + * *
    * Ouptut only. The name of dataset.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; + * * @return The bytes for dataset. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatasetBytes() { + public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataset_ = b; return b; } else { @@ -180,11 +210,14 @@ public java.lang.String getDataset() { public static final int TOTAL_COUNT_FIELD_NUMBER = 2; private int totalCount_; /** + * + * *
    * Output only. Total number of examples requested to export
    * 
* * int32 total_count = 2; + * * @return The totalCount. */ @java.lang.Override @@ -195,11 +228,14 @@ public int getTotalCount() { public static final int EXPORT_COUNT_FIELD_NUMBER = 3; private int exportCount_; /** + * + * *
    * Output only. Number of examples exported successfully.
    * 
* * int32 export_count = 3; + * * @return The exportCount. */ @java.lang.Override @@ -210,11 +246,14 @@ public int getExportCount() { public static final int LABEL_STATS_FIELD_NUMBER = 4; private com.google.cloud.datalabeling.v1beta1.LabelStats labelStats_; /** + * + * *
    * Output only. Statistic infos of labels in the exported dataset.
    * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 4; + * * @return Whether the labelStats field is set. */ @java.lang.Override @@ -222,18 +261,25 @@ public boolean hasLabelStats() { return labelStats_ != null; } /** + * + * *
    * Output only. Statistic infos of labels in the exported dataset.
    * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 4; + * * @return The labelStats. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelStats getLabelStats() { - return labelStats_ == null ? com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() : labelStats_; + return labelStats_ == null + ? com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() + : labelStats_; } /** + * + * *
    * Output only. Statistic infos of labels in the exported dataset.
    * 
@@ -248,11 +294,14 @@ public com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder getLabelStatsOr public static final int OUTPUT_CONFIG_FIELD_NUMBER = 5; private com.google.cloud.datalabeling.v1beta1.OutputConfig outputConfig_; /** + * + * *
    * Output only. output_config in the ExportData request.
    * 
* * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 5; + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -260,18 +309,25 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Output only. output_config in the ExportData request.
    * 
* * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 5; + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Output only. output_config in the ExportData request.
    * 
@@ -284,6 +340,7 @@ public com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder getOutputConf } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -295,8 +352,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(dataset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); } @@ -325,20 +381,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataset_); } if (totalCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, totalCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, totalCount_); } if (exportCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, exportCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, exportCount_); } if (labelStats_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getLabelStats()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLabelStats()); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOutputConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -348,28 +400,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.datalabeling.v1beta1.ExportDataOperationResponse)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse other = (com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse) obj; + com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse other = + (com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse) obj; - if (!getDataset() - .equals(other.getDataset())) return false; - if (getTotalCount() - != other.getTotalCount()) return false; - if (getExportCount() - != other.getExportCount()) return false; + if (!getDataset().equals(other.getDataset())) return false; + if (getTotalCount() != other.getTotalCount()) return false; + if (getExportCount() != other.getExportCount()) return false; if (hasLabelStats() != other.hasLabelStats()) return false; if (hasLabelStats()) { - if (!getLabelStats() - .equals(other.getLabelStats())) return false; + if (!getLabelStats().equals(other.getLabelStats())) 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; @@ -402,134 +450,145 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse 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.datalabeling.v1beta1.ExportDataOperationResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse 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.datalabeling.v1beta1.ExportDataOperationResponse + 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.datalabeling.v1beta1.ExportDataOperationResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 used for ExportDataset longrunning operation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ExportDataOperationResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ExportDataOperationResponse) com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.class, com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.class, + com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.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(); @@ -555,13 +614,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.getDefaultInstance(); } @@ -576,7 +636,8 @@ public com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse buildPartial() { - com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse result = new com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse(this); + com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse result = + new com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse(this); result.dataset_ = dataset_; result.totalCount_ = totalCount_; result.exportCount_ = exportCount_; @@ -598,46 +659,50 @@ public com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse 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.datalabeling.v1beta1.ExportDataOperationResponse) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse other) { - if (other == com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse other) { + if (other + == com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse.getDefaultInstance()) + return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; onChanged(); @@ -673,7 +738,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -685,19 +752,21 @@ public Builder mergeFrom( private java.lang.Object dataset_ = ""; /** + * + * *
      * Ouptut only. The name of dataset.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; + * * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; @@ -706,21 +775,22 @@ public java.lang.String getDataset() { } } /** + * + * *
      * Ouptut only. The name of dataset.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; + * * @return The bytes for dataset. */ - public com.google.protobuf.ByteString - getDatasetBytes() { + public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataset_ = b; return b; } else { @@ -728,69 +798,79 @@ public java.lang.String getDataset() { } } /** + * + * *
      * Ouptut only. The name of dataset.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; + * * @param value The dataset to set. * @return This builder for chaining. */ - public Builder setDataset( - java.lang.String value) { + public Builder setDataset(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataset_ = value; onChanged(); return this; } /** + * + * *
      * Ouptut only. The name of dataset.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; + * * @return This builder for chaining. */ public Builder clearDataset() { - + dataset_ = getDefaultInstance().getDataset(); onChanged(); return this; } /** + * + * *
      * Ouptut only. The name of dataset.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; + * * @param value The bytes for dataset to set. * @return This builder for chaining. */ - public Builder setDatasetBytes( - com.google.protobuf.ByteString value) { + public Builder setDatasetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; onChanged(); return this; } - private int totalCount_ ; + private int totalCount_; /** + * + * *
      * Output only. Total number of examples requested to export
      * 
* * int32 total_count = 2; + * * @return The totalCount. */ @java.lang.Override @@ -798,42 +878,51 @@ public int getTotalCount() { return totalCount_; } /** + * + * *
      * Output only. Total number of examples requested to export
      * 
* * int32 total_count = 2; + * * @param value The totalCount to set. * @return This builder for chaining. */ public Builder setTotalCount(int value) { - + totalCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Total number of examples requested to export
      * 
* * int32 total_count = 2; + * * @return This builder for chaining. */ public Builder clearTotalCount() { - + totalCount_ = 0; onChanged(); return this; } - private int exportCount_ ; + private int exportCount_; /** + * + * *
      * Output only. Number of examples exported successfully.
      * 
* * int32 export_count = 3; + * * @return The exportCount. */ @java.lang.Override @@ -841,30 +930,36 @@ public int getExportCount() { return exportCount_; } /** + * + * *
      * Output only. Number of examples exported successfully.
      * 
* * int32 export_count = 3; + * * @param value The exportCount to set. * @return This builder for chaining. */ public Builder setExportCount(int value) { - + exportCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Number of examples exported successfully.
      * 
* * int32 export_count = 3; + * * @return This builder for chaining. */ public Builder clearExportCount() { - + exportCount_ = 0; onChanged(); return this; @@ -872,34 +967,47 @@ public Builder clearExportCount() { private com.google.cloud.datalabeling.v1beta1.LabelStats labelStats_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelStats, com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder> labelStatsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelStats, + com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, + com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder> + labelStatsBuilder_; /** + * + * *
      * Output only. Statistic infos of labels in the exported dataset.
      * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 4; + * * @return Whether the labelStats field is set. */ public boolean hasLabelStats() { return labelStatsBuilder_ != null || labelStats_ != null; } /** + * + * *
      * Output only. Statistic infos of labels in the exported dataset.
      * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 4; + * * @return The labelStats. */ public com.google.cloud.datalabeling.v1beta1.LabelStats getLabelStats() { if (labelStatsBuilder_ == null) { - return labelStats_ == null ? com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() : labelStats_; + return labelStats_ == null + ? com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() + : labelStats_; } else { return labelStatsBuilder_.getMessage(); } } /** + * + * *
      * Output only. Statistic infos of labels in the exported dataset.
      * 
@@ -920,6 +1028,8 @@ public Builder setLabelStats(com.google.cloud.datalabeling.v1beta1.LabelStats va return this; } /** + * + * *
      * Output only. Statistic infos of labels in the exported dataset.
      * 
@@ -938,6 +1048,8 @@ public Builder setLabelStats( return this; } /** + * + * *
      * Output only. Statistic infos of labels in the exported dataset.
      * 
@@ -948,7 +1060,9 @@ public Builder mergeLabelStats(com.google.cloud.datalabeling.v1beta1.LabelStats if (labelStatsBuilder_ == null) { if (labelStats_ != null) { labelStats_ = - com.google.cloud.datalabeling.v1beta1.LabelStats.newBuilder(labelStats_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.LabelStats.newBuilder(labelStats_) + .mergeFrom(value) + .buildPartial(); } else { labelStats_ = value; } @@ -960,6 +1074,8 @@ public Builder mergeLabelStats(com.google.cloud.datalabeling.v1beta1.LabelStats return this; } /** + * + * *
      * Output only. Statistic infos of labels in the exported dataset.
      * 
@@ -978,6 +1094,8 @@ public Builder clearLabelStats() { return this; } /** + * + * *
      * Output only. Statistic infos of labels in the exported dataset.
      * 
@@ -985,11 +1103,13 @@ public Builder clearLabelStats() { * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 4; */ public com.google.cloud.datalabeling.v1beta1.LabelStats.Builder getLabelStatsBuilder() { - + onChanged(); return getLabelStatsFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Statistic infos of labels in the exported dataset.
      * 
@@ -1000,11 +1120,14 @@ public com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder getLabelStatsOr if (labelStatsBuilder_ != null) { return labelStatsBuilder_.getMessageOrBuilder(); } else { - return labelStats_ == null ? - com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() : labelStats_; + return labelStats_ == null + ? com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance() + : labelStats_; } } /** + * + * *
      * Output only. Statistic infos of labels in the exported dataset.
      * 
@@ -1012,14 +1135,17 @@ public com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder getLabelStatsOr * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelStats, com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelStats, + com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, + com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder> getLabelStatsFieldBuilder() { if (labelStatsBuilder_ == null) { - labelStatsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelStats, com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder>( - getLabelStats(), - getParentForChildren(), - isClean()); + labelStatsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelStats, + com.google.cloud.datalabeling.v1beta1.LabelStats.Builder, + com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder>( + getLabelStats(), getParentForChildren(), isClean()); labelStats_ = null; } return labelStatsBuilder_; @@ -1027,34 +1153,47 @@ public com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder getLabelStatsOr private com.google.cloud.datalabeling.v1beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.OutputConfig, com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.OutputConfig, + com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, + com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Output only. output_config in the ExportData request.
      * 
* * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 5; + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Output only. output_config in the ExportData request.
      * 
* * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 5; + * * @return The outputConfig. */ public com.google.cloud.datalabeling.v1beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Output only. output_config in the ExportData request.
      * 
@@ -1075,6 +1214,8 @@ public Builder setOutputConfig(com.google.cloud.datalabeling.v1beta1.OutputConfi return this; } /** + * + * *
      * Output only. output_config in the ExportData request.
      * 
@@ -1093,6 +1234,8 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Output only. output_config in the ExportData request.
      * 
@@ -1103,7 +1246,9 @@ public Builder mergeOutputConfig(com.google.cloud.datalabeling.v1beta1.OutputCon if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.datalabeling.v1beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1115,6 +1260,8 @@ public Builder mergeOutputConfig(com.google.cloud.datalabeling.v1beta1.OutputCon return this; } /** + * + * *
      * Output only. output_config in the ExportData request.
      * 
@@ -1133,6 +1280,8 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Output only. output_config in the ExportData request.
      * 
@@ -1140,11 +1289,13 @@ public Builder clearOutputConfig() { * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 5; */ public com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. output_config in the ExportData request.
      * 
@@ -1155,11 +1306,14 @@ public com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder getOutputConf if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Output only. output_config in the ExportData request.
      * 
@@ -1167,21 +1321,24 @@ public com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder getOutputConf * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 5; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.OutputConfig, com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.OutputConfig, + com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, + com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.OutputConfig, com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.OutputConfig, + com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, + com.google.cloud.datalabeling.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); } @@ -1191,30 +1348,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ExportDataOperationResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ExportDataOperationResponse) - private static final com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse(); } - public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportDataOperationResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExportDataOperationResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportDataOperationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExportDataOperationResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1226,9 +1385,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ExportDataOperationResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponseOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponseOrBuilder.java similarity index 76% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponseOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponseOrBuilder.java index d4a0adfd..0e31db84 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponseOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataOperationResponseOrBuilder.java @@ -1,73 +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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface ExportDataOperationResponseOrBuilder extends +public interface ExportDataOperationResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ExportDataOperationResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Ouptut only. The name of dataset.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; + * * @return The dataset. */ java.lang.String getDataset(); /** + * + * *
    * Ouptut only. The name of dataset.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; + * * @return The bytes for dataset. */ - com.google.protobuf.ByteString - getDatasetBytes(); + com.google.protobuf.ByteString getDatasetBytes(); /** + * + * *
    * Output only. Total number of examples requested to export
    * 
* * int32 total_count = 2; + * * @return The totalCount. */ int getTotalCount(); /** + * + * *
    * Output only. Number of examples exported successfully.
    * 
* * int32 export_count = 3; + * * @return The exportCount. */ int getExportCount(); /** + * + * *
    * Output only. Statistic infos of labels in the exported dataset.
    * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 4; + * * @return Whether the labelStats field is set. */ boolean hasLabelStats(); /** + * + * *
    * Output only. Statistic infos of labels in the exported dataset.
    * 
* * .google.cloud.datalabeling.v1beta1.LabelStats label_stats = 4; + * * @return The labelStats. */ com.google.cloud.datalabeling.v1beta1.LabelStats getLabelStats(); /** + * + * *
    * Output only. Statistic infos of labels in the exported dataset.
    * 
@@ -77,24 +112,32 @@ public interface ExportDataOperationResponseOrBuilder extends com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder getLabelStatsOrBuilder(); /** + * + * *
    * Output only. output_config in the ExportData request.
    * 
* * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 5; + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Output only. output_config in the ExportData request.
    * 
* * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 5; + * * @return The outputConfig. */ com.google.cloud.datalabeling.v1beta1.OutputConfig getOutputConfig(); /** + * + * *
    * Output only. output_config in the ExportData request.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequest.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequest.java index 0b12b2f1..98b1f1a4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for ExportData API.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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_ = ""; annotatedDataset_ = ""; @@ -28,16 +46,15 @@ private ExportDataRequest() { @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) @@ -56,50 +73,58 @@ private ExportDataRequest( 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(); - annotatedDataset_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - filter_ = s; - break; - } - case 34: { - com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder subBuilder = null; - if (outputConfig_ != null) { - subBuilder = outputConfig_.toBuilder(); + annotatedDataset_ = s; + break; } - outputConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.OutputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(outputConfig_); - outputConfig_ = subBuilder.buildPartial(); + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; } + case 34: + { + com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder subBuilder = null; + if (outputConfig_ != null) { + subBuilder = outputConfig_.toBuilder(); + } + outputConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.OutputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(outputConfig_); + outputConfig_ = subBuilder.buildPartial(); + } - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - userEmailAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + userEmailAddress_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,35 +132,42 @@ private ExportDataRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ExportDataRequest.class, com.google.cloud.datalabeling.v1beta1.ExportDataRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ExportDataRequest.class, + com.google.cloud.datalabeling.v1beta1.ExportDataRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Dataset resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * string 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 @@ -144,30 +176,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 resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * string 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 { @@ -178,6 +212,8 @@ public java.lang.String getName() { public static final int ANNOTATED_DATASET_FIELD_NUMBER = 2; private volatile java.lang.Object annotatedDataset_; /** + * + * *
    * Required. Annotated dataset resource name. DataItem in
    * Dataset and their annotations in specified annotated dataset will be
@@ -186,7 +222,10 @@ public java.lang.String getName() {
    * {annotated_dataset_id}
    * 
* - * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The annotatedDataset. */ @java.lang.Override @@ -195,14 +234,15 @@ public java.lang.String getAnnotatedDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotatedDataset_ = s; return s; } } /** + * + * *
    * Required. Annotated dataset resource name. DataItem in
    * Dataset and their annotations in specified annotated dataset will be
@@ -211,17 +251,18 @@ public java.lang.String getAnnotatedDataset() {
    * {annotated_dataset_id}
    * 
* - * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for annotatedDataset. */ @java.lang.Override - public com.google.protobuf.ByteString - getAnnotatedDatasetBytes() { + public com.google.protobuf.ByteString getAnnotatedDatasetBytes() { java.lang.Object ref = annotatedDataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotatedDataset_ = b; return b; } else { @@ -232,11 +273,14 @@ public java.lang.String getAnnotatedDataset() { public static final int FILTER_FIELD_NUMBER = 3; private volatile java.lang.Object filter_; /** + * + * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -245,29 +289,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; } } /** + * + * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -278,11 +322,16 @@ public java.lang.String getFilter() { public static final int OUTPUT_CONFIG_FIELD_NUMBER = 4; private com.google.cloud.datalabeling.v1beta1.OutputConfig outputConfig_; /** + * + * *
    * Required. Specify the output destination.
    * 
* - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ @java.lang.Override @@ -290,23 +339,34 @@ public boolean hasOutputConfig() { return outputConfig_ != null; } /** + * + * *
    * Required. Specify the output destination.
    * 
* - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.OutputConfig getOutputConfig() { - return outputConfig_ == null ? com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } /** + * + * *
    * Required. Specify the output destination.
    * 
* - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { @@ -316,12 +376,15 @@ public com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder getOutputConf public static final int USER_EMAIL_ADDRESS_FIELD_NUMBER = 5; private volatile java.lang.Object userEmailAddress_; /** + * + * *
    * Email of the user who started the export task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 5; + * * @return The userEmailAddress. */ @java.lang.Override @@ -330,30 +393,30 @@ public java.lang.String getUserEmailAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userEmailAddress_ = s; return s; } } /** + * + * *
    * Email of the user who started the export task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 5; + * * @return The bytes for userEmailAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getUserEmailAddressBytes() { + public com.google.protobuf.ByteString getUserEmailAddressBytes() { java.lang.Object ref = userEmailAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userEmailAddress_ = b; return b; } else { @@ -362,6 +425,7 @@ public java.lang.String getUserEmailAddress() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -373,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -409,8 +472,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, filter_); } if (outputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getOutputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getOutputConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userEmailAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, userEmailAddress_); @@ -423,26 +485,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.datalabeling.v1beta1.ExportDataRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ExportDataRequest other = (com.google.cloud.datalabeling.v1beta1.ExportDataRequest) obj; + com.google.cloud.datalabeling.v1beta1.ExportDataRequest other = + (com.google.cloud.datalabeling.v1beta1.ExportDataRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getAnnotatedDataset() - .equals(other.getAnnotatedDataset())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getName().equals(other.getName())) return false; + if (!getAnnotatedDataset().equals(other.getAnnotatedDataset())) return false; + if (!getFilter().equals(other.getFilter())) 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 (!getUserEmailAddress() - .equals(other.getUserEmailAddress())) return false; + if (!getUserEmailAddress().equals(other.getUserEmailAddress())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -472,117 +530,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ExportDataRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ExportDataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ExportDataRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ExportDataRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ExportDataRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ExportDataRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ExportDataRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.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 ExportData API.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.ExportDataRequest) com.google.cloud.datalabeling.v1beta1.ExportDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ExportDataRequest.class, com.google.cloud.datalabeling.v1beta1.ExportDataRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ExportDataRequest.class, + com.google.cloud.datalabeling.v1beta1.ExportDataRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ExportDataRequest.newBuilder() @@ -590,16 +658,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(); @@ -621,9 +688,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ExportDataRequest_descriptor; } @java.lang.Override @@ -642,7 +709,8 @@ public com.google.cloud.datalabeling.v1beta1.ExportDataRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ExportDataRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.ExportDataRequest result = new com.google.cloud.datalabeling.v1beta1.ExportDataRequest(this); + com.google.cloud.datalabeling.v1beta1.ExportDataRequest result = + new com.google.cloud.datalabeling.v1beta1.ExportDataRequest(this); result.name_ = name_; result.annotatedDataset_ = annotatedDataset_; result.filter_ = filter_; @@ -660,38 +728,39 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.ExportDataRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ExportDataRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ExportDataRequest) other); } else { super.mergeFrom(other); return this; @@ -699,7 +768,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ExportDataRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.ExportDataRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.ExportDataRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -738,7 +808,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ExportDataRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ExportDataRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -750,19 +821,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * string 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; @@ -771,21 +846,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * string 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 { @@ -793,57 +871,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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 resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * string 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 resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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; @@ -851,6 +942,8 @@ public Builder setNameBytes( private java.lang.Object annotatedDataset_ = ""; /** + * + * *
      * Required. Annotated dataset resource name. DataItem in
      * Dataset and their annotations in specified annotated dataset will be
@@ -859,14 +952,16 @@ public Builder setNameBytes(
      * {annotated_dataset_id}
      * 
* - * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The annotatedDataset. */ public java.lang.String getAnnotatedDataset() { java.lang.Object ref = annotatedDataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotatedDataset_ = s; return s; @@ -875,6 +970,8 @@ public java.lang.String getAnnotatedDataset() { } } /** + * + * *
      * Required. Annotated dataset resource name. DataItem in
      * Dataset and their annotations in specified annotated dataset will be
@@ -883,16 +980,17 @@ public java.lang.String getAnnotatedDataset() {
      * {annotated_dataset_id}
      * 
* - * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for annotatedDataset. */ - public com.google.protobuf.ByteString - getAnnotatedDatasetBytes() { + public com.google.protobuf.ByteString getAnnotatedDatasetBytes() { java.lang.Object ref = annotatedDataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotatedDataset_ = b; return b; } else { @@ -900,6 +998,8 @@ public java.lang.String getAnnotatedDataset() { } } /** + * + * *
      * Required. Annotated dataset resource name. DataItem in
      * Dataset and their annotations in specified annotated dataset will be
@@ -908,21 +1008,25 @@ public java.lang.String getAnnotatedDataset() {
      * {annotated_dataset_id}
      * 
* - * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The annotatedDataset to set. * @return This builder for chaining. */ - public Builder setAnnotatedDataset( - java.lang.String value) { + public Builder setAnnotatedDataset(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotatedDataset_ = value; onChanged(); return this; } /** + * + * *
      * Required. Annotated dataset resource name. DataItem in
      * Dataset and their annotations in specified annotated dataset will be
@@ -931,16 +1035,21 @@ public Builder setAnnotatedDataset(
      * {annotated_dataset_id}
      * 
* - * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearAnnotatedDataset() { - + annotatedDataset_ = getDefaultInstance().getAnnotatedDataset(); onChanged(); return this; } /** + * + * *
      * Required. Annotated dataset resource name. DataItem in
      * Dataset and their annotations in specified annotated dataset will be
@@ -949,17 +1058,19 @@ public Builder clearAnnotatedDataset() {
      * {annotated_dataset_id}
      * 
* - * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for annotatedDataset to set. * @return This builder for chaining. */ - public Builder setAnnotatedDatasetBytes( - com.google.protobuf.ByteString value) { + public Builder setAnnotatedDatasetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotatedDataset_ = value; onChanged(); return this; @@ -967,18 +1078,20 @@ public Builder setAnnotatedDatasetBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -987,20 +1100,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -1008,54 +1122,61 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -1063,39 +1184,58 @@ public Builder setFilterBytes( private com.google.cloud.datalabeling.v1beta1.OutputConfig outputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.OutputConfig, com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder> outputConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.OutputConfig, + com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, + com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder> + outputConfigBuilder_; /** + * + * *
      * Required. Specify the output destination.
      * 
* - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ public boolean hasOutputConfig() { return outputConfigBuilder_ != null || outputConfig_ != null; } /** + * + * *
      * Required. Specify the output destination.
      * 
* - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ public com.google.cloud.datalabeling.v1beta1.OutputConfig getOutputConfig() { if (outputConfigBuilder_ == null) { - return outputConfig_ == null ? com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } else { return outputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Specify the output destination.
      * 
* - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig(com.google.cloud.datalabeling.v1beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { @@ -1111,11 +1251,15 @@ public Builder setOutputConfig(com.google.cloud.datalabeling.v1beta1.OutputConfi return this; } /** + * + * *
      * Required. Specify the output destination.
      * 
* - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setOutputConfig( com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder builderForValue) { @@ -1129,17 +1273,23 @@ public Builder setOutputConfig( return this; } /** + * + * *
      * Required. Specify the output destination.
      * 
* - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeOutputConfig(com.google.cloud.datalabeling.v1beta1.OutputConfig value) { if (outputConfigBuilder_ == null) { if (outputConfig_ != null) { outputConfig_ = - com.google.cloud.datalabeling.v1beta1.OutputConfig.newBuilder(outputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.OutputConfig.newBuilder(outputConfig_) + .mergeFrom(value) + .buildPartial(); } else { outputConfig_ = value; } @@ -1151,11 +1301,15 @@ public Builder mergeOutputConfig(com.google.cloud.datalabeling.v1beta1.OutputCon return this; } /** + * + * *
      * Required. Specify the output destination.
      * 
* - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearOutputConfig() { if (outputConfigBuilder_ == null) { @@ -1169,48 +1323,64 @@ public Builder clearOutputConfig() { return this; } /** + * + * *
      * Required. Specify the output destination.
      * 
* - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder getOutputConfigBuilder() { - + onChanged(); return getOutputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Specify the output destination.
      * 
* - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder getOutputConfigOrBuilder() { if (outputConfigBuilder_ != null) { return outputConfigBuilder_.getMessageOrBuilder(); } else { - return outputConfig_ == null ? - com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() : outputConfig_; + return outputConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance() + : outputConfig_; } } /** + * + * *
      * Required. Specify the output destination.
      * 
* - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.OutputConfig, com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.OutputConfig, + com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, + com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder> getOutputConfigFieldBuilder() { if (outputConfigBuilder_ == null) { - outputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.OutputConfig, com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder>( - getOutputConfig(), - getParentForChildren(), - isClean()); + outputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.OutputConfig, + com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder, + com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder>( + getOutputConfig(), getParentForChildren(), isClean()); outputConfig_ = null; } return outputConfigBuilder_; @@ -1218,19 +1388,21 @@ public com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder getOutputConf private java.lang.Object userEmailAddress_ = ""; /** + * + * *
      * Email of the user who started the export task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 5; + * * @return The userEmailAddress. */ public java.lang.String getUserEmailAddress() { java.lang.Object ref = userEmailAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userEmailAddress_ = s; return s; @@ -1239,21 +1411,22 @@ public java.lang.String getUserEmailAddress() { } } /** + * + * *
      * Email of the user who started the export task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 5; + * * @return The bytes for userEmailAddress. */ - public com.google.protobuf.ByteString - getUserEmailAddressBytes() { + public com.google.protobuf.ByteString getUserEmailAddressBytes() { java.lang.Object ref = userEmailAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userEmailAddress_ = b; return b; } else { @@ -1261,64 +1434,71 @@ public java.lang.String getUserEmailAddress() { } } /** + * + * *
      * Email of the user who started the export task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 5; + * * @param value The userEmailAddress to set. * @return This builder for chaining. */ - public Builder setUserEmailAddress( - java.lang.String value) { + public Builder setUserEmailAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + userEmailAddress_ = value; onChanged(); return this; } /** + * + * *
      * Email of the user who started the export task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 5; + * * @return This builder for chaining. */ public Builder clearUserEmailAddress() { - + userEmailAddress_ = getDefaultInstance().getUserEmailAddress(); onChanged(); return this; } /** + * + * *
      * Email of the user who started the export task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 5; + * * @param value The bytes for userEmailAddress to set. * @return This builder for chaining. */ - public Builder setUserEmailAddressBytes( - com.google.protobuf.ByteString value) { + public Builder setUserEmailAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userEmailAddress_ = 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); } @@ -1328,12 +1508,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ExportDataRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ExportDataRequest) private static final com.google.cloud.datalabeling.v1beta1.ExportDataRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ExportDataRequest(); } @@ -1342,16 +1522,16 @@ public static com.google.cloud.datalabeling.v1beta1.ExportDataRequest getDefault 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; @@ -1366,6 +1546,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ExportDataRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequestOrBuilder.java similarity index 59% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequestOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequestOrBuilder.java index ab8982ca..f9b528d3 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequestOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ExportDataRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ExportDataRequestOrBuilder extends +public interface ExportDataRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ExportDataRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Dataset resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * string 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. Dataset resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * string 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. Annotated dataset resource name. DataItem in
    * Dataset and their annotations in specified annotated dataset will be
@@ -38,11 +65,16 @@ public interface ExportDataRequestOrBuilder extends
    * {annotated_dataset_id}
    * 
* - * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The annotatedDataset. */ java.lang.String getAnnotatedDataset(); /** + * + * *
    * Required. Annotated dataset resource name. DataItem in
    * Dataset and their annotations in specified annotated dataset will be
@@ -51,78 +83,104 @@ public interface ExportDataRequestOrBuilder extends
    * {annotated_dataset_id}
    * 
* - * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string annotated_dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for annotatedDataset. */ - com.google.protobuf.ByteString - getAnnotatedDatasetBytes(); + com.google.protobuf.ByteString getAnnotatedDatasetBytes(); /** + * + * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Required. Specify the output destination.
    * 
* - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the outputConfig field is set. */ boolean hasOutputConfig(); /** + * + * *
    * Required. Specify the output destination.
    * 
* - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The outputConfig. */ com.google.cloud.datalabeling.v1beta1.OutputConfig getOutputConfig(); /** + * + * *
    * Required. Specify the output destination.
    * 
* - * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.OutputConfig output_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder getOutputConfigOrBuilder(); /** + * + * *
    * Email of the user who started the export task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 5; + * * @return The userEmailAddress. */ java.lang.String getUserEmailAddress(); /** + * + * *
    * Email of the user who started the export task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 5; + * * @return The bytes for userEmailAddress. */ - com.google.protobuf.ByteString - getUserEmailAddressBytes(); + com.google.protobuf.ByteString getUserEmailAddressBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestination.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestination.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestination.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestination.java index f7b46662..c0d74bf1 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestination.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestination.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Export destination of the data.Only gcs path is allowed in
  * output_uri.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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() {
     outputUri_ = "";
     mimeType_ = "";
@@ -27,16 +45,15 @@ private GcsDestination() {
 
   @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)
@@ -55,25 +72,27 @@ private GcsDestination(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            outputUri_ = s;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              outputUri_ = s;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            mimeType_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              mimeType_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -81,34 +100,39 @@ private GcsDestination(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.GcsDestination.class, com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.GcsDestination.class,
+            com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder.class);
   }
 
   public static final int OUTPUT_URI_FIELD_NUMBER = 1;
   private volatile java.lang.Object outputUri_;
   /**
+   *
+   *
    * 
    * Required. The output uri of destination file.
    * 
* * string output_uri = 1; + * * @return The outputUri. */ @java.lang.Override @@ -117,29 +141,29 @@ 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. The output uri of destination file.
    * 
* * 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 { @@ -150,6 +174,8 @@ public java.lang.String getOutputUri() { public static final int MIME_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object mimeType_; /** + * + * *
    * Required. The format of the gcs destination. Only "text/csv" and
    * "application/json"
@@ -157,6 +183,7 @@ public java.lang.String getOutputUri() {
    * 
* * string mime_type = 2; + * * @return The mimeType. */ @java.lang.Override @@ -165,14 +192,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; } } /** + * + * *
    * Required. The format of the gcs destination. Only "text/csv" and
    * "application/json"
@@ -180,16 +208,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 { @@ -198,6 +225,7 @@ public java.lang.String getMimeType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,8 +237,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_); } @@ -240,17 +267,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.datalabeling.v1beta1.GcsDestination)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.GcsDestination other = (com.google.cloud.datalabeling.v1beta1.GcsDestination) obj; + com.google.cloud.datalabeling.v1beta1.GcsDestination other = + (com.google.cloud.datalabeling.v1beta1.GcsDestination) obj; - if (!getOutputUri() - .equals(other.getOutputUri())) return false; - if (!getMimeType() - .equals(other.getMimeType())) return false; + if (!getOutputUri().equals(other.getOutputUri())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -272,96 +298,103 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.GcsDestination 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.datalabeling.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.datalabeling.v1beta1.GcsDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.GcsDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.GcsDestination parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.GcsDestination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.GcsDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.GcsDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.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; } /** + * + * *
    * Export destination of the data.Only gcs path is allowed in
    * output_uri.
@@ -369,21 +402,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.GcsDestination)
       com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.GcsDestination.class, com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.GcsDestination.class,
+              com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.GcsDestination.newBuilder()
@@ -391,16 +426,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 +446,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_GcsDestination_descriptor;
     }
 
     @java.lang.Override
@@ -433,7 +467,8 @@ public com.google.cloud.datalabeling.v1beta1.GcsDestination build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.GcsDestination buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.GcsDestination result = new com.google.cloud.datalabeling.v1beta1.GcsDestination(this);
+      com.google.cloud.datalabeling.v1beta1.GcsDestination result =
+          new com.google.cloud.datalabeling.v1beta1.GcsDestination(this);
       result.outputUri_ = outputUri_;
       result.mimeType_ = mimeType_;
       onBuilt();
@@ -444,38 +479,39 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.GcsDestination) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.GcsDestination)other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.GcsDestination) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -483,7 +519,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.GcsDestination other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.GcsDestination.getDefaultInstance()) return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.GcsDestination.getDefaultInstance())
+        return this;
       if (!other.getOutputUri().isEmpty()) {
         outputUri_ = other.outputUri_;
         onChanged();
@@ -511,7 +548,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.datalabeling.v1beta1.GcsDestination) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.datalabeling.v1beta1.GcsDestination) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -523,18 +561,20 @@ public Builder mergeFrom(
 
     private java.lang.Object outputUri_ = "";
     /**
+     *
+     *
      * 
      * Required. The output uri of destination file.
      * 
* * 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; @@ -543,20 +583,21 @@ public java.lang.String getOutputUri() { } } /** + * + * *
      * Required. The output uri of destination file.
      * 
* * 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 { @@ -564,54 +605,61 @@ public java.lang.String getOutputUri() { } } /** + * + * *
      * Required. The output uri of destination file.
      * 
* * 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. The output uri of destination file.
      * 
* * string output_uri = 1; + * * @return This builder for chaining. */ public Builder clearOutputUri() { - + outputUri_ = getDefaultInstance().getOutputUri(); onChanged(); return this; } /** + * + * *
      * Required. The output uri of destination file.
      * 
* * 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; @@ -619,6 +667,8 @@ public Builder setOutputUriBytes( private java.lang.Object mimeType_ = ""; /** + * + * *
      * Required. The format of the gcs destination. Only "text/csv" and
      * "application/json"
@@ -626,13 +676,13 @@ public Builder setOutputUriBytes(
      * 
* * 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; @@ -641,6 +691,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Required. The format of the gcs destination. Only "text/csv" and
      * "application/json"
@@ -648,15 +700,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 { @@ -664,6 +715,8 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Required. The format of the gcs destination. Only "text/csv" and
      * "application/json"
@@ -671,20 +724,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; } /** + * + * *
      * Required. The format of the gcs destination. Only "text/csv" and
      * "application/json"
@@ -692,15 +747,18 @@ public Builder setMimeType(
      * 
* * string mime_type = 2; + * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** + * + * *
      * Required. The format of the gcs destination. Only "text/csv" and
      * "application/json"
@@ -708,23 +766,23 @@ 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; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -734,12 +792,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.GcsDestination) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GcsDestination) private static final com.google.cloud.datalabeling.v1beta1.GcsDestination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.GcsDestination(); } @@ -748,16 +806,16 @@ public static com.google.cloud.datalabeling.v1beta1.GcsDestination getDefaultIns 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; @@ -772,6 +830,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.GcsDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestinationOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestinationOrBuilder.java similarity index 58% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestinationOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestinationOrBuilder.java index bfab9e6f..3c22890c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestinationOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsDestinationOrBuilder.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; -public interface GcsDestinationOrBuilder extends +public interface GcsDestinationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GcsDestination) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The output uri of destination file.
    * 
* * string output_uri = 1; + * * @return The outputUri. */ java.lang.String getOutputUri(); /** + * + * *
    * Required. The output uri of destination file.
    * 
* * string output_uri = 1; + * * @return The bytes for outputUri. */ - com.google.protobuf.ByteString - getOutputUriBytes(); + com.google.protobuf.ByteString getOutputUriBytes(); /** + * + * *
    * Required. The format of the gcs destination. Only "text/csv" and
    * "application/json"
@@ -35,10 +58,13 @@ public interface GcsDestinationOrBuilder extends
    * 
* * string mime_type = 2; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Required. The format of the gcs destination. Only "text/csv" and
    * "application/json"
@@ -46,8 +72,8 @@ public interface GcsDestinationOrBuilder extends
    * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestination.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestination.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestination.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestination.java index 114ff380..a361e2db 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestination.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestination.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Export folder destination of the data.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GcsFolderDestination} */ -public final class GcsFolderDestination extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GcsFolderDestination extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.GcsFolderDestination) GcsFolderDestinationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GcsFolderDestination.newBuilder() to construct. private GcsFolderDestination(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GcsFolderDestination() { outputFolderUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GcsFolderDestination(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GcsFolderDestination( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GcsFolderDestination( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - outputFolderUri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + outputFolderUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,39 @@ private GcsFolderDestination( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.class, com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder.class); + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.class, + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder.class); } public static final int OUTPUT_FOLDER_URI_FIELD_NUMBER = 1; private volatile java.lang.Object outputFolderUri_; /** + * + * *
    * Required. Cloud Storage directory to export data to.
    * 
* * string output_folder_uri = 1; + * * @return The outputFolderUri. */ @java.lang.Override @@ -109,29 +132,29 @@ public java.lang.String getOutputFolderUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputFolderUri_ = s; return s; } } /** + * + * *
    * Required. Cloud Storage directory to export data to.
    * 
* * string output_folder_uri = 1; + * * @return The bytes for outputFolderUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getOutputFolderUriBytes() { + public com.google.protobuf.ByteString getOutputFolderUriBytes() { java.lang.Object ref = outputFolderUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputFolderUri_ = b; return b; } else { @@ -140,6 +163,7 @@ public java.lang.String getOutputFolderUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +175,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(outputFolderUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, outputFolderUri_); } @@ -176,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.datalabeling.v1beta1.GcsFolderDestination)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination other = (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) obj; + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination other = + (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) obj; - if (!getOutputFolderUri() - .equals(other.getOutputFolderUri())) return false; + if (!getOutputFolderUri().equals(other.getOutputFolderUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +227,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination 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.datalabeling.v1beta1.GcsFolderDestination parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.GcsFolderDestination prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Export folder destination of the data.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GcsFolderDestination} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.GcsFolderDestination) com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.class, com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder.class); + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.class, + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.newBuilder() @@ -322,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(); @@ -341,9 +373,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GcsFolderDestination_descriptor; } @java.lang.Override @@ -362,7 +394,8 @@ public com.google.cloud.datalabeling.v1beta1.GcsFolderDestination build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GcsFolderDestination buildPartial() { - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination result = new com.google.cloud.datalabeling.v1beta1.GcsFolderDestination(this); + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination result = + new com.google.cloud.datalabeling.v1beta1.GcsFolderDestination(this); result.outputFolderUri_ = outputFolderUri_; onBuilt(); return result; @@ -372,38 +405,39 @@ public com.google.cloud.datalabeling.v1beta1.GcsFolderDestination buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.GcsFolderDestination)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) other); } else { super.mergeFrom(other); return this; @@ -411,7 +445,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.GcsFolderDestination other) { - if (other == com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.getDefaultInstance()) + return this; if (!other.getOutputFolderUri().isEmpty()) { outputFolderUri_ = other.outputFolderUri_; onChanged(); @@ -435,7 +470,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +483,20 @@ public Builder mergeFrom( private java.lang.Object outputFolderUri_ = ""; /** + * + * *
      * Required. Cloud Storage directory to export data to.
      * 
* * string output_folder_uri = 1; + * * @return The outputFolderUri. */ public java.lang.String getOutputFolderUri() { java.lang.Object ref = outputFolderUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); outputFolderUri_ = s; return s; @@ -467,20 +505,21 @@ public java.lang.String getOutputFolderUri() { } } /** + * + * *
      * Required. Cloud Storage directory to export data to.
      * 
* * string output_folder_uri = 1; + * * @return The bytes for outputFolderUri. */ - public com.google.protobuf.ByteString - getOutputFolderUriBytes() { + public com.google.protobuf.ByteString getOutputFolderUriBytes() { java.lang.Object ref = outputFolderUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); outputFolderUri_ = b; return b; } else { @@ -488,61 +527,68 @@ public java.lang.String getOutputFolderUri() { } } /** + * + * *
      * Required. Cloud Storage directory to export data to.
      * 
* * string output_folder_uri = 1; + * * @param value The outputFolderUri to set. * @return This builder for chaining. */ - public Builder setOutputFolderUri( - java.lang.String value) { + public Builder setOutputFolderUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + outputFolderUri_ = value; onChanged(); return this; } /** + * + * *
      * Required. Cloud Storage directory to export data to.
      * 
* * string output_folder_uri = 1; + * * @return This builder for chaining. */ public Builder clearOutputFolderUri() { - + outputFolderUri_ = getDefaultInstance().getOutputFolderUri(); onChanged(); return this; } /** + * + * *
      * Required. Cloud Storage directory to export data to.
      * 
* * string output_folder_uri = 1; + * * @param value The bytes for outputFolderUri to set. * @return This builder for chaining. */ - public Builder setOutputFolderUriBytes( - com.google.protobuf.ByteString value) { + public Builder setOutputFolderUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputFolderUri_ = 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); } @@ -552,12 +598,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.GcsFolderDestination) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GcsFolderDestination) private static final com.google.cloud.datalabeling.v1beta1.GcsFolderDestination DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.GcsFolderDestination(); } @@ -566,16 +612,16 @@ public static com.google.cloud.datalabeling.v1beta1.GcsFolderDestination getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsFolderDestination parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GcsFolderDestination(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsFolderDestination parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GcsFolderDestination(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +636,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.GcsFolderDestination getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestinationOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestinationOrBuilder.java new file mode 100644 index 00000000..25a2d04f --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsFolderDestinationOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/dataset.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface GcsFolderDestinationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GcsFolderDestination) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Cloud Storage directory to export data to.
+   * 
+ * + * string output_folder_uri = 1; + * + * @return The outputFolderUri. + */ + java.lang.String getOutputFolderUri(); + /** + * + * + *
+   * Required. Cloud Storage directory to export data to.
+   * 
+ * + * string output_folder_uri = 1; + * + * @return The bytes for outputFolderUri. + */ + com.google.protobuf.ByteString getOutputFolderUriBytes(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSource.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSource.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSource.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSource.java index b5a549fe..a1bba2d2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSource.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSource.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Source of the Cloud Storage file to be imported.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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() { inputUri_ = ""; mimeType_ = ""; @@ -26,16 +44,15 @@ private GcsSource() { @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,25 +71,27 @@ private GcsSource( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - inputUri_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + inputUri_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + mimeType_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,35 +99,40 @@ private GcsSource( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsSource_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GcsSource.class, com.google.cloud.datalabeling.v1beta1.GcsSource.Builder.class); + com.google.cloud.datalabeling.v1beta1.GcsSource.class, + com.google.cloud.datalabeling.v1beta1.GcsSource.Builder.class); } public static final int INPUT_URI_FIELD_NUMBER = 1; private volatile java.lang.Object inputUri_; /** + * + * *
    * Required. The input URI of source file. This must be a Cloud Storage path
    * (`gs://...`).
    * 
* * string input_uri = 1; + * * @return The inputUri. */ @java.lang.Override @@ -117,30 +141,30 @@ 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. The input URI of source file. This must be a Cloud Storage path
    * (`gs://...`).
    * 
* * 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 { @@ -151,11 +175,14 @@ public java.lang.String getInputUri() { public static final int MIME_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object mimeType_; /** + * + * *
    * Required. The format of the source file. Only "text/csv" is supported.
    * 
* * string mime_type = 2; + * * @return The mimeType. */ @java.lang.Override @@ -164,29 +191,29 @@ 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; } } /** + * + * *
    * Required. The format of the source file. Only "text/csv" is supported.
    * 
* * 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 { @@ -195,6 +222,7 @@ public java.lang.String getMimeType() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,8 +234,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_); } @@ -237,17 +264,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.datalabeling.v1beta1.GcsSource)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.GcsSource other = (com.google.cloud.datalabeling.v1beta1.GcsSource) obj; + com.google.cloud.datalabeling.v1beta1.GcsSource other = + (com.google.cloud.datalabeling.v1beta1.GcsSource) obj; - if (!getInputUri() - .equals(other.getInputUri())) return false; - if (!getMimeType() - .equals(other.getMimeType())) return false; + if (!getInputUri().equals(other.getInputUri())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -268,118 +294,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.GcsSource parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datalabeling.v1beta1.GcsSource parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.GcsSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.GcsSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.GcsSource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.GcsSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.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; } /** + * + * *
    * Source of the Cloud Storage file to be imported.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.GcsSource) com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsSource_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GcsSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GcsSource.class, com.google.cloud.datalabeling.v1beta1.GcsSource.Builder.class); + com.google.cloud.datalabeling.v1beta1.GcsSource.class, + com.google.cloud.datalabeling.v1beta1.GcsSource.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.GcsSource.newBuilder() @@ -387,16 +422,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(); @@ -408,9 +442,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GcsSource_descriptor; } @java.lang.Override @@ -429,7 +463,8 @@ public com.google.cloud.datalabeling.v1beta1.GcsSource build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GcsSource buildPartial() { - com.google.cloud.datalabeling.v1beta1.GcsSource result = new com.google.cloud.datalabeling.v1beta1.GcsSource(this); + com.google.cloud.datalabeling.v1beta1.GcsSource result = + new com.google.cloud.datalabeling.v1beta1.GcsSource(this); result.inputUri_ = inputUri_; result.mimeType_ = mimeType_; onBuilt(); @@ -440,38 +475,39 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.GcsSource) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.GcsSource)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.GcsSource) other); } else { super.mergeFrom(other); return this; @@ -479,7 +515,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.GcsSource other) { - if (other == com.google.cloud.datalabeling.v1beta1.GcsSource.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.GcsSource.getDefaultInstance()) + return this; if (!other.getInputUri().isEmpty()) { inputUri_ = other.inputUri_; onChanged(); @@ -519,19 +556,21 @@ public Builder mergeFrom( private java.lang.Object inputUri_ = ""; /** + * + * *
      * Required. The input URI of source file. This must be a Cloud Storage path
      * (`gs://...`).
      * 
* * 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; @@ -540,21 +579,22 @@ public java.lang.String getInputUri() { } } /** + * + * *
      * Required. The input URI of source file. This must be a Cloud Storage path
      * (`gs://...`).
      * 
* * 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 { @@ -562,57 +602,64 @@ public java.lang.String getInputUri() { } } /** + * + * *
      * Required. The input URI of source file. This must be a Cloud Storage path
      * (`gs://...`).
      * 
* * 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. The input URI of source file. This must be a Cloud Storage path
      * (`gs://...`).
      * 
* * string input_uri = 1; + * * @return This builder for chaining. */ public Builder clearInputUri() { - + inputUri_ = getDefaultInstance().getInputUri(); onChanged(); return this; } /** + * + * *
      * Required. The input URI of source file. This must be a Cloud Storage path
      * (`gs://...`).
      * 
* * 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; @@ -620,18 +667,20 @@ public Builder setInputUriBytes( private java.lang.Object mimeType_ = ""; /** + * + * *
      * Required. The format of the source file. Only "text/csv" is supported.
      * 
* * 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; @@ -640,20 +689,21 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Required. The format of the source file. Only "text/csv" is supported.
      * 
* * 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 { @@ -661,61 +711,68 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Required. The format of the source file. Only "text/csv" is supported.
      * 
* * 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; } /** + * + * *
      * Required. The format of the source file. Only "text/csv" is supported.
      * 
* * string mime_type = 2; + * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** + * + * *
      * Required. The format of the source file. Only "text/csv" is supported.
      * 
* * 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; } + @java.lang.Override - 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 +782,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.GcsSource) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GcsSource) private static final com.google.cloud.datalabeling.v1beta1.GcsSource DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.GcsSource(); } @@ -739,16 +796,16 @@ public static com.google.cloud.datalabeling.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; @@ -763,6 +820,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.GcsSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSourceOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSourceOrBuilder.java similarity index 59% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSourceOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSourceOrBuilder.java index f63ab65a..5243a9cf 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSourceOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GcsSourceOrBuilder.java @@ -1,51 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; -public interface GcsSourceOrBuilder extends +public interface GcsSourceOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GcsSource) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The input URI of source file. This must be a Cloud Storage path
    * (`gs://...`).
    * 
* * string input_uri = 1; + * * @return The inputUri. */ java.lang.String getInputUri(); /** + * + * *
    * Required. The input URI of source file. This must be a Cloud Storage path
    * (`gs://...`).
    * 
* * string input_uri = 1; + * * @return The bytes for inputUri. */ - com.google.protobuf.ByteString - getInputUriBytes(); + com.google.protobuf.ByteString getInputUriBytes(); /** + * + * *
    * Required. The format of the source file. Only "text/csv" is supported.
    * 
* * string mime_type = 2; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Required. The format of the source file. Only "text/csv" is supported.
    * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequest.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequest.java index 7060790c..ca6fb9db 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for GetAnnotatedDataset.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest} */ -public final class GetAnnotatedDatasetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetAnnotatedDatasetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) GetAnnotatedDatasetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetAnnotatedDatasetRequest.newBuilder() to construct. private GetAnnotatedDatasetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetAnnotatedDatasetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetAnnotatedDatasetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetAnnotatedDatasetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetAnnotatedDatasetRequest( 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) { @@ -73,36 +91,43 @@ private GetAnnotatedDatasetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.class, com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.class, + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the annotated dataset to get, format:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
    * {annotated_dataset_id}
    * 
* - * string 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 @@ -111,31 +136,33 @@ 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 annotated dataset to get, format:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
    * {annotated_dataset_id}
    * 
* - * string 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 { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,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(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,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.datalabeling.v1beta1.GetAnnotatedDatasetRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest other = (com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) obj; + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest other = + (com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +235,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest 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.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetAnnotatedDataset.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.class, com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.class, + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.newBuilder() @@ -326,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(); @@ -345,13 +381,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetAnnotatedDatasetRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.getDefaultInstance(); } @@ -366,7 +403,8 @@ public com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest result = new com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest(this); + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest result = + new com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -376,46 +414,50 @@ public com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest 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.datalabeling.v1beta1.GetAnnotatedDatasetRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest other) { + if (other + == com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -439,7 +481,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,20 +495,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the annotated dataset to get, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}
      * 
* - * string 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; @@ -473,22 +521,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the annotated dataset to get, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}
      * 
* - * string 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 { @@ -496,67 +547,80 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the annotated dataset to get, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}
      * 
* - * 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 annotated dataset to get, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}
      * 
* - * string 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 annotated dataset to get, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}
      * 
* - * 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); } @@ -566,30 +630,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) - private static final com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest(); } - public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAnnotatedDatasetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAnnotatedDatasetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAnnotatedDatasetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAnnotatedDatasetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -601,9 +667,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequestOrBuilder.java new file mode 100644 index 00000000..c3a93ffd --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotatedDatasetRequestOrBuilder.java @@ -0,0 +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/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface GetAnnotatedDatasetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetAnnotatedDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the annotated dataset to get, format:
+   * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
+   * {annotated_dataset_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the annotated dataset to get, format:
+   * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
+   * {annotated_dataset_id}
+   * 
+ * + * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequest.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequest.java index 0aeb583c..e7bb5f9b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for GetAnnotationSpecSet.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest} */ -public final class GetAnnotationSpecSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetAnnotationSpecSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) GetAnnotationSpecSetRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetAnnotationSpecSetRequest.newBuilder() to construct. private GetAnnotationSpecSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetAnnotationSpecSetRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetAnnotationSpecSetRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetAnnotationSpecSetRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetAnnotationSpecSetRequest( 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) { @@ -73,35 +91,42 @@ private GetAnnotationSpecSetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.class, com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.class, + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. AnnotationSpecSet resource name, format:
    * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
    * 
* - * string 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 @@ -110,30 +135,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. AnnotationSpecSet resource name, format:
    * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
    * 
* - * string 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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.datalabeling.v1beta1.GetAnnotationSpecSetRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest other = (com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) obj; + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest other = + (com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,134 +233,145 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest 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.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest 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.datalabeling.v1beta1.GetAnnotationSpecSetRequest + 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.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetAnnotationSpecSet.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.class, com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.class, + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.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(); @@ -343,13 +381,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetAnnotationSpecSetRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.getDefaultInstance(); } @@ -364,7 +403,8 @@ public com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest result = new com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest(this); + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest result = + new com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +414,50 @@ public com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest 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.datalabeling.v1beta1.GetAnnotationSpecSetRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest other) { + if (other + == com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +481,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +495,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. AnnotationSpecSet resource name, format:
      * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
      * 
* - * string 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; @@ -470,21 +520,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. AnnotationSpecSet resource name, format:
      * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
      * 
* - * string 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 { @@ -492,64 +545,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. AnnotationSpecSet resource name, format:
      * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
      * 
* - * 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. AnnotationSpecSet resource name, format:
      * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
      * 
* - * string 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. AnnotationSpecSet resource name, format:
      * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
      * 
* - * 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); } @@ -559,30 +625,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) - private static final com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest(); } - public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAnnotationSpecSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetAnnotationSpecSetRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAnnotationSpecSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetAnnotationSpecSetRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +662,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequestOrBuilder.java new file mode 100644 index 00000000..344c32f1 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetAnnotationSpecSetRequestOrBuilder.java @@ -0,0 +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/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface GetAnnotationSpecSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetAnnotationSpecSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. AnnotationSpecSet resource name, format:
+   * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. AnnotationSpecSet resource name, format:
+   * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
+   * 
+ * + * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequest.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequest.java index 40d7acdb..d3e58c4f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for GetDataItem.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetDataItemRequest} */ -public final class GetDataItemRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetDataItemRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.GetDataItemRequest) GetDataItemRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetDataItemRequest.newBuilder() to construct. private GetDataItemRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetDataItemRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetDataItemRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetDataItemRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetDataItemRequest( 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) { @@ -73,35 +91,42 @@ private GetDataItemRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.class, com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.class, + com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the data item to get, format:
    * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
    * 
* - * string 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 @@ -110,30 +135,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 name of the data item to get, format:
    * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
    * 
* - * string 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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.datalabeling.v1beta1.GetDataItemRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.GetDataItemRequest other = (com.google.cloud.datalabeling.v1beta1.GetDataItemRequest) obj; + com.google.cloud.datalabeling.v1beta1.GetDataItemRequest other = + (com.google.cloud.datalabeling.v1beta1.GetDataItemRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest 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.datalabeling.v1beta1.GetDataItemRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.GetDataItemRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.GetDataItemRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetDataItem.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetDataItemRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.GetDataItemRequest) com.google.cloud.datalabeling.v1beta1.GetDataItemRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.class, com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.class, + com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.newBuilder() @@ -324,16 +361,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 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetDataItemRequest_descriptor; } @java.lang.Override @@ -364,7 +400,8 @@ public com.google.cloud.datalabeling.v1beta1.GetDataItemRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GetDataItemRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.GetDataItemRequest result = new com.google.cloud.datalabeling.v1beta1.GetDataItemRequest(this); + com.google.cloud.datalabeling.v1beta1.GetDataItemRequest result = + new com.google.cloud.datalabeling.v1beta1.GetDataItemRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +411,39 @@ public com.google.cloud.datalabeling.v1beta1.GetDataItemRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.GetDataItemRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetDataItemRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetDataItemRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +451,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.GetDataItemRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.GetDataItemRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +476,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.GetDataItemRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.GetDataItemRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +489,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the data item to get, format:
      * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
      * 
* - * string 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; @@ -470,21 +514,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the data item to get, format:
      * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
      * 
* - * string 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 { @@ -492,64 +539,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the data item to get, format:
      * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
      * 
* - * 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 name of the data item to get, format:
      * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
      * 
* - * string 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 name of the data item to get, format:
      * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
      * 
* - * 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); } @@ -559,12 +619,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.GetDataItemRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetDataItemRequest) private static final com.google.cloud.datalabeling.v1beta1.GetDataItemRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.GetDataItemRequest(); } @@ -573,16 +633,16 @@ public static com.google.cloud.datalabeling.v1beta1.GetDataItemRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDataItemRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetDataItemRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDataItemRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetDataItemRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +657,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.GetDataItemRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequestOrBuilder.java new file mode 100644 index 00000000..d4abc0d2 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDataItemRequestOrBuilder.java @@ -0,0 +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/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface GetDataItemRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetDataItemRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the data item to get, format:
+   * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the data item to get, format:
+   * projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
+   * 
+ * + * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequest.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequest.java index b355dd6c..d46ba1d8 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for GetDataSet.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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,19 +70,20 @@ 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) { @@ -73,35 +91,42 @@ private GetDatasetRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.class, com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.class, + com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Dataset resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * string 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 @@ -110,30 +135,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 resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * string 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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.datalabeling.v1beta1.GetDatasetRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.GetDatasetRequest other = (com.google.cloud.datalabeling.v1beta1.GetDatasetRequest) obj; + com.google.cloud.datalabeling.v1beta1.GetDatasetRequest other = + (com.google.cloud.datalabeling.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; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.GetDatasetRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.GetDatasetRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.GetDatasetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.GetDatasetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.GetDatasetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.GetDatasetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.GetDatasetRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.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 GetDataSet.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.GetDatasetRequest) com.google.cloud.datalabeling.v1beta1.GetDatasetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.class, com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.class, + com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.newBuilder() @@ -324,16 +361,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 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetDatasetRequest_descriptor; } @java.lang.Override @@ -364,7 +400,8 @@ public com.google.cloud.datalabeling.v1beta1.GetDatasetRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GetDatasetRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.GetDatasetRequest result = new com.google.cloud.datalabeling.v1beta1.GetDatasetRequest(this); + com.google.cloud.datalabeling.v1beta1.GetDatasetRequest result = + new com.google.cloud.datalabeling.v1beta1.GetDatasetRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +411,39 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.GetDatasetRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetDatasetRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetDatasetRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +451,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.GetDatasetRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.GetDatasetRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +476,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.GetDatasetRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.GetDatasetRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +489,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * string 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; @@ -470,21 +514,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * string 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 { @@ -492,64 +539,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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 resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * string 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 resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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); } @@ -559,12 +619,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.GetDatasetRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetDatasetRequest) private static final com.google.cloud.datalabeling.v1beta1.GetDatasetRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.GetDatasetRequest(); } @@ -573,16 +633,16 @@ public static com.google.cloud.datalabeling.v1beta1.GetDatasetRequest getDefault 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; @@ -597,6 +657,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.GetDatasetRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequestOrBuilder.java new file mode 100644 index 00000000..d52a1a6b --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetDatasetRequestOrBuilder.java @@ -0,0 +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/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface GetDatasetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetDatasetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Dataset resource name, format:
+   * projects/{project_id}/datasets/{dataset_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Dataset resource name, format:
+   * projects/{project_id}/datasets/{dataset_id}
+   * 
+ * + * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequest.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequest.java index 42bb0f5f..38407442 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for GetEvaluationJob.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest} */ -public final class GetEvaluationJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetEvaluationJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) GetEvaluationJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetEvaluationJobRequest.newBuilder() to construct. private GetEvaluationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetEvaluationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetEvaluationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetEvaluationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetEvaluationJobRequest( 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) { @@ -73,35 +91,42 @@ private GetEvaluationJobRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.class, + com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the evaluation job. Format:
    * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string 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 @@ -110,30 +135,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. Name of the evaluation job. Format:
    * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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.datalabeling.v1beta1.GetEvaluationJobRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest other = (com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) obj; + com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest other = + (com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest 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.datalabeling.v1beta1.GetEvaluationJobRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetEvaluationJob.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.class, + com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.newBuilder() @@ -324,16 +361,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,13 +379,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationJobRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.getDefaultInstance(); } @@ -364,7 +401,8 @@ public com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest result = new com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest(this); + com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest result = + new com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +412,39 @@ public com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest 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.datalabeling.v1beta1.GetEvaluationJobRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +452,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +478,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +492,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the evaluation job. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string 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; @@ -470,21 +517,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the evaluation job. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string 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 { @@ -492,64 +542,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the evaluation job. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * 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 evaluation job. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string 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 evaluation job. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * 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); } @@ -559,12 +622,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) - private static final com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest(); } @@ -573,16 +637,16 @@ public static com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEvaluationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetEvaluationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEvaluationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetEvaluationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +661,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequestOrBuilder.java new file mode 100644 index 00000000..f79c6b2a --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationJobRequestOrBuilder.java @@ -0,0 +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/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface GetEvaluationJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetEvaluationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the evaluation job. Format:
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the evaluation job. Format:
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
+   * 
+ * + * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequest.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequest.java index 3de9a2b6..bc4b205c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for GetEvaluation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetEvaluationRequest} */ -public final class GetEvaluationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetEvaluationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.GetEvaluationRequest) GetEvaluationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetEvaluationRequest.newBuilder() to construct. private GetEvaluationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetEvaluationRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetEvaluationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetEvaluationRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetEvaluationRequest( 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) { @@ -73,35 +91,42 @@ private GetEvaluationRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.class, com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.class, + com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the evaluation. Format:
    * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
    * 
* - * string 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 @@ -110,30 +135,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. Name of the evaluation. Format:
    * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
    * 
* - * string 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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.datalabeling.v1beta1.GetEvaluationRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest other = (com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest) obj; + com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest other = + (com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest 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.datalabeling.v1beta1.GetEvaluationRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetEvaluation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetEvaluationRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.GetEvaluationRequest) com.google.cloud.datalabeling.v1beta1.GetEvaluationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.class, com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.class, + com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.newBuilder() @@ -324,16 +361,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 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetEvaluationRequest_descriptor; } @java.lang.Override @@ -364,7 +400,8 @@ public com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest result = new com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest(this); + com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest result = + new com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +411,39 @@ public com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +451,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +476,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +489,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the evaluation. Format:
      * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
      * 
* - * string 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; @@ -470,21 +514,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the evaluation. Format:
      * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
      * 
* - * string 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 { @@ -492,64 +539,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the evaluation. Format:
      * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
      * 
* - * 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 evaluation. Format:
      * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
      * 
* - * string 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 evaluation. Format:
      * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
      * 
* - * 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); } @@ -559,12 +619,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.GetEvaluationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetEvaluationRequest) private static final com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest(); } @@ -573,16 +633,16 @@ public static com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEvaluationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetEvaluationRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEvaluationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetEvaluationRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +657,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.GetEvaluationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequestOrBuilder.java new file mode 100644 index 00000000..1840f224 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetEvaluationRequestOrBuilder.java @@ -0,0 +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/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface GetEvaluationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetEvaluationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the evaluation. Format:
+   * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the evaluation. Format:
+   * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>'
+   * 
+ * + * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequest.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequest.java index 3d62b816..dfc4a065 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for GetExample
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetExampleRequest} */ -public final class GetExampleRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetExampleRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.GetExampleRequest) GetExampleRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetExampleRequest.newBuilder() to construct. private GetExampleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetExampleRequest() { name_ = ""; filter_ = ""; @@ -26,16 +44,15 @@ private GetExampleRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetExampleRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetExampleRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private GetExampleRequest( 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(); - filter_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + filter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,36 +99,43 @@ private GetExampleRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetExampleRequest.class, com.google.cloud.datalabeling.v1beta1.GetExampleRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetExampleRequest.class, + com.google.cloud.datalabeling.v1beta1.GetExampleRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of example, format:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
    * {annotated_dataset_id}/examples/{example_id}
    * 
* - * string 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 @@ -118,31 +144,33 @@ 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 example, format:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
    * {annotated_dataset_id}/examples/{example_id}
    * 
* - * string 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,6 +181,8 @@ public java.lang.String getName() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Optional. An expression for filtering Examples. Filter by
    * annotation_spec.display_name is supported. Format
@@ -160,6 +190,7 @@ public java.lang.String getName() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -168,14 +199,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; } } /** + * + * *
    * Optional. An expression for filtering Examples. Filter by
    * annotation_spec.display_name is supported. Format
@@ -183,16 +215,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -201,6 +232,7 @@ public java.lang.String getFilter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,8 +244,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_); } @@ -243,17 +274,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.datalabeling.v1beta1.GetExampleRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.GetExampleRequest other = (com.google.cloud.datalabeling.v1beta1.GetExampleRequest) obj; + com.google.cloud.datalabeling.v1beta1.GetExampleRequest other = + (com.google.cloud.datalabeling.v1beta1.GetExampleRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getFilter() - .equals(other.getFilter())) return false; + if (!getName().equals(other.getName())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -275,117 +305,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest 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.datalabeling.v1beta1.GetExampleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.GetExampleRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.GetExampleRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetExample
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetExampleRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.GetExampleRequest) com.google.cloud.datalabeling.v1beta1.GetExampleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetExampleRequest.class, com.google.cloud.datalabeling.v1beta1.GetExampleRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetExampleRequest.class, + com.google.cloud.datalabeling.v1beta1.GetExampleRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.GetExampleRequest.newBuilder() @@ -393,16 +433,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,9 +453,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetExampleRequest_descriptor; } @java.lang.Override @@ -435,7 +474,8 @@ public com.google.cloud.datalabeling.v1beta1.GetExampleRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GetExampleRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.GetExampleRequest result = new com.google.cloud.datalabeling.v1beta1.GetExampleRequest(this); + com.google.cloud.datalabeling.v1beta1.GetExampleRequest result = + new com.google.cloud.datalabeling.v1beta1.GetExampleRequest(this); result.name_ = name_; result.filter_ = filter_; onBuilt(); @@ -446,38 +486,39 @@ public com.google.cloud.datalabeling.v1beta1.GetExampleRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.GetExampleRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetExampleRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetExampleRequest) other); } else { super.mergeFrom(other); return this; @@ -485,7 +526,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.GetExampleRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.GetExampleRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.GetExampleRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -513,7 +555,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.GetExampleRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.GetExampleRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -525,20 +568,24 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of example, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}/examples/{example_id}
      * 
* - * string 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; @@ -547,22 +594,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of example, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}/examples/{example_id}
      * 
* - * string 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 { @@ -570,60 +620,73 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of example, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}/examples/{example_id}
      * 
* - * 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 example, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}/examples/{example_id}
      * 
* - * string 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 example, format:
      * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
      * {annotated_dataset_id}/examples/{example_id}
      * 
* - * 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; @@ -631,6 +694,8 @@ public Builder setNameBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. An expression for filtering Examples. Filter by
      * annotation_spec.display_name is supported. Format
@@ -638,13 +703,13 @@ public Builder setNameBytes(
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -653,6 +718,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. An expression for filtering Examples. Filter by
      * annotation_spec.display_name is supported. Format
@@ -660,15 +727,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -676,6 +742,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. An expression for filtering Examples. Filter by
      * annotation_spec.display_name is supported. Format
@@ -683,20 +751,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. An expression for filtering Examples. Filter by
      * annotation_spec.display_name is supported. Format
@@ -704,15 +774,18 @@ public Builder setFilter(
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Optional. An expression for filtering Examples. Filter by
      * annotation_spec.display_name is supported. Format
@@ -720,23 +793,23 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -746,12 +819,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.GetExampleRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetExampleRequest) private static final com.google.cloud.datalabeling.v1beta1.GetExampleRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.GetExampleRequest(); } @@ -760,16 +833,16 @@ public static com.google.cloud.datalabeling.v1beta1.GetExampleRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetExampleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetExampleRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetExampleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetExampleRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -784,6 +857,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.GetExampleRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequestOrBuilder.java similarity index 58% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequestOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequestOrBuilder.java index 6c513dd5..e97e59af 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequestOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetExampleRequestOrBuilder.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface GetExampleRequestOrBuilder extends +public interface GetExampleRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetExampleRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of example, format:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
    * {annotated_dataset_id}/examples/{example_id}
    * 
* - * string 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 example, format:
    * projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
    * {annotated_dataset_id}/examples/{example_id}
    * 
* - * string 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(); /** + * + * *
    * Optional. An expression for filtering Examples. Filter by
    * annotation_spec.display_name is supported. Format
@@ -39,10 +66,13 @@ public interface GetExampleRequestOrBuilder extends
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. An expression for filtering Examples. Filter by
    * annotation_spec.display_name is supported. Format
@@ -50,8 +80,8 @@ public interface GetExampleRequestOrBuilder extends
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequest.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequest.java index 6dea9130..7ad54fbd 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for GetInstruction.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetInstructionRequest} */ -public final class GetInstructionRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetInstructionRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.GetInstructionRequest) GetInstructionRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetInstructionRequest.newBuilder() to construct. private GetInstructionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetInstructionRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetInstructionRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetInstructionRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetInstructionRequest( 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) { @@ -73,35 +91,42 @@ private GetInstructionRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.class, com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.class, + com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Instruction resource name, format:
    * projects/{project_id}/instructions/{instruction_id}
    * 
* - * string 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 @@ -110,30 +135,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. Instruction resource name, format:
    * projects/{project_id}/instructions/{instruction_id}
    * 
* - * string 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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.datalabeling.v1beta1.GetInstructionRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.GetInstructionRequest other = (com.google.cloud.datalabeling.v1beta1.GetInstructionRequest) obj; + com.google.cloud.datalabeling.v1beta1.GetInstructionRequest other = + (com.google.cloud.datalabeling.v1beta1.GetInstructionRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest 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.datalabeling.v1beta1.GetInstructionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.GetInstructionRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.GetInstructionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 GetInstruction.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.GetInstructionRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.GetInstructionRequest) com.google.cloud.datalabeling.v1beta1.GetInstructionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.class, com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.class, + com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.newBuilder() @@ -324,16 +361,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 +379,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_GetInstructionRequest_descriptor; } @java.lang.Override @@ -364,7 +400,8 @@ public com.google.cloud.datalabeling.v1beta1.GetInstructionRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GetInstructionRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.GetInstructionRequest result = new com.google.cloud.datalabeling.v1beta1.GetInstructionRequest(this); + com.google.cloud.datalabeling.v1beta1.GetInstructionRequest result = + new com.google.cloud.datalabeling.v1beta1.GetInstructionRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,38 +411,39 @@ public com.google.cloud.datalabeling.v1beta1.GetInstructionRequest buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.GetInstructionRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetInstructionRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.GetInstructionRequest) other); } else { super.mergeFrom(other); return this; @@ -413,7 +451,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.GetInstructionRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.GetInstructionRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +476,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.GetInstructionRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.GetInstructionRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +489,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_id}
      * 
* - * string 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; @@ -470,21 +514,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_id}
      * 
* - * string 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 { @@ -492,64 +539,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_id}
      * 
* - * 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. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_id}
      * 
* - * string 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. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_id}
      * 
* - * 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); } @@ -559,12 +619,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.GetInstructionRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.GetInstructionRequest) private static final com.google.cloud.datalabeling.v1beta1.GetInstructionRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.GetInstructionRequest(); } @@ -573,16 +633,16 @@ public static com.google.cloud.datalabeling.v1beta1.GetInstructionRequest getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetInstructionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetInstructionRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetInstructionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetInstructionRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -597,6 +657,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.GetInstructionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequestOrBuilder.java new file mode 100644 index 00000000..9d629047 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/GetInstructionRequestOrBuilder.java @@ -0,0 +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/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface GetInstructionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.GetInstructionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Instruction resource name, format:
+   * projects/{project_id}/instructions/{instruction_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Instruction resource name, format:
+   * projects/{project_id}/instructions/{instruction_id}
+   * 
+ * + * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfig.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfig.java similarity index 74% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfig.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfig.java index 9e732dfc..48d1b0b6 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfig.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Configuration for how human labeling task should be done.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.HumanAnnotationConfig} */ -public final class HumanAnnotationConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class HumanAnnotationConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.HumanAnnotationConfig) HumanAnnotationConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HumanAnnotationConfig.newBuilder() to construct. private HumanAnnotationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private HumanAnnotationConfig() { instruction_ = ""; annotatedDatasetDisplayName_ = ""; @@ -31,16 +49,15 @@ private HumanAnnotationConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HumanAnnotationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private HumanAnnotationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -60,76 +77,85 @@ private HumanAnnotationConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - instruction_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - annotatedDatasetDisplayName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + instruction_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - annotatedDatasetDescription_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + annotatedDatasetDisplayName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - labelGroup_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + annotatedDatasetDescription_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - case 48: { + labelGroup_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - replicaCount_ = input.readInt32(); - break; - } - case 58: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (questionDuration_ != null) { - subBuilder = questionDuration_.toBuilder(); + languageCode_ = s; + break; } - questionDuration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(questionDuration_); - questionDuration_ = subBuilder.buildPartial(); + case 48: + { + replicaCount_ = input.readInt32(); + break; } - - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - contributorEmails_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 58: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (questionDuration_ != null) { + subBuilder = questionDuration_.toBuilder(); + } + questionDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(questionDuration_); + questionDuration_ = subBuilder.buildPartial(); + } + + break; } - contributorEmails_.add(s); - break; - } - case 82: { - java.lang.String s = input.readStringRequireUtf8(); + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + contributorEmails_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + contributorEmails_.add(s); + break; + } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); - userEmailAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + userEmailAddress_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -137,8 +163,7 @@ private HumanAnnotationConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { contributorEmails_ = contributorEmails_.getUnmodifiableView(); @@ -147,27 +172,33 @@ private HumanAnnotationConfig( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.class, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.class, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder.class); } public static final int INSTRUCTION_FIELD_NUMBER = 1; private volatile java.lang.Object instruction_; /** + * + * *
    * Required. Instruction resource name.
    * 
* * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instruction. */ @java.lang.Override @@ -176,29 +207,29 @@ public java.lang.String getInstruction() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instruction_ = s; return s; } } /** + * + * *
    * Required. Instruction resource name.
    * 
* * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for instruction. */ @java.lang.Override - public com.google.protobuf.ByteString - getInstructionBytes() { + public com.google.protobuf.ByteString getInstructionBytes() { java.lang.Object ref = instruction_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instruction_ = b; return b; } else { @@ -209,13 +240,17 @@ public java.lang.String getInstruction() { public static final int ANNOTATED_DATASET_DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object annotatedDatasetDisplayName_; /** + * + * *
    * Required. A human-readable name for AnnotatedDataset defined by
    * users. Maximum of 64 characters
    * .
    * 
* - * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The annotatedDatasetDisplayName. */ @java.lang.Override @@ -224,31 +259,32 @@ public java.lang.String getAnnotatedDatasetDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotatedDatasetDisplayName_ = s; return s; } } /** + * + * *
    * Required. A human-readable name for AnnotatedDataset defined by
    * users. Maximum of 64 characters
    * .
    * 
* - * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The bytes for annotatedDatasetDisplayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getAnnotatedDatasetDisplayNameBytes() { + public com.google.protobuf.ByteString getAnnotatedDatasetDisplayNameBytes() { java.lang.Object ref = annotatedDatasetDisplayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotatedDatasetDisplayName_ = b; return b; } else { @@ -259,12 +295,16 @@ public java.lang.String getAnnotatedDatasetDisplayName() { public static final int ANNOTATED_DATASET_DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object annotatedDatasetDescription_; /** + * + * *
    * Optional. A human-readable description for AnnotatedDataset.
    * The description can be up to 10000 characters long.
    * 
* - * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The annotatedDatasetDescription. */ @java.lang.Override @@ -273,30 +313,31 @@ public java.lang.String getAnnotatedDatasetDescription() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotatedDatasetDescription_ = s; return s; } } /** + * + * *
    * Optional. A human-readable description for AnnotatedDataset.
    * The description can be up to 10000 characters long.
    * 
* - * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bytes for annotatedDatasetDescription. */ @java.lang.Override - public com.google.protobuf.ByteString - getAnnotatedDatasetDescriptionBytes() { + public com.google.protobuf.ByteString getAnnotatedDatasetDescriptionBytes() { java.lang.Object ref = annotatedDatasetDescription_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotatedDatasetDescription_ = b; return b; } else { @@ -307,12 +348,15 @@ public java.lang.String getAnnotatedDatasetDescription() { public static final int LABEL_GROUP_FIELD_NUMBER = 4; private volatile java.lang.Object labelGroup_; /** + * + * *
    * Optional. A human-readable label used to logically group labeling tasks.
    * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`.
    * 
* * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The labelGroup. */ @java.lang.Override @@ -321,30 +365,30 @@ public java.lang.String getLabelGroup() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); labelGroup_ = s; return s; } } /** + * + * *
    * Optional. A human-readable label used to logically group labeling tasks.
    * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`.
    * 
* * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for labelGroup. */ @java.lang.Override - public com.google.protobuf.ByteString - getLabelGroupBytes() { + public com.google.protobuf.ByteString getLabelGroupBytes() { java.lang.Object ref = labelGroup_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); labelGroup_ = b; return b; } else { @@ -355,6 +399,8 @@ public java.lang.String getLabelGroup() { public static final int LANGUAGE_CODE_FIELD_NUMBER = 5; private volatile java.lang.Object languageCode_; /** + * + * *
    * Optional. The Language of this question, as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -364,6 +410,7 @@ public java.lang.String getLabelGroup() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The languageCode. */ @java.lang.Override @@ -372,14 +419,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
    * Optional. The Language of this question, as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -389,16 +437,15 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -409,6 +456,8 @@ public java.lang.String getLanguageCode() { public static final int REPLICA_COUNT_FIELD_NUMBER = 6; private int replicaCount_; /** + * + * *
    * Optional. Replication of questions. Each question will be sent to up to
    * this number of contributors to label. Aggregated answers will be returned.
@@ -417,6 +466,7 @@ public java.lang.String getLanguageCode() {
    * 
* * int32 replica_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The replicaCount. */ @java.lang.Override @@ -427,12 +477,17 @@ public int getReplicaCount() { public static final int QUESTION_DURATION_FIELD_NUMBER = 7; private com.google.protobuf.Duration questionDuration_; /** + * + * *
    * Optional. Maximum duration for contributors to answer a question. Maximum
    * is 3600 seconds. Default is 3600 seconds.
    * 
* - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the questionDuration field is set. */ @java.lang.Override @@ -440,25 +495,36 @@ public boolean hasQuestionDuration() { return questionDuration_ != null; } /** + * + * *
    * Optional. Maximum duration for contributors to answer a question. Maximum
    * is 3600 seconds. Default is 3600 seconds.
    * 
* - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The questionDuration. */ @java.lang.Override public com.google.protobuf.Duration getQuestionDuration() { - return questionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : questionDuration_; + return questionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : questionDuration_; } /** + * + * *
    * Optional. Maximum duration for contributors to answer a question. Maximum
    * is 3600 seconds. Default is 3600 seconds.
    * 
* - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getQuestionDurationOrBuilder() { @@ -468,6 +534,8 @@ public com.google.protobuf.DurationOrBuilder getQuestionDurationOrBuilder() { public static final int CONTRIBUTOR_EMAILS_FIELD_NUMBER = 9; private com.google.protobuf.LazyStringList contributorEmails_; /** + * + * *
    * Optional. If you want your own labeling contributors to manage and work on
    * this labeling request, you can set these contributors here. We will give
@@ -477,13 +545,15 @@ public com.google.protobuf.DurationOrBuilder getQuestionDurationOrBuilder() {
    * 
* * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the contributorEmails. */ - public com.google.protobuf.ProtocolStringList - getContributorEmailsList() { + public com.google.protobuf.ProtocolStringList getContributorEmailsList() { return contributorEmails_; } /** + * + * *
    * Optional. If you want your own labeling contributors to manage and work on
    * this labeling request, you can set these contributors here. We will give
@@ -493,12 +563,15 @@ public com.google.protobuf.DurationOrBuilder getQuestionDurationOrBuilder() {
    * 
* * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of contributorEmails. */ public int getContributorEmailsCount() { return contributorEmails_.size(); } /** + * + * *
    * Optional. If you want your own labeling contributors to manage and work on
    * this labeling request, you can set these contributors here. We will give
@@ -508,6 +581,7 @@ public int getContributorEmailsCount() {
    * 
* * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The contributorEmails at the given index. */ @@ -515,6 +589,8 @@ public java.lang.String getContributorEmails(int index) { return contributorEmails_.get(index); } /** + * + * *
    * Optional. If you want your own labeling contributors to manage and work on
    * this labeling request, you can set these contributors here. We will give
@@ -524,23 +600,26 @@ public java.lang.String getContributorEmails(int index) {
    * 
* * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the contributorEmails at the given index. */ - public com.google.protobuf.ByteString - getContributorEmailsBytes(int index) { + public com.google.protobuf.ByteString getContributorEmailsBytes(int index) { return contributorEmails_.getByteString(index); } public static final int USER_EMAIL_ADDRESS_FIELD_NUMBER = 10; private volatile java.lang.Object userEmailAddress_; /** + * + * *
    * Email of the user who started the labeling task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 10; + * * @return The userEmailAddress. */ @java.lang.Override @@ -549,30 +628,30 @@ public java.lang.String getUserEmailAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userEmailAddress_ = s; return s; } } /** + * + * *
    * Email of the user who started the labeling task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 10; + * * @return The bytes for userEmailAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getUserEmailAddressBytes() { + public com.google.protobuf.ByteString getUserEmailAddressBytes() { java.lang.Object ref = userEmailAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userEmailAddress_ = b; return b; } else { @@ -581,6 +660,7 @@ public java.lang.String getUserEmailAddress() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -592,8 +672,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(instruction_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instruction_); } @@ -634,10 +713,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instruction_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotatedDatasetDisplayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, annotatedDatasetDisplayName_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(2, annotatedDatasetDisplayName_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotatedDatasetDescription_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, annotatedDatasetDescription_); + size += + com.google.protobuf.GeneratedMessageV3.computeStringSize(3, annotatedDatasetDescription_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(labelGroup_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, labelGroup_); @@ -646,12 +727,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, languageCode_); } if (replicaCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, replicaCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, replicaCount_); } if (questionDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getQuestionDuration()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getQuestionDuration()); } { int dataSize = 0; @@ -672,34 +751,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.datalabeling.v1beta1.HumanAnnotationConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig other = (com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig) obj; - - if (!getInstruction() - .equals(other.getInstruction())) return false; - if (!getAnnotatedDatasetDisplayName() - .equals(other.getAnnotatedDatasetDisplayName())) return false; - if (!getAnnotatedDatasetDescription() - .equals(other.getAnnotatedDatasetDescription())) return false; - if (!getLabelGroup() - .equals(other.getLabelGroup())) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; - if (getReplicaCount() - != other.getReplicaCount()) return false; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig other = + (com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig) obj; + + if (!getInstruction().equals(other.getInstruction())) return false; + if (!getAnnotatedDatasetDisplayName().equals(other.getAnnotatedDatasetDisplayName())) + return false; + if (!getAnnotatedDatasetDescription().equals(other.getAnnotatedDatasetDescription())) + return false; + if (!getLabelGroup().equals(other.getLabelGroup())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (getReplicaCount() != other.getReplicaCount()) return false; if (hasQuestionDuration() != other.hasQuestionDuration()) return false; if (hasQuestionDuration()) { - if (!getQuestionDuration() - .equals(other.getQuestionDuration())) return false; + if (!getQuestionDuration().equals(other.getQuestionDuration())) return false; } - if (!getContributorEmailsList() - .equals(other.getContributorEmailsList())) return false; - if (!getUserEmailAddress() - .equals(other.getUserEmailAddress())) return false; + if (!getContributorEmailsList().equals(other.getContributorEmailsList())) return false; + if (!getUserEmailAddress().equals(other.getUserEmailAddress())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -739,117 +812,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig 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.datalabeling.v1beta1.HumanAnnotationConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Configuration for how human labeling task should be done.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.HumanAnnotationConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.HumanAnnotationConfig) com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.class, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.class, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder() @@ -857,16 +940,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(); @@ -896,9 +978,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_descriptor; } @java.lang.Override @@ -917,7 +999,8 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig result = new com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig(this); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig result = + new com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig(this); int from_bitField0_ = bitField0_; result.instruction_ = instruction_; result.annotatedDatasetDisplayName_ = annotatedDatasetDisplayName_; @@ -944,38 +1027,39 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig) other); } else { super.mergeFrom(other); return this; @@ -983,7 +1067,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig other) { - if (other == com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance()) + return this; if (!other.getInstruction().isEmpty()) { instruction_ = other.instruction_; onChanged(); @@ -1043,7 +1128,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1052,22 +1138,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object instruction_ = ""; /** + * + * *
      * Required. Instruction resource name.
      * 
* * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instruction. */ public java.lang.String getInstruction() { java.lang.Object ref = instruction_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instruction_ = s; return s; @@ -1076,20 +1165,21 @@ public java.lang.String getInstruction() { } } /** + * + * *
      * Required. Instruction resource name.
      * 
* * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for instruction. */ - public com.google.protobuf.ByteString - getInstructionBytes() { + public com.google.protobuf.ByteString getInstructionBytes() { java.lang.Object ref = instruction_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instruction_ = b; return b; } else { @@ -1097,54 +1187,61 @@ public java.lang.String getInstruction() { } } /** + * + * *
      * Required. Instruction resource name.
      * 
* * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The instruction to set. * @return This builder for chaining. */ - public Builder setInstruction( - java.lang.String value) { + public Builder setInstruction(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instruction_ = value; onChanged(); return this; } /** + * + * *
      * Required. Instruction resource name.
      * 
* * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearInstruction() { - + instruction_ = getDefaultInstance().getInstruction(); onChanged(); return this; } /** + * + * *
      * Required. Instruction resource name.
      * 
* * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for instruction to set. * @return This builder for chaining. */ - public Builder setInstructionBytes( - com.google.protobuf.ByteString value) { + public Builder setInstructionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instruction_ = value; onChanged(); return this; @@ -1152,20 +1249,23 @@ public Builder setInstructionBytes( private java.lang.Object annotatedDatasetDisplayName_ = ""; /** + * + * *
      * Required. A human-readable name for AnnotatedDataset defined by
      * users. Maximum of 64 characters
      * .
      * 
* - * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The annotatedDatasetDisplayName. */ public java.lang.String getAnnotatedDatasetDisplayName() { java.lang.Object ref = annotatedDatasetDisplayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotatedDatasetDisplayName_ = s; return s; @@ -1174,22 +1274,24 @@ public java.lang.String getAnnotatedDatasetDisplayName() { } } /** + * + * *
      * Required. A human-readable name for AnnotatedDataset defined by
      * users. Maximum of 64 characters
      * .
      * 
* - * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The bytes for annotatedDatasetDisplayName. */ - public com.google.protobuf.ByteString - getAnnotatedDatasetDisplayNameBytes() { + public com.google.protobuf.ByteString getAnnotatedDatasetDisplayNameBytes() { java.lang.Object ref = annotatedDatasetDisplayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotatedDatasetDisplayName_ = b; return b; } else { @@ -1197,60 +1299,70 @@ public java.lang.String getAnnotatedDatasetDisplayName() { } } /** + * + * *
      * Required. A human-readable name for AnnotatedDataset defined by
      * users. Maximum of 64 characters
      * .
      * 
* - * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The annotatedDatasetDisplayName to set. * @return This builder for chaining. */ - public Builder setAnnotatedDatasetDisplayName( - java.lang.String value) { + public Builder setAnnotatedDatasetDisplayName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotatedDatasetDisplayName_ = value; onChanged(); return this; } /** + * + * *
      * Required. A human-readable name for AnnotatedDataset defined by
      * users. Maximum of 64 characters
      * .
      * 
* - * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearAnnotatedDatasetDisplayName() { - + annotatedDatasetDisplayName_ = getDefaultInstance().getAnnotatedDatasetDisplayName(); onChanged(); return this; } /** + * + * *
      * Required. A human-readable name for AnnotatedDataset defined by
      * users. Maximum of 64 characters
      * .
      * 
* - * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The bytes for annotatedDatasetDisplayName to set. * @return This builder for chaining. */ - public Builder setAnnotatedDatasetDisplayNameBytes( - com.google.protobuf.ByteString value) { + public Builder setAnnotatedDatasetDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotatedDatasetDisplayName_ = value; onChanged(); return this; @@ -1258,19 +1370,22 @@ public Builder setAnnotatedDatasetDisplayNameBytes( private java.lang.Object annotatedDatasetDescription_ = ""; /** + * + * *
      * Optional. A human-readable description for AnnotatedDataset.
      * The description can be up to 10000 characters long.
      * 
* - * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The annotatedDatasetDescription. */ public java.lang.String getAnnotatedDatasetDescription() { java.lang.Object ref = annotatedDatasetDescription_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotatedDatasetDescription_ = s; return s; @@ -1279,21 +1394,23 @@ public java.lang.String getAnnotatedDatasetDescription() { } } /** + * + * *
      * Optional. A human-readable description for AnnotatedDataset.
      * The description can be up to 10000 characters long.
      * 
* - * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bytes for annotatedDatasetDescription. */ - public com.google.protobuf.ByteString - getAnnotatedDatasetDescriptionBytes() { + public com.google.protobuf.ByteString getAnnotatedDatasetDescriptionBytes() { java.lang.Object ref = annotatedDatasetDescription_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotatedDatasetDescription_ = b; return b; } else { @@ -1301,57 +1418,67 @@ public java.lang.String getAnnotatedDatasetDescription() { } } /** + * + * *
      * Optional. A human-readable description for AnnotatedDataset.
      * The description can be up to 10000 characters long.
      * 
* - * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The annotatedDatasetDescription to set. * @return This builder for chaining. */ - public Builder setAnnotatedDatasetDescription( - java.lang.String value) { + public Builder setAnnotatedDatasetDescription(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotatedDatasetDescription_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A human-readable description for AnnotatedDataset.
      * The description can be up to 10000 characters long.
      * 
* - * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearAnnotatedDatasetDescription() { - + annotatedDatasetDescription_ = getDefaultInstance().getAnnotatedDatasetDescription(); onChanged(); return this; } /** + * + * *
      * Optional. A human-readable description for AnnotatedDataset.
      * The description can be up to 10000 characters long.
      * 
* - * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes for annotatedDatasetDescription to set. * @return This builder for chaining. */ - public Builder setAnnotatedDatasetDescriptionBytes( - com.google.protobuf.ByteString value) { + public Builder setAnnotatedDatasetDescriptionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotatedDatasetDescription_ = value; onChanged(); return this; @@ -1359,19 +1486,21 @@ public Builder setAnnotatedDatasetDescriptionBytes( private java.lang.Object labelGroup_ = ""; /** + * + * *
      * Optional. A human-readable label used to logically group labeling tasks.
      * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`.
      * 
* * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The labelGroup. */ public java.lang.String getLabelGroup() { java.lang.Object ref = labelGroup_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); labelGroup_ = s; return s; @@ -1380,21 +1509,22 @@ public java.lang.String getLabelGroup() { } } /** + * + * *
      * Optional. A human-readable label used to logically group labeling tasks.
      * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`.
      * 
* * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for labelGroup. */ - public com.google.protobuf.ByteString - getLabelGroupBytes() { + public com.google.protobuf.ByteString getLabelGroupBytes() { java.lang.Object ref = labelGroup_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); labelGroup_ = b; return b; } else { @@ -1402,57 +1532,64 @@ public java.lang.String getLabelGroup() { } } /** + * + * *
      * Optional. A human-readable label used to logically group labeling tasks.
      * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`.
      * 
* * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The labelGroup to set. * @return This builder for chaining. */ - public Builder setLabelGroup( - java.lang.String value) { + public Builder setLabelGroup(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + labelGroup_ = value; onChanged(); return this; } /** + * + * *
      * Optional. A human-readable label used to logically group labeling tasks.
      * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`.
      * 
* * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLabelGroup() { - + labelGroup_ = getDefaultInstance().getLabelGroup(); onChanged(); return this; } /** + * + * *
      * Optional. A human-readable label used to logically group labeling tasks.
      * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`.
      * 
* * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for labelGroup to set. * @return This builder for chaining. */ - public Builder setLabelGroupBytes( - com.google.protobuf.ByteString value) { + public Builder setLabelGroupBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + labelGroup_ = value; onChanged(); return this; @@ -1460,6 +1597,8 @@ public Builder setLabelGroupBytes( private java.lang.Object languageCode_ = ""; /** + * + * *
      * Optional. The Language of this question, as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -1469,13 +1608,13 @@ public Builder setLabelGroupBytes(
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -1484,6 +1623,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Optional. The Language of this question, as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -1493,15 +1634,14 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -1509,6 +1649,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * Optional. The Language of this question, as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -1518,20 +1660,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The Language of this question, as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -1541,15 +1685,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * Optional. The Language of this question, as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -1559,23 +1706,25 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = value; onChanged(); return this; } - private int replicaCount_ ; + private int replicaCount_; /** + * + * *
      * Optional. Replication of questions. Each question will be sent to up to
      * this number of contributors to label. Aggregated answers will be returned.
@@ -1584,6 +1733,7 @@ public Builder setLanguageCodeBytes(
      * 
* * int32 replica_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The replicaCount. */ @java.lang.Override @@ -1591,6 +1741,8 @@ public int getReplicaCount() { return replicaCount_; } /** + * + * *
      * Optional. Replication of questions. Each question will be sent to up to
      * this number of contributors to label. Aggregated answers will be returned.
@@ -1599,16 +1751,19 @@ public int getReplicaCount() {
      * 
* * int32 replica_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The replicaCount to set. * @return This builder for chaining. */ public Builder setReplicaCount(int value) { - + replicaCount_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Replication of questions. Each question will be sent to up to
      * this number of contributors to label. Aggregated answers will be returned.
@@ -1617,10 +1772,11 @@ public Builder setReplicaCount(int value) {
      * 
* * int32 replica_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearReplicaCount() { - + replicaCount_ = 0; onChanged(); return this; @@ -1628,42 +1784,61 @@ public Builder clearReplicaCount() { private com.google.protobuf.Duration questionDuration_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> questionDurationBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + questionDurationBuilder_; /** + * + * *
      * Optional. Maximum duration for contributors to answer a question. Maximum
      * is 3600 seconds. Default is 3600 seconds.
      * 
* - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the questionDuration field is set. */ public boolean hasQuestionDuration() { return questionDurationBuilder_ != null || questionDuration_ != null; } /** + * + * *
      * Optional. Maximum duration for contributors to answer a question. Maximum
      * is 3600 seconds. Default is 3600 seconds.
      * 
* - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The questionDuration. */ public com.google.protobuf.Duration getQuestionDuration() { if (questionDurationBuilder_ == null) { - return questionDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : questionDuration_; + return questionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : questionDuration_; } else { return questionDurationBuilder_.getMessage(); } } /** + * + * *
      * Optional. Maximum duration for contributors to answer a question. Maximum
      * is 3600 seconds. Default is 3600 seconds.
      * 
* - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setQuestionDuration(com.google.protobuf.Duration value) { if (questionDurationBuilder_ == null) { @@ -1679,15 +1854,18 @@ public Builder setQuestionDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. Maximum duration for contributors to answer a question. Maximum
      * is 3600 seconds. Default is 3600 seconds.
      * 
* - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setQuestionDuration( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setQuestionDuration(com.google.protobuf.Duration.Builder builderForValue) { if (questionDurationBuilder_ == null) { questionDuration_ = builderForValue.build(); onChanged(); @@ -1698,18 +1876,24 @@ public Builder setQuestionDuration( return this; } /** + * + * *
      * Optional. Maximum duration for contributors to answer a question. Maximum
      * is 3600 seconds. Default is 3600 seconds.
      * 
* - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeQuestionDuration(com.google.protobuf.Duration value) { if (questionDurationBuilder_ == null) { if (questionDuration_ != null) { questionDuration_ = - com.google.protobuf.Duration.newBuilder(questionDuration_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(questionDuration_) + .mergeFrom(value) + .buildPartial(); } else { questionDuration_ = value; } @@ -1721,12 +1905,16 @@ public Builder mergeQuestionDuration(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Optional. Maximum duration for contributors to answer a question. Maximum
      * is 3600 seconds. Default is 3600 seconds.
      * 
* - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearQuestionDuration() { if (questionDurationBuilder_ == null) { @@ -1740,64 +1928,84 @@ public Builder clearQuestionDuration() { return this; } /** + * + * *
      * Optional. Maximum duration for contributors to answer a question. Maximum
      * is 3600 seconds. Default is 3600 seconds.
      * 
* - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.Duration.Builder getQuestionDurationBuilder() { - + onChanged(); return getQuestionDurationFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Maximum duration for contributors to answer a question. Maximum
      * is 3600 seconds. Default is 3600 seconds.
      * 
* - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.DurationOrBuilder getQuestionDurationOrBuilder() { if (questionDurationBuilder_ != null) { return questionDurationBuilder_.getMessageOrBuilder(); } else { - return questionDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : questionDuration_; + return questionDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : questionDuration_; } } /** + * + * *
      * Optional. Maximum duration for contributors to answer a question. Maximum
      * is 3600 seconds. Default is 3600 seconds.
      * 
* - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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> getQuestionDurationFieldBuilder() { if (questionDurationBuilder_ == null) { - questionDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getQuestionDuration(), - getParentForChildren(), - isClean()); + questionDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getQuestionDuration(), getParentForChildren(), isClean()); questionDuration_ = null; } return questionDurationBuilder_; } - private com.google.protobuf.LazyStringList contributorEmails_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList contributorEmails_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureContributorEmailsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { contributorEmails_ = new com.google.protobuf.LazyStringArrayList(contributorEmails_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Optional. If you want your own labeling contributors to manage and work on
      * this labeling request, you can set these contributors here. We will give
@@ -1806,14 +2014,17 @@ private void ensureContributorEmailsIsMutable() {
      * https://crowd-compute.appspot.com/
      * 
* - * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return A list containing the contributorEmails. */ - public com.google.protobuf.ProtocolStringList - getContributorEmailsList() { + public com.google.protobuf.ProtocolStringList getContributorEmailsList() { return contributorEmails_.getUnmodifiableView(); } /** + * + * *
      * Optional. If you want your own labeling contributors to manage and work on
      * this labeling request, you can set these contributors here. We will give
@@ -1822,13 +2033,17 @@ private void ensureContributorEmailsIsMutable() {
      * https://crowd-compute.appspot.com/
      * 
* - * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The count of contributorEmails. */ public int getContributorEmailsCount() { return contributorEmails_.size(); } /** + * + * *
      * Optional. If you want your own labeling contributors to manage and work on
      * this labeling request, you can set these contributors here. We will give
@@ -1837,7 +2052,9 @@ public int getContributorEmailsCount() {
      * https://crowd-compute.appspot.com/
      * 
* - * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the element to return. * @return The contributorEmails at the given index. */ @@ -1845,6 +2062,8 @@ public java.lang.String getContributorEmails(int index) { return contributorEmails_.get(index); } /** + * + * *
      * Optional. If you want your own labeling contributors to manage and work on
      * this labeling request, you can set these contributors here. We will give
@@ -1853,15 +2072,18 @@ public java.lang.String getContributorEmails(int index) {
      * https://crowd-compute.appspot.com/
      * 
* - * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index of the value to return. * @return The bytes of the contributorEmails at the given index. */ - public com.google.protobuf.ByteString - getContributorEmailsBytes(int index) { + public com.google.protobuf.ByteString getContributorEmailsBytes(int index) { return contributorEmails_.getByteString(index); } /** + * + * *
      * Optional. If you want your own labeling contributors to manage and work on
      * this labeling request, you can set these contributors here. We will give
@@ -1870,22 +2092,25 @@ public java.lang.String getContributorEmails(int index) {
      * https://crowd-compute.appspot.com/
      * 
* - * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param index The index to set the value at. * @param value The contributorEmails to set. * @return This builder for chaining. */ - public Builder setContributorEmails( - int index, java.lang.String value) { + public Builder setContributorEmails(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureContributorEmailsIsMutable(); + throw new NullPointerException(); + } + ensureContributorEmailsIsMutable(); contributorEmails_.set(index, value); onChanged(); return this; } /** + * + * *
      * Optional. If you want your own labeling contributors to manage and work on
      * this labeling request, you can set these contributors here. We will give
@@ -1894,21 +2119,24 @@ public Builder setContributorEmails(
      * https://crowd-compute.appspot.com/
      * 
* - * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The contributorEmails to add. * @return This builder for chaining. */ - public Builder addContributorEmails( - java.lang.String value) { + public Builder addContributorEmails(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureContributorEmailsIsMutable(); + throw new NullPointerException(); + } + ensureContributorEmailsIsMutable(); contributorEmails_.add(value); onChanged(); return this; } /** + * + * *
      * Optional. If you want your own labeling contributors to manage and work on
      * this labeling request, you can set these contributors here. We will give
@@ -1917,19 +2145,21 @@ public Builder addContributorEmails(
      * https://crowd-compute.appspot.com/
      * 
* - * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param values The contributorEmails to add. * @return This builder for chaining. */ - public Builder addAllContributorEmails( - java.lang.Iterable values) { + public Builder addAllContributorEmails(java.lang.Iterable values) { ensureContributorEmailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, contributorEmails_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contributorEmails_); onChanged(); return this; } /** + * + * *
      * Optional. If you want your own labeling contributors to manage and work on
      * this labeling request, you can set these contributors here. We will give
@@ -1938,7 +2168,9 @@ public Builder addAllContributorEmails(
      * https://crowd-compute.appspot.com/
      * 
* - * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearContributorEmails() { @@ -1948,6 +2180,8 @@ public Builder clearContributorEmails() { return this; } /** + * + * *
      * Optional. If you want your own labeling contributors to manage and work on
      * this labeling request, you can set these contributors here. We will give
@@ -1956,16 +2190,17 @@ public Builder clearContributorEmails() {
      * https://crowd-compute.appspot.com/
      * 
* - * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The bytes of the contributorEmails to add. * @return This builder for chaining. */ - public Builder addContributorEmailsBytes( - com.google.protobuf.ByteString value) { + public Builder addContributorEmailsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureContributorEmailsIsMutable(); contributorEmails_.add(value); onChanged(); @@ -1974,19 +2209,21 @@ public Builder addContributorEmailsBytes( private java.lang.Object userEmailAddress_ = ""; /** + * + * *
      * Email of the user who started the labeling task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 10; + * * @return The userEmailAddress. */ public java.lang.String getUserEmailAddress() { java.lang.Object ref = userEmailAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userEmailAddress_ = s; return s; @@ -1995,21 +2232,22 @@ public java.lang.String getUserEmailAddress() { } } /** + * + * *
      * Email of the user who started the labeling task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 10; + * * @return The bytes for userEmailAddress. */ - public com.google.protobuf.ByteString - getUserEmailAddressBytes() { + public com.google.protobuf.ByteString getUserEmailAddressBytes() { java.lang.Object ref = userEmailAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userEmailAddress_ = b; return b; } else { @@ -2017,64 +2255,71 @@ public java.lang.String getUserEmailAddress() { } } /** + * + * *
      * Email of the user who started the labeling task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 10; + * * @param value The userEmailAddress to set. * @return This builder for chaining. */ - public Builder setUserEmailAddress( - java.lang.String value) { + public Builder setUserEmailAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + userEmailAddress_ = value; onChanged(); return this; } /** + * + * *
      * Email of the user who started the labeling task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 10; + * * @return This builder for chaining. */ public Builder clearUserEmailAddress() { - + userEmailAddress_ = getDefaultInstance().getUserEmailAddress(); onChanged(); return this; } /** + * + * *
      * Email of the user who started the labeling task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 10; + * * @param value The bytes for userEmailAddress to set. * @return This builder for chaining. */ - public Builder setUserEmailAddressBytes( - com.google.protobuf.ByteString value) { + public Builder setUserEmailAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userEmailAddress_ = 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); } @@ -2084,12 +2329,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.HumanAnnotationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.HumanAnnotationConfig) private static final com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig(); } @@ -2098,16 +2343,16 @@ public static com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HumanAnnotationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HumanAnnotationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HumanAnnotationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HumanAnnotationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2122,6 +2367,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOrBuilder.java similarity index 79% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOrBuilder.java index 996f7660..0ca187a5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOrBuilder.java @@ -1,101 +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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface HumanAnnotationConfigOrBuilder extends +public interface HumanAnnotationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.HumanAnnotationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Instruction resource name.
    * 
* * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The instruction. */ java.lang.String getInstruction(); /** + * + * *
    * Required. Instruction resource name.
    * 
* * string instruction = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for instruction. */ - com.google.protobuf.ByteString - getInstructionBytes(); + com.google.protobuf.ByteString getInstructionBytes(); /** + * + * *
    * Required. A human-readable name for AnnotatedDataset defined by
    * users. Maximum of 64 characters
    * .
    * 
* - * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The annotatedDatasetDisplayName. */ java.lang.String getAnnotatedDatasetDisplayName(); /** + * + * *
    * Required. A human-readable name for AnnotatedDataset defined by
    * users. Maximum of 64 characters
    * .
    * 
* - * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * string annotated_dataset_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The bytes for annotatedDatasetDisplayName. */ - com.google.protobuf.ByteString - getAnnotatedDatasetDisplayNameBytes(); + com.google.protobuf.ByteString getAnnotatedDatasetDisplayNameBytes(); /** + * + * *
    * Optional. A human-readable description for AnnotatedDataset.
    * The description can be up to 10000 characters long.
    * 
* - * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The annotatedDatasetDescription. */ java.lang.String getAnnotatedDatasetDescription(); /** + * + * *
    * Optional. A human-readable description for AnnotatedDataset.
    * The description can be up to 10000 characters long.
    * 
* - * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string annotated_dataset_description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The bytes for annotatedDatasetDescription. */ - com.google.protobuf.ByteString - getAnnotatedDatasetDescriptionBytes(); + com.google.protobuf.ByteString getAnnotatedDatasetDescriptionBytes(); /** + * + * *
    * Optional. A human-readable label used to logically group labeling tasks.
    * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`.
    * 
* * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The labelGroup. */ java.lang.String getLabelGroup(); /** + * + * *
    * Optional. A human-readable label used to logically group labeling tasks.
    * This string must match the regular expression `[a-zA-Z\\d_-]{0,128}`.
    * 
* * string label_group = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for labelGroup. */ - com.google.protobuf.ByteString - getLabelGroupBytes(); + com.google.protobuf.ByteString getLabelGroupBytes(); /** + * + * *
    * Optional. The Language of this question, as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -105,10 +147,13 @@ public interface HumanAnnotationConfigOrBuilder extends
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * Optional. The Language of this question, as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -118,12 +163,14 @@ public interface HumanAnnotationConfigOrBuilder extends
    * 
* * string language_code = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); /** + * + * *
    * Optional. Replication of questions. Each question will be sent to up to
    * this number of contributors to label. Aggregated answers will be returned.
@@ -132,41 +179,58 @@ public interface HumanAnnotationConfigOrBuilder extends
    * 
* * int32 replica_count = 6 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The replicaCount. */ int getReplicaCount(); /** + * + * *
    * Optional. Maximum duration for contributors to answer a question. Maximum
    * is 3600 seconds. Default is 3600 seconds.
    * 
* - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the questionDuration field is set. */ boolean hasQuestionDuration(); /** + * + * *
    * Optional. Maximum duration for contributors to answer a question. Maximum
    * is 3600 seconds. Default is 3600 seconds.
    * 
* - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The questionDuration. */ com.google.protobuf.Duration getQuestionDuration(); /** + * + * *
    * Optional. Maximum duration for contributors to answer a question. Maximum
    * is 3600 seconds. Default is 3600 seconds.
    * 
* - * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.protobuf.Duration question_duration = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.DurationOrBuilder getQuestionDurationOrBuilder(); /** + * + * *
    * Optional. If you want your own labeling contributors to manage and work on
    * this labeling request, you can set these contributors here. We will give
@@ -176,11 +240,13 @@ public interface HumanAnnotationConfigOrBuilder extends
    * 
* * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return A list containing the contributorEmails. */ - java.util.List - getContributorEmailsList(); + java.util.List getContributorEmailsList(); /** + * + * *
    * Optional. If you want your own labeling contributors to manage and work on
    * this labeling request, you can set these contributors here. We will give
@@ -190,10 +256,13 @@ public interface HumanAnnotationConfigOrBuilder extends
    * 
* * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The count of contributorEmails. */ int getContributorEmailsCount(); /** + * + * *
    * Optional. If you want your own labeling contributors to manage and work on
    * this labeling request, you can set these contributors here. We will give
@@ -203,11 +272,14 @@ public interface HumanAnnotationConfigOrBuilder extends
    * 
* * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the element to return. * @return The contributorEmails at the given index. */ java.lang.String getContributorEmails(int index); /** + * + * *
    * Optional. If you want your own labeling contributors to manage and work on
    * this labeling request, you can set these contributors here. We will give
@@ -217,31 +289,36 @@ public interface HumanAnnotationConfigOrBuilder extends
    * 
* * repeated string contributor_emails = 9 [(.google.api.field_behavior) = OPTIONAL]; + * * @param index The index of the value to return. * @return The bytes of the contributorEmails at the given index. */ - com.google.protobuf.ByteString - getContributorEmailsBytes(int index); + com.google.protobuf.ByteString getContributorEmailsBytes(int index); /** + * + * *
    * Email of the user who started the labeling task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 10; + * * @return The userEmailAddress. */ java.lang.String getUserEmailAddress(); /** + * + * *
    * Email of the user who started the labeling task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 10; + * * @return The bytes for userEmailAddress. */ - com.google.protobuf.ByteString - getUserEmailAddressBytes(); + com.google.protobuf.ByteString getUserEmailAddressBytes(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOuterClass.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOuterClass.java new file mode 100644 index 00000000..437f834d --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/HumanAnnotationConfigOuterClass.java @@ -0,0 +1,279 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/human_annotation_config.proto + +package com.google.cloud.datalabeling.v1beta1; + +public final class HumanAnnotationConfigOuterClass { + private HumanAnnotationConfigOuterClass() {} + + 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_datalabeling_v1beta1_HumanAnnotationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_EventConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_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/datalabeling/v1beta1/huma" + + "n_annotation_config.proto\022!google.cloud." + + "datalabeling.v1beta1\032\034google/api/annotat" + + "ions.proto\032\037google/api/field_behavior.pr" + + "oto\032\036google/protobuf/duration.proto\"\324\002\n\025" + + "HumanAnnotationConfig\022\030\n\013instruction\030\001 \001" + + "(\tB\003\340A\002\022+\n\036annotated_dataset_display_nam" + + "e\030\002 \001(\tB\003\340A\002\022*\n\035annotated_dataset_descri" + + "ption\030\003 \001(\tB\003\340A\001\022\030\n\013label_group\030\004 \001(\tB\003\340" + + "A\001\022\032\n\rlanguage_code\030\005 \001(\tB\003\340A\001\022\032\n\rreplic" + + "a_count\030\006 \001(\005B\003\340A\001\0229\n\021question_duration\030" + + "\007 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022\037\n" + + "\022contributor_emails\030\t \003(\tB\003\340A\001\022\032\n\022user_e" + + "mail_address\030\n \001(\t\"\275\001\n\031ImageClassificati" + + "onConfig\022 \n\023annotation_spec_set\030\001 \001(\tB\003\340" + + "A\002\022\036\n\021allow_multi_label\030\002 \001(\010B\003\340A\001\022^\n\027an" + + "swer_aggregation_type\030\003 \001(\01628.google.clo" + + "ud.datalabeling.v1beta1.StringAggregatio" + + "nTypeB\003\340A\001\"X\n\022BoundingPolyConfig\022 \n\023anno" + + "tation_spec_set\030\001 \001(\tB\003\340A\002\022 \n\023instructio" + + "n_message\030\002 \001(\tB\003\340A\001\"T\n\016PolylineConfig\022 " + + "\n\023annotation_spec_set\030\001 \001(\tB\003\340A\002\022 \n\023inst" + + "ruction_message\030\002 \001(\tB\003\340A\001\"S\n\022Segmentati" + + "onConfig\022 \n\023annotation_spec_set\030\001 \001(\tB\003\340" + + "A\002\022\033\n\023instruction_message\030\002 \001(\t\"\233\002\n\031Vide" + + "oClassificationConfig\022~\n\033annotation_spec" + + "_set_configs\030\001 \003(\0132T.google.cloud.datala" + + "beling.v1beta1.VideoClassificationConfig" + + ".AnnotationSpecSetConfigB\003\340A\002\022!\n\024apply_s" + + "hot_detection\030\002 \001(\010B\003\340A\001\032[\n\027AnnotationSp" + + "ecSetConfig\022 \n\023annotation_spec_set\030\001 \001(\t" + + "B\003\340A\002\022\036\n\021allow_multi_label\030\002 \001(\010B\003\340A\001\"]\n" + + "\025ObjectDetectionConfig\022 \n\023annotation_spe" + + "c_set\030\001 \001(\tB\003\340A\002\022\"\n\025extraction_frame_rat" + + "e\030\003 \001(\001B\003\340A\002\"8\n\024ObjectTrackingConfig\022 \n\023" + + "annotation_spec_set\030\001 \001(\tB\003\340A\002\"0\n\013EventC" + + "onfig\022!\n\024annotation_spec_sets\030\001 \003(\tB\003\340A\002" + + "\"\257\001\n\030TextClassificationConfig\022\036\n\021allow_m" + + "ulti_label\030\001 \001(\010B\003\340A\001\022 \n\023annotation_spec" + + "_set\030\002 \001(\tB\003\340A\002\022Q\n\020sentiment_config\030\003 \001(" + + "\01322.google.cloud.datalabeling.v1beta1.Se" + + "ntimentConfigB\003\340A\001\";\n\017SentimentConfig\022(\n" + + " enable_label_sentiment_selection\030\001 \001(\010\"" + + ">\n\032TextEntityExtractionConfig\022 \n\023annotat" + + "ion_spec_set\030\001 \001(\tB\003\340A\002*{\n\025StringAggrega" + + "tionType\022\'\n#STRING_AGGREGATION_TYPE_UNSP" + + "ECIFIED\020\000\022\021\n\rMAJORITY_VOTE\020\001\022\022\n\016UNANIMOU" + + "S_VOTE\020\002\022\022\n\016NO_AGGREGATION\020\003B\347\001\n%com.goo" + + "gle.cloud.datalabeling.v1beta1P\001ZMgoogle" + + ".golang.org/genproto/googleapis/cloud/da" + + "talabeling/v1beta1;datalabeling\252\002!Google" + + ".Cloud.DataLabeling.V1Beta1\312\002!Google\\Clo" + + "ud\\DataLabeling\\V1beta1\352\002$Google::Cloud:" + + ":DataLabeling::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_HumanAnnotationConfig_descriptor, + new java.lang.String[] { + "Instruction", + "AnnotatedDatasetDisplayName", + "AnnotatedDatasetDescription", + "LabelGroup", + "LanguageCode", + "ReplicaCount", + "QuestionDuration", + "ContributorEmails", + "UserEmailAddress", + }); + internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor, + new java.lang.String[] { + "AnnotationSpecSet", "AllowMultiLabel", "AnswerAggregationType", + }); + internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_BoundingPolyConfig_descriptor, + new java.lang.String[] { + "AnnotationSpecSet", "InstructionMessage", + }); + internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor, + new java.lang.String[] { + "AnnotationSpecSet", "InstructionMessage", + }); + internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor, + new java.lang.String[] { + "AnnotationSpecSet", "InstructionMessage", + }); + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor, + new java.lang.String[] { + "AnnotationSpecSetConfigs", "ApplyShotDetection", + }); + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor = + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor, + new java.lang.String[] { + "AnnotationSpecSet", "AllowMultiLabel", + }); + internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor, + new java.lang.String[] { + "AnnotationSpecSet", "ExtractionFrameRate", + }); + internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor, + new java.lang.String[] { + "AnnotationSpecSet", + }); + internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_datalabeling_v1beta1_EventConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_EventConfig_descriptor, + new java.lang.String[] { + "AnnotationSpecSets", + }); + internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor, + new java.lang.String[] { + "AllowMultiLabel", "AnnotationSpecSet", "SentimentConfig", + }); + internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor, + new java.lang.String[] { + "EnableLabelSentimentSelection", + }); + internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor, + new java.lang.String[] { + "AnnotationSpecSet", + }); + 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.AnnotationsProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotation.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotation.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotation.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotation.java index 6b78cc93..d08ec339 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotation.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotation.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Image bounding poly annotation. It represents a polygon including
  * bounding box in the image.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation}
  */
-public final class ImageBoundingPolyAnnotation extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ImageBoundingPolyAnnotation extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation)
     ImageBoundingPolyAnnotationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ImageBoundingPolyAnnotation.newBuilder() to construct.
   private ImageBoundingPolyAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private ImageBoundingPolyAnnotation() {
-  }
+
+  private ImageBoundingPolyAnnotation() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ImageBoundingPolyAnnotation();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ImageBoundingPolyAnnotation(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,54 +69,70 @@ private ImageBoundingPolyAnnotation(
           case 0:
             done = true;
             break;
-          case 10: {
-            com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null;
-            if (annotationSpec_ != null) {
-              subBuilder = annotationSpec_.toBuilder();
-            }
-            annotationSpec_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(annotationSpec_);
-              annotationSpec_ = subBuilder.buildPartial();
-            }
+          case 10:
+            {
+              com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null;
+              if (annotationSpec_ != null) {
+                subBuilder = annotationSpec_.toBuilder();
+              }
+              annotationSpec_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(annotationSpec_);
+                annotationSpec_ = subBuilder.buildPartial();
+              }
 
-            break;
-          }
-          case 18: {
-            com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder subBuilder = null;
-            if (boundedAreaCase_ == 2) {
-              subBuilder = ((com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_).toBuilder();
+              break;
             }
-            boundedArea_ =
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.BoundingPoly.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_);
-              boundedArea_ = subBuilder.buildPartial();
-            }
-            boundedAreaCase_ = 2;
-            break;
-          }
-          case 26: {
-            com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder subBuilder = null;
-            if (boundedAreaCase_ == 3) {
-              subBuilder = ((com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_).toBuilder();
+          case 18:
+            {
+              com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder subBuilder = null;
+              if (boundedAreaCase_ == 2) {
+                subBuilder =
+                    ((com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_).toBuilder();
+              }
+              boundedArea_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.BoundingPoly.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_);
+                boundedArea_ = subBuilder.buildPartial();
+              }
+              boundedAreaCase_ = 2;
+              break;
             }
-            boundedArea_ =
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_);
-              boundedArea_ = subBuilder.buildPartial();
+          case 26:
+            {
+              com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder subBuilder =
+                  null;
+              if (boundedAreaCase_ == 3) {
+                subBuilder =
+                    ((com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_)
+                        .toBuilder();
+              }
+              boundedArea_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_);
+                boundedArea_ = subBuilder.buildPartial();
+              }
+              boundedAreaCase_ = 3;
+              break;
             }
-            boundedAreaCase_ = 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) {
@@ -108,35 +140,40 @@ private ImageBoundingPolyAnnotation(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.class, com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.class,
+            com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder.class);
   }
 
   private int boundedAreaCase_ = 0;
   private java.lang.Object boundedArea_;
+
   public enum BoundedAreaCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     BOUNDING_POLY(2),
     NORMALIZED_BOUNDING_POLY(3),
     BOUNDEDAREA_NOT_SET(0);
     private final int value;
+
     private BoundedAreaCase(int value) {
       this.value = value;
     }
@@ -152,26 +189,30 @@ public static BoundedAreaCase valueOf(int value) {
 
     public static BoundedAreaCase forNumber(int value) {
       switch (value) {
-        case 2: return BOUNDING_POLY;
-        case 3: return NORMALIZED_BOUNDING_POLY;
-        case 0: return BOUNDEDAREA_NOT_SET;
-        default: return null;
+        case 2:
+          return BOUNDING_POLY;
+        case 3:
+          return NORMALIZED_BOUNDING_POLY;
+        case 0:
+          return BOUNDEDAREA_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public BoundedAreaCase
-  getBoundedAreaCase() {
-    return BoundedAreaCase.forNumber(
-        boundedAreaCase_);
+  public BoundedAreaCase getBoundedAreaCase() {
+    return BoundedAreaCase.forNumber(boundedAreaCase_);
   }
 
   public static final int BOUNDING_POLY_FIELD_NUMBER = 2;
   /**
    * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
+   *
    * @return Whether the boundingPoly field is set.
    */
   @java.lang.Override
@@ -180,29 +221,30 @@ public boolean hasBoundingPoly() {
   }
   /**
    * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
+   *
    * @return The boundingPoly.
    */
   @java.lang.Override
   public com.google.cloud.datalabeling.v1beta1.BoundingPoly getBoundingPoly() {
     if (boundedAreaCase_ == 2) {
-       return (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_;
+      return (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_;
     }
     return com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance();
   }
-  /**
-   * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
-   */
+  /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; */
   @java.lang.Override
   public com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder() {
     if (boundedAreaCase_ == 2) {
-       return (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_;
+      return (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_;
     }
     return com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance();
   }
 
   public static final int NORMALIZED_BOUNDING_POLY_FIELD_NUMBER = 3;
   /**
-   * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+   * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+   * 
+   *
    * @return Whether the normalizedBoundingPoly field is set.
    */
   @java.lang.Override
@@ -210,23 +252,27 @@ public boolean hasNormalizedBoundingPoly() {
     return boundedAreaCase_ == 3;
   }
   /**
-   * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+   * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+   * 
+   *
    * @return The normalizedBoundingPoly.
    */
   @java.lang.Override
   public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly getNormalizedBoundingPoly() {
     if (boundedAreaCase_ == 3) {
-       return (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_;
+      return (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_;
     }
     return com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance();
   }
   /**
-   * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+   * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+   * 
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder getNormalizedBoundingPolyOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder
+      getNormalizedBoundingPolyOrBuilder() {
     if (boundedAreaCase_ == 3) {
-       return (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_;
+      return (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_;
     }
     return com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance();
   }
@@ -234,11 +280,14 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder get
   public static final int ANNOTATION_SPEC_FIELD_NUMBER = 1;
   private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_;
   /**
+   *
+   *
    * 
    * Label of object in this bounding polygon.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ @java.lang.Override @@ -246,18 +295,25 @@ public boolean hasAnnotationSpec() { return annotationSpec_ != null; } /** + * + * *
    * Label of object in this bounding polygon.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { - return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } /** + * + * *
    * Label of object in this bounding polygon.
    * 
@@ -265,11 +321,13 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder + getAnnotationSpecOrBuilder() { return getAnnotationSpec(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -281,8 +339,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 (annotationSpec_ != null) { output.writeMessage(1, getAnnotationSpec()); } @@ -290,7 +347,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(2, (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_); } if (boundedAreaCase_ == 3) { - output.writeMessage(3, (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_); + output.writeMessage( + 3, (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_); } unknownFields.writeTo(output); } @@ -302,16 +360,17 @@ public int getSerializedSize() { size = 0; if (annotationSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAnnotationSpec()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnnotationSpec()); } if (boundedAreaCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_); } if (boundedAreaCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -321,27 +380,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.datalabeling.v1beta1.ImageBoundingPolyAnnotation)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation other = (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) obj; + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation other = + (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) obj; if (hasAnnotationSpec() != other.hasAnnotationSpec()) return false; if (hasAnnotationSpec()) { - if (!getAnnotationSpec() - .equals(other.getAnnotationSpec())) return false; + if (!getAnnotationSpec().equals(other.getAnnotationSpec())) return false; } if (!getBoundedAreaCase().equals(other.getBoundedAreaCase())) return false; switch (boundedAreaCase_) { case 2: - if (!getBoundingPoly() - .equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; break; case 3: - if (!getNormalizedBoundingPoly() - .equals(other.getNormalizedBoundingPoly())) return false; + if (!getNormalizedBoundingPoly().equals(other.getNormalizedBoundingPoly())) return false; break; case 0: default: @@ -379,96 +436,105 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation 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.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation 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.datalabeling.v1beta1.ImageBoundingPolyAnnotation + 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.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Image bounding poly annotation. It represents a polygon including
    * bounding box in the image.
@@ -476,38 +542,40 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation)
       com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.class, com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.class,
+              com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.Builder.class);
     }
 
-    // Construct using com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.newBuilder()
+    // Construct using
+    // com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.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();
@@ -523,13 +591,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_ImageBoundingPolyAnnotation_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation getDefaultInstanceForType() {
+    public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation
+        getDefaultInstanceForType() {
       return com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.getDefaultInstance();
     }
 
@@ -544,7 +613,8 @@ public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation build()
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation result = new com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation(this);
+      com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation result =
+          new com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation(this);
       if (boundedAreaCase_ == 2) {
         if (boundingPolyBuilder_ == null) {
           result.boundedArea_ = boundedArea_;
@@ -573,61 +643,68 @@ public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation 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.datalabeling.v1beta1.ImageBoundingPolyAnnotation) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation)other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation other) {
+      if (other
+          == com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.getDefaultInstance())
+        return this;
       if (other.hasAnnotationSpec()) {
         mergeAnnotationSpec(other.getAnnotationSpec());
       }
       switch (other.getBoundedAreaCase()) {
-        case BOUNDING_POLY: {
-          mergeBoundingPoly(other.getBoundingPoly());
-          break;
-        }
-        case NORMALIZED_BOUNDING_POLY: {
-          mergeNormalizedBoundingPoly(other.getNormalizedBoundingPoly());
-          break;
-        }
-        case BOUNDEDAREA_NOT_SET: {
-          break;
-        }
+        case BOUNDING_POLY:
+          {
+            mergeBoundingPoly(other.getBoundingPoly());
+            break;
+          }
+        case NORMALIZED_BOUNDING_POLY:
+          {
+            mergeNormalizedBoundingPoly(other.getNormalizedBoundingPoly());
+            break;
+          }
+        case BOUNDEDAREA_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -648,7 +725,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -657,12 +736,12 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int boundedAreaCase_ = 0;
     private java.lang.Object boundedArea_;
-    public BoundedAreaCase
-        getBoundedAreaCase() {
-      return BoundedAreaCase.forNumber(
-          boundedAreaCase_);
+
+    public BoundedAreaCase getBoundedAreaCase() {
+      return BoundedAreaCase.forNumber(boundedAreaCase_);
     }
 
     public Builder clearBoundedArea() {
@@ -672,11 +751,14 @@ public Builder clearBoundedArea() {
       return this;
     }
 
-
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.BoundingPoly, com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder> boundingPolyBuilder_;
+            com.google.cloud.datalabeling.v1beta1.BoundingPoly,
+            com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder,
+            com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder>
+        boundingPolyBuilder_;
     /**
      * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
+     *
      * @return Whether the boundingPoly field is set.
      */
     @java.lang.Override
@@ -685,6 +767,7 @@ public boolean hasBoundingPoly() {
     }
     /**
      * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
+     *
      * @return The boundingPoly.
      */
     @java.lang.Override
@@ -701,9 +784,7 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPoly getBoundingPoly() {
         return com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance();
       }
     }
-    /**
-     * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
-     */
+    /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; */
     public Builder setBoundingPoly(com.google.cloud.datalabeling.v1beta1.BoundingPoly value) {
       if (boundingPolyBuilder_ == null) {
         if (value == null) {
@@ -717,9 +798,7 @@ public Builder setBoundingPoly(com.google.cloud.datalabeling.v1beta1.BoundingPol
       boundedAreaCase_ = 2;
       return this;
     }
-    /**
-     * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
-     */
+    /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; */
     public Builder setBoundingPoly(
         com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder builderForValue) {
       if (boundingPolyBuilder_ == null) {
@@ -731,15 +810,17 @@ public Builder setBoundingPoly(
       boundedAreaCase_ = 2;
       return this;
     }
-    /**
-     * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
-     */
+    /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; */
     public Builder mergeBoundingPoly(com.google.cloud.datalabeling.v1beta1.BoundingPoly value) {
       if (boundingPolyBuilder_ == null) {
-        if (boundedAreaCase_ == 2 &&
-            boundedArea_ != com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance()) {
-          boundedArea_ = com.google.cloud.datalabeling.v1beta1.BoundingPoly.newBuilder((com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_)
-              .mergeFrom(value).buildPartial();
+        if (boundedAreaCase_ == 2
+            && boundedArea_
+                != com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance()) {
+          boundedArea_ =
+              com.google.cloud.datalabeling.v1beta1.BoundingPoly.newBuilder(
+                      (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundedArea_ = value;
         }
@@ -754,9 +835,7 @@ public Builder mergeBoundingPoly(com.google.cloud.datalabeling.v1beta1.BoundingP
       boundedAreaCase_ = 2;
       return this;
     }
-    /**
-     * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
-     */
+    /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; */
     public Builder clearBoundingPoly() {
       if (boundingPolyBuilder_ == null) {
         if (boundedAreaCase_ == 2) {
@@ -773,15 +852,11 @@ public Builder clearBoundingPoly() {
       }
       return this;
     }
-    /**
-     * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
-     */
+    /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; */
     public com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder getBoundingPolyBuilder() {
       return getBoundingPolyFieldBuilder().getBuilder();
     }
-    /**
-     * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
-     */
+    /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; */
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder() {
       if ((boundedAreaCase_ == 2) && (boundingPolyBuilder_ != null)) {
@@ -793,32 +868,41 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder getBoundingPo
         return com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance();
       }
     }
-    /**
-     * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;
-     */
+    /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.BoundingPoly, com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder> 
+            com.google.cloud.datalabeling.v1beta1.BoundingPoly,
+            com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder,
+            com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder>
         getBoundingPolyFieldBuilder() {
       if (boundingPolyBuilder_ == null) {
         if (!(boundedAreaCase_ == 2)) {
           boundedArea_ = com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance();
         }
-        boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.BoundingPoly, com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder>(
+        boundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.datalabeling.v1beta1.BoundingPoly,
+                com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder,
+                com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder>(
                 (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_,
                 getParentForChildren(),
                 isClean());
         boundedArea_ = null;
       }
       boundedAreaCase_ = 2;
-      onChanged();;
+      onChanged();
+      ;
       return boundingPolyBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder> normalizedBoundingPolyBuilder_;
+            com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly,
+            com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder,
+            com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder>
+        normalizedBoundingPolyBuilder_;
     /**
-     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+     * 
+     *
      * @return Whether the normalizedBoundingPoly field is set.
      */
     @java.lang.Override
@@ -826,11 +910,14 @@ public boolean hasNormalizedBoundingPoly() {
       return boundedAreaCase_ == 3;
     }
     /**
-     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+     * 
+     *
      * @return The normalizedBoundingPoly.
      */
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly getNormalizedBoundingPoly() {
+    public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly
+        getNormalizedBoundingPoly() {
       if (normalizedBoundingPolyBuilder_ == null) {
         if (boundedAreaCase_ == 3) {
           return (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_;
@@ -844,9 +931,11 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly getNormalize
       }
     }
     /**
-     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+     * 
      */
-    public Builder setNormalizedBoundingPoly(com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly value) {
+    public Builder setNormalizedBoundingPoly(
+        com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly value) {
       if (normalizedBoundingPolyBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -860,7 +949,8 @@ public Builder setNormalizedBoundingPoly(com.google.cloud.datalabeling.v1beta1.N
       return this;
     }
     /**
-     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+     * 
      */
     public Builder setNormalizedBoundingPoly(
         com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder builderForValue) {
@@ -874,14 +964,21 @@ public Builder setNormalizedBoundingPoly(
       return this;
     }
     /**
-     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+     * 
      */
-    public Builder mergeNormalizedBoundingPoly(com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly value) {
+    public Builder mergeNormalizedBoundingPoly(
+        com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly value) {
       if (normalizedBoundingPolyBuilder_ == null) {
-        if (boundedAreaCase_ == 3 &&
-            boundedArea_ != com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance()) {
-          boundedArea_ = com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.newBuilder((com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_)
-              .mergeFrom(value).buildPartial();
+        if (boundedAreaCase_ == 3
+            && boundedArea_
+                != com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly
+                    .getDefaultInstance()) {
+          boundedArea_ =
+              com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.newBuilder(
+                      (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           boundedArea_ = value;
         }
@@ -897,7 +994,8 @@ public Builder mergeNormalizedBoundingPoly(com.google.cloud.datalabeling.v1beta1
       return this;
     }
     /**
-     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+     * 
      */
     public Builder clearNormalizedBoundingPoly() {
       if (normalizedBoundingPolyBuilder_ == null) {
@@ -916,16 +1014,20 @@ public Builder clearNormalizedBoundingPoly() {
       return this;
     }
     /**
-     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+     * 
      */
-    public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder getNormalizedBoundingPolyBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder
+        getNormalizedBoundingPolyBuilder() {
       return getNormalizedBoundingPolyFieldBuilder().getBuilder();
     }
     /**
-     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+     * 
      */
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder getNormalizedBoundingPolyOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder
+        getNormalizedBoundingPolyOrBuilder() {
       if ((boundedAreaCase_ == 3) && (normalizedBoundingPolyBuilder_ != null)) {
         return normalizedBoundingPolyBuilder_.getMessageOrBuilder();
       } else {
@@ -936,57 +1038,78 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder get
       }
     }
     /**
-     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+     * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;
+     * 
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder> 
+            com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly,
+            com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder,
+            com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder>
         getNormalizedBoundingPolyFieldBuilder() {
       if (normalizedBoundingPolyBuilder_ == null) {
         if (!(boundedAreaCase_ == 3)) {
-          boundedArea_ = com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance();
+          boundedArea_ =
+              com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance();
         }
-        normalizedBoundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder>(
+        normalizedBoundingPolyBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly,
+                com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder,
+                com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder>(
                 (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_,
                 getParentForChildren(),
                 isClean());
         boundedArea_ = null;
       }
       boundedAreaCase_ = 3;
-      onChanged();;
+      onChanged();
+      ;
       return normalizedBoundingPolyBuilder_;
     }
 
     private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_;
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecBuilder_;
+            com.google.cloud.datalabeling.v1beta1.AnnotationSpec,
+            com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder,
+            com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>
+        annotationSpecBuilder_;
     /**
+     *
+     *
      * 
      * Label of object in this bounding polygon.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ public boolean hasAnnotationSpec() { return annotationSpecBuilder_ != null || annotationSpec_ != null; } /** + * + * *
      * Label of object in this bounding polygon.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { if (annotationSpecBuilder_ == null) { - return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } else { return annotationSpecBuilder_.getMessage(); } } /** + * + * *
      * Label of object in this bounding polygon.
      * 
@@ -1007,6 +1130,8 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio return this; } /** + * + * *
      * Label of object in this bounding polygon.
      * 
@@ -1025,6 +1150,8 @@ public Builder setAnnotationSpec( return this; } /** + * + * *
      * Label of object in this bounding polygon.
      * 
@@ -1035,7 +1162,9 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat if (annotationSpecBuilder_ == null) { if (annotationSpec_ != null) { annotationSpec_ = - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_) + .mergeFrom(value) + .buildPartial(); } else { annotationSpec_ = value; } @@ -1047,6 +1176,8 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat return this; } /** + * + * *
      * Label of object in this bounding polygon.
      * 
@@ -1065,6 +1196,8 @@ public Builder clearAnnotationSpec() { return this; } /** + * + * *
      * Label of object in this bounding polygon.
      * 
@@ -1072,26 +1205,32 @@ public Builder clearAnnotationSpec() { * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotationSpecBuilder() { - + onChanged(); return getAnnotationSpecFieldBuilder().getBuilder(); } /** + * + * *
      * Label of object in this bounding polygon.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder + getAnnotationSpecOrBuilder() { if (annotationSpecBuilder_ != null) { return annotationSpecBuilder_.getMessageOrBuilder(); } else { - return annotationSpec_ == null ? - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } } /** + * + * *
      * Label of object in this bounding polygon.
      * 
@@ -1099,21 +1238,24 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotati * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> getAnnotationSpecFieldBuilder() { if (annotationSpecBuilder_ == null) { - annotationSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( - getAnnotationSpec(), - getParentForChildren(), - isClean()); + annotationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( + getAnnotationSpec(), getParentForChildren(), isClean()); annotationSpec_ = null; } return annotationSpecBuilder_; } + @java.lang.Override - 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,30 +1265,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) - private static final com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation(); } - public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageBoundingPolyAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageBoundingPolyAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageBoundingPolyAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageBoundingPolyAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1158,9 +1302,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotationOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotationOrBuilder.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotationOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotationOrBuilder.java index f70a48d2..ab9d5172 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotationOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageBoundingPolyAnnotationOrBuilder.java @@ -1,61 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface ImageBoundingPolyAnnotationOrBuilder extends +public interface ImageBoundingPolyAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation) com.google.protobuf.MessageOrBuilder { /** * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; + * * @return The boundingPoly. */ com.google.cloud.datalabeling.v1beta1.BoundingPoly getBoundingPoly(); - /** - * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; - */ + /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2; */ com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder(); /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3; + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3; + * + * * @return Whether the normalizedBoundingPoly field is set. */ boolean hasNormalizedBoundingPoly(); /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3; + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3; + * + * * @return The normalizedBoundingPoly. */ com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly getNormalizedBoundingPoly(); /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3; + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3; + * */ - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder getNormalizedBoundingPolyOrBuilder(); + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder + getNormalizedBoundingPolyOrBuilder(); /** + * + * *
    * Label of object in this bounding polygon.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ boolean hasAnnotationSpec(); /** + * + * *
    * Label of object in this bounding polygon.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec(); /** + * + * *
    * Label of object in this bounding polygon.
    * 
@@ -64,5 +94,6 @@ public interface ImageBoundingPolyAnnotationOrBuilder extends */ com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder(); - public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.BoundedAreaCase getBoundedAreaCase(); + public com.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation.BoundedAreaCase + getBoundedAreaCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotation.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotation.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotation.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotation.java index 2c652bfc..3bb03b90 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotation.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotation.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Image classification annotation definition.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation} */ -public final class ImageClassificationAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageClassificationAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) ImageClassificationAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageClassificationAnnotation.newBuilder() to construct. private ImageClassificationAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImageClassificationAnnotation() { - } + + private ImageClassificationAnnotation() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageClassificationAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageClassificationAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,30 @@ private ImageClassificationAnnotation( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; - if (annotationSpec_ != null) { - subBuilder = annotationSpec_.toBuilder(); + case 10: + { + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; + if (annotationSpec_ != null) { + subBuilder = annotationSpec_.toBuilder(); + } + annotationSpec_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotationSpec_); + annotationSpec_ = subBuilder.buildPartial(); + } + + break; } - annotationSpec_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotationSpec_); - annotationSpec_ = 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) { @@ -79,34 +99,39 @@ private ImageClassificationAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.class, com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.class, + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder.class); } public static final int ANNOTATION_SPEC_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; /** + * + * *
    * Label of image.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ @java.lang.Override @@ -114,18 +139,25 @@ public boolean hasAnnotationSpec() { return annotationSpec_ != null; } /** + * + * *
    * Label of image.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { - return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } /** + * + * *
    * Label of image.
    * 
@@ -133,11 +165,13 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder + getAnnotationSpecOrBuilder() { return getAnnotationSpec(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,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 (annotationSpec_ != null) { output.writeMessage(1, getAnnotationSpec()); } @@ -164,8 +197,7 @@ public int getSerializedSize() { size = 0; if (annotationSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAnnotationSpec()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnnotationSpec()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +207,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.datalabeling.v1beta1.ImageClassificationAnnotation)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation other = (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) obj; + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation other = + (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) obj; if (hasAnnotationSpec() != other.hasAnnotationSpec()) return false; if (hasAnnotationSpec()) { - if (!getAnnotationSpec() - .equals(other.getAnnotationSpec())) return false; + if (!getAnnotationSpec().equals(other.getAnnotationSpec())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -208,134 +240,145 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation 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.datalabeling.v1beta1.ImageClassificationAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation 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.datalabeling.v1beta1.ImageClassificationAnnotation + 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.datalabeling.v1beta1.ImageClassificationAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Image classification annotation definition.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.class, com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.class, + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.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(); @@ -349,14 +392,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation + .getDefaultInstance(); } @java.lang.Override @@ -370,7 +415,8 @@ public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation build @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation buildPartial() { - com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation result = new com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation(this); + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation result = + new com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation(this); if (annotationSpecBuilder_ == null) { result.annotationSpec_ = annotationSpec_; } else { @@ -384,46 +430,51 @@ public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation 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.datalabeling.v1beta1.ImageClassificationAnnotation) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation)other); + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation other) { - if (other == com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation other) { + if (other + == com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation + .getDefaultInstance()) return this; if (other.hasAnnotationSpec()) { mergeAnnotationSpec(other.getAnnotationSpec()); } @@ -446,7 +497,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,34 +511,47 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + annotationSpecBuilder_; /** + * + * *
      * Label of image.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ public boolean hasAnnotationSpec() { return annotationSpecBuilder_ != null || annotationSpec_ != null; } /** + * + * *
      * Label of image.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { if (annotationSpecBuilder_ == null) { - return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } else { return annotationSpecBuilder_.getMessage(); } } /** + * + * *
      * Label of image.
      * 
@@ -506,6 +572,8 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio return this; } /** + * + * *
      * Label of image.
      * 
@@ -524,6 +592,8 @@ public Builder setAnnotationSpec( return this; } /** + * + * *
      * Label of image.
      * 
@@ -534,7 +604,9 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat if (annotationSpecBuilder_ == null) { if (annotationSpec_ != null) { annotationSpec_ = - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_) + .mergeFrom(value) + .buildPartial(); } else { annotationSpec_ = value; } @@ -546,6 +618,8 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat return this; } /** + * + * *
      * Label of image.
      * 
@@ -564,6 +638,8 @@ public Builder clearAnnotationSpec() { return this; } /** + * + * *
      * Label of image.
      * 
@@ -571,26 +647,32 @@ public Builder clearAnnotationSpec() { * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotationSpecBuilder() { - + onChanged(); return getAnnotationSpecFieldBuilder().getBuilder(); } /** + * + * *
      * Label of image.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder + getAnnotationSpecOrBuilder() { if (annotationSpecBuilder_ != null) { return annotationSpecBuilder_.getMessageOrBuilder(); } else { - return annotationSpec_ == null ? - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } } /** + * + * *
      * Label of image.
      * 
@@ -598,21 +680,24 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotati * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> getAnnotationSpecFieldBuilder() { if (annotationSpecBuilder_ == null) { - annotationSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( - getAnnotationSpec(), - getParentForChildren(), - isClean()); + annotationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( + getAnnotationSpec(), getParentForChildren(), isClean()); annotationSpec_ = null; } return annotationSpecBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,30 +707,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) - private static final com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation(); } - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageClassificationAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageClassificationAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageClassificationAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageClassificationAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,9 +744,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotationOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotationOrBuilder.java similarity index 60% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotationOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotationOrBuilder.java index cd931544..adb37fa9 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotationOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationAnnotationOrBuilder.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface ImageClassificationAnnotationOrBuilder extends +public interface ImageClassificationAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Label of image.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ boolean hasAnnotationSpec(); /** + * + * *
    * Label of image.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec(); /** + * + * *
    * Label of image.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfig.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfig.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfig.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfig.java index c3fe63fa..63256900 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfig.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Config for image classification human labeling task.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImageClassificationConfig} */ -public final class ImageClassificationConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageClassificationConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ImageClassificationConfig) ImageClassificationConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageClassificationConfig.newBuilder() to construct. private ImageClassificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImageClassificationConfig() { annotationSpecSet_ = ""; answerAggregationType_ = 0; @@ -26,16 +44,15 @@ private ImageClassificationConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageClassificationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageClassificationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ImageClassificationConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - annotationSpecSet_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - allowMultiLabel_ = input.readBool(); - break; - } - case 24: { - int rawValue = input.readEnum(); + annotationSpecSet_ = s; + break; + } + case 16: + { + allowMultiLabel_ = input.readBool(); + break; + } + case 24: + { + int rawValue = input.readEnum(); - answerAggregationType_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + answerAggregationType_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,34 +104,39 @@ private ImageClassificationConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.class, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.class, + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder.class); } public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER = 1; private volatile java.lang.Object annotationSpecSet_; /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ @java.lang.Override @@ -121,29 +145,29 @@ public java.lang.String getAnnotationSpecSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; } } /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ @java.lang.Override - public com.google.protobuf.ByteString - getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -154,12 +178,15 @@ public java.lang.String getAnnotationSpecSet() { public static final int ALLOW_MULTI_LABEL_FIELD_NUMBER = 2; private boolean allowMultiLabel_; /** + * + * *
    * Optional. If allow_multi_label is true, contributors are able to choose
    * multiple labels for one image.
    * 
* * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMultiLabel. */ @java.lang.Override @@ -170,31 +197,47 @@ public boolean getAllowMultiLabel() { public static final int ANSWER_AGGREGATION_TYPE_FIELD_NUMBER = 3; private int answerAggregationType_; /** + * + * *
    * Optional. The type of how to aggregate answers.
    * 
* - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for answerAggregationType. */ - @java.lang.Override public int getAnswerAggregationTypeValue() { + @java.lang.Override + public int getAnswerAggregationTypeValue() { return answerAggregationType_; } /** + * + * *
    * Optional. The type of how to aggregate answers.
    * 
* - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The answerAggregationType. */ - @java.lang.Override public com.google.cloud.datalabeling.v1beta1.StringAggregationType getAnswerAggregationType() { + @java.lang.Override + public com.google.cloud.datalabeling.v1beta1.StringAggregationType getAnswerAggregationType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.StringAggregationType result = com.google.cloud.datalabeling.v1beta1.StringAggregationType.valueOf(answerAggregationType_); - return result == null ? com.google.cloud.datalabeling.v1beta1.StringAggregationType.UNRECOGNIZED : result; + com.google.cloud.datalabeling.v1beta1.StringAggregationType result = + com.google.cloud.datalabeling.v1beta1.StringAggregationType.valueOf(answerAggregationType_); + return result == null + ? com.google.cloud.datalabeling.v1beta1.StringAggregationType.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,15 +249,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationSpecSet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecSet_); } if (allowMultiLabel_ != false) { output.writeBool(2, allowMultiLabel_); } - if (answerAggregationType_ != com.google.cloud.datalabeling.v1beta1.StringAggregationType.STRING_AGGREGATION_TYPE_UNSPECIFIED.getNumber()) { + if (answerAggregationType_ + != com.google.cloud.datalabeling.v1beta1.StringAggregationType + .STRING_AGGREGATION_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, answerAggregationType_); } unknownFields.writeTo(output); @@ -230,12 +275,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, annotationSpecSet_); } if (allowMultiLabel_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, allowMultiLabel_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowMultiLabel_); } - if (answerAggregationType_ != com.google.cloud.datalabeling.v1beta1.StringAggregationType.STRING_AGGREGATION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, answerAggregationType_); + if (answerAggregationType_ + != com.google.cloud.datalabeling.v1beta1.StringAggregationType + .STRING_AGGREGATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, answerAggregationType_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -245,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.datalabeling.v1beta1.ImageClassificationConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig other = (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) obj; + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig other = + (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) obj; - if (!getAnnotationSpecSet() - .equals(other.getAnnotationSpecSet())) return false; - if (getAllowMultiLabel() - != other.getAllowMultiLabel()) return false; + if (!getAnnotationSpecSet().equals(other.getAnnotationSpecSet())) return false; + if (getAllowMultiLabel() != other.getAllowMultiLabel()) return false; if (answerAggregationType_ != other.answerAggregationType_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -271,8 +316,7 @@ public int hashCode() { hash = (37 * hash) + ANNOTATION_SPEC_SET_FIELD_NUMBER; hash = (53 * hash) + getAnnotationSpecSet().hashCode(); hash = (37 * hash) + ALLOW_MULTI_LABEL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMultiLabel()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMultiLabel()); hash = (37 * hash) + ANSWER_AGGREGATION_TYPE_FIELD_NUMBER; hash = (53 * hash) + answerAggregationType_; hash = (29 * hash) + unknownFields.hashCode(); @@ -281,117 +325,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig 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.datalabeling.v1beta1.ImageClassificationConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Config for image classification human labeling task.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImageClassificationConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ImageClassificationConfig) com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.class, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.class, + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.newBuilder() @@ -399,16 +453,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(); @@ -422,13 +475,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImageClassificationConfig_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } @@ -443,7 +497,8 @@ public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig result = new com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig(this); + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig result = + new com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig(this); result.annotationSpecSet_ = annotationSpecSet_; result.allowMultiLabel_ = allowMultiLabel_; result.answerAggregationType_ = answerAggregationType_; @@ -455,46 +510,50 @@ public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig 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.datalabeling.v1beta1.ImageClassificationConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig other) { - if (other == com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig other) { + if (other + == com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance()) + return this; if (!other.getAnnotationSpecSet().isEmpty()) { annotationSpecSet_ = other.annotationSpecSet_; onChanged(); @@ -524,7 +583,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -536,18 +597,20 @@ public Builder mergeFrom( private java.lang.Object annotationSpecSet_ = ""; /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ public java.lang.String getAnnotationSpecSet() { java.lang.Object ref = annotationSpecSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; @@ -556,20 +619,21 @@ public java.lang.String getAnnotationSpecSet() { } } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ - public com.google.protobuf.ByteString - getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -577,67 +641,77 @@ public java.lang.String getAnnotationSpecSet() { } } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSet( - java.lang.String value) { + public Builder setAnnotationSpecSet(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecSet_ = value; onChanged(); return this; } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAnnotationSpecSet() { - + annotationSpecSet_ = getDefaultInstance().getAnnotationSpecSet(); onChanged(); return this; } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSetBytes( - com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecSet_ = value; onChanged(); return this; } - private boolean allowMultiLabel_ ; + private boolean allowMultiLabel_; /** + * + * *
      * Optional. If allow_multi_label is true, contributors are able to choose
      * multiple labels for one image.
      * 
* * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMultiLabel. */ @java.lang.Override @@ -645,32 +719,38 @@ public boolean getAllowMultiLabel() { return allowMultiLabel_; } /** + * + * *
      * Optional. If allow_multi_label is true, contributors are able to choose
      * multiple labels for one image.
      * 
* * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The allowMultiLabel to set. * @return This builder for chaining. */ public Builder setAllowMultiLabel(boolean value) { - + allowMultiLabel_ = value; onChanged(); return this; } /** + * + * *
      * Optional. If allow_multi_label is true, contributors are able to choose
      * multiple labels for one image.
      * 
* * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAllowMultiLabel() { - + allowMultiLabel_ = false; onChanged(); return this; @@ -678,80 +758,111 @@ public Builder clearAllowMultiLabel() { private int answerAggregationType_ = 0; /** + * + * *
      * Optional. The type of how to aggregate answers.
      * 
* - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for answerAggregationType. */ - @java.lang.Override public int getAnswerAggregationTypeValue() { + @java.lang.Override + public int getAnswerAggregationTypeValue() { return answerAggregationType_; } /** + * + * *
      * Optional. The type of how to aggregate answers.
      * 
* - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The enum numeric value on the wire for answerAggregationType to set. * @return This builder for chaining. */ public Builder setAnswerAggregationTypeValue(int value) { - + answerAggregationType_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The type of how to aggregate answers.
      * 
* - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The answerAggregationType. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.StringAggregationType getAnswerAggregationType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.StringAggregationType result = com.google.cloud.datalabeling.v1beta1.StringAggregationType.valueOf(answerAggregationType_); - return result == null ? com.google.cloud.datalabeling.v1beta1.StringAggregationType.UNRECOGNIZED : result; + com.google.cloud.datalabeling.v1beta1.StringAggregationType result = + com.google.cloud.datalabeling.v1beta1.StringAggregationType.valueOf( + answerAggregationType_); + return result == null + ? com.google.cloud.datalabeling.v1beta1.StringAggregationType.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The type of how to aggregate answers.
      * 
* - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @param value The answerAggregationType to set. * @return This builder for chaining. */ - public Builder setAnswerAggregationType(com.google.cloud.datalabeling.v1beta1.StringAggregationType value) { + public Builder setAnswerAggregationType( + com.google.cloud.datalabeling.v1beta1.StringAggregationType value) { if (value == null) { throw new NullPointerException(); } - + answerAggregationType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. The type of how to aggregate answers.
      * 
* - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return This builder for chaining. */ public Builder clearAnswerAggregationType() { - + answerAggregationType_ = 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); } @@ -761,30 +872,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ImageClassificationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImageClassificationConfig) - private static final com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig(); } - public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageClassificationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageClassificationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageClassificationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageClassificationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -796,9 +909,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfigOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfigOrBuilder.java similarity index 58% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfigOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfigOrBuilder.java index 906e7816..d1a91c09 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfigOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageClassificationConfigOrBuilder.java @@ -1,58 +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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface ImageClassificationConfigOrBuilder extends +public interface ImageClassificationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ImageClassificationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ java.lang.String getAnnotationSpecSet(); /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ - com.google.protobuf.ByteString - getAnnotationSpecSetBytes(); + com.google.protobuf.ByteString getAnnotationSpecSetBytes(); /** + * + * *
    * Optional. If allow_multi_label is true, contributors are able to choose
    * multiple labels for one image.
    * 
* * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMultiLabel. */ boolean getAllowMultiLabel(); /** + * + * *
    * Optional. The type of how to aggregate answers.
    * 
* - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The enum numeric value on the wire for answerAggregationType. */ int getAnswerAggregationTypeValue(); /** + * + * *
    * Optional. The type of how to aggregate answers.
    * 
* - * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The answerAggregationType. */ com.google.cloud.datalabeling.v1beta1.StringAggregationType getAnswerAggregationType(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayload.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayload.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayload.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayload.java index 1866fb62..2aeee780 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayload.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayload.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/datalabeling/v1beta1/data_payloads.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Container of information about an image.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImagePayload} */ -public final class ImagePayload extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImagePayload extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ImagePayload) ImagePayloadOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImagePayload.newBuilder() to construct. private ImagePayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImagePayload() { mimeType_ = ""; imageThumbnail_ = com.google.protobuf.ByteString.EMPTY; @@ -28,16 +46,15 @@ private ImagePayload() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImagePayload(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImagePayload( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,36 +73,39 @@ private ImagePayload( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 18: { - - imageThumbnail_ = input.readBytes(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + mimeType_ = s; + break; + } + case 18: + { + imageThumbnail_ = input.readBytes(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - imageUri_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + imageUri_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - signedUri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + signedUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,34 +113,39 @@ private ImagePayload( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads + .internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataPayloads + .internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImagePayload.class, com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImagePayload.class, + com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder.class); } public static final int MIME_TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object mimeType_; /** + * + * *
    * Image format.
    * 
* * string mime_type = 1; + * * @return The mimeType. */ @java.lang.Override @@ -129,29 +154,29 @@ 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; } } /** + * + * *
    * Image format.
    * 
* * string mime_type = 1; + * * @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 { @@ -162,11 +187,14 @@ public java.lang.String getMimeType() { public static final int IMAGE_THUMBNAIL_FIELD_NUMBER = 2; private com.google.protobuf.ByteString imageThumbnail_; /** + * + * *
    * A byte string of a thumbnail image.
    * 
* * bytes image_thumbnail = 2; + * * @return The imageThumbnail. */ @java.lang.Override @@ -177,11 +205,14 @@ public com.google.protobuf.ByteString getImageThumbnail() { public static final int IMAGE_URI_FIELD_NUMBER = 3; private volatile java.lang.Object imageUri_; /** + * + * *
    * Image uri from the user bucket.
    * 
* * string image_uri = 3; + * * @return The imageUri. */ @java.lang.Override @@ -190,29 +221,29 @@ public java.lang.String getImageUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; } } /** + * + * *
    * Image uri from the user bucket.
    * 
* * string image_uri = 3; + * * @return The bytes for imageUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getImageUriBytes() { + public com.google.protobuf.ByteString getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); imageUri_ = b; return b; } else { @@ -223,11 +254,14 @@ public java.lang.String getImageUri() { public static final int SIGNED_URI_FIELD_NUMBER = 4; private volatile java.lang.Object signedUri_; /** + * + * *
    * Signed uri of the image file in the service bucket.
    * 
* * string signed_uri = 4; + * * @return The signedUri. */ @java.lang.Override @@ -236,29 +270,29 @@ public java.lang.String getSignedUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); signedUri_ = s; return s; } } /** + * + * *
    * Signed uri of the image file in the service bucket.
    * 
* * string signed_uri = 4; + * * @return The bytes for signedUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getSignedUriBytes() { + public com.google.protobuf.ByteString getSignedUriBytes() { java.lang.Object ref = signedUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); signedUri_ = b; return b; } else { @@ -267,6 +301,7 @@ public java.lang.String getSignedUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,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(mimeType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mimeType_); } @@ -305,8 +339,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, mimeType_); } if (!imageThumbnail_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, imageThumbnail_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, imageThumbnail_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(imageUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, imageUri_); @@ -322,21 +355,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.datalabeling.v1beta1.ImagePayload)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ImagePayload other = (com.google.cloud.datalabeling.v1beta1.ImagePayload) obj; + com.google.cloud.datalabeling.v1beta1.ImagePayload other = + (com.google.cloud.datalabeling.v1beta1.ImagePayload) obj; - if (!getMimeType() - .equals(other.getMimeType())) return false; - if (!getImageThumbnail() - .equals(other.getImageThumbnail())) return false; - if (!getImageUri() - .equals(other.getImageUri())) return false; - if (!getSignedUri() - .equals(other.getSignedUri())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; + if (!getImageThumbnail().equals(other.getImageThumbnail())) return false; + if (!getImageUri().equals(other.getImageUri())) return false; + if (!getSignedUri().equals(other.getSignedUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -362,117 +392,126 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ImagePayload 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.datalabeling.v1beta1.ImagePayload parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ImagePayload parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ImagePayload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Container of information about an image.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImagePayload} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ImagePayload) com.google.cloud.datalabeling.v1beta1.ImagePayloadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads + .internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataPayloads + .internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImagePayload.class, com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImagePayload.class, + com.google.cloud.datalabeling.v1beta1.ImagePayload.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ImagePayload.newBuilder() @@ -480,16 +519,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(); @@ -505,9 +543,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads + .internal_static_google_cloud_datalabeling_v1beta1_ImagePayload_descriptor; } @java.lang.Override @@ -526,7 +564,8 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayload build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImagePayload buildPartial() { - com.google.cloud.datalabeling.v1beta1.ImagePayload result = new com.google.cloud.datalabeling.v1beta1.ImagePayload(this); + com.google.cloud.datalabeling.v1beta1.ImagePayload result = + new com.google.cloud.datalabeling.v1beta1.ImagePayload(this); result.mimeType_ = mimeType_; result.imageThumbnail_ = imageThumbnail_; result.imageUri_ = imageUri_; @@ -539,38 +578,39 @@ public com.google.cloud.datalabeling.v1beta1.ImagePayload buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.ImagePayload) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImagePayload)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImagePayload) other); } else { super.mergeFrom(other); return this; @@ -578,7 +618,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ImagePayload other) { - if (other == com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.ImagePayload.getDefaultInstance()) + return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; onChanged(); @@ -613,7 +654,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ImagePayload) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ImagePayload) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -625,18 +667,20 @@ public Builder mergeFrom( private java.lang.Object mimeType_ = ""; /** + * + * *
      * Image format.
      * 
* * string mime_type = 1; + * * @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; @@ -645,20 +689,21 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Image format.
      * 
* * string mime_type = 1; + * * @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 { @@ -666,54 +711,61 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Image format.
      * 
* * string mime_type = 1; + * * @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; } /** + * + * *
      * Image format.
      * 
* * string mime_type = 1; + * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** + * + * *
      * Image format.
      * 
* * string mime_type = 1; + * * @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; @@ -721,11 +773,14 @@ public Builder setMimeTypeBytes( private com.google.protobuf.ByteString imageThumbnail_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * A byte string of a thumbnail image.
      * 
* * bytes image_thumbnail = 2; + * * @return The imageThumbnail. */ @java.lang.Override @@ -733,33 +788,39 @@ public com.google.protobuf.ByteString getImageThumbnail() { return imageThumbnail_; } /** + * + * *
      * A byte string of a thumbnail image.
      * 
* * bytes image_thumbnail = 2; + * * @param value The imageThumbnail to set. * @return This builder for chaining. */ public Builder setImageThumbnail(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imageThumbnail_ = value; onChanged(); return this; } /** + * + * *
      * A byte string of a thumbnail image.
      * 
* * bytes image_thumbnail = 2; + * * @return This builder for chaining. */ public Builder clearImageThumbnail() { - + imageThumbnail_ = getDefaultInstance().getImageThumbnail(); onChanged(); return this; @@ -767,18 +828,20 @@ public Builder clearImageThumbnail() { private java.lang.Object imageUri_ = ""; /** + * + * *
      * Image uri from the user bucket.
      * 
* * string image_uri = 3; + * * @return The imageUri. */ public java.lang.String getImageUri() { java.lang.Object ref = imageUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); imageUri_ = s; return s; @@ -787,20 +850,21 @@ public java.lang.String getImageUri() { } } /** + * + * *
      * Image uri from the user bucket.
      * 
* * string image_uri = 3; + * * @return The bytes for imageUri. */ - public com.google.protobuf.ByteString - getImageUriBytes() { + public com.google.protobuf.ByteString getImageUriBytes() { java.lang.Object ref = imageUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); imageUri_ = b; return b; } else { @@ -808,54 +872,61 @@ public java.lang.String getImageUri() { } } /** + * + * *
      * Image uri from the user bucket.
      * 
* * string image_uri = 3; + * * @param value The imageUri to set. * @return This builder for chaining. */ - public Builder setImageUri( - java.lang.String value) { + public Builder setImageUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + imageUri_ = value; onChanged(); return this; } /** + * + * *
      * Image uri from the user bucket.
      * 
* * string image_uri = 3; + * * @return This builder for chaining. */ public Builder clearImageUri() { - + imageUri_ = getDefaultInstance().getImageUri(); onChanged(); return this; } /** + * + * *
      * Image uri from the user bucket.
      * 
* * string image_uri = 3; + * * @param value The bytes for imageUri to set. * @return This builder for chaining. */ - public Builder setImageUriBytes( - com.google.protobuf.ByteString value) { + public Builder setImageUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + imageUri_ = value; onChanged(); return this; @@ -863,18 +934,20 @@ public Builder setImageUriBytes( private java.lang.Object signedUri_ = ""; /** + * + * *
      * Signed uri of the image file in the service bucket.
      * 
* * string signed_uri = 4; + * * @return The signedUri. */ public java.lang.String getSignedUri() { java.lang.Object ref = signedUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); signedUri_ = s; return s; @@ -883,20 +956,21 @@ public java.lang.String getSignedUri() { } } /** + * + * *
      * Signed uri of the image file in the service bucket.
      * 
* * string signed_uri = 4; + * * @return The bytes for signedUri. */ - public com.google.protobuf.ByteString - getSignedUriBytes() { + public com.google.protobuf.ByteString getSignedUriBytes() { java.lang.Object ref = signedUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); signedUri_ = b; return b; } else { @@ -904,61 +978,68 @@ public java.lang.String getSignedUri() { } } /** + * + * *
      * Signed uri of the image file in the service bucket.
      * 
* * string signed_uri = 4; + * * @param value The signedUri to set. * @return This builder for chaining. */ - public Builder setSignedUri( - java.lang.String value) { + public Builder setSignedUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + signedUri_ = value; onChanged(); return this; } /** + * + * *
      * Signed uri of the image file in the service bucket.
      * 
* * string signed_uri = 4; + * * @return This builder for chaining. */ public Builder clearSignedUri() { - + signedUri_ = getDefaultInstance().getSignedUri(); onChanged(); return this; } /** + * + * *
      * Signed uri of the image file in the service bucket.
      * 
* * string signed_uri = 4; + * * @param value The bytes for signedUri to set. * @return This builder for chaining. */ - public Builder setSignedUriBytes( - com.google.protobuf.ByteString value) { + public Builder setSignedUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + signedUri_ = 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); } @@ -968,12 +1049,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ImagePayload) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImagePayload) private static final com.google.cloud.datalabeling.v1beta1.ImagePayload DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ImagePayload(); } @@ -982,16 +1063,16 @@ public static com.google.cloud.datalabeling.v1beta1.ImagePayload getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImagePayload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImagePayload(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImagePayload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImagePayload(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1006,6 +1087,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ImagePayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayloadOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayloadOrBuilder.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayloadOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayloadOrBuilder.java index 4719965c..ac665631 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayloadOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePayloadOrBuilder.java @@ -1,79 +1,113 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/data_payloads.proto package com.google.cloud.datalabeling.v1beta1; -public interface ImagePayloadOrBuilder extends +public interface ImagePayloadOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ImagePayload) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Image format.
    * 
* * string mime_type = 1; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Image format.
    * 
* * string mime_type = 1; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); /** + * + * *
    * A byte string of a thumbnail image.
    * 
* * bytes image_thumbnail = 2; + * * @return The imageThumbnail. */ com.google.protobuf.ByteString getImageThumbnail(); /** + * + * *
    * Image uri from the user bucket.
    * 
* * string image_uri = 3; + * * @return The imageUri. */ java.lang.String getImageUri(); /** + * + * *
    * Image uri from the user bucket.
    * 
* * string image_uri = 3; + * * @return The bytes for imageUri. */ - com.google.protobuf.ByteString - getImageUriBytes(); + com.google.protobuf.ByteString getImageUriBytes(); /** + * + * *
    * Signed uri of the image file in the service bucket.
    * 
* * string signed_uri = 4; + * * @return The signedUri. */ java.lang.String getSignedUri(); /** + * + * *
    * Signed uri of the image file in the service bucket.
    * 
* * string signed_uri = 4; + * * @return The bytes for signedUri. */ - com.google.protobuf.ByteString - getSignedUriBytes(); + com.google.protobuf.ByteString getSignedUriBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotation.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotation.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotation.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotation.java index 764c828e..c3295c6b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotation.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotation.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * A polyline for the image annotation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation} */ -public final class ImagePolylineAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImagePolylineAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) ImagePolylineAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImagePolylineAnnotation.newBuilder() to construct. private ImagePolylineAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ImagePolylineAnnotation() { - } + + private ImagePolylineAnnotation() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImagePolylineAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImagePolylineAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,54 +68,65 @@ private ImagePolylineAnnotation( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; - if (annotationSpec_ != null) { - subBuilder = annotationSpec_.toBuilder(); - } - annotationSpec_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotationSpec_); - annotationSpec_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; + if (annotationSpec_ != null) { + subBuilder = annotationSpec_.toBuilder(); + } + annotationSpec_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotationSpec_); + annotationSpec_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.datalabeling.v1beta1.Polyline.Builder subBuilder = null; - if (polyCase_ == 2) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.Polyline) poly_).toBuilder(); + break; } - poly_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.Polyline.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.Polyline) poly_); - poly_ = subBuilder.buildPartial(); - } - polyCase_ = 2; - break; - } - case 26: { - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder subBuilder = null; - if (polyCase_ == 3) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_).toBuilder(); + case 18: + { + com.google.cloud.datalabeling.v1beta1.Polyline.Builder subBuilder = null; + if (polyCase_ == 2) { + subBuilder = ((com.google.cloud.datalabeling.v1beta1.Polyline) poly_).toBuilder(); + } + poly_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.Polyline.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.Polyline) poly_); + poly_ = subBuilder.buildPartial(); + } + polyCase_ = 2; + break; } - poly_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_); - poly_ = subBuilder.buildPartial(); + case 26: + { + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder subBuilder = null; + if (polyCase_ == 3) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_).toBuilder(); + } + poly_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_); + poly_ = subBuilder.buildPartial(); + } + polyCase_ = 3; + break; } - polyCase_ = 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) { @@ -107,35 +134,40 @@ private ImagePolylineAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.class, com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.class, + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder.class); } private int polyCase_ = 0; private java.lang.Object poly_; + public enum PolyCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { POLYLINE(2), NORMALIZED_POLYLINE(3), POLY_NOT_SET(0); private final int value; + private PolyCase(int value) { this.value = value; } @@ -151,26 +183,30 @@ public static PolyCase valueOf(int value) { public static PolyCase forNumber(int value) { switch (value) { - case 2: return POLYLINE; - case 3: return NORMALIZED_POLYLINE; - case 0: return POLY_NOT_SET; - default: return null; + case 2: + return POLYLINE; + case 3: + return NORMALIZED_POLYLINE; + case 0: + return POLY_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public PolyCase - getPolyCase() { - return PolyCase.forNumber( - polyCase_); + public PolyCase getPolyCase() { + return PolyCase.forNumber(polyCase_); } public static final int POLYLINE_FIELD_NUMBER = 2; /** * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; + * * @return Whether the polyline field is set. */ @java.lang.Override @@ -179,22 +215,21 @@ public boolean hasPolyline() { } /** * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; + * * @return The polyline. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.Polyline getPolyline() { if (polyCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.Polyline) poly_; + return (com.google.cloud.datalabeling.v1beta1.Polyline) poly_; } return com.google.cloud.datalabeling.v1beta1.Polyline.getDefaultInstance(); } - /** - * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; - */ + /** .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder getPolylineOrBuilder() { if (polyCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.Polyline) poly_; + return (com.google.cloud.datalabeling.v1beta1.Polyline) poly_; } return com.google.cloud.datalabeling.v1beta1.Polyline.getDefaultInstance(); } @@ -202,6 +237,7 @@ public com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder getPolylineOrBuil public static final int NORMALIZED_POLYLINE_FIELD_NUMBER = 3; /** * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; + * * @return Whether the normalizedPolyline field is set. */ @java.lang.Override @@ -210,22 +246,22 @@ public boolean hasNormalizedPolyline() { } /** * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; + * * @return The normalizedPolyline. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.NormalizedPolyline getNormalizedPolyline() { if (polyCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_; + return (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_; } return com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.getDefaultInstance(); } - /** - * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; - */ + /** .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder getNormalizedPolylineOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder + getNormalizedPolylineOrBuilder() { if (polyCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_; + return (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_; } return com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.getDefaultInstance(); } @@ -233,11 +269,14 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder getNorm public static final int ANNOTATION_SPEC_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; /** + * + * *
    * Label of this polyline.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ @java.lang.Override @@ -245,18 +284,25 @@ public boolean hasAnnotationSpec() { return annotationSpec_ != null; } /** + * + * *
    * Label of this polyline.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { - return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } /** + * + * *
    * Label of this polyline.
    * 
@@ -264,11 +310,13 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder + getAnnotationSpecOrBuilder() { return getAnnotationSpec(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -280,8 +328,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 (annotationSpec_ != null) { output.writeMessage(1, getAnnotationSpec()); } @@ -301,16 +348,17 @@ public int getSerializedSize() { size = 0; if (annotationSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAnnotationSpec()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnnotationSpec()); } if (polyCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.datalabeling.v1beta1.Polyline) poly_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.datalabeling.v1beta1.Polyline) poly_); } if (polyCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -320,27 +368,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.datalabeling.v1beta1.ImagePolylineAnnotation)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation other = (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) obj; + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation other = + (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) obj; if (hasAnnotationSpec() != other.hasAnnotationSpec()) return false; if (hasAnnotationSpec()) { - if (!getAnnotationSpec() - .equals(other.getAnnotationSpec())) return false; + if (!getAnnotationSpec().equals(other.getAnnotationSpec())) return false; } if (!getPolyCase().equals(other.getPolyCase())) return false; switch (polyCase_) { case 2: - if (!getPolyline() - .equals(other.getPolyline())) return false; + if (!getPolyline().equals(other.getPolyline())) return false; break; case 3: - if (!getNormalizedPolyline() - .equals(other.getNormalizedPolyline())) return false; + if (!getNormalizedPolyline().equals(other.getNormalizedPolyline())) return false; break; case 0: default: @@ -378,117 +424,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation 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.datalabeling.v1beta1.ImagePolylineAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 polyline for the image annotation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.class, com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.class, + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.newBuilder() @@ -496,16 +552,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(); @@ -521,13 +576,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImagePolylineAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.getDefaultInstance(); } @@ -542,7 +598,8 @@ public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation buildPartial() { - com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation result = new com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation(this); + com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation result = + new com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation(this); if (polyCase_ == 2) { if (polylineBuilder_ == null) { result.poly_ = poly_; @@ -571,38 +628,39 @@ public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation 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.datalabeling.v1beta1.ImagePolylineAnnotation) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) other); } else { super.mergeFrom(other); return this; @@ -610,22 +668,27 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation other) { - if (other == com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.getDefaultInstance()) return this; + if (other + == com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation.getDefaultInstance()) + return this; if (other.hasAnnotationSpec()) { mergeAnnotationSpec(other.getAnnotationSpec()); } switch (other.getPolyCase()) { - case POLYLINE: { - mergePolyline(other.getPolyline()); - break; - } - case NORMALIZED_POLYLINE: { - mergeNormalizedPolyline(other.getNormalizedPolyline()); - break; - } - case POLY_NOT_SET: { - break; - } + case POLYLINE: + { + mergePolyline(other.getPolyline()); + break; + } + case NORMALIZED_POLYLINE: + { + mergeNormalizedPolyline(other.getNormalizedPolyline()); + break; + } + case POLY_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -646,7 +709,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -655,12 +720,12 @@ public Builder mergeFrom( } return this; } + private int polyCase_ = 0; private java.lang.Object poly_; - public PolyCase - getPolyCase() { - return PolyCase.forNumber( - polyCase_); + + public PolyCase getPolyCase() { + return PolyCase.forNumber(polyCase_); } public Builder clearPoly() { @@ -670,11 +735,14 @@ public Builder clearPoly() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Polyline, com.google.cloud.datalabeling.v1beta1.Polyline.Builder, com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder> polylineBuilder_; + com.google.cloud.datalabeling.v1beta1.Polyline, + com.google.cloud.datalabeling.v1beta1.Polyline.Builder, + com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder> + polylineBuilder_; /** * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; + * * @return Whether the polyline field is set. */ @java.lang.Override @@ -683,6 +751,7 @@ public boolean hasPolyline() { } /** * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; + * * @return The polyline. */ @java.lang.Override @@ -699,9 +768,7 @@ public com.google.cloud.datalabeling.v1beta1.Polyline getPolyline() { return com.google.cloud.datalabeling.v1beta1.Polyline.getDefaultInstance(); } } - /** - * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; - */ + /** .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; */ public Builder setPolyline(com.google.cloud.datalabeling.v1beta1.Polyline value) { if (polylineBuilder_ == null) { if (value == null) { @@ -715,9 +782,7 @@ public Builder setPolyline(com.google.cloud.datalabeling.v1beta1.Polyline value) polyCase_ = 2; return this; } - /** - * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; - */ + /** .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; */ public Builder setPolyline( com.google.cloud.datalabeling.v1beta1.Polyline.Builder builderForValue) { if (polylineBuilder_ == null) { @@ -729,15 +794,16 @@ public Builder setPolyline( polyCase_ = 2; return this; } - /** - * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; - */ + /** .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; */ public Builder mergePolyline(com.google.cloud.datalabeling.v1beta1.Polyline value) { if (polylineBuilder_ == null) { - if (polyCase_ == 2 && - poly_ != com.google.cloud.datalabeling.v1beta1.Polyline.getDefaultInstance()) { - poly_ = com.google.cloud.datalabeling.v1beta1.Polyline.newBuilder((com.google.cloud.datalabeling.v1beta1.Polyline) poly_) - .mergeFrom(value).buildPartial(); + if (polyCase_ == 2 + && poly_ != com.google.cloud.datalabeling.v1beta1.Polyline.getDefaultInstance()) { + poly_ = + com.google.cloud.datalabeling.v1beta1.Polyline.newBuilder( + (com.google.cloud.datalabeling.v1beta1.Polyline) poly_) + .mergeFrom(value) + .buildPartial(); } else { poly_ = value; } @@ -752,9 +818,7 @@ public Builder mergePolyline(com.google.cloud.datalabeling.v1beta1.Polyline valu polyCase_ = 2; return this; } - /** - * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; - */ + /** .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; */ public Builder clearPolyline() { if (polylineBuilder_ == null) { if (polyCase_ == 2) { @@ -771,15 +835,11 @@ public Builder clearPolyline() { } return this; } - /** - * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; - */ + /** .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; */ public com.google.cloud.datalabeling.v1beta1.Polyline.Builder getPolylineBuilder() { return getPolylineFieldBuilder().getBuilder(); } - /** - * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; - */ + /** .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder getPolylineOrBuilder() { if ((polyCase_ == 2) && (polylineBuilder_ != null)) { @@ -791,32 +851,40 @@ public com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder getPolylineOrBuil return com.google.cloud.datalabeling.v1beta1.Polyline.getDefaultInstance(); } } - /** - * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; - */ + /** .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Polyline, com.google.cloud.datalabeling.v1beta1.Polyline.Builder, com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder> + com.google.cloud.datalabeling.v1beta1.Polyline, + com.google.cloud.datalabeling.v1beta1.Polyline.Builder, + com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder> getPolylineFieldBuilder() { if (polylineBuilder_ == null) { if (!(polyCase_ == 2)) { poly_ = com.google.cloud.datalabeling.v1beta1.Polyline.getDefaultInstance(); } - polylineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Polyline, com.google.cloud.datalabeling.v1beta1.Polyline.Builder, com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder>( + polylineBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.Polyline, + com.google.cloud.datalabeling.v1beta1.Polyline.Builder, + com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder>( (com.google.cloud.datalabeling.v1beta1.Polyline) poly_, getParentForChildren(), isClean()); poly_ = null; } polyCase_ = 2; - onChanged();; + onChanged(); + ; return polylineBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline, com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder> normalizedPolylineBuilder_; + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline, + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder, + com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder> + normalizedPolylineBuilder_; /** * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; + * * @return Whether the normalizedPolyline field is set. */ @java.lang.Override @@ -825,6 +893,7 @@ public boolean hasNormalizedPolyline() { } /** * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; + * * @return The normalizedPolyline. */ @java.lang.Override @@ -844,7 +913,8 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedPolyline getNormalizedPol /** * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; */ - public Builder setNormalizedPolyline(com.google.cloud.datalabeling.v1beta1.NormalizedPolyline value) { + public Builder setNormalizedPolyline( + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline value) { if (normalizedPolylineBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -874,12 +944,17 @@ public Builder setNormalizedPolyline( /** * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; */ - public Builder mergeNormalizedPolyline(com.google.cloud.datalabeling.v1beta1.NormalizedPolyline value) { + public Builder mergeNormalizedPolyline( + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline value) { if (normalizedPolylineBuilder_ == null) { - if (polyCase_ == 3 && - poly_ != com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.getDefaultInstance()) { - poly_ = com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.newBuilder((com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_) - .mergeFrom(value).buildPartial(); + if (polyCase_ == 3 + && poly_ + != com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.getDefaultInstance()) { + poly_ = + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.newBuilder( + (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_) + .mergeFrom(value) + .buildPartial(); } else { poly_ = value; } @@ -916,14 +991,16 @@ public Builder clearNormalizedPolyline() { /** * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; */ - public com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder getNormalizedPolylineBuilder() { + public com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder + getNormalizedPolylineBuilder() { return getNormalizedPolylineFieldBuilder().getBuilder(); } /** * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder getNormalizedPolylineOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder + getNormalizedPolylineOrBuilder() { if ((polyCase_ == 3) && (normalizedPolylineBuilder_ != null)) { return normalizedPolylineBuilder_.getMessageOrBuilder(); } else { @@ -937,54 +1014,73 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder getNorm * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline, com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder> + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline, + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder, + com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder> getNormalizedPolylineFieldBuilder() { if (normalizedPolylineBuilder_ == null) { if (!(polyCase_ == 3)) { poly_ = com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.getDefaultInstance(); } - normalizedPolylineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline, com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder>( + normalizedPolylineBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline, + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder, + com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder>( (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) poly_, getParentForChildren(), isClean()); poly_ = null; } polyCase_ = 3; - onChanged();; + onChanged(); + ; return normalizedPolylineBuilder_; } private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + annotationSpecBuilder_; /** + * + * *
      * Label of this polyline.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ public boolean hasAnnotationSpec() { return annotationSpecBuilder_ != null || annotationSpec_ != null; } /** + * + * *
      * Label of this polyline.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { if (annotationSpecBuilder_ == null) { - return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } else { return annotationSpecBuilder_.getMessage(); } } /** + * + * *
      * Label of this polyline.
      * 
@@ -1005,6 +1101,8 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio return this; } /** + * + * *
      * Label of this polyline.
      * 
@@ -1023,6 +1121,8 @@ public Builder setAnnotationSpec( return this; } /** + * + * *
      * Label of this polyline.
      * 
@@ -1033,7 +1133,9 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat if (annotationSpecBuilder_ == null) { if (annotationSpec_ != null) { annotationSpec_ = - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_) + .mergeFrom(value) + .buildPartial(); } else { annotationSpec_ = value; } @@ -1045,6 +1147,8 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat return this; } /** + * + * *
      * Label of this polyline.
      * 
@@ -1063,6 +1167,8 @@ public Builder clearAnnotationSpec() { return this; } /** + * + * *
      * Label of this polyline.
      * 
@@ -1070,26 +1176,32 @@ public Builder clearAnnotationSpec() { * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotationSpecBuilder() { - + onChanged(); return getAnnotationSpecFieldBuilder().getBuilder(); } /** + * + * *
      * Label of this polyline.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder + getAnnotationSpecOrBuilder() { if (annotationSpecBuilder_ != null) { return annotationSpecBuilder_.getMessageOrBuilder(); } else { - return annotationSpec_ == null ? - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } } /** + * + * *
      * Label of this polyline.
      * 
@@ -1097,21 +1209,24 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotati * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> getAnnotationSpecFieldBuilder() { if (annotationSpecBuilder_ == null) { - annotationSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( - getAnnotationSpec(), - getParentForChildren(), - isClean()); + annotationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( + getAnnotationSpec(), getParentForChildren(), isClean()); annotationSpec_ = null; } return annotationSpecBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1121,12 +1236,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) - private static final com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation(); } @@ -1135,16 +1251,16 @@ public static com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImagePolylineAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImagePolylineAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImagePolylineAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImagePolylineAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1159,6 +1275,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotationOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotationOrBuilder.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotationOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotationOrBuilder.java index 4094c6fb..fa8d45c5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotationOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImagePolylineAnnotationOrBuilder.java @@ -1,61 +1,86 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface ImagePolylineAnnotationOrBuilder extends +public interface ImagePolylineAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation) com.google.protobuf.MessageOrBuilder { /** * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; + * * @return Whether the polyline field is set. */ boolean hasPolyline(); /** * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; + * * @return The polyline. */ com.google.cloud.datalabeling.v1beta1.Polyline getPolyline(); - /** - * .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; - */ + /** .google.cloud.datalabeling.v1beta1.Polyline polyline = 2; */ com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder getPolylineOrBuilder(); /** * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; + * * @return Whether the normalizedPolyline field is set. */ boolean hasNormalizedPolyline(); /** * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; + * * @return The normalizedPolyline. */ com.google.cloud.datalabeling.v1beta1.NormalizedPolyline getNormalizedPolyline(); - /** - * .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; - */ - com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder getNormalizedPolylineOrBuilder(); + /** .google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3; */ + com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder + getNormalizedPolylineOrBuilder(); /** + * + * *
    * Label of this polyline.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ boolean hasAnnotationSpec(); /** + * + * *
    * Label of this polyline.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec(); /** + * + * *
    * Label of this polyline.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotation.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotation.java similarity index 60% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotation.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotation.java index b19936be..62f73419 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotation.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotation.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Image segmentation annotation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation} */ -public final class ImageSegmentationAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImageSegmentationAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) ImageSegmentationAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImageSegmentationAnnotation.newBuilder() to construct. private ImageSegmentationAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImageSegmentationAnnotation() { mimeType_ = ""; imageBytes_ = com.google.protobuf.ByteString.EMPTY; @@ -26,16 +44,15 @@ private ImageSegmentationAnnotation() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImageSegmentationAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImageSegmentationAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,37 +72,44 @@ private ImageSegmentationAnnotation( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - annotationColors_ = com.google.protobuf.MapField.newMapField( - AnnotationColorsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + annotationColors_ = + com.google.protobuf.MapField.newMapField( + AnnotationColorsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.datalabeling.v1beta1.AnnotationSpec> + annotationColors__ = + input.readMessage( + AnnotationColorsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + annotationColors_ + .getMutableMap() + .put(annotationColors__.getKey(), annotationColors__.getValue()); + break; } - com.google.protobuf.MapEntry - annotationColors__ = input.readMessage( - AnnotationColorsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - annotationColors_.getMutableMap().put( - annotationColors__.getKey(), annotationColors__.getValue()); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 26: { - - imageBytes_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + mimeType_ = s; + break; + } + case 26: + { + imageBytes_ = input.readBytes(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,54 +117,63 @@ private ImageSegmentationAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_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 internalGetAnnotationColors(); 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.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.class, com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.class, + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder.class); } public static final int ANNOTATION_COLORS_FIELD_NUMBER = 1; + private static final class AnnotationColorsDefaultEntryHolder { static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datalabeling.v1beta1.AnnotationSpec> defaultEntry = + java.lang.String, com.google.cloud.datalabeling.v1beta1.AnnotationSpec> + defaultEntry = com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance()); + . + newDefaultInstance( + com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_AnnotationColorsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance()); } + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.datalabeling.v1beta1.AnnotationSpec> + annotationColors_; + private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datalabeling.v1beta1.AnnotationSpec> annotationColors_; - private com.google.protobuf.MapField - internalGetAnnotationColors() { + java.lang.String, com.google.cloud.datalabeling.v1beta1.AnnotationSpec> + internalGetAnnotationColors() { if (annotationColors_ == null) { return com.google.protobuf.MapField.emptyMapField( AnnotationColorsDefaultEntryHolder.defaultEntry); @@ -152,76 +185,92 @@ public int getAnnotationColorsCount() { return internalGetAnnotationColors().getMap().size(); } /** + * + * *
    * The mapping between rgb color and annotation spec. The key is the rgb
    * color represented in format of rgb(0, 0, 0). The value is the
    * AnnotationSpec.
    * 
* - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * */ - @java.lang.Override - public boolean containsAnnotationColors( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotationColors(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotationColors().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationColorsMap()} instead. - */ + /** Use {@link #getAnnotationColorsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getAnnotationColors() { + public java.util.Map + getAnnotationColors() { return getAnnotationColorsMap(); } /** + * + * *
    * The mapping between rgb color and annotation spec. The key is the rgb
    * color represented in format of rgb(0, 0, 0). The value is the
    * AnnotationSpec.
    * 
* - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * */ @java.lang.Override - - public java.util.Map getAnnotationColorsMap() { + public java.util.Map + getAnnotationColorsMap() { return internalGetAnnotationColors().getMap(); } /** + * + * *
    * The mapping between rgb color and annotation spec. The key is the rgb
    * color represented in format of rgb(0, 0, 0). The value is the
    * AnnotationSpec.
    * 
* - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationColorsOrDefault( - java.lang.String key, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.cloud.datalabeling.v1beta1.AnnotationSpec defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetAnnotationColors().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
    * The mapping between rgb color and annotation spec. The key is the rgb
    * color represented in format of rgb(0, 0, 0). The value is the
    * AnnotationSpec.
    * 
* - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationColorsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetAnnotationColors().getMap(); if (!map.containsKey(key)) { @@ -233,11 +282,14 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationColorsO public static final int MIME_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object mimeType_; /** + * + * *
    * Image format.
    * 
* * string mime_type = 2; + * * @return The mimeType. */ @java.lang.Override @@ -246,29 +298,29 @@ 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; } } /** + * + * *
    * Image format.
    * 
* * 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 { @@ -279,11 +331,14 @@ public java.lang.String getMimeType() { public static final int IMAGE_BYTES_FIELD_NUMBER = 3; private com.google.protobuf.ByteString imageBytes_; /** + * + * *
    * A byte string of a full image's color map.
    * 
* * bytes image_bytes = 3; + * * @return The imageBytes. */ @java.lang.Override @@ -292,6 +347,7 @@ public com.google.protobuf.ByteString getImageBytes() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -303,14 +359,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, - internalGetAnnotationColors(), - AnnotationColorsDefaultEntryHolder.defaultEntry, - 1); + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3.serializeStringMapTo( + output, internalGetAnnotationColors(), AnnotationColorsDefaultEntryHolder.defaultEntry, 1); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, mimeType_); } @@ -326,22 +377,23 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (java.util.Map.Entry entry - : internalGetAnnotationColors().getMap().entrySet()) { - com.google.protobuf.MapEntry - annotationColors__ = AnnotationColorsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, annotationColors__); + for (java.util.Map.Entry + entry : internalGetAnnotationColors().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.datalabeling.v1beta1.AnnotationSpec> + annotationColors__ = + AnnotationColorsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, annotationColors__); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(mimeType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, mimeType_); } if (!imageBytes_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, imageBytes_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(3, imageBytes_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -351,19 +403,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.datalabeling.v1beta1.ImageSegmentationAnnotation)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation other = (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) obj; + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation other = + (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) obj; - if (!internalGetAnnotationColors().equals( - other.internalGetAnnotationColors())) return false; - if (!getMimeType() - .equals(other.getMimeType())) return false; - if (!getImageBytes() - .equals(other.getImageBytes())) return false; + if (!internalGetAnnotationColors().equals(other.internalGetAnnotationColors())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; + if (!getImageBytes().equals(other.getImageBytes())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -389,156 +439,165 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation 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.datalabeling.v1beta1.ImageSegmentationAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation 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.datalabeling.v1beta1.ImageSegmentationAnnotation + 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.datalabeling.v1beta1.ImageSegmentationAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Image segmentation annotation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetAnnotationColors(); 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 internalGetMutableAnnotationColors(); 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.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.class, com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.class, + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.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(); @@ -551,13 +610,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImageSegmentationAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.getDefaultInstance(); } @@ -572,7 +632,8 @@ public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation buildPartial() { - com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation result = new com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation(this); + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation result = + new com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation(this); int from_bitField0_ = bitField0_; result.annotationColors_ = internalGetAnnotationColors(); result.annotationColors_.makeImmutable(); @@ -586,48 +647,51 @@ public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation 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.datalabeling.v1beta1.ImageSegmentationAnnotation) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation other) { - if (other == com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.getDefaultInstance()) return this; - internalGetMutableAnnotationColors().mergeFrom( - other.internalGetAnnotationColors()); + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation other) { + if (other + == com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation.getDefaultInstance()) + return this; + internalGetMutableAnnotationColors().mergeFrom(other.internalGetAnnotationColors()); if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; onChanged(); @@ -654,7 +718,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -663,24 +729,32 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datalabeling.v1beta1.AnnotationSpec> annotationColors_; - private com.google.protobuf.MapField - internalGetAnnotationColors() { + java.lang.String, com.google.cloud.datalabeling.v1beta1.AnnotationSpec> + annotationColors_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.datalabeling.v1beta1.AnnotationSpec> + internalGetAnnotationColors() { if (annotationColors_ == null) { return com.google.protobuf.MapField.emptyMapField( AnnotationColorsDefaultEntryHolder.defaultEntry); } return annotationColors_; } - private com.google.protobuf.MapField - internalGetMutableAnnotationColors() { - onChanged();; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.datalabeling.v1beta1.AnnotationSpec> + internalGetMutableAnnotationColors() { + onChanged(); + ; if (annotationColors_ == null) { - annotationColors_ = com.google.protobuf.MapField.newMapField( - AnnotationColorsDefaultEntryHolder.defaultEntry); + annotationColors_ = + com.google.protobuf.MapField.newMapField( + AnnotationColorsDefaultEntryHolder.defaultEntry); } if (!annotationColors_.isMutable()) { annotationColors_ = annotationColors_.copy(); @@ -692,76 +766,92 @@ public int getAnnotationColorsCount() { return internalGetAnnotationColors().getMap().size(); } /** + * + * *
      * The mapping between rgb color and annotation spec. The key is the rgb
      * color represented in format of rgb(0, 0, 0). The value is the
      * AnnotationSpec.
      * 
* - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * */ - @java.lang.Override - public boolean containsAnnotationColors( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + public boolean containsAnnotationColors(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } return internalGetAnnotationColors().getMap().containsKey(key); } - /** - * Use {@link #getAnnotationColorsMap()} instead. - */ + /** Use {@link #getAnnotationColorsMap()} instead. */ @java.lang.Override @java.lang.Deprecated - public java.util.Map getAnnotationColors() { + public java.util.Map + getAnnotationColors() { return getAnnotationColorsMap(); } /** + * + * *
      * The mapping between rgb color and annotation spec. The key is the rgb
      * color represented in format of rgb(0, 0, 0). The value is the
      * AnnotationSpec.
      * 
* - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * */ @java.lang.Override - - public java.util.Map getAnnotationColorsMap() { + public java.util.Map + getAnnotationColorsMap() { return internalGetAnnotationColors().getMap(); } /** + * + * *
      * The mapping between rgb color and annotation spec. The key is the rgb
      * color represented in format of rgb(0, 0, 0). The value is the
      * AnnotationSpec.
      * 
* - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationColorsOrDefault( - java.lang.String key, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.cloud.datalabeling.v1beta1.AnnotationSpec defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetAnnotationColors().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** + * + * *
      * The mapping between rgb color and annotation spec. The key is the rgb
      * color represented in format of rgb(0, 0, 0). The value is the
      * AnnotationSpec.
      * 
* - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationColorsOrThrow( java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } + if (key == null) { + throw new NullPointerException("map key"); + } java.util.Map map = internalGetAnnotationColors().getMap(); if (!map.containsKey(key)) { @@ -771,87 +861,96 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationColorsO } public Builder clearAnnotationColors() { - internalGetMutableAnnotationColors().getMutableMap() - .clear(); + internalGetMutableAnnotationColors().getMutableMap().clear(); return this; } /** + * + * *
      * The mapping between rgb color and annotation spec. The key is the rgb
      * color represented in format of rgb(0, 0, 0). The value is the
      * AnnotationSpec.
      * 
* - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * */ - - public Builder removeAnnotationColors( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableAnnotationColors().getMutableMap() - .remove(key); + public Builder removeAnnotationColors(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotationColors().getMutableMap().remove(key); return this; } - /** - * Use alternate mutation accessors instead. - */ + /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map - getMutableAnnotationColors() { + getMutableAnnotationColors() { return internalGetMutableAnnotationColors().getMutableMap(); } /** + * + * *
      * The mapping between rgb color and annotation spec. The key is the rgb
      * color represented in format of rgb(0, 0, 0). The value is the
      * AnnotationSpec.
      * 
* - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * */ public Builder putAnnotationColors( - java.lang.String key, - com.google.cloud.datalabeling.v1beta1.AnnotationSpec value) { - if (key == null) { throw new NullPointerException("map key"); } + java.lang.String key, com.google.cloud.datalabeling.v1beta1.AnnotationSpec value) { + if (key == null) { + throw new NullPointerException("map key"); + } if (value == null) { - throw new NullPointerException("map value"); -} + throw new NullPointerException("map value"); + } - internalGetMutableAnnotationColors().getMutableMap() - .put(key, value); + internalGetMutableAnnotationColors().getMutableMap().put(key, value); return this; } /** + * + * *
      * The mapping between rgb color and annotation spec. The key is the rgb
      * color represented in format of rgb(0, 0, 0). The value is the
      * AnnotationSpec.
      * 
* - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * */ - public Builder putAllAnnotationColors( - java.util.Map values) { - internalGetMutableAnnotationColors().getMutableMap() - .putAll(values); + java.util.Map + values) { + internalGetMutableAnnotationColors().getMutableMap().putAll(values); return this; } private java.lang.Object mimeType_ = ""; /** + * + * *
      * Image format.
      * 
* * 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; @@ -860,20 +959,21 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Image format.
      * 
* * 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 { @@ -881,54 +981,61 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Image format.
      * 
* * 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; } /** + * + * *
      * Image format.
      * 
* * string mime_type = 2; + * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** + * + * *
      * Image format.
      * 
* * 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; @@ -936,11 +1043,14 @@ public Builder setMimeTypeBytes( private com.google.protobuf.ByteString imageBytes_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * A byte string of a full image's color map.
      * 
* * bytes image_bytes = 3; + * * @return The imageBytes. */ @java.lang.Override @@ -948,40 +1058,46 @@ public com.google.protobuf.ByteString getImageBytes() { return imageBytes_; } /** + * + * *
      * A byte string of a full image's color map.
      * 
* * bytes image_bytes = 3; + * * @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(); - } - + throw new NullPointerException(); + } + imageBytes_ = value; onChanged(); return this; } /** + * + * *
      * A byte string of a full image's color map.
      * 
* * bytes image_bytes = 3; + * * @return This builder for chaining. */ public Builder clearImageBytes() { - + imageBytes_ = getDefaultInstance().getImageBytes(); 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); } @@ -991,30 +1107,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) - private static final com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation(); } - public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImageSegmentationAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImageSegmentationAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImageSegmentationAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImageSegmentationAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1026,9 +1144,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotationOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotationOrBuilder.java similarity index 56% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotationOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotationOrBuilder.java index 35ef122c..abcf04a5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotationOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImageSegmentationAnnotationOrBuilder.java @@ -1,104 +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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface ImageSegmentationAnnotationOrBuilder extends +public interface ImageSegmentationAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The mapping between rgb color and annotation spec. The key is the rgb
    * color represented in format of rgb(0, 0, 0). The value is the
    * AnnotationSpec.
    * 
* - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * */ int getAnnotationColorsCount(); /** + * + * *
    * The mapping between rgb color and annotation spec. The key is the rgb
    * color represented in format of rgb(0, 0, 0). The value is the
    * AnnotationSpec.
    * 
* - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; - */ - boolean containsAnnotationColors( - java.lang.String key); - /** - * Use {@link #getAnnotationColorsMap()} instead. + * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * */ + boolean containsAnnotationColors(java.lang.String key); + /** Use {@link #getAnnotationColorsMap()} instead. */ @java.lang.Deprecated java.util.Map - getAnnotationColors(); + getAnnotationColors(); /** + * + * *
    * The mapping between rgb color and annotation spec. The key is the rgb
    * color represented in format of rgb(0, 0, 0). The value is the
    * AnnotationSpec.
    * 
* - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * */ java.util.Map - getAnnotationColorsMap(); + getAnnotationColorsMap(); /** + * + * *
    * The mapping between rgb color and annotation spec. The key is the rgb
    * color represented in format of rgb(0, 0, 0). The value is the
    * AnnotationSpec.
    * 
* - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * */ /* nullable */ -com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationColorsOrDefault( + com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationColorsOrDefault( java.lang.String key, /* nullable */ -com.google.cloud.datalabeling.v1beta1.AnnotationSpec defaultValue); + com.google.cloud.datalabeling.v1beta1.AnnotationSpec defaultValue); /** + * + * *
    * The mapping between rgb color and annotation spec. The key is the rgb
    * color represented in format of rgb(0, 0, 0). The value is the
    * AnnotationSpec.
    * 
* - * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * + * map<string, .google.cloud.datalabeling.v1beta1.AnnotationSpec> annotation_colors = 1; + * */ - com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationColorsOrThrow( java.lang.String key); /** + * + * *
    * Image format.
    * 
* * string mime_type = 2; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Image format.
    * 
* * string mime_type = 2; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); /** + * + * *
    * A byte string of a full image's color map.
    * 
* * bytes image_bytes = 3; + * * @return The imageBytes. */ com.google.protobuf.ByteString getImageBytes(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadata.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadata.java similarity index 74% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadata.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadata.java index d76c859c..6e87621b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadata.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadata.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Metadata of an ImportData operation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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() { dataset_ = ""; partialFailures_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ 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) @@ -55,41 +72,45 @@ private ImportDataOperationMetadata( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - dataset_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - partialFailures_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + dataset_ = s; + break; } - 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; - } - 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) { @@ -97,8 +118,7 @@ private ImportDataOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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_); @@ -107,28 +127,34 @@ private ImportDataOperationMetadata( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.Builder.class); } public static final int DATASET_FIELD_NUMBER = 1; private volatile java.lang.Object dataset_; /** + * + * *
    * Output only. The name of imported dataset.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; + * * @return The dataset. */ @java.lang.Override @@ -137,30 +163,30 @@ public java.lang.String getDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; } } /** + * + * *
    * Output only. The name of imported dataset.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; + * * @return The bytes for dataset. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatasetBytes() { + public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataset_ = b; return b; } else { @@ -171,6 +197,8 @@ public java.lang.String getDataset() { 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.
@@ -184,6 +212,8 @@ public java.util.List getPartialFailuresList() {
     return partialFailures_;
   }
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -193,11 +223,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.
@@ -211,6 +243,8 @@ public int getPartialFailuresCount() {
     return partialFailures_.size();
   }
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -224,6 +258,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.
@@ -233,19 +269,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. Timestamp when import dataset request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -253,11 +291,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Timestamp when import dataset request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return The createTime. */ @java.lang.Override @@ -265,6 +306,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Timestamp when import dataset request was created.
    * 
@@ -277,6 +320,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,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(dataset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); } @@ -312,12 +355,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataset_); } 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()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -327,21 +368,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.datalabeling.v1beta1.ImportDataOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata other = + (com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata) obj; - if (!getDataset() - .equals(other.getDataset())) return false; - if (!getPartialFailuresList() - .equals(other.getPartialFailuresList())) return false; + if (!getDataset().equals(other.getDataset())) 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 (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -370,135 +409,147 @@ public int hashCode() { } public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ImportDataOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ImportDataOperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ImportDataOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ImportDataOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ImportDataOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.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; } /** + * + * *
    * Metadata of an ImportData operation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.ImportDataOperationMetadata) com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.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) { getPartialFailuresFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -520,13 +571,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.getDefaultInstance(); } @@ -541,7 +593,8 @@ public com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata(this); + com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata result = + new com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata(this); int from_bitField0_ = bitField0_; result.dataset_ = dataset_; if (partialFailuresBuilder_ == null) { @@ -566,46 +619,50 @@ public com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata 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.datalabeling.v1beta1.ImportDataOperationMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata other) { - if (other == com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata other) { + if (other + == com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata.getDefaultInstance()) + return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; onChanged(); @@ -628,9 +685,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ImportDataOperati 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_); } @@ -658,7 +716,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -667,23 +727,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object dataset_ = ""; /** + * + * *
      * Output only. The name of imported dataset.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; + * * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; @@ -692,21 +755,22 @@ public java.lang.String getDataset() { } } /** + * + * *
      * Output only. The name of imported dataset.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; + * * @return The bytes for dataset. */ - public com.google.protobuf.ByteString - getDatasetBytes() { + public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataset_ = b; return b; } else { @@ -714,75 +778,86 @@ public java.lang.String getDataset() { } } /** + * + * *
      * Output only. The name of imported dataset.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; + * * @param value The dataset to set. * @return This builder for chaining. */ - public Builder setDataset( - java.lang.String value) { + public Builder setDataset(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataset_ = value; onChanged(); return this; } /** + * + * *
      * Output only. The name of imported dataset.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; + * * @return This builder for chaining. */ public Builder clearDataset() { - + dataset_ = getDefaultInstance().getDataset(); onChanged(); return this; } /** + * + * *
      * Output only. The name of imported dataset.
      * "projects/*/datasets/*"
      * 
* * string dataset = 1; + * * @param value The bytes for dataset to set. * @return This builder for chaining. */ - public Builder setDatasetBytes( - com.google.protobuf.ByteString value) { + public Builder setDatasetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; 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.
@@ -799,6 +874,8 @@ public java.util.List getPartialFailuresList() {
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -815,6 +892,8 @@ public int getPartialFailuresCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -831,6 +910,8 @@ public com.google.rpc.Status getPartialFailures(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -839,8 +920,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();
@@ -854,6 +934,8 @@ public Builder setPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -862,8 +944,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());
@@ -874,6 +955,8 @@ public Builder setPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -896,6 +979,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.
@@ -904,8 +989,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();
@@ -919,6 +1003,8 @@ public Builder addPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -927,8 +1013,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());
@@ -939,6 +1024,8 @@ public Builder addPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -947,8 +1034,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());
@@ -959,6 +1045,8 @@ public Builder addPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -971,8 +1059,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);
@@ -980,6 +1067,8 @@ public Builder addAllPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -999,6 +1088,8 @@ public Builder clearPartialFailures() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1018,6 +1109,8 @@ public Builder removePartialFailures(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1026,11 +1119,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.
@@ -1039,14 +1133,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.
@@ -1055,8 +1151,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 {
@@ -1064,6 +1160,8 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -1073,10 +1171,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.
@@ -1085,12 +1185,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.
@@ -1099,16 +1200,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(),
@@ -1120,34 +1224,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. Timestamp when import dataset request 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. Timestamp when import dataset request 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. Timestamp when import dataset request was created.
      * 
@@ -1168,14 +1285,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp when import dataset request 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(); @@ -1186,6 +1304,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Timestamp when import dataset request was created.
      * 
@@ -1196,7 +1316,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; } @@ -1208,6 +1328,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp when import dataset request was created.
      * 
@@ -1226,6 +1348,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Timestamp when import dataset request was created.
      * 
@@ -1233,11 +1357,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 3; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Timestamp when import dataset request was created.
      * 
@@ -1248,11 +1374,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 import dataset request was created.
      * 
@@ -1260,21 +1389,24 @@ 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_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1284,30 +1416,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportDataOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportDataOperationMetadata(input, extensionRegistry); - } - }; + 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; @@ -1319,9 +1453,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadataOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadataOrBuilder.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadataOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadataOrBuilder.java index 74d328aa..8bfa49a2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadataOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface ImportDataOperationMetadataOrBuilder extends +public interface ImportDataOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ImportDataOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The name of imported dataset.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; + * * @return The dataset. */ java.lang.String getDataset(); /** + * + * *
    * Output only. The name of imported dataset.
    * "projects/*/datasets/*"
    * 
* * string dataset = 1; + * * @return The bytes for dataset. */ - com.google.protobuf.ByteString - getDatasetBytes(); + com.google.protobuf.ByteString getDatasetBytes(); /** + * + * *
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -38,9 +61,10 @@ public interface ImportDataOperationMetadataOrBuilder 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.
@@ -51,6 +75,8 @@ public interface ImportDataOperationMetadataOrBuilder extends
    */
   com.google.rpc.Status getPartialFailures(int index);
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -61,6 +87,8 @@ public interface ImportDataOperationMetadataOrBuilder extends
    */
   int getPartialFailuresCount();
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -69,9 +97,10 @@ public interface ImportDataOperationMetadataOrBuilder 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.
@@ -80,28 +109,35 @@ public interface ImportDataOperationMetadataOrBuilder extends
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
-      int index);
+  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Output only. Timestamp when import dataset request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Timestamp when import dataset request was created.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Timestamp when import dataset request was created.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponse.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponse.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponse.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponse.java index 8c94eb9c..27a993cc 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponse.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponse.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Response used for ImportData longrunning operation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImportDataOperationResponse} */ -public final class ImportDataOperationResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ImportDataOperationResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ImportDataOperationResponse) ImportDataOperationResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ImportDataOperationResponse.newBuilder() to construct. private ImportDataOperationResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ImportDataOperationResponse() { dataset_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ImportDataOperationResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ImportDataOperationResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,29 +70,30 @@ private ImportDataOperationResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - dataset_ = s; - break; - } - case 16: { - - totalCount_ = input.readInt32(); - break; - } - case 24: { - - importCount_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + dataset_ = s; + break; + } + case 16: + { + totalCount_ = input.readInt32(); + break; + } + case 24: + { + importCount_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -83,34 +101,39 @@ private ImportDataOperationResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.class, com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.class, + com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.Builder.class); } public static final int DATASET_FIELD_NUMBER = 1; private volatile java.lang.Object dataset_; /** + * + * *
    * Ouptut only. The name of imported dataset.
    * 
* * string dataset = 1; + * * @return The dataset. */ @java.lang.Override @@ -119,29 +142,29 @@ public java.lang.String getDataset() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; } } /** + * + * *
    * Ouptut only. The name of imported dataset.
    * 
* * string dataset = 1; + * * @return The bytes for dataset. */ @java.lang.Override - public com.google.protobuf.ByteString - getDatasetBytes() { + public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataset_ = b; return b; } else { @@ -152,11 +175,14 @@ public java.lang.String getDataset() { public static final int TOTAL_COUNT_FIELD_NUMBER = 2; private int totalCount_; /** + * + * *
    * Output only. Total number of examples requested to import
    * 
* * int32 total_count = 2; + * * @return The totalCount. */ @java.lang.Override @@ -167,11 +193,14 @@ public int getTotalCount() { public static final int IMPORT_COUNT_FIELD_NUMBER = 3; private int importCount_; /** + * + * *
    * Output only. Number of examples imported successfully.
    * 
* * int32 import_count = 3; + * * @return The importCount. */ @java.lang.Override @@ -180,6 +209,7 @@ public int getImportCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -191,8 +221,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(dataset_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataset_); } @@ -215,12 +244,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataset_); } if (totalCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, totalCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, totalCount_); } if (importCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, importCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, importCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -230,19 +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.datalabeling.v1beta1.ImportDataOperationResponse)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse other = (com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse) obj; + com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse other = + (com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse) obj; - if (!getDataset() - .equals(other.getDataset())) return false; - if (getTotalCount() - != other.getTotalCount()) return false; - if (getImportCount() - != other.getImportCount()) return false; + if (!getDataset().equals(other.getDataset())) return false; + if (getTotalCount() != other.getTotalCount()) return false; + if (getImportCount() != other.getImportCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -266,134 +291,145 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse 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.datalabeling.v1beta1.ImportDataOperationResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse 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.datalabeling.v1beta1.ImportDataOperationResponse + 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.datalabeling.v1beta1.ImportDataOperationResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 used for ImportData longrunning operation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ImportDataOperationResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ImportDataOperationResponse) com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.class, com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.class, + com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.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(); @@ -407,13 +443,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.getDefaultInstance(); } @@ -428,7 +465,8 @@ public com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse buildPartial() { - com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse result = new com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse(this); + com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse result = + new com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse(this); result.dataset_ = dataset_; result.totalCount_ = totalCount_; result.importCount_ = importCount_; @@ -440,46 +478,50 @@ public com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse 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.datalabeling.v1beta1.ImportDataOperationResponse) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse other) { - if (other == com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse other) { + if (other + == com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse.getDefaultInstance()) + return this; if (!other.getDataset().isEmpty()) { dataset_ = other.dataset_; onChanged(); @@ -509,7 +551,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -521,18 +565,20 @@ public Builder mergeFrom( private java.lang.Object dataset_ = ""; /** + * + * *
      * Ouptut only. The name of imported dataset.
      * 
* * string dataset = 1; + * * @return The dataset. */ public java.lang.String getDataset() { java.lang.Object ref = dataset_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dataset_ = s; return s; @@ -541,20 +587,21 @@ public java.lang.String getDataset() { } } /** + * + * *
      * Ouptut only. The name of imported dataset.
      * 
* * string dataset = 1; + * * @return The bytes for dataset. */ - public com.google.protobuf.ByteString - getDatasetBytes() { + public com.google.protobuf.ByteString getDatasetBytes() { java.lang.Object ref = dataset_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); dataset_ = b; return b; } else { @@ -562,66 +609,76 @@ public java.lang.String getDataset() { } } /** + * + * *
      * Ouptut only. The name of imported dataset.
      * 
* * string dataset = 1; + * * @param value The dataset to set. * @return This builder for chaining. */ - public Builder setDataset( - java.lang.String value) { + public Builder setDataset(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + dataset_ = value; onChanged(); return this; } /** + * + * *
      * Ouptut only. The name of imported dataset.
      * 
* * string dataset = 1; + * * @return This builder for chaining. */ public Builder clearDataset() { - + dataset_ = getDefaultInstance().getDataset(); onChanged(); return this; } /** + * + * *
      * Ouptut only. The name of imported dataset.
      * 
* * string dataset = 1; + * * @param value The bytes for dataset to set. * @return This builder for chaining. */ - public Builder setDatasetBytes( - com.google.protobuf.ByteString value) { + public Builder setDatasetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataset_ = value; onChanged(); return this; } - private int totalCount_ ; + private int totalCount_; /** + * + * *
      * Output only. Total number of examples requested to import
      * 
* * int32 total_count = 2; + * * @return The totalCount. */ @java.lang.Override @@ -629,42 +686,51 @@ public int getTotalCount() { return totalCount_; } /** + * + * *
      * Output only. Total number of examples requested to import
      * 
* * int32 total_count = 2; + * * @param value The totalCount to set. * @return This builder for chaining. */ public Builder setTotalCount(int value) { - + totalCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Total number of examples requested to import
      * 
* * int32 total_count = 2; + * * @return This builder for chaining. */ public Builder clearTotalCount() { - + totalCount_ = 0; onChanged(); return this; } - private int importCount_ ; + private int importCount_; /** + * + * *
      * Output only. Number of examples imported successfully.
      * 
* * int32 import_count = 3; + * * @return The importCount. */ @java.lang.Override @@ -672,37 +738,43 @@ public int getImportCount() { return importCount_; } /** + * + * *
      * Output only. Number of examples imported successfully.
      * 
* * int32 import_count = 3; + * * @param value The importCount to set. * @return This builder for chaining. */ public Builder setImportCount(int value) { - + importCount_ = value; onChanged(); return this; } /** + * + * *
      * Output only. Number of examples imported successfully.
      * 
* * int32 import_count = 3; + * * @return This builder for chaining. */ public Builder clearImportCount() { - + importCount_ = 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); } @@ -712,30 +784,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ImportDataOperationResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImportDataOperationResponse) - private static final com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse(); } - public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportDataOperationResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ImportDataOperationResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ImportDataOperationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ImportDataOperationResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -747,9 +821,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ImportDataOperationResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponseOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponseOrBuilder.java similarity index 58% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponseOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponseOrBuilder.java index b939a423..e004729a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponseOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataOperationResponseOrBuilder.java @@ -1,48 +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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface ImportDataOperationResponseOrBuilder extends +public interface ImportDataOperationResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ImportDataOperationResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Ouptut only. The name of imported dataset.
    * 
* * string dataset = 1; + * * @return The dataset. */ java.lang.String getDataset(); /** + * + * *
    * Ouptut only. The name of imported dataset.
    * 
* * string dataset = 1; + * * @return The bytes for dataset. */ - com.google.protobuf.ByteString - getDatasetBytes(); + com.google.protobuf.ByteString getDatasetBytes(); /** + * + * *
    * Output only. Total number of examples requested to import
    * 
* * int32 total_count = 2; + * * @return The totalCount. */ int getTotalCount(); /** + * + * *
    * Output only. Number of examples imported successfully.
    * 
* * int32 import_count = 3; + * * @return The importCount. */ int getImportCount(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequest.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequest.java index e85c9b9a..3a72fa86 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for ImportData API.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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_ = ""; userEmailAddress_ = ""; @@ -26,16 +44,15 @@ private ImportDataRequest() { @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) @@ -54,38 +71,44 @@ 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 18: { - com.google.cloud.datalabeling.v1beta1.InputConfig.Builder subBuilder = null; - if (inputConfig_ != null) { - subBuilder = inputConfig_.toBuilder(); - } - inputConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.InputConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(inputConfig_); - inputConfig_ = subBuilder.buildPartial(); + name_ = s; + break; } + case 18: + { + com.google.cloud.datalabeling.v1beta1.InputConfig.Builder subBuilder = null; + if (inputConfig_ != null) { + subBuilder = inputConfig_.toBuilder(); + } + inputConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.InputConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(inputConfig_); + inputConfig_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - userEmailAddress_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + userEmailAddress_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -93,35 +116,42 @@ private ImportDataRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImportDataRequest.class, com.google.cloud.datalabeling.v1beta1.ImportDataRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImportDataRequest.class, + com.google.cloud.datalabeling.v1beta1.ImportDataRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Dataset resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * string 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 @@ -130,30 +160,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 resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * string 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 { @@ -164,11 +196,16 @@ public java.lang.String getName() { public static final int INPUT_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.InputConfig inputConfig_; /** + * + * *
    * Required. Specify the input source of the data.
    * 
* - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ @java.lang.Override @@ -176,23 +213,34 @@ public boolean hasInputConfig() { return inputConfig_ != null; } /** + * + * *
    * Required. Specify the input source of the data.
    * 
* - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.InputConfig getInputConfig() { - return inputConfig_ == null ? com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance() + : inputConfig_; } /** + * + * *
    * Required. Specify the input source of the data.
    * 
* - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { @@ -202,12 +250,15 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig public static final int USER_EMAIL_ADDRESS_FIELD_NUMBER = 3; private volatile java.lang.Object userEmailAddress_; /** + * + * *
    * Email of the user who started the import task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 3; + * * @return The userEmailAddress. */ @java.lang.Override @@ -216,30 +267,30 @@ public java.lang.String getUserEmailAddress() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userEmailAddress_ = s; return s; } } /** + * + * *
    * Email of the user who started the import task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 3; + * * @return The bytes for userEmailAddress. */ @java.lang.Override - public com.google.protobuf.ByteString - getUserEmailAddressBytes() { + public com.google.protobuf.ByteString getUserEmailAddressBytes() { java.lang.Object ref = userEmailAddress_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userEmailAddress_ = b; return b; } else { @@ -248,6 +299,7 @@ public java.lang.String getUserEmailAddress() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,8 +311,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_); } @@ -283,8 +334,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (inputConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getInputConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getInputConfig()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userEmailAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, userEmailAddress_); @@ -297,22 +347,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.datalabeling.v1beta1.ImportDataRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ImportDataRequest other = (com.google.cloud.datalabeling.v1beta1.ImportDataRequest) obj; + com.google.cloud.datalabeling.v1beta1.ImportDataRequest other = + (com.google.cloud.datalabeling.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 (!getUserEmailAddress() - .equals(other.getUserEmailAddress())) return false; + if (!getUserEmailAddress().equals(other.getUserEmailAddress())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -338,117 +386,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ImportDataRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ImportDataRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ImportDataRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ImportDataRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ImportDataRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ImportDataRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ImportDataRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.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 ImportData API.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.ImportDataRequest) com.google.cloud.datalabeling.v1beta1.ImportDataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ImportDataRequest.class, com.google.cloud.datalabeling.v1beta1.ImportDataRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ImportDataRequest.class, + com.google.cloud.datalabeling.v1beta1.ImportDataRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ImportDataRequest.newBuilder() @@ -456,16 +514,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(); @@ -483,9 +540,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ImportDataRequest_descriptor; } @java.lang.Override @@ -504,7 +561,8 @@ public com.google.cloud.datalabeling.v1beta1.ImportDataRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ImportDataRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.ImportDataRequest result = new com.google.cloud.datalabeling.v1beta1.ImportDataRequest(this); + com.google.cloud.datalabeling.v1beta1.ImportDataRequest result = + new com.google.cloud.datalabeling.v1beta1.ImportDataRequest(this); result.name_ = name_; if (inputConfigBuilder_ == null) { result.inputConfig_ = inputConfig_; @@ -520,38 +578,39 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.ImportDataRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImportDataRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ImportDataRequest) other); } else { super.mergeFrom(other); return this; @@ -559,7 +618,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ImportDataRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.ImportDataRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.ImportDataRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -590,7 +650,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ImportDataRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ImportDataRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -602,19 +663,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * string 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; @@ -623,21 +688,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * string 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 { @@ -645,57 +713,70 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Dataset resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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 resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * string 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 resource name, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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; @@ -703,39 +784,58 @@ public Builder setNameBytes( private com.google.cloud.datalabeling.v1beta1.InputConfig inputConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.InputConfig, com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder> inputConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.InputConfig, + com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, + com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder> + inputConfigBuilder_; /** + * + * *
      * Required. Specify the input source of the data.
      * 
* - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ public boolean hasInputConfig() { return inputConfigBuilder_ != null || inputConfig_ != null; } /** + * + * *
      * Required. Specify the input source of the data.
      * 
* - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ public com.google.cloud.datalabeling.v1beta1.InputConfig getInputConfig() { if (inputConfigBuilder_ == null) { - return inputConfig_ == null ? com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance() + : inputConfig_; } else { return inputConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Specify the input source of the data.
      * 
* - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig(com.google.cloud.datalabeling.v1beta1.InputConfig value) { if (inputConfigBuilder_ == null) { @@ -751,11 +851,15 @@ public Builder setInputConfig(com.google.cloud.datalabeling.v1beta1.InputConfig return this; } /** + * + * *
      * Required. Specify the input source of the data.
      * 
* - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setInputConfig( com.google.cloud.datalabeling.v1beta1.InputConfig.Builder builderForValue) { @@ -769,17 +873,23 @@ public Builder setInputConfig( return this; } /** + * + * *
      * Required. Specify the input source of the data.
      * 
* - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeInputConfig(com.google.cloud.datalabeling.v1beta1.InputConfig value) { if (inputConfigBuilder_ == null) { if (inputConfig_ != null) { inputConfig_ = - com.google.cloud.datalabeling.v1beta1.InputConfig.newBuilder(inputConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.InputConfig.newBuilder(inputConfig_) + .mergeFrom(value) + .buildPartial(); } else { inputConfig_ = value; } @@ -791,11 +901,15 @@ public Builder mergeInputConfig(com.google.cloud.datalabeling.v1beta1.InputConfi return this; } /** + * + * *
      * Required. Specify the input source of the data.
      * 
* - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearInputConfig() { if (inputConfigBuilder_ == null) { @@ -809,48 +923,64 @@ public Builder clearInputConfig() { return this; } /** + * + * *
      * Required. Specify the input source of the data.
      * 
* - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.InputConfig.Builder getInputConfigBuilder() { - + onChanged(); return getInputConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Specify the input source of the data.
      * 
* - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder() { if (inputConfigBuilder_ != null) { return inputConfigBuilder_.getMessageOrBuilder(); } else { - return inputConfig_ == null ? - com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance() : inputConfig_; + return inputConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance() + : inputConfig_; } } /** + * + * *
      * Required. Specify the input source of the data.
      * 
* - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.InputConfig, com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.InputConfig, + com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, + com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder> getInputConfigFieldBuilder() { if (inputConfigBuilder_ == null) { - inputConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.InputConfig, com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder>( - getInputConfig(), - getParentForChildren(), - isClean()); + inputConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.InputConfig, + com.google.cloud.datalabeling.v1beta1.InputConfig.Builder, + com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder>( + getInputConfig(), getParentForChildren(), isClean()); inputConfig_ = null; } return inputConfigBuilder_; @@ -858,19 +988,21 @@ public com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfig private java.lang.Object userEmailAddress_ = ""; /** + * + * *
      * Email of the user who started the import task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 3; + * * @return The userEmailAddress. */ public java.lang.String getUserEmailAddress() { java.lang.Object ref = userEmailAddress_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userEmailAddress_ = s; return s; @@ -879,21 +1011,22 @@ public java.lang.String getUserEmailAddress() { } } /** + * + * *
      * Email of the user who started the import task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 3; + * * @return The bytes for userEmailAddress. */ - public com.google.protobuf.ByteString - getUserEmailAddressBytes() { + public com.google.protobuf.ByteString getUserEmailAddressBytes() { java.lang.Object ref = userEmailAddress_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); userEmailAddress_ = b; return b; } else { @@ -901,64 +1034,71 @@ public java.lang.String getUserEmailAddress() { } } /** + * + * *
      * Email of the user who started the import task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 3; + * * @param value The userEmailAddress to set. * @return This builder for chaining. */ - public Builder setUserEmailAddress( - java.lang.String value) { + public Builder setUserEmailAddress(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + userEmailAddress_ = value; onChanged(); return this; } /** + * + * *
      * Email of the user who started the import task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 3; + * * @return This builder for chaining. */ public Builder clearUserEmailAddress() { - + userEmailAddress_ = getDefaultInstance().getUserEmailAddress(); onChanged(); return this; } /** + * + * *
      * Email of the user who started the import task and should be notified by
      * email. If empty no notification will be sent.
      * 
* * string user_email_address = 3; + * * @param value The bytes for userEmailAddress to set. * @return This builder for chaining. */ - public Builder setUserEmailAddressBytes( - com.google.protobuf.ByteString value) { + public Builder setUserEmailAddressBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userEmailAddress_ = 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); } @@ -968,12 +1108,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ImportDataRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ImportDataRequest) private static final com.google.cloud.datalabeling.v1beta1.ImportDataRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ImportDataRequest(); } @@ -982,16 +1122,16 @@ public static com.google.cloud.datalabeling.v1beta1.ImportDataRequest getDefault 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; @@ -1006,6 +1146,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ImportDataRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequestOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequestOrBuilder.java index c10aab81..4a4ae040 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequestOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ImportDataRequestOrBuilder.java @@ -1,80 +1,124 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ImportDataRequestOrBuilder extends +public interface ImportDataRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ImportDataRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Dataset resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * string 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. Dataset resource name, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * string 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. Specify the input source of the data.
    * 
* - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the inputConfig field is set. */ boolean hasInputConfig(); /** + * + * *
    * Required. Specify the input source of the data.
    * 
* - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The inputConfig. */ com.google.cloud.datalabeling.v1beta1.InputConfig getInputConfig(); /** + * + * *
    * Required. Specify the input source of the data.
    * 
* - * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.InputConfig input_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder getInputConfigOrBuilder(); /** + * + * *
    * Email of the user who started the import task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 3; + * * @return The userEmailAddress. */ java.lang.String getUserEmailAddress(); /** + * + * *
    * Email of the user who started the import task and should be notified by
    * email. If empty no notification will be sent.
    * 
* * string user_email_address = 3; + * * @return The bytes for userEmailAddress. */ - com.google.protobuf.ByteString - getUserEmailAddressBytes(); + com.google.protobuf.ByteString getUserEmailAddressBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfig.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfig.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfig.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfig.java index d00e9d4c..de27d0ce 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfig.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfig.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * The configuration of input data, including data type, location, etc.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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() { dataType_ = 0; annotationType_ = 0; @@ -26,16 +44,15 @@ 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) @@ -54,80 +71,101 @@ private InputConfig( case 0: done = true; break; - case 8: { - int rawValue = input.readEnum(); + case 8: + { + int rawValue = input.readEnum(); - dataType_ = rawValue; - break; - } - case 18: { - com.google.cloud.datalabeling.v1beta1.GcsSource.Builder subBuilder = null; - if (sourceCase_ == 2) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.GcsSource) source_).toBuilder(); + dataType_ = rawValue; + break; } - source_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.GcsSource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.GcsSource) source_); - source_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.datalabeling.v1beta1.GcsSource.Builder subBuilder = null; + if (sourceCase_ == 2) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.GcsSource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.GcsSource.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.GcsSource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 2; + break; } - sourceCase_ = 2; - break; - } - case 24: { - int rawValue = input.readEnum(); + case 24: + { + int rawValue = input.readEnum(); - annotationType_ = rawValue; - break; - } - case 34: { - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder subBuilder = null; - if (classificationMetadata_ != null) { - subBuilder = classificationMetadata_.toBuilder(); + annotationType_ = rawValue; + break; } - classificationMetadata_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(classificationMetadata_); - classificationMetadata_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder subBuilder = + null; + if (classificationMetadata_ != null) { + subBuilder = classificationMetadata_.toBuilder(); + } + classificationMetadata_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(classificationMetadata_); + classificationMetadata_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 42: { - com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder subBuilder = null; - if (sourceCase_ == 5) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_).toBuilder(); + case 42: + { + com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder subBuilder = null; + if (sourceCase_ == 5) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_).toBuilder(); + } + source_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.BigQuerySource.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_); + source_ = subBuilder.buildPartial(); + } + sourceCase_ = 5; + break; } - source_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.BigQuerySource.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_); - source_ = subBuilder.buildPartial(); + case 50: + { + com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder subBuilder = null; + if (dataTypeMetadataCase_ == 6) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_) + .toBuilder(); + } + dataTypeMetadata_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.TextMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_); + dataTypeMetadata_ = subBuilder.buildPartial(); + } + dataTypeMetadataCase_ = 6; + break; } - sourceCase_ = 5; - break; - } - case 50: { - com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder subBuilder = null; - if (dataTypeMetadataCase_ == 6) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_).toBuilder(); - } - dataTypeMetadata_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.TextMetadata.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_); - dataTypeMetadata_ = subBuilder.buildPartial(); - } - dataTypeMetadataCase_ = 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) { @@ -135,34 +173,39 @@ private InputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_InputConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.InputConfig.class, com.google.cloud.datalabeling.v1beta1.InputConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.InputConfig.class, + com.google.cloud.datalabeling.v1beta1.InputConfig.Builder.class); } private int dataTypeMetadataCase_ = 0; private java.lang.Object dataTypeMetadata_; + public enum DataTypeMetadataCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TEXT_METADATA(6), DATATYPEMETADATA_NOT_SET(0); private final int value; + private DataTypeMetadataCase(int value) { this.value = value; } @@ -178,31 +221,36 @@ public static DataTypeMetadataCase valueOf(int value) { public static DataTypeMetadataCase forNumber(int value) { switch (value) { - case 6: return TEXT_METADATA; - case 0: return DATATYPEMETADATA_NOT_SET; - default: return null; + case 6: + return TEXT_METADATA; + case 0: + return DATATYPEMETADATA_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DataTypeMetadataCase - getDataTypeMetadataCase() { - return DataTypeMetadataCase.forNumber( - dataTypeMetadataCase_); + public DataTypeMetadataCase getDataTypeMetadataCase() { + return DataTypeMetadataCase.forNumber(dataTypeMetadataCase_); } 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(2), BIGQUERY_SOURCE(5), SOURCE_NOT_SET(0); private final int value; + private SourceCase(int value) { this.value = value; } @@ -218,30 +266,36 @@ public static SourceCase valueOf(int value) { public static SourceCase forNumber(int value) { switch (value) { - case 2: return GCS_SOURCE; - case 5: return BIGQUERY_SOURCE; - case 0: return SOURCE_NOT_SET; - default: return null; + case 2: + return GCS_SOURCE; + case 5: + 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 TEXT_METADATA_FIELD_NUMBER = 6; /** + * + * *
    * Required for text import, as language code must be specified.
    * 
* * .google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6; + * * @return Whether the textMetadata field is set. */ @java.lang.Override @@ -249,21 +303,26 @@ public boolean hasTextMetadata() { return dataTypeMetadataCase_ == 6; } /** + * + * *
    * Required for text import, as language code must be specified.
    * 
* * .google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6; + * * @return The textMetadata. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextMetadata getTextMetadata() { if (dataTypeMetadataCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_; + return (com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_; } return com.google.cloud.datalabeling.v1beta1.TextMetadata.getDefaultInstance(); } /** + * + * *
    * Required for text import, as language code must be specified.
    * 
@@ -273,18 +332,21 @@ public com.google.cloud.datalabeling.v1beta1.TextMetadata getTextMetadata() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextMetadataOrBuilder getTextMetadataOrBuilder() { if (dataTypeMetadataCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_; + return (com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_; } return com.google.cloud.datalabeling.v1beta1.TextMetadata.getDefaultInstance(); } public static final int GCS_SOURCE_FIELD_NUMBER = 2; /** + * + * *
    * Source located in Cloud Storage.
    * 
* * .google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -292,21 +354,26 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
    * Source located in Cloud Storage.
    * 
* * .google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2; + * * @return The gcsSource. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GcsSource getGcsSource() { if (sourceCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.GcsSource) source_; + return (com.google.cloud.datalabeling.v1beta1.GcsSource) source_; } return com.google.cloud.datalabeling.v1beta1.GcsSource.getDefaultInstance(); } /** + * + * *
    * Source located in Cloud Storage.
    * 
@@ -316,19 +383,22 @@ public com.google.cloud.datalabeling.v1beta1.GcsSource getGcsSource() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder() { if (sourceCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.GcsSource) source_; + return (com.google.cloud.datalabeling.v1beta1.GcsSource) source_; } return com.google.cloud.datalabeling.v1beta1.GcsSource.getDefaultInstance(); } public static final int BIGQUERY_SOURCE_FIELD_NUMBER = 5; /** + * + * *
    * Source located in BigQuery. You must specify this field if you are using
    * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
    * 
* * .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5; + * * @return Whether the bigquerySource field is set. */ @java.lang.Override @@ -336,22 +406,27 @@ public boolean hasBigquerySource() { return sourceCase_ == 5; } /** + * + * *
    * Source located in BigQuery. You must specify this field if you are using
    * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
    * 
* * .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5; + * * @return The bigquerySource. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BigQuerySource getBigquerySource() { if (sourceCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_; + return (com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_; } return com.google.cloud.datalabeling.v1beta1.BigQuerySource.getDefaultInstance(); } /** + * + * *
    * Source located in BigQuery. You must specify this field if you are using
    * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
@@ -360,9 +435,10 @@ public com.google.cloud.datalabeling.v1beta1.BigQuerySource getBigquerySource()
    * .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder
+      getBigquerySourceOrBuilder() {
     if (sourceCase_ == 5) {
-       return (com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_;
+      return (com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_;
     }
     return com.google.cloud.datalabeling.v1beta1.BigQuerySource.getDefaultInstance();
   }
@@ -370,33 +446,44 @@ public com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder getBigquery
   public static final int DATA_TYPE_FIELD_NUMBER = 1;
   private int dataType_;
   /**
+   *
+   *
    * 
    * Required. Data type must be specifed when user tries to import data.
    * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 1; + * * @return The enum numeric value on the wire for dataType. */ - @java.lang.Override public int getDataTypeValue() { + @java.lang.Override + public int getDataTypeValue() { return dataType_; } /** + * + * *
    * Required. Data type must be specifed when user tries to import data.
    * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 1; + * * @return The dataType. */ - @java.lang.Override public com.google.cloud.datalabeling.v1beta1.DataType getDataType() { + @java.lang.Override + public com.google.cloud.datalabeling.v1beta1.DataType getDataType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.DataType result = com.google.cloud.datalabeling.v1beta1.DataType.valueOf(dataType_); + com.google.cloud.datalabeling.v1beta1.DataType result = + com.google.cloud.datalabeling.v1beta1.DataType.valueOf(dataType_); return result == null ? com.google.cloud.datalabeling.v1beta1.DataType.UNRECOGNIZED : result; } public static final int ANNOTATION_TYPE_FIELD_NUMBER = 3; private int annotationType_; /** + * + * *
    * Optional. The type of annotation to be performed on this data. You must
    * specify this field if you are using this InputConfig in an
@@ -404,12 +491,16 @@ public com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder getBigquery
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; + * * @return The enum numeric value on the wire for annotationType. */ - @java.lang.Override public int getAnnotationTypeValue() { + @java.lang.Override + public int getAnnotationTypeValue() { return annotationType_; } /** + * + * *
    * Optional. The type of annotation to be performed on this data. You must
    * specify this field if you are using this InputConfig in an
@@ -417,24 +508,33 @@ public com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder getBigquery
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; + * * @return The annotationType. */ - @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType() { + @java.lang.Override + public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationType result = com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); - return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED : result; + com.google.cloud.datalabeling.v1beta1.AnnotationType result = + com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); + return result == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED + : result; } public static final int CLASSIFICATION_METADATA_FIELD_NUMBER = 4; private com.google.cloud.datalabeling.v1beta1.ClassificationMetadata classificationMetadata_; /** + * + * *
    * Optional. Metadata about annotations for the input. You must specify this
    * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
    * model version that performs classification.
    * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * + * * @return Whether the classificationMetadata field is set. */ @java.lang.Override @@ -442,34 +542,45 @@ public boolean hasClassificationMetadata() { return classificationMetadata_ != null; } /** + * + * *
    * Optional. Metadata about annotations for the input. You must specify this
    * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
    * model version that performs classification.
    * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * + * * @return The classificationMetadata. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ClassificationMetadata getClassificationMetadata() { - return classificationMetadata_ == null ? com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.getDefaultInstance() : classificationMetadata_; + return classificationMetadata_ == null + ? com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.getDefaultInstance() + : classificationMetadata_; } /** + * + * *
    * Optional. Metadata about annotations for the input. You must specify this
    * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
    * model version that performs classification.
    * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder getClassificationMetadataOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder + getClassificationMetadataOrBuilder() { return getClassificationMetadata(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -481,15 +592,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (dataType_ != com.google.cloud.datalabeling.v1beta1.DataType.DATA_TYPE_UNSPECIFIED.getNumber()) { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (dataType_ + != com.google.cloud.datalabeling.v1beta1.DataType.DATA_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(1, dataType_); } if (sourceCase_ == 2) { output.writeMessage(2, (com.google.cloud.datalabeling.v1beta1.GcsSource) source_); } - if (annotationType_ != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED.getNumber()) { + if (annotationType_ + != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, annotationType_); } if (classificationMetadata_ != null) { @@ -499,7 +612,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(5, (com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_); } if (dataTypeMetadataCase_ == 6) { - output.writeMessage(6, (com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_); + output.writeMessage( + 6, (com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_); } unknownFields.writeTo(output); } @@ -510,29 +624,33 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (dataType_ != com.google.cloud.datalabeling.v1beta1.DataType.DATA_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, dataType_); + if (dataType_ + != com.google.cloud.datalabeling.v1beta1.DataType.DATA_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, dataType_); } if (sourceCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.datalabeling.v1beta1.GcsSource) source_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.datalabeling.v1beta1.GcsSource) source_); } - if (annotationType_ != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, annotationType_); + if (annotationType_ + != com.google.cloud.datalabeling.v1beta1.AnnotationType.ANNOTATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, annotationType_); } if (classificationMetadata_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getClassificationMetadata()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getClassificationMetadata()); } if (sourceCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_); } if (dataTypeMetadataCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -542,25 +660,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.datalabeling.v1beta1.InputConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.InputConfig other = (com.google.cloud.datalabeling.v1beta1.InputConfig) obj; + com.google.cloud.datalabeling.v1beta1.InputConfig other = + (com.google.cloud.datalabeling.v1beta1.InputConfig) obj; if (dataType_ != other.dataType_) return false; if (annotationType_ != other.annotationType_) return false; if (hasClassificationMetadata() != other.hasClassificationMetadata()) return false; if (hasClassificationMetadata()) { - if (!getClassificationMetadata() - .equals(other.getClassificationMetadata())) return false; + if (!getClassificationMetadata().equals(other.getClassificationMetadata())) return false; } if (!getDataTypeMetadataCase().equals(other.getDataTypeMetadataCase())) return false; switch (dataTypeMetadataCase_) { case 6: - if (!getTextMetadata() - .equals(other.getTextMetadata())) return false; + if (!getTextMetadata().equals(other.getTextMetadata())) return false; break; case 0: default: @@ -568,12 +685,10 @@ public boolean equals(final java.lang.Object obj) { if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 2: - if (!getGcsSource() - .equals(other.getGcsSource())) return false; + if (!getGcsSource().equals(other.getGcsSource())) return false; break; case 5: - if (!getBigquerySource() - .equals(other.getBigquerySource())) return false; + if (!getBigquerySource().equals(other.getBigquerySource())) return false; break; case 0: default: @@ -623,117 +738,126 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.InputConfig 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.datalabeling.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.datalabeling.v1beta1.InputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.InputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.InputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.InputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.InputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.InputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.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; } /** + * + * *
    * The configuration of input data, including data type, location, etc.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.InputConfig) com.google.cloud.datalabeling.v1beta1.InputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_InputConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_InputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.InputConfig.class, com.google.cloud.datalabeling.v1beta1.InputConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.InputConfig.class, + com.google.cloud.datalabeling.v1beta1.InputConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.InputConfig.newBuilder() @@ -741,16 +865,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(); @@ -772,9 +895,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_InputConfig_descriptor; } @java.lang.Override @@ -793,7 +916,8 @@ public com.google.cloud.datalabeling.v1beta1.InputConfig build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.InputConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.InputConfig result = new com.google.cloud.datalabeling.v1beta1.InputConfig(this); + com.google.cloud.datalabeling.v1beta1.InputConfig result = + new com.google.cloud.datalabeling.v1beta1.InputConfig(this); if (dataTypeMetadataCase_ == 6) { if (textMetadataBuilder_ == null) { result.dataTypeMetadata_ = dataTypeMetadata_; @@ -832,38 +956,39 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.InputConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.InputConfig)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.InputConfig) other); } else { super.mergeFrom(other); return this; @@ -871,7 +996,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.InputConfig other) { - if (other == com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.InputConfig.getDefaultInstance()) + return this; if (other.dataType_ != 0) { setDataTypeValue(other.getDataTypeValue()); } @@ -882,26 +1008,31 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.InputConfig other mergeClassificationMetadata(other.getClassificationMetadata()); } switch (other.getDataTypeMetadataCase()) { - case TEXT_METADATA: { - mergeTextMetadata(other.getTextMetadata()); - break; - } - case DATATYPEMETADATA_NOT_SET: { - break; - } + case TEXT_METADATA: + { + mergeTextMetadata(other.getTextMetadata()); + break; + } + case DATATYPEMETADATA_NOT_SET: + { + break; + } } 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(); @@ -922,7 +1053,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.InputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.InputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -931,12 +1063,12 @@ public Builder mergeFrom( } return this; } + private int dataTypeMetadataCase_ = 0; private java.lang.Object dataTypeMetadata_; - public DataTypeMetadataCase - getDataTypeMetadataCase() { - return DataTypeMetadataCase.forNumber( - dataTypeMetadataCase_); + + public DataTypeMetadataCase getDataTypeMetadataCase() { + return DataTypeMetadataCase.forNumber(dataTypeMetadataCase_); } public Builder clearDataTypeMetadata() { @@ -948,10 +1080,9 @@ public Builder clearDataTypeMetadata() { 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() { @@ -961,15 +1092,20 @@ public Builder clearSource() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextMetadata, com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder, com.google.cloud.datalabeling.v1beta1.TextMetadataOrBuilder> textMetadataBuilder_; + com.google.cloud.datalabeling.v1beta1.TextMetadata, + com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.TextMetadataOrBuilder> + textMetadataBuilder_; /** + * + * *
      * Required for text import, as language code must be specified.
      * 
* * .google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6; + * * @return Whether the textMetadata field is set. */ @java.lang.Override @@ -977,11 +1113,14 @@ public boolean hasTextMetadata() { return dataTypeMetadataCase_ == 6; } /** + * + * *
      * Required for text import, as language code must be specified.
      * 
* * .google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6; + * * @return The textMetadata. */ @java.lang.Override @@ -999,6 +1138,8 @@ public com.google.cloud.datalabeling.v1beta1.TextMetadata getTextMetadata() { } } /** + * + * *
      * Required for text import, as language code must be specified.
      * 
@@ -1019,6 +1160,8 @@ public Builder setTextMetadata(com.google.cloud.datalabeling.v1beta1.TextMetadat return this; } /** + * + * *
      * Required for text import, as language code must be specified.
      * 
@@ -1037,6 +1180,8 @@ public Builder setTextMetadata( return this; } /** + * + * *
      * Required for text import, as language code must be specified.
      * 
@@ -1045,10 +1190,14 @@ public Builder setTextMetadata( */ public Builder mergeTextMetadata(com.google.cloud.datalabeling.v1beta1.TextMetadata value) { if (textMetadataBuilder_ == null) { - if (dataTypeMetadataCase_ == 6 && - dataTypeMetadata_ != com.google.cloud.datalabeling.v1beta1.TextMetadata.getDefaultInstance()) { - dataTypeMetadata_ = com.google.cloud.datalabeling.v1beta1.TextMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_) - .mergeFrom(value).buildPartial(); + if (dataTypeMetadataCase_ == 6 + && dataTypeMetadata_ + != com.google.cloud.datalabeling.v1beta1.TextMetadata.getDefaultInstance()) { + dataTypeMetadata_ = + com.google.cloud.datalabeling.v1beta1.TextMetadata.newBuilder( + (com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_) + .mergeFrom(value) + .buildPartial(); } else { dataTypeMetadata_ = value; } @@ -1064,6 +1213,8 @@ public Builder mergeTextMetadata(com.google.cloud.datalabeling.v1beta1.TextMetad return this; } /** + * + * *
      * Required for text import, as language code must be specified.
      * 
@@ -1087,6 +1238,8 @@ public Builder clearTextMetadata() { return this; } /** + * + * *
      * Required for text import, as language code must be specified.
      * 
@@ -1097,6 +1250,8 @@ public com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder getTextMetadat return getTextMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Required for text import, as language code must be specified.
      * 
@@ -1115,6 +1270,8 @@ public com.google.cloud.datalabeling.v1beta1.TextMetadataOrBuilder getTextMetada } } /** + * + * *
      * Required for text import, as language code must be specified.
      * 
@@ -1122,32 +1279,45 @@ public com.google.cloud.datalabeling.v1beta1.TextMetadataOrBuilder getTextMetada * .google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextMetadata, com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder, com.google.cloud.datalabeling.v1beta1.TextMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.TextMetadata, + com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.TextMetadataOrBuilder> getTextMetadataFieldBuilder() { if (textMetadataBuilder_ == null) { if (!(dataTypeMetadataCase_ == 6)) { - dataTypeMetadata_ = com.google.cloud.datalabeling.v1beta1.TextMetadata.getDefaultInstance(); + dataTypeMetadata_ = + com.google.cloud.datalabeling.v1beta1.TextMetadata.getDefaultInstance(); } - textMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextMetadata, com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder, com.google.cloud.datalabeling.v1beta1.TextMetadataOrBuilder>( + textMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TextMetadata, + com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.TextMetadataOrBuilder>( (com.google.cloud.datalabeling.v1beta1.TextMetadata) dataTypeMetadata_, getParentForChildren(), isClean()); dataTypeMetadata_ = null; } dataTypeMetadataCase_ = 6; - onChanged();; + onChanged(); + ; return textMetadataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.GcsSource, com.google.cloud.datalabeling.v1beta1.GcsSource.Builder, com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder> gcsSourceBuilder_; + com.google.cloud.datalabeling.v1beta1.GcsSource, + com.google.cloud.datalabeling.v1beta1.GcsSource.Builder, + com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder> + gcsSourceBuilder_; /** + * + * *
      * Source located in Cloud Storage.
      * 
* * .google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ @java.lang.Override @@ -1155,11 +1325,14 @@ public boolean hasGcsSource() { return sourceCase_ == 2; } /** + * + * *
      * Source located in Cloud Storage.
      * 
* * .google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2; + * * @return The gcsSource. */ @java.lang.Override @@ -1177,6 +1350,8 @@ public com.google.cloud.datalabeling.v1beta1.GcsSource getGcsSource() { } } /** + * + * *
      * Source located in Cloud Storage.
      * 
@@ -1197,6 +1372,8 @@ public Builder setGcsSource(com.google.cloud.datalabeling.v1beta1.GcsSource valu return this; } /** + * + * *
      * Source located in Cloud Storage.
      * 
@@ -1215,6 +1392,8 @@ public Builder setGcsSource( return this; } /** + * + * *
      * Source located in Cloud Storage.
      * 
@@ -1223,10 +1402,13 @@ public Builder setGcsSource( */ public Builder mergeGcsSource(com.google.cloud.datalabeling.v1beta1.GcsSource value) { if (gcsSourceBuilder_ == null) { - if (sourceCase_ == 2 && - source_ != com.google.cloud.datalabeling.v1beta1.GcsSource.getDefaultInstance()) { - source_ = com.google.cloud.datalabeling.v1beta1.GcsSource.newBuilder((com.google.cloud.datalabeling.v1beta1.GcsSource) source_) - .mergeFrom(value).buildPartial(); + if (sourceCase_ == 2 + && source_ != com.google.cloud.datalabeling.v1beta1.GcsSource.getDefaultInstance()) { + source_ = + com.google.cloud.datalabeling.v1beta1.GcsSource.newBuilder( + (com.google.cloud.datalabeling.v1beta1.GcsSource) source_) + .mergeFrom(value) + .buildPartial(); } else { source_ = value; } @@ -1242,6 +1424,8 @@ public Builder mergeGcsSource(com.google.cloud.datalabeling.v1beta1.GcsSource va return this; } /** + * + * *
      * Source located in Cloud Storage.
      * 
@@ -1265,6 +1449,8 @@ public Builder clearGcsSource() { return this; } /** + * + * *
      * Source located in Cloud Storage.
      * 
@@ -1275,6 +1461,8 @@ public com.google.cloud.datalabeling.v1beta1.GcsSource.Builder getGcsSourceBuild return getGcsSourceFieldBuilder().getBuilder(); } /** + * + * *
      * Source located in Cloud Storage.
      * 
@@ -1293,6 +1481,8 @@ public com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder getGcsSourceOrBu } } /** + * + * *
      * Source located in Cloud Storage.
      * 
@@ -1300,33 +1490,45 @@ public com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder getGcsSourceOrBu * .google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.GcsSource, com.google.cloud.datalabeling.v1beta1.GcsSource.Builder, com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder> + com.google.cloud.datalabeling.v1beta1.GcsSource, + com.google.cloud.datalabeling.v1beta1.GcsSource.Builder, + com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder> getGcsSourceFieldBuilder() { if (gcsSourceBuilder_ == null) { if (!(sourceCase_ == 2)) { source_ = com.google.cloud.datalabeling.v1beta1.GcsSource.getDefaultInstance(); } - gcsSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.GcsSource, com.google.cloud.datalabeling.v1beta1.GcsSource.Builder, com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder>( + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.GcsSource, + com.google.cloud.datalabeling.v1beta1.GcsSource.Builder, + com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder>( (com.google.cloud.datalabeling.v1beta1.GcsSource) source_, getParentForChildren(), isClean()); source_ = null; } sourceCase_ = 2; - onChanged();; + onChanged(); + ; return gcsSourceBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.BigQuerySource, com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder, com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder> bigquerySourceBuilder_; + com.google.cloud.datalabeling.v1beta1.BigQuerySource, + com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder, + com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder> + bigquerySourceBuilder_; /** + * + * *
      * Source located in BigQuery. You must specify this field if you are using
      * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
      * 
* * .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5; + * * @return Whether the bigquerySource field is set. */ @java.lang.Override @@ -1334,12 +1536,15 @@ public boolean hasBigquerySource() { return sourceCase_ == 5; } /** + * + * *
      * Source located in BigQuery. You must specify this field if you are using
      * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
      * 
* * .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5; + * * @return The bigquerySource. */ @java.lang.Override @@ -1357,6 +1562,8 @@ public com.google.cloud.datalabeling.v1beta1.BigQuerySource getBigquerySource() } } /** + * + * *
      * Source located in BigQuery. You must specify this field if you are using
      * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
@@ -1378,6 +1585,8 @@ public Builder setBigquerySource(com.google.cloud.datalabeling.v1beta1.BigQueryS
       return this;
     }
     /**
+     *
+     *
      * 
      * Source located in BigQuery. You must specify this field if you are using
      * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
@@ -1397,6 +1606,8 @@ public Builder setBigquerySource(
       return this;
     }
     /**
+     *
+     *
      * 
      * Source located in BigQuery. You must specify this field if you are using
      * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
@@ -1406,10 +1617,14 @@ public Builder setBigquerySource(
      */
     public Builder mergeBigquerySource(com.google.cloud.datalabeling.v1beta1.BigQuerySource value) {
       if (bigquerySourceBuilder_ == null) {
-        if (sourceCase_ == 5 &&
-            source_ != com.google.cloud.datalabeling.v1beta1.BigQuerySource.getDefaultInstance()) {
-          source_ = com.google.cloud.datalabeling.v1beta1.BigQuerySource.newBuilder((com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_)
-              .mergeFrom(value).buildPartial();
+        if (sourceCase_ == 5
+            && source_
+                != com.google.cloud.datalabeling.v1beta1.BigQuerySource.getDefaultInstance()) {
+          source_ =
+              com.google.cloud.datalabeling.v1beta1.BigQuerySource.newBuilder(
+                      (com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           source_ = value;
         }
@@ -1425,6 +1640,8 @@ public Builder mergeBigquerySource(com.google.cloud.datalabeling.v1beta1.BigQuer
       return this;
     }
     /**
+     *
+     *
      * 
      * Source located in BigQuery. You must specify this field if you are using
      * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
@@ -1449,6 +1666,8 @@ public Builder clearBigquerySource() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Source located in BigQuery. You must specify this field if you are using
      * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
@@ -1460,6 +1679,8 @@ public com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder getBigqueryS
       return getBigquerySourceFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Source located in BigQuery. You must specify this field if you are using
      * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
@@ -1468,7 +1689,8 @@ public com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder getBigqueryS
      * .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5;
      */
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder
+        getBigquerySourceOrBuilder() {
       if ((sourceCase_ == 5) && (bigquerySourceBuilder_ != null)) {
         return bigquerySourceBuilder_.getMessageOrBuilder();
       } else {
@@ -1479,6 +1701,8 @@ public com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder getBigquery
       }
     }
     /**
+     *
+     *
      * 
      * Source located in BigQuery. You must specify this field if you are using
      * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
@@ -1487,71 +1711,91 @@ public com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder getBigquery
      * .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.BigQuerySource, com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder, com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder> 
+            com.google.cloud.datalabeling.v1beta1.BigQuerySource,
+            com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder,
+            com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder>
         getBigquerySourceFieldBuilder() {
       if (bigquerySourceBuilder_ == null) {
         if (!(sourceCase_ == 5)) {
           source_ = com.google.cloud.datalabeling.v1beta1.BigQuerySource.getDefaultInstance();
         }
-        bigquerySourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.BigQuerySource, com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder, com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder>(
+        bigquerySourceBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.datalabeling.v1beta1.BigQuerySource,
+                com.google.cloud.datalabeling.v1beta1.BigQuerySource.Builder,
+                com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder>(
                 (com.google.cloud.datalabeling.v1beta1.BigQuerySource) source_,
                 getParentForChildren(),
                 isClean());
         source_ = null;
       }
       sourceCase_ = 5;
-      onChanged();;
+      onChanged();
+      ;
       return bigquerySourceBuilder_;
     }
 
     private int dataType_ = 0;
     /**
+     *
+     *
      * 
      * Required. Data type must be specifed when user tries to import data.
      * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 1; + * * @return The enum numeric value on the wire for dataType. */ - @java.lang.Override public int getDataTypeValue() { + @java.lang.Override + public int getDataTypeValue() { return dataType_; } /** + * + * *
      * Required. Data type must be specifed when user tries to import data.
      * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 1; + * * @param value The enum numeric value on the wire for dataType to set. * @return This builder for chaining. */ public Builder setDataTypeValue(int value) { - + dataType_ = value; onChanged(); return this; } /** + * + * *
      * Required. Data type must be specifed when user tries to import data.
      * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 1; + * * @return The dataType. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.DataType getDataType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.DataType result = com.google.cloud.datalabeling.v1beta1.DataType.valueOf(dataType_); + com.google.cloud.datalabeling.v1beta1.DataType result = + com.google.cloud.datalabeling.v1beta1.DataType.valueOf(dataType_); return result == null ? com.google.cloud.datalabeling.v1beta1.DataType.UNRECOGNIZED : result; } /** + * + * *
      * Required. Data type must be specifed when user tries to import data.
      * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 1; + * * @param value The dataType to set. * @return This builder for chaining. */ @@ -1559,21 +1803,24 @@ public Builder setDataType(com.google.cloud.datalabeling.v1beta1.DataType value) if (value == null) { throw new NullPointerException(); } - + dataType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. Data type must be specifed when user tries to import data.
      * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 1; + * * @return This builder for chaining. */ public Builder clearDataType() { - + dataType_ = 0; onChanged(); return this; @@ -1581,6 +1828,8 @@ public Builder clearDataType() { private int annotationType_ = 0; /** + * + * *
      * Optional. The type of annotation to be performed on this data. You must
      * specify this field if you are using this InputConfig in an
@@ -1588,12 +1837,16 @@ public Builder clearDataType() {
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; + * * @return The enum numeric value on the wire for annotationType. */ - @java.lang.Override public int getAnnotationTypeValue() { + @java.lang.Override + public int getAnnotationTypeValue() { return annotationType_; } /** + * + * *
      * Optional. The type of annotation to be performed on this data. You must
      * specify this field if you are using this InputConfig in an
@@ -1601,16 +1854,19 @@ public Builder clearDataType() {
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; + * * @param value The enum numeric value on the wire for annotationType to set. * @return This builder for chaining. */ public Builder setAnnotationTypeValue(int value) { - + annotationType_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The type of annotation to be performed on this data. You must
      * specify this field if you are using this InputConfig in an
@@ -1618,15 +1874,21 @@ public Builder setAnnotationTypeValue(int value) {
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; + * * @return The annotationType. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.AnnotationType result = com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); - return result == null ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED : result; + com.google.cloud.datalabeling.v1beta1.AnnotationType result = + com.google.cloud.datalabeling.v1beta1.AnnotationType.valueOf(annotationType_); + return result == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationType.UNRECOGNIZED + : result; } /** + * + * *
      * Optional. The type of annotation to be performed on this data. You must
      * specify this field if you are using this InputConfig in an
@@ -1634,6 +1896,7 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType()
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; + * * @param value The annotationType to set. * @return This builder for chaining. */ @@ -1641,12 +1904,14 @@ public Builder setAnnotationType(com.google.cloud.datalabeling.v1beta1.Annotatio if (value == null) { throw new NullPointerException(); } - + annotationType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Optional. The type of annotation to be performed on this data. You must
      * specify this field if you are using this InputConfig in an
@@ -1654,10 +1919,11 @@ public Builder setAnnotationType(com.google.cloud.datalabeling.v1beta1.Annotatio
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; + * * @return This builder for chaining. */ public Builder clearAnnotationType() { - + annotationType_ = 0; onChanged(); return this; @@ -1665,47 +1931,65 @@ public Builder clearAnnotationType() { private com.google.cloud.datalabeling.v1beta1.ClassificationMetadata classificationMetadata_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata, com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder> classificationMetadataBuilder_; + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata, + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder> + classificationMetadataBuilder_; /** + * + * *
      * Optional. Metadata about annotations for the input. You must specify this
      * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
      * model version that performs classification.
      * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * + * * @return Whether the classificationMetadata field is set. */ public boolean hasClassificationMetadata() { return classificationMetadataBuilder_ != null || classificationMetadata_ != null; } /** + * + * *
      * Optional. Metadata about annotations for the input. You must specify this
      * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
      * model version that performs classification.
      * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * + * * @return The classificationMetadata. */ - public com.google.cloud.datalabeling.v1beta1.ClassificationMetadata getClassificationMetadata() { + public com.google.cloud.datalabeling.v1beta1.ClassificationMetadata + getClassificationMetadata() { if (classificationMetadataBuilder_ == null) { - return classificationMetadata_ == null ? com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.getDefaultInstance() : classificationMetadata_; + return classificationMetadata_ == null + ? com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.getDefaultInstance() + : classificationMetadata_; } else { return classificationMetadataBuilder_.getMessage(); } } /** + * + * *
      * Optional. Metadata about annotations for the input. You must specify this
      * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
      * model version that performs classification.
      * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * */ - public Builder setClassificationMetadata(com.google.cloud.datalabeling.v1beta1.ClassificationMetadata value) { + public Builder setClassificationMetadata( + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata value) { if (classificationMetadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1719,13 +2003,16 @@ public Builder setClassificationMetadata(com.google.cloud.datalabeling.v1beta1.C return this; } /** + * + * *
      * Optional. Metadata about annotations for the input. You must specify this
      * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
      * model version that performs classification.
      * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * */ public Builder setClassificationMetadata( com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder builderForValue) { @@ -1739,19 +2026,26 @@ public Builder setClassificationMetadata( return this; } /** + * + * *
      * Optional. Metadata about annotations for the input. You must specify this
      * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
      * model version that performs classification.
      * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * */ - public Builder mergeClassificationMetadata(com.google.cloud.datalabeling.v1beta1.ClassificationMetadata value) { + public Builder mergeClassificationMetadata( + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata value) { if (classificationMetadataBuilder_ == null) { if (classificationMetadata_ != null) { classificationMetadata_ = - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.newBuilder(classificationMetadata_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.newBuilder( + classificationMetadata_) + .mergeFrom(value) + .buildPartial(); } else { classificationMetadata_ = value; } @@ -1763,13 +2057,16 @@ public Builder mergeClassificationMetadata(com.google.cloud.datalabeling.v1beta1 return this; } /** + * + * *
      * Optional. Metadata about annotations for the input. You must specify this
      * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
      * model version that performs classification.
      * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * */ public Builder clearClassificationMetadata() { if (classificationMetadataBuilder_ == null) { @@ -1783,61 +2080,76 @@ public Builder clearClassificationMetadata() { return this; } /** + * + * *
      * Optional. Metadata about annotations for the input. You must specify this
      * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
      * model version that performs classification.
      * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * */ - public com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder getClassificationMetadataBuilder() { - + public com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder + getClassificationMetadataBuilder() { + onChanged(); return getClassificationMetadataFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Metadata about annotations for the input. You must specify this
      * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
      * model version that performs classification.
      * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * */ - public com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder getClassificationMetadataOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder + getClassificationMetadataOrBuilder() { if (classificationMetadataBuilder_ != null) { return classificationMetadataBuilder_.getMessageOrBuilder(); } else { - return classificationMetadata_ == null ? - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.getDefaultInstance() : classificationMetadata_; + return classificationMetadata_ == null + ? com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.getDefaultInstance() + : classificationMetadata_; } } /** + * + * *
      * Optional. Metadata about annotations for the input. You must specify this
      * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
      * model version that performs classification.
      * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata, com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata, + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder> getClassificationMetadataFieldBuilder() { if (classificationMetadataBuilder_ == null) { - classificationMetadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ClassificationMetadata, com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder>( - getClassificationMetadata(), - getParentForChildren(), - isClean()); + classificationMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata, + com.google.cloud.datalabeling.v1beta1.ClassificationMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder>( + getClassificationMetadata(), getParentForChildren(), isClean()); classificationMetadata_ = null; } return classificationMetadataBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1847,12 +2159,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.InputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.InputConfig) private static final com.google.cloud.datalabeling.v1beta1.InputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.InputConfig(); } @@ -1861,16 +2173,16 @@ public static com.google.cloud.datalabeling.v1beta1.InputConfig getDefaultInstan 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; @@ -1885,6 +2197,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.InputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfigOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfigOrBuilder.java similarity index 84% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfigOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfigOrBuilder.java index 835af6c7..d0d860ff 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfigOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InputConfigOrBuilder.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; -public interface InputConfigOrBuilder extends +public interface InputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.InputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required for text import, as language code must be specified.
    * 
* * .google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6; + * * @return Whether the textMetadata field is set. */ boolean hasTextMetadata(); /** + * + * *
    * Required for text import, as language code must be specified.
    * 
* * .google.cloud.datalabeling.v1beta1.TextMetadata text_metadata = 6; + * * @return The textMetadata. */ com.google.cloud.datalabeling.v1beta1.TextMetadata getTextMetadata(); /** + * + * *
    * Required for text import, as language code must be specified.
    * 
@@ -35,24 +59,32 @@ public interface InputConfigOrBuilder extends com.google.cloud.datalabeling.v1beta1.TextMetadataOrBuilder getTextMetadataOrBuilder(); /** + * + * *
    * Source located in Cloud Storage.
    * 
* * .google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2; + * * @return Whether the gcsSource field is set. */ boolean hasGcsSource(); /** + * + * *
    * Source located in Cloud Storage.
    * 
* * .google.cloud.datalabeling.v1beta1.GcsSource gcs_source = 2; + * * @return The gcsSource. */ com.google.cloud.datalabeling.v1beta1.GcsSource getGcsSource(); /** + * + * *
    * Source located in Cloud Storage.
    * 
@@ -62,26 +94,34 @@ public interface InputConfigOrBuilder extends com.google.cloud.datalabeling.v1beta1.GcsSourceOrBuilder getGcsSourceOrBuilder(); /** + * + * *
    * Source located in BigQuery. You must specify this field if you are using
    * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
    * 
* * .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5; + * * @return Whether the bigquerySource field is set. */ boolean hasBigquerySource(); /** + * + * *
    * Source located in BigQuery. You must specify this field if you are using
    * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
    * 
* * .google.cloud.datalabeling.v1beta1.BigQuerySource bigquery_source = 5; + * * @return The bigquerySource. */ com.google.cloud.datalabeling.v1beta1.BigQuerySource getBigquerySource(); /** + * + * *
    * Source located in BigQuery. You must specify this field if you are using
    * this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
@@ -92,25 +132,33 @@ public interface InputConfigOrBuilder extends
   com.google.cloud.datalabeling.v1beta1.BigQuerySourceOrBuilder getBigquerySourceOrBuilder();
 
   /**
+   *
+   *
    * 
    * Required. Data type must be specifed when user tries to import data.
    * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 1; + * * @return The enum numeric value on the wire for dataType. */ int getDataTypeValue(); /** + * + * *
    * Required. Data type must be specifed when user tries to import data.
    * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 1; + * * @return The dataType. */ com.google.cloud.datalabeling.v1beta1.DataType getDataType(); /** + * + * *
    * Optional. The type of annotation to be performed on this data. You must
    * specify this field if you are using this InputConfig in an
@@ -118,10 +166,13 @@ public interface InputConfigOrBuilder extends
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; + * * @return The enum numeric value on the wire for annotationType. */ int getAnnotationTypeValue(); /** + * + * *
    * Optional. The type of annotation to be performed on this data. You must
    * specify this field if you are using this InputConfig in an
@@ -129,44 +180,58 @@ public interface InputConfigOrBuilder extends
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationType annotation_type = 3; + * * @return The annotationType. */ com.google.cloud.datalabeling.v1beta1.AnnotationType getAnnotationType(); /** + * + * *
    * Optional. Metadata about annotations for the input. You must specify this
    * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
    * model version that performs classification.
    * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * + * * @return Whether the classificationMetadata field is set. */ boolean hasClassificationMetadata(); /** + * + * *
    * Optional. Metadata about annotations for the input. You must specify this
    * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
    * model version that performs classification.
    * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * + * * @return The classificationMetadata. */ com.google.cloud.datalabeling.v1beta1.ClassificationMetadata getClassificationMetadata(); /** + * + * *
    * Optional. Metadata about annotations for the input. You must specify this
    * field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
    * model version that performs classification.
    * 
* - * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * .google.cloud.datalabeling.v1beta1.ClassificationMetadata classification_metadata = 4; + * */ - com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder getClassificationMetadataOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ClassificationMetadataOrBuilder + getClassificationMetadataOrBuilder(); - public com.google.cloud.datalabeling.v1beta1.InputConfig.DataTypeMetadataCase getDataTypeMetadataCase(); + public com.google.cloud.datalabeling.v1beta1.InputConfig.DataTypeMetadataCase + getDataTypeMetadataCase(); public com.google.cloud.datalabeling.v1beta1.InputConfig.SourceCase getSourceCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Instruction.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Instruction.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Instruction.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Instruction.java index 4f33867c..867b4e57 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Instruction.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Instruction.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/datalabeling/v1beta1/instruction.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Instruction of how to perform the labeling task for human operators.
  * Currently only PDF instruction is supported.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.Instruction}
  */
-public final class Instruction extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Instruction extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.Instruction)
     InstructionOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Instruction.newBuilder() to construct.
   private Instruction(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Instruction() {
     name_ = "";
     displayName_ = "";
@@ -30,16 +48,15 @@ private Instruction() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Instruction();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Instruction(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -59,98 +76,115 @@ private Instruction(
           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();
 
-            description_ = s;
-            break;
-          }
-          case 34: {
-            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 42: {
-            com.google.protobuf.Timestamp.Builder subBuilder = null;
-            if (updateTime_ != null) {
-              subBuilder = updateTime_.toBuilder();
+              displayName_ = s;
+              break;
             }
-            updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(updateTime_);
-              updateTime_ = subBuilder.buildPartial();
-            }
-
-            break;
-          }
-          case 48: {
-            int rawValue = input.readEnum();
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            dataType_ = rawValue;
-            break;
-          }
-          case 58: {
-            com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder subBuilder = null;
-            if (csvInstruction_ != null) {
-              subBuilder = csvInstruction_.toBuilder();
+              description_ = s;
+              break;
+            }
+          case 34:
+            {
+              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;
             }
-            csvInstruction_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.CsvInstruction.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(csvInstruction_);
-              csvInstruction_ = subBuilder.buildPartial();
+          case 42:
+            {
+              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 48:
+            {
+              int rawValue = input.readEnum();
 
-            break;
-          }
-          case 74: {
-            com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder subBuilder = null;
-            if (pdfInstruction_ != null) {
-              subBuilder = pdfInstruction_.toBuilder();
+              dataType_ = rawValue;
+              break;
             }
-            pdfInstruction_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.PdfInstruction.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom(pdfInstruction_);
-              pdfInstruction_ = subBuilder.buildPartial();
+          case 58:
+            {
+              com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder subBuilder = null;
+              if (csvInstruction_ != null) {
+                subBuilder = csvInstruction_.toBuilder();
+              }
+              csvInstruction_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.CsvInstruction.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(csvInstruction_);
+                csvInstruction_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-
-            break;
-          }
-          case 82: {
-            java.lang.String s = input.readStringRequireUtf8();
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              blockingResources_ = new com.google.protobuf.LazyStringArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 74:
+            {
+              com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder subBuilder = null;
+              if (pdfInstruction_ != null) {
+                subBuilder = pdfInstruction_.toBuilder();
+              }
+              pdfInstruction_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.PdfInstruction.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(pdfInstruction_);
+                pdfInstruction_ = subBuilder.buildPartial();
+              }
+
+              break;
             }
-            blockingResources_.add(s);
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 82:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                blockingResources_ = new com.google.protobuf.LazyStringArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              blockingResources_.add(s);
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -158,8 +192,7 @@ private Instruction(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } 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)) {
         blockingResources_ = blockingResources_.getUnmodifiableView();
@@ -168,28 +201,34 @@ private Instruction(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Instruction_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_Instruction_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Instruction_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_Instruction_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.Instruction.class, com.google.cloud.datalabeling.v1beta1.Instruction.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.Instruction.class,
+            com.google.cloud.datalabeling.v1beta1.Instruction.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
   private volatile java.lang.Object name_;
   /**
+   *
+   *
    * 
    * Output only. Instruction resource name, format:
    * projects/{project_id}/instructions/{instruction_id}
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -198,30 +237,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. Instruction resource name, format:
    * projects/{project_id}/instructions/{instruction_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 { @@ -232,11 +271,14 @@ public java.lang.String getName() { public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** + * + * *
    * Required. The display name of the instruction. Maximum of 64 characters.
    * 
* * string display_name = 2; + * * @return The displayName. */ @java.lang.Override @@ -245,29 +287,29 @@ 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 display name of the instruction. Maximum of 64 characters.
    * 
* * 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 { @@ -278,12 +320,15 @@ public java.lang.String getDisplayName() { public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** + * + * *
    * Optional. User-provided description of the instruction.
    * The description can be up to 10000 characters long.
    * 
* * string description = 3; + * * @return The description. */ @java.lang.Override @@ -292,30 +337,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; } } /** + * + * *
    * Optional. User-provided description of the instruction.
    * The description can be up to 10000 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 { @@ -326,11 +371,14 @@ public java.lang.String getDescription() { public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Creation time of instruction.
    * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -338,11 +386,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Creation time of instruction.
    * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return The createTime. */ @java.lang.Override @@ -350,6 +401,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Creation time of instruction.
    * 
@@ -364,11 +417,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int UPDATE_TIME_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp updateTime_; /** + * + * *
    * Output only. Last update time of instruction.
    * 
* * .google.protobuf.Timestamp update_time = 5; + * * @return Whether the updateTime field is set. */ @java.lang.Override @@ -376,11 +432,14 @@ public boolean hasUpdateTime() { return updateTime_ != null; } /** + * + * *
    * Output only. Last update time of instruction.
    * 
* * .google.protobuf.Timestamp update_time = 5; + * * @return The updateTime. */ @java.lang.Override @@ -388,6 +447,8 @@ public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** + * + * *
    * Output only. Last update time of instruction.
    * 
@@ -402,33 +463,44 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { public static final int DATA_TYPE_FIELD_NUMBER = 6; private int dataType_; /** + * + * *
    * Required. The data type of this instruction.
    * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 6; + * * @return The enum numeric value on the wire for dataType. */ - @java.lang.Override public int getDataTypeValue() { + @java.lang.Override + public int getDataTypeValue() { return dataType_; } /** + * + * *
    * Required. The data type of this instruction.
    * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 6; + * * @return The dataType. */ - @java.lang.Override public com.google.cloud.datalabeling.v1beta1.DataType getDataType() { + @java.lang.Override + public com.google.cloud.datalabeling.v1beta1.DataType getDataType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.DataType result = com.google.cloud.datalabeling.v1beta1.DataType.valueOf(dataType_); + com.google.cloud.datalabeling.v1beta1.DataType result = + com.google.cloud.datalabeling.v1beta1.DataType.valueOf(dataType_); return result == null ? com.google.cloud.datalabeling.v1beta1.DataType.UNRECOGNIZED : result; } public static final int CSV_INSTRUCTION_FIELD_NUMBER = 7; private com.google.cloud.datalabeling.v1beta1.CsvInstruction csvInstruction_; /** + * + * *
    * Deprecated: this instruction format is not supported any more.
    * Instruction from a CSV file, such as for classification task.
@@ -437,16 +509,22 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * * The second column is comma separated labels associated with data.
    * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; - * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. - * See google/cloud/datalabeling/v1beta1/instruction.proto;l=65 + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * + * + * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. See + * google/cloud/datalabeling/v1beta1/instruction.proto;l=65 * @return Whether the csvInstruction field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasCsvInstruction() { + @java.lang.Deprecated + public boolean hasCsvInstruction() { return csvInstruction_ != null; } /** + * + * *
    * Deprecated: this instruction format is not supported any more.
    * Instruction from a CSV file, such as for classification task.
@@ -455,16 +533,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * * The second column is comma separated labels associated with data.
    * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; - * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. - * See google/cloud/datalabeling/v1beta1/instruction.proto;l=65 + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * + * + * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. See + * google/cloud/datalabeling/v1beta1/instruction.proto;l=65 * @return The csvInstruction. */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.datalabeling.v1beta1.CsvInstruction getCsvInstruction() { - return csvInstruction_ == null ? com.google.cloud.datalabeling.v1beta1.CsvInstruction.getDefaultInstance() : csvInstruction_; + @java.lang.Deprecated + public com.google.cloud.datalabeling.v1beta1.CsvInstruction getCsvInstruction() { + return csvInstruction_ == null + ? com.google.cloud.datalabeling.v1beta1.CsvInstruction.getDefaultInstance() + : csvInstruction_; } /** + * + * *
    * Deprecated: this instruction format is not supported any more.
    * Instruction from a CSV file, such as for classification task.
@@ -473,22 +559,29 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
    * * The second column is comma separated labels associated with data.
    * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder getCsvInstructionOrBuilder() { + @java.lang.Deprecated + public com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder + getCsvInstructionOrBuilder() { return getCsvInstruction(); } public static final int PDF_INSTRUCTION_FIELD_NUMBER = 9; private com.google.cloud.datalabeling.v1beta1.PdfInstruction pdfInstruction_; /** + * + * *
    * Instruction from a PDF document. The PDF should be in a Cloud Storage
    * bucket.
    * 
* * .google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9; + * * @return Whether the pdfInstruction field is set. */ @java.lang.Override @@ -496,19 +589,26 @@ public boolean hasPdfInstruction() { return pdfInstruction_ != null; } /** + * + * *
    * Instruction from a PDF document. The PDF should be in a Cloud Storage
    * bucket.
    * 
* * .google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9; + * * @return The pdfInstruction. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PdfInstruction getPdfInstruction() { - return pdfInstruction_ == null ? com.google.cloud.datalabeling.v1beta1.PdfInstruction.getDefaultInstance() : pdfInstruction_; + return pdfInstruction_ == null + ? com.google.cloud.datalabeling.v1beta1.PdfInstruction.getDefaultInstance() + : pdfInstruction_; } /** + * + * *
    * Instruction from a PDF document. The PDF should be in a Cloud Storage
    * bucket.
@@ -517,44 +617,53 @@ public com.google.cloud.datalabeling.v1beta1.PdfInstruction getPdfInstruction()
    * .google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder getPdfInstructionOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder
+      getPdfInstructionOrBuilder() {
     return getPdfInstruction();
   }
 
   public static final int BLOCKING_RESOURCES_FIELD_NUMBER = 10;
   private com.google.protobuf.LazyStringList blockingResources_;
   /**
+   *
+   *
    * 
    * Output only. The names of any related resources that are blocking changes
    * to the instruction.
    * 
* * repeated string blocking_resources = 10; + * * @return A list containing the blockingResources. */ - public com.google.protobuf.ProtocolStringList - getBlockingResourcesList() { + public com.google.protobuf.ProtocolStringList getBlockingResourcesList() { return blockingResources_; } /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the instruction.
    * 
* * repeated string blocking_resources = 10; + * * @return The count of blockingResources. */ public int getBlockingResourcesCount() { return blockingResources_.size(); } /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the instruction.
    * 
* * repeated string blocking_resources = 10; + * * @param index The index of the element to return. * @return The blockingResources at the given index. */ @@ -562,21 +671,24 @@ public java.lang.String getBlockingResources(int index) { return blockingResources_.get(index); } /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the instruction.
    * 
* * repeated string blocking_resources = 10; + * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - public com.google.protobuf.ByteString - getBlockingResourcesBytes(int index) { + public com.google.protobuf.ByteString getBlockingResourcesBytes(int index) { return blockingResources_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -588,8 +700,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_); } @@ -605,7 +716,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (updateTime_ != null) { output.writeMessage(5, getUpdateTime()); } - if (dataType_ != com.google.cloud.datalabeling.v1beta1.DataType.DATA_TYPE_UNSPECIFIED.getNumber()) { + if (dataType_ + != com.google.cloud.datalabeling.v1beta1.DataType.DATA_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(6, dataType_); } if (csvInstruction_ != null) { @@ -636,24 +748,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); } if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getUpdateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); } - if (dataType_ != com.google.cloud.datalabeling.v1beta1.DataType.DATA_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, dataType_); + if (dataType_ + != com.google.cloud.datalabeling.v1beta1.DataType.DATA_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, dataType_); } if (csvInstruction_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCsvInstruction()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCsvInstruction()); } if (pdfInstruction_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, getPdfInstruction()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getPdfInstruction()); } { int dataSize = 0; @@ -671,42 +779,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.datalabeling.v1beta1.Instruction)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.Instruction other = (com.google.cloud.datalabeling.v1beta1.Instruction) obj; + com.google.cloud.datalabeling.v1beta1.Instruction other = + (com.google.cloud.datalabeling.v1beta1.Instruction) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) 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 (dataType_ != other.dataType_) return false; if (hasCsvInstruction() != other.hasCsvInstruction()) return false; if (hasCsvInstruction()) { - if (!getCsvInstruction() - .equals(other.getCsvInstruction())) return false; + if (!getCsvInstruction().equals(other.getCsvInstruction())) return false; } if (hasPdfInstruction() != other.hasPdfInstruction()) return false; if (hasPdfInstruction()) { - if (!getPdfInstruction() - .equals(other.getPdfInstruction())) return false; + if (!getPdfInstruction().equals(other.getPdfInstruction())) return false; } - if (!getBlockingResourcesList() - .equals(other.getBlockingResourcesList())) return false; + if (!getBlockingResourcesList().equals(other.getBlockingResourcesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -752,96 +853,103 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.Instruction 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.datalabeling.v1beta1.Instruction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.Instruction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.Instruction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.Instruction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.Instruction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Instruction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.Instruction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.Instruction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Instruction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.Instruction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.Instruction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.Instruction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.Instruction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.Instruction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Instruction of how to perform the labeling task for human operators.
    * Currently only PDF instruction is supported.
@@ -849,21 +957,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.Instruction}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.Instruction)
       com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Instruction_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_Instruction_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Instruction_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_Instruction_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.Instruction.class, com.google.cloud.datalabeling.v1beta1.Instruction.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.Instruction.class,
+              com.google.cloud.datalabeling.v1beta1.Instruction.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.Instruction.newBuilder()
@@ -871,16 +981,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();
@@ -922,9 +1031,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Instruction_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_Instruction_descriptor;
     }
 
     @java.lang.Override
@@ -943,7 +1052,8 @@ public com.google.cloud.datalabeling.v1beta1.Instruction build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.Instruction buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.Instruction result = new com.google.cloud.datalabeling.v1beta1.Instruction(this);
+      com.google.cloud.datalabeling.v1beta1.Instruction result =
+          new com.google.cloud.datalabeling.v1beta1.Instruction(this);
       int from_bitField0_ = bitField0_;
       result.name_ = name_;
       result.displayName_ = displayName_;
@@ -982,38 +1092,39 @@ public com.google.cloud.datalabeling.v1beta1.Instruction buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.Instruction) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Instruction)other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Instruction) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1021,7 +1132,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.Instruction other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance()) return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         onChanged();
@@ -1078,7 +1190,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.datalabeling.v1beta1.Instruction) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.datalabeling.v1beta1.Instruction) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1087,23 +1200,26 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_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; @@ -1112,21 +1228,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_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 { @@ -1134,57 +1251,64 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_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. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_id}
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Output only. Instruction resource name, format:
      * projects/{project_id}/instructions/{instruction_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; @@ -1192,18 +1316,20 @@ public Builder setNameBytes( private java.lang.Object displayName_ = ""; /** + * + * *
      * Required. The display name of the instruction. Maximum of 64 characters.
      * 
* * 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; @@ -1212,20 +1338,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. The display name of the instruction. Maximum of 64 characters.
      * 
* * 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 { @@ -1233,54 +1360,61 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Required. The display name of the instruction. Maximum of 64 characters.
      * 
* * 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 display name of the instruction. Maximum of 64 characters.
      * 
* * string display_name = 2; + * * @return This builder for chaining. */ public Builder clearDisplayName() { - + displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** + * + * *
      * Required. The display name of the instruction. Maximum of 64 characters.
      * 
* * 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; @@ -1288,19 +1422,21 @@ public Builder setDisplayNameBytes( private java.lang.Object description_ = ""; /** + * + * *
      * Optional. User-provided description of the instruction.
      * The description can be up to 10000 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; @@ -1309,21 +1445,22 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. User-provided description of the instruction.
      * The description can be up to 10000 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 { @@ -1331,57 +1468,64 @@ public java.lang.String getDescription() { } } /** + * + * *
      * Optional. User-provided description of the instruction.
      * The description can be up to 10000 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; } /** + * + * *
      * Optional. User-provided description of the instruction.
      * The description can be up to 10000 characters long.
      * 
* * string description = 3; + * * @return This builder for chaining. */ public Builder clearDescription() { - + description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** + * + * *
      * Optional. User-provided description of the instruction.
      * The description can be up to 10000 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; @@ -1389,34 +1533,47 @@ public Builder setDescriptionBytes( 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. Creation time of instruction.
      * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Creation time of instruction.
      * 
* * .google.protobuf.Timestamp create_time = 4; + * * @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. Creation time of instruction.
      * 
@@ -1437,14 +1594,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Creation time of instruction.
      * 
* * .google.protobuf.Timestamp create_time = 4; */ - 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(); @@ -1455,6 +1613,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Creation time of instruction.
      * 
@@ -1465,7 +1625,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; } @@ -1477,6 +1637,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Creation time of instruction.
      * 
@@ -1495,6 +1657,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Creation time of instruction.
      * 
@@ -1502,11 +1666,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 4; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Creation time of instruction.
      * 
@@ -1517,11 +1683,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. Creation time of instruction.
      * 
@@ -1529,14 +1698,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_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> 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_; @@ -1544,34 +1716,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. Last update time of instruction.
      * 
* * .google.protobuf.Timestamp update_time = 5; + * * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return updateTimeBuilder_ != null || updateTime_ != null; } /** + * + * *
      * Output only. Last update time of instruction.
      * 
* * .google.protobuf.Timestamp update_time = 5; + * * @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. Last update time of instruction.
      * 
@@ -1592,14 +1777,15 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Last update time of instruction.
      * 
* * .google.protobuf.Timestamp update_time = 5; */ - 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(); @@ -1610,6 +1796,8 @@ public Builder setUpdateTime( return this; } /** + * + * *
      * Output only. Last update time of instruction.
      * 
@@ -1620,7 +1808,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; } @@ -1632,6 +1820,8 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Last update time of instruction.
      * 
@@ -1650,6 +1840,8 @@ public Builder clearUpdateTime() { return this; } /** + * + * *
      * Output only. Last update time of instruction.
      * 
@@ -1657,11 +1849,13 @@ public Builder clearUpdateTime() { * .google.protobuf.Timestamp update_time = 5; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - + onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Last update time of instruction.
      * 
@@ -1672,11 +1866,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. Last update time of instruction.
      * 
@@ -1684,14 +1881,17 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * .google.protobuf.Timestamp update_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> 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_; @@ -1699,51 +1899,65 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { private int dataType_ = 0; /** + * + * *
      * Required. The data type of this instruction.
      * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 6; + * * @return The enum numeric value on the wire for dataType. */ - @java.lang.Override public int getDataTypeValue() { + @java.lang.Override + public int getDataTypeValue() { return dataType_; } /** + * + * *
      * Required. The data type of this instruction.
      * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 6; + * * @param value The enum numeric value on the wire for dataType to set. * @return This builder for chaining. */ public Builder setDataTypeValue(int value) { - + dataType_ = value; onChanged(); return this; } /** + * + * *
      * Required. The data type of this instruction.
      * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 6; + * * @return The dataType. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.DataType getDataType() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.DataType result = com.google.cloud.datalabeling.v1beta1.DataType.valueOf(dataType_); + com.google.cloud.datalabeling.v1beta1.DataType result = + com.google.cloud.datalabeling.v1beta1.DataType.valueOf(dataType_); return result == null ? com.google.cloud.datalabeling.v1beta1.DataType.UNRECOGNIZED : result; } /** + * + * *
      * Required. The data type of this instruction.
      * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 6; + * * @param value The dataType to set. * @return This builder for chaining. */ @@ -1751,21 +1965,24 @@ public Builder setDataType(com.google.cloud.datalabeling.v1beta1.DataType value) if (value == null) { throw new NullPointerException(); } - + dataType_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. The data type of this instruction.
      * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 6; + * * @return This builder for chaining. */ public Builder clearDataType() { - + dataType_ = 0; onChanged(); return this; @@ -1773,8 +1990,13 @@ public Builder clearDataType() { private com.google.cloud.datalabeling.v1beta1.CsvInstruction csvInstruction_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.CsvInstruction, com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder, com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder> csvInstructionBuilder_; + com.google.cloud.datalabeling.v1beta1.CsvInstruction, + com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder, + com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder> + csvInstructionBuilder_; /** + * + * *
      * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
@@ -1783,15 +2005,21 @@ public Builder clearDataType() {
      * * The second column is comma separated labels associated with data.
      * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; - * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. - * See google/cloud/datalabeling/v1beta1/instruction.proto;l=65 + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * + * + * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. See + * google/cloud/datalabeling/v1beta1/instruction.proto;l=65 * @return Whether the csvInstruction field is set. */ - @java.lang.Deprecated public boolean hasCsvInstruction() { + @java.lang.Deprecated + public boolean hasCsvInstruction() { return csvInstructionBuilder_ != null || csvInstruction_ != null; } /** + * + * *
      * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
@@ -1800,19 +2028,27 @@ public Builder clearDataType() {
      * * The second column is comma separated labels associated with data.
      * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; - * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. - * See google/cloud/datalabeling/v1beta1/instruction.proto;l=65 + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * + * + * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. See + * google/cloud/datalabeling/v1beta1/instruction.proto;l=65 * @return The csvInstruction. */ - @java.lang.Deprecated public com.google.cloud.datalabeling.v1beta1.CsvInstruction getCsvInstruction() { + @java.lang.Deprecated + public com.google.cloud.datalabeling.v1beta1.CsvInstruction getCsvInstruction() { if (csvInstructionBuilder_ == null) { - return csvInstruction_ == null ? com.google.cloud.datalabeling.v1beta1.CsvInstruction.getDefaultInstance() : csvInstruction_; + return csvInstruction_ == null + ? com.google.cloud.datalabeling.v1beta1.CsvInstruction.getDefaultInstance() + : csvInstruction_; } else { return csvInstructionBuilder_.getMessage(); } } /** + * + * *
      * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
@@ -1821,9 +2057,12 @@ public Builder clearDataType() {
      * * The second column is comma separated labels associated with data.
      * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setCsvInstruction(com.google.cloud.datalabeling.v1beta1.CsvInstruction value) { + @java.lang.Deprecated + public Builder setCsvInstruction(com.google.cloud.datalabeling.v1beta1.CsvInstruction value) { if (csvInstructionBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1837,6 +2076,8 @@ public Builder clearDataType() { return this; } /** + * + * *
      * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
@@ -1845,9 +2086,12 @@ public Builder clearDataType() {
      * * The second column is comma separated labels associated with data.
      * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder setCsvInstruction( + @java.lang.Deprecated + public Builder setCsvInstruction( com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder builderForValue) { if (csvInstructionBuilder_ == null) { csvInstruction_ = builderForValue.build(); @@ -1859,6 +2103,8 @@ public Builder clearDataType() { return this; } /** + * + * *
      * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
@@ -1867,13 +2113,18 @@ public Builder clearDataType() {
      * * The second column is comma separated labels associated with data.
      * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder mergeCsvInstruction(com.google.cloud.datalabeling.v1beta1.CsvInstruction value) { + @java.lang.Deprecated + public Builder mergeCsvInstruction(com.google.cloud.datalabeling.v1beta1.CsvInstruction value) { if (csvInstructionBuilder_ == null) { if (csvInstruction_ != null) { csvInstruction_ = - com.google.cloud.datalabeling.v1beta1.CsvInstruction.newBuilder(csvInstruction_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.CsvInstruction.newBuilder(csvInstruction_) + .mergeFrom(value) + .buildPartial(); } else { csvInstruction_ = value; } @@ -1885,6 +2136,8 @@ public Builder clearDataType() { return this; } /** + * + * *
      * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
@@ -1893,9 +2146,12 @@ public Builder clearDataType() {
      * * The second column is comma separated labels associated with data.
      * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * */ - @java.lang.Deprecated public Builder clearCsvInstruction() { + @java.lang.Deprecated + public Builder clearCsvInstruction() { if (csvInstructionBuilder_ == null) { csvInstruction_ = null; onChanged(); @@ -1907,6 +2163,8 @@ public Builder clearDataType() { return this; } /** + * + * *
      * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
@@ -1915,14 +2173,19 @@ public Builder clearDataType() {
      * * The second column is comma separated labels associated with data.
      * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder getCsvInstructionBuilder() { - + @java.lang.Deprecated + public com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder getCsvInstructionBuilder() { + onChanged(); return getCsvInstructionFieldBuilder().getBuilder(); } /** + * + * *
      * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
@@ -1931,17 +2194,24 @@ public Builder clearDataType() {
      * * The second column is comma separated labels associated with data.
      * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * */ - @java.lang.Deprecated public com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder getCsvInstructionOrBuilder() { + @java.lang.Deprecated + public com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder + getCsvInstructionOrBuilder() { if (csvInstructionBuilder_ != null) { return csvInstructionBuilder_.getMessageOrBuilder(); } else { - return csvInstruction_ == null ? - com.google.cloud.datalabeling.v1beta1.CsvInstruction.getDefaultInstance() : csvInstruction_; + return csvInstruction_ == null + ? com.google.cloud.datalabeling.v1beta1.CsvInstruction.getDefaultInstance() + : csvInstruction_; } } /** + * + * *
      * Deprecated: this instruction format is not supported any more.
      * Instruction from a CSV file, such as for classification task.
@@ -1950,17 +2220,22 @@ public Builder clearDataType() {
      * * The second column is comma separated labels associated with data.
      * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.CsvInstruction, com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder, com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder> + com.google.cloud.datalabeling.v1beta1.CsvInstruction, + com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder, + com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder> getCsvInstructionFieldBuilder() { if (csvInstructionBuilder_ == null) { - csvInstructionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.CsvInstruction, com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder, com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder>( - getCsvInstruction(), - getParentForChildren(), - isClean()); + csvInstructionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.CsvInstruction, + com.google.cloud.datalabeling.v1beta1.CsvInstruction.Builder, + com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder>( + getCsvInstruction(), getParentForChildren(), isClean()); csvInstruction_ = null; } return csvInstructionBuilder_; @@ -1968,36 +2243,49 @@ public Builder clearDataType() { private com.google.cloud.datalabeling.v1beta1.PdfInstruction pdfInstruction_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.PdfInstruction, com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder, com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder> pdfInstructionBuilder_; + com.google.cloud.datalabeling.v1beta1.PdfInstruction, + com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder, + com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder> + pdfInstructionBuilder_; /** + * + * *
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
      * 
* * .google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9; + * * @return Whether the pdfInstruction field is set. */ public boolean hasPdfInstruction() { return pdfInstructionBuilder_ != null || pdfInstruction_ != null; } /** + * + * *
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
      * 
* * .google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9; + * * @return The pdfInstruction. */ public com.google.cloud.datalabeling.v1beta1.PdfInstruction getPdfInstruction() { if (pdfInstructionBuilder_ == null) { - return pdfInstruction_ == null ? com.google.cloud.datalabeling.v1beta1.PdfInstruction.getDefaultInstance() : pdfInstruction_; + return pdfInstruction_ == null + ? com.google.cloud.datalabeling.v1beta1.PdfInstruction.getDefaultInstance() + : pdfInstruction_; } else { return pdfInstructionBuilder_.getMessage(); } } /** + * + * *
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
@@ -2019,6 +2307,8 @@ public Builder setPdfInstruction(com.google.cloud.datalabeling.v1beta1.PdfInstru
       return this;
     }
     /**
+     *
+     *
      * 
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
@@ -2038,6 +2328,8 @@ public Builder setPdfInstruction(
       return this;
     }
     /**
+     *
+     *
      * 
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
@@ -2049,7 +2341,9 @@ public Builder mergePdfInstruction(com.google.cloud.datalabeling.v1beta1.PdfInst
       if (pdfInstructionBuilder_ == null) {
         if (pdfInstruction_ != null) {
           pdfInstruction_ =
-            com.google.cloud.datalabeling.v1beta1.PdfInstruction.newBuilder(pdfInstruction_).mergeFrom(value).buildPartial();
+              com.google.cloud.datalabeling.v1beta1.PdfInstruction.newBuilder(pdfInstruction_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           pdfInstruction_ = value;
         }
@@ -2061,6 +2355,8 @@ public Builder mergePdfInstruction(com.google.cloud.datalabeling.v1beta1.PdfInst
       return this;
     }
     /**
+     *
+     *
      * 
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
@@ -2080,6 +2376,8 @@ public Builder clearPdfInstruction() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
@@ -2088,11 +2386,13 @@ public Builder clearPdfInstruction() {
      * .google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9;
      */
     public com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder getPdfInstructionBuilder() {
-      
+
       onChanged();
       return getPdfInstructionFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
@@ -2100,15 +2400,19 @@ public com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder getPdfInstru
      *
      * .google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9;
      */
-    public com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder getPdfInstructionOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder
+        getPdfInstructionOrBuilder() {
       if (pdfInstructionBuilder_ != null) {
         return pdfInstructionBuilder_.getMessageOrBuilder();
       } else {
-        return pdfInstruction_ == null ?
-            com.google.cloud.datalabeling.v1beta1.PdfInstruction.getDefaultInstance() : pdfInstruction_;
+        return pdfInstruction_ == null
+            ? com.google.cloud.datalabeling.v1beta1.PdfInstruction.getDefaultInstance()
+            : pdfInstruction_;
       }
     }
     /**
+     *
+     *
      * 
      * Instruction from a PDF document. The PDF should be in a Cloud Storage
      * bucket.
@@ -2117,58 +2421,71 @@ public com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder getPdfInstr
      * .google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.PdfInstruction, com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder, com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder> 
+            com.google.cloud.datalabeling.v1beta1.PdfInstruction,
+            com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder,
+            com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder>
         getPdfInstructionFieldBuilder() {
       if (pdfInstructionBuilder_ == null) {
-        pdfInstructionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.PdfInstruction, com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder, com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder>(
-                getPdfInstruction(),
-                getParentForChildren(),
-                isClean());
+        pdfInstructionBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.datalabeling.v1beta1.PdfInstruction,
+                com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder,
+                com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder>(
+                getPdfInstruction(), getParentForChildren(), isClean());
         pdfInstruction_ = null;
       }
       return pdfInstructionBuilder_;
     }
 
-    private com.google.protobuf.LazyStringList blockingResources_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList blockingResources_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensureBlockingResourcesIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         blockingResources_ = new com.google.protobuf.LazyStringArrayList(blockingResources_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * Output only. The names of any related resources that are blocking changes
      * to the instruction.
      * 
* * repeated string blocking_resources = 10; + * * @return A list containing the blockingResources. */ - public com.google.protobuf.ProtocolStringList - getBlockingResourcesList() { + public com.google.protobuf.ProtocolStringList getBlockingResourcesList() { return blockingResources_.getUnmodifiableView(); } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the instruction.
      * 
* * repeated string blocking_resources = 10; + * * @return The count of blockingResources. */ public int getBlockingResourcesCount() { return blockingResources_.size(); } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the instruction.
      * 
* * repeated string blocking_resources = 10; + * * @param index The index of the element to return. * @return The blockingResources at the given index. */ @@ -2176,85 +2493,95 @@ public java.lang.String getBlockingResources(int index) { return blockingResources_.get(index); } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the instruction.
      * 
* * repeated string blocking_resources = 10; + * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - public com.google.protobuf.ByteString - getBlockingResourcesBytes(int index) { + public com.google.protobuf.ByteString getBlockingResourcesBytes(int index) { return blockingResources_.getByteString(index); } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the instruction.
      * 
* * repeated string blocking_resources = 10; + * * @param index The index to set the value at. * @param value The blockingResources to set. * @return This builder for chaining. */ - public Builder setBlockingResources( - int index, java.lang.String value) { + public Builder setBlockingResources(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlockingResourcesIsMutable(); + throw new NullPointerException(); + } + ensureBlockingResourcesIsMutable(); blockingResources_.set(index, value); onChanged(); return this; } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the instruction.
      * 
* * repeated string blocking_resources = 10; + * * @param value The blockingResources to add. * @return This builder for chaining. */ - public Builder addBlockingResources( - java.lang.String value) { + public Builder addBlockingResources(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureBlockingResourcesIsMutable(); + throw new NullPointerException(); + } + ensureBlockingResourcesIsMutable(); blockingResources_.add(value); onChanged(); return this; } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the instruction.
      * 
* * repeated string blocking_resources = 10; + * * @param values The blockingResources to add. * @return This builder for chaining. */ - public Builder addAllBlockingResources( - java.lang.Iterable values) { + public Builder addAllBlockingResources(java.lang.Iterable values) { ensureBlockingResourcesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, blockingResources_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blockingResources_); onChanged(); return this; } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the instruction.
      * 
* * repeated string blocking_resources = 10; + * * @return This builder for chaining. */ public Builder clearBlockingResources() { @@ -2264,29 +2591,31 @@ public Builder clearBlockingResources() { return this; } /** + * + * *
      * Output only. The names of any related resources that are blocking changes
      * to the instruction.
      * 
* * repeated string blocking_resources = 10; + * * @param value The bytes of the blockingResources to add. * @return This builder for chaining. */ - public Builder addBlockingResourcesBytes( - com.google.protobuf.ByteString value) { + public Builder addBlockingResourcesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureBlockingResourcesIsMutable(); blockingResources_.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); } @@ -2296,12 +2625,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.Instruction) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Instruction) private static final com.google.cloud.datalabeling.v1beta1.Instruction DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.Instruction(); } @@ -2310,16 +2639,16 @@ public static com.google.cloud.datalabeling.v1beta1.Instruction getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Instruction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Instruction(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Instruction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Instruction(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2334,6 +2663,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.Instruction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionName.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionName.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOrBuilder.java similarity index 77% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOrBuilder.java index e629f160..b6a513d0 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOrBuilder.java @@ -1,95 +1,134 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/instruction.proto package com.google.cloud.datalabeling.v1beta1; -public interface InstructionOrBuilder extends +public interface InstructionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.Instruction) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Instruction resource name, format:
    * projects/{project_id}/instructions/{instruction_id}
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Instruction resource name, format:
    * projects/{project_id}/instructions/{instruction_id}
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The display name of the instruction. Maximum of 64 characters.
    * 
* * string display_name = 2; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. The display name of the instruction. Maximum of 64 characters.
    * 
* * string display_name = 2; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Optional. User-provided description of the instruction.
    * The description can be up to 10000 characters long.
    * 
* * string description = 3; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. User-provided description of the instruction.
    * The description can be up to 10000 characters long.
    * 
* * string description = 3; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Output only. Creation time of instruction.
    * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Creation time of instruction.
    * 
* * .google.protobuf.Timestamp create_time = 4; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Creation time of instruction.
    * 
@@ -99,24 +138,32 @@ public interface InstructionOrBuilder extends com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Output only. Last update time of instruction.
    * 
* * .google.protobuf.Timestamp update_time = 5; + * * @return Whether the updateTime field is set. */ boolean hasUpdateTime(); /** + * + * *
    * Output only. Last update time of instruction.
    * 
* * .google.protobuf.Timestamp update_time = 5; + * * @return The updateTime. */ com.google.protobuf.Timestamp getUpdateTime(); /** + * + * *
    * Output only. Last update time of instruction.
    * 
@@ -126,25 +173,33 @@ public interface InstructionOrBuilder extends com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); /** + * + * *
    * Required. The data type of this instruction.
    * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 6; + * * @return The enum numeric value on the wire for dataType. */ int getDataTypeValue(); /** + * + * *
    * Required. The data type of this instruction.
    * 
* * .google.cloud.datalabeling.v1beta1.DataType data_type = 6; + * * @return The dataType. */ com.google.cloud.datalabeling.v1beta1.DataType getDataType(); /** + * + * *
    * Deprecated: this instruction format is not supported any more.
    * Instruction from a CSV file, such as for classification task.
@@ -153,13 +208,19 @@ public interface InstructionOrBuilder extends
    * * The second column is comma separated labels associated with data.
    * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; - * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. - * See google/cloud/datalabeling/v1beta1/instruction.proto;l=65 + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * + * + * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. See + * google/cloud/datalabeling/v1beta1/instruction.proto;l=65 * @return Whether the csvInstruction field is set. */ - @java.lang.Deprecated boolean hasCsvInstruction(); + @java.lang.Deprecated + boolean hasCsvInstruction(); /** + * + * *
    * Deprecated: this instruction format is not supported any more.
    * Instruction from a CSV file, such as for classification task.
@@ -168,13 +229,19 @@ public interface InstructionOrBuilder extends
    * * The second column is comma separated labels associated with data.
    * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; - * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. - * See google/cloud/datalabeling/v1beta1/instruction.proto;l=65 + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * + * + * @deprecated google.cloud.datalabeling.v1beta1.Instruction.csv_instruction is deprecated. See + * google/cloud/datalabeling/v1beta1/instruction.proto;l=65 * @return The csvInstruction. */ - @java.lang.Deprecated com.google.cloud.datalabeling.v1beta1.CsvInstruction getCsvInstruction(); + @java.lang.Deprecated + com.google.cloud.datalabeling.v1beta1.CsvInstruction getCsvInstruction(); /** + * + * *
    * Deprecated: this instruction format is not supported any more.
    * Instruction from a CSV file, such as for classification task.
@@ -183,31 +250,42 @@ public interface InstructionOrBuilder extends
    * * The second column is comma separated labels associated with data.
    * 
* - * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * + * .google.cloud.datalabeling.v1beta1.CsvInstruction csv_instruction = 7 [deprecated = true]; + * */ - @java.lang.Deprecated com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder getCsvInstructionOrBuilder(); + @java.lang.Deprecated + com.google.cloud.datalabeling.v1beta1.CsvInstructionOrBuilder getCsvInstructionOrBuilder(); /** + * + * *
    * Instruction from a PDF document. The PDF should be in a Cloud Storage
    * bucket.
    * 
* * .google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9; + * * @return Whether the pdfInstruction field is set. */ boolean hasPdfInstruction(); /** + * + * *
    * Instruction from a PDF document. The PDF should be in a Cloud Storage
    * bucket.
    * 
* * .google.cloud.datalabeling.v1beta1.PdfInstruction pdf_instruction = 9; + * * @return The pdfInstruction. */ com.google.cloud.datalabeling.v1beta1.PdfInstruction getPdfInstruction(); /** + * + * *
    * Instruction from a PDF document. The PDF should be in a Cloud Storage
    * bucket.
@@ -218,47 +296,57 @@ public interface InstructionOrBuilder extends
   com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder getPdfInstructionOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output only. The names of any related resources that are blocking changes
    * to the instruction.
    * 
* * repeated string blocking_resources = 10; + * * @return A list containing the blockingResources. */ - java.util.List - getBlockingResourcesList(); + java.util.List getBlockingResourcesList(); /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the instruction.
    * 
* * repeated string blocking_resources = 10; + * * @return The count of blockingResources. */ int getBlockingResourcesCount(); /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the instruction.
    * 
* * repeated string blocking_resources = 10; + * * @param index The index of the element to return. * @return The blockingResources at the given index. */ java.lang.String getBlockingResources(int index); /** + * + * *
    * Output only. The names of any related resources that are blocking changes
    * to the instruction.
    * 
* * repeated string blocking_resources = 10; + * * @param index The index of the value to return. * @return The bytes of the blockingResources at the given index. */ - com.google.protobuf.ByteString - getBlockingResourcesBytes(int index); + com.google.protobuf.ByteString getBlockingResourcesBytes(int index); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOuterClass.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOuterClass.java new file mode 100644 index 00000000..ce3bbad2 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/InstructionOuterClass.java @@ -0,0 +1,132 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/instruction.proto + +package com.google.cloud.datalabeling.v1beta1; + +public final class InstructionOuterClass { + private InstructionOuterClass() {} + + 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_datalabeling_v1beta1_Instruction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_Instruction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/datalabeling/v1beta1/inst" + + "ruction.proto\022!google.cloud.datalabeling" + + ".v1beta1\032\034google/api/annotations.proto\032\031" + + "google/api/resource.proto\032/google/cloud/" + + "datalabeling/v1beta1/dataset.proto\032\037goog" + + "le/protobuf/timestamp.proto\"\375\003\n\013Instruct" + + "ion\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/\n\013create_time\030\004 \001(" + + "\0132\032.google.protobuf.Timestamp\022/\n\013update_" + + "time\030\005 \001(\0132\032.google.protobuf.Timestamp\022>" + + "\n\tdata_type\030\006 \001(\0162+.google.cloud.datalab" + + "eling.v1beta1.DataType\022N\n\017csv_instructio" + + "n\030\007 \001(\01321.google.cloud.datalabeling.v1be" + + "ta1.CsvInstructionB\002\030\001\022J\n\017pdf_instructio" + + "n\030\t \001(\01321.google.cloud.datalabeling.v1be" + + "ta1.PdfInstruction\022\032\n\022blocking_resources" + + "\030\n \003(\t:[\352AX\n\'datalabeling.googleapis.com" + + "/Instruction\022-projects/{project}/instruc" + + "tions/{instruction}\"&\n\016CsvInstruction\022\024\n" + + "\014gcs_file_uri\030\001 \001(\t\"&\n\016PdfInstruction\022\024\n" + + "\014gcs_file_uri\030\001 \001(\tB\347\001\n%com.google.cloud" + + ".datalabeling.v1beta1P\001ZMgoogle.golang.o" + + "rg/genproto/googleapis/cloud/datalabelin" + + "g/v1beta1;datalabeling\252\002!Google.Cloud.Da" + + "taLabeling.V1Beta1\312\002!Google\\Cloud\\DataLa" + + "beling\\V1beta1\352\002$Google::Cloud::DataLabe" + + "ling::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_datalabeling_v1beta1_Instruction_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_Instruction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_Instruction_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "CreateTime", + "UpdateTime", + "DataType", + "CsvInstruction", + "PdfInstruction", + "BlockingResources", + }); + internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_CsvInstruction_descriptor, + new java.lang.String[] { + "GcsFileUri", + }); + internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor, + new java.lang.String[] { + "GcsFileUri", + }); + 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.AnnotationsProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadata.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadata.java similarity index 58% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadata.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadata.java index 97b7210b..d6890505 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadata.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadata.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Details of a LabelImageBoundingBox operation metadata.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata} */ -public final class LabelImageBoundingBoxOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LabelImageBoundingBoxOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) LabelImageBoundingBoxOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LabelImageBoundingBoxOperationMetadata.newBuilder() to construct. - private LabelImageBoundingBoxOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelImageBoundingBoxOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LabelImageBoundingBoxOperationMetadata() { - } + + private LabelImageBoundingBoxOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LabelImageBoundingBoxOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LabelImageBoundingBoxOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +70,30 @@ private LabelImageBoundingBoxOperationMetadata( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); + case 10: + { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); + } + basicConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; } - basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = 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) { @@ -79,34 +101,40 @@ private LabelImageBoundingBoxOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder + .class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -114,18 +142,25 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
@@ -133,11 +168,13 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +186,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -164,8 +200,7 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +210,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.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata)) { + if (!(obj + instanceof com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata other = + (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig() - .equals(other.getBasicConfig())) return false; + if (!getBasicConfig().equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -207,135 +243,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + 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.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata 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.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + 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.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata 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.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + 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.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata 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.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + 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.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 a LabelImageBoundingBox operation metadata.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder + .class); } - // Construct using com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.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(); @@ -349,19 +402,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata build() { - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata result = buildPartial(); + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -369,8 +425,10 @@ public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetad } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata(this); + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + buildPartial() { + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata result = + new com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata(this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -384,46 +442,52 @@ public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetad public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata)other); + if (other + instanceof com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) { + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata other) { - if (other == com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata other) { + if (other + == com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + .getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -442,11 +506,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata parsedMessage = null; + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,41 +525,55 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + basicConfigBuilder_; /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -506,6 +587,8 @@ public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotat return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -524,17 +607,22 @@ public Builder setBasicConfig( return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) + .mergeFrom(value) + .buildPartial(); } else { basicConfig_ = value; } @@ -546,6 +634,8 @@ public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnot return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -564,33 +654,42 @@ public Builder clearBasicConfig() { return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder + getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null ? - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -598,21 +697,24 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getB * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), - getParentForChildren(), - isClean()); + basicConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), getParentForChildren(), isClean()); basicConfig_ = null; } return basicConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,30 +724,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata(); + DEFAULT_INSTANCE = + new com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelImageBoundingBoxOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelImageBoundingBoxOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelImageBoundingBoxOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelImageBoundingBoxOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,9 +762,8 @@ public com.google.protobuf.Parser getPar } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadataOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadataOrBuilder.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadataOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadataOrBuilder.java index 061c38de..43a93c15 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadataOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingBoxOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelImageBoundingBoxOperationMetadataOrBuilder extends +public interface LabelImageBoundingBoxOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadata.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadata.java similarity index 58% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadata.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadata.java index c9ab4143..6bad74c6 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadata.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadata.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Details of LabelImageBoundingPoly operation metadata.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata} */ -public final class LabelImageBoundingPolyOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LabelImageBoundingPolyOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) LabelImageBoundingPolyOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LabelImageBoundingPolyOperationMetadata.newBuilder() to construct. - private LabelImageBoundingPolyOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelImageBoundingPolyOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LabelImageBoundingPolyOperationMetadata() { - } + + private LabelImageBoundingPolyOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LabelImageBoundingPolyOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LabelImageBoundingPolyOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +70,30 @@ private LabelImageBoundingPolyOperationMetadata( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); + case 10: + { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); + } + basicConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; } - basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = 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) { @@ -79,34 +101,40 @@ private LabelImageBoundingPolyOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder + .class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -114,18 +142,25 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
@@ -133,11 +168,13 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +186,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -164,8 +200,7 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +210,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.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata)) { + if (!(obj + instanceof com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata other = + (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig() - .equals(other.getBasicConfig())) return false; + if (!getBasicConfig().equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -207,135 +243,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + 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.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata 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.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + 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.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata 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.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + 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.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata 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.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + 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.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 LabelImageBoundingPoly operation metadata.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder + .class); } - // Construct using com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.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(); @@ -349,19 +402,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata build() { - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata result = buildPartial(); + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -369,8 +425,10 @@ public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMeta } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata(this); + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + buildPartial() { + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata result = + new com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata(this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -384,46 +442,53 @@ public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMeta public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata)other); + if (other + instanceof + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) { + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata other) { - if (other == com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata other) { + if (other + == com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + .getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -442,11 +507,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata parsedMessage = null; + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,41 +526,55 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + basicConfigBuilder_; /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -506,6 +588,8 @@ public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotat return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -524,17 +608,22 @@ public Builder setBasicConfig( return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) + .mergeFrom(value) + .buildPartial(); } else { basicConfig_ = value; } @@ -546,6 +635,8 @@ public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnot return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -564,33 +655,42 @@ public Builder clearBasicConfig() { return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder + getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null ? - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -598,21 +698,24 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getB * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), - getParentForChildren(), - isClean()); + basicConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), getParentForChildren(), isClean()); basicConfig_ = null; } return basicConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,30 +725,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata(); + DEFAULT_INSTANCE = + new com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelImageBoundingPolyOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelImageBoundingPolyOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelImageBoundingPolyOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelImageBoundingPolyOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,9 +763,8 @@ public com.google.protobuf.Parser getPa } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadataOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadataOrBuilder.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadataOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadataOrBuilder.java index 2dd0147d..85b30265 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadataOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageBoundingPolyOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelImageBoundingPolyOperationMetadataOrBuilder extends +public interface LabelImageBoundingPolyOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadata.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadata.java similarity index 57% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadata.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadata.java index a24d7088..e0ef6511 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadata.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadata.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Metadata of a LabelImageClassification operation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata} */ -public final class LabelImageClassificationOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LabelImageClassificationOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) LabelImageClassificationOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LabelImageClassificationOperationMetadata.newBuilder() to construct. - private LabelImageClassificationOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelImageClassificationOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LabelImageClassificationOperationMetadata() { - } + + private LabelImageClassificationOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LabelImageClassificationOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LabelImageClassificationOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +70,30 @@ private LabelImageClassificationOperationMetadata( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); + case 10: + { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); + } + basicConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; } - basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = 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) { @@ -79,34 +101,40 @@ private LabelImageClassificationOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder + .class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -114,18 +142,25 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
@@ -133,11 +168,13 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +186,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -164,8 +200,7 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +210,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.datalabeling.v1beta1.LabelImageClassificationOperationMetadata)) { + if (!(obj + instanceof + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata other = + (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig() - .equals(other.getBasicConfig())) return false; + if (!getBasicConfig().equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -207,135 +244,153 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + 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.datalabeling.v1beta1.LabelImageClassificationOperationMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata 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.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + 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.datalabeling.v1beta1.LabelImageClassificationOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata 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.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + 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.datalabeling.v1beta1.LabelImageClassificationOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata 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.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + 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.datalabeling.v1beta1.LabelImageClassificationOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 of a LabelImageClassification operation.
    * 
* - * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata} + * Protobuf type {@code + * google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + .Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.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(); @@ -349,19 +404,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata build() { - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata result = buildPartial(); + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -369,8 +427,10 @@ public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMe } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata(this); + public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + buildPartial() { + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata result = + new com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata(this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -384,46 +444,54 @@ public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata)other); + if (other + instanceof + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) { + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata other) { - if (other == com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata other) { + if (other + == com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + .getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -442,11 +510,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata parsedMessage = null; + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,41 +529,55 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + basicConfigBuilder_; /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -506,6 +591,8 @@ public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotat return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -524,17 +611,22 @@ public Builder setBasicConfig( return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) + .mergeFrom(value) + .buildPartial(); } else { basicConfig_ = value; } @@ -546,6 +638,8 @@ public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnot return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -564,33 +658,42 @@ public Builder clearBasicConfig() { return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder + getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null ? - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -598,21 +701,24 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getB * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), - getParentForChildren(), - isClean()); + basicConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), getParentForChildren(), isClean()); basicConfig_ = null; } return basicConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,30 +728,35 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1 + .LabelImageClassificationOperationMetadata + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata(); + DEFAULT_INSTANCE = + new com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelImageClassificationOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelImageClassificationOperationMetadata(input, extensionRegistry); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelImageClassificationOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelImageClassificationOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,9 +768,8 @@ public com.google.protobuf.Parser get } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadataOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadataOrBuilder.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadataOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadataOrBuilder.java index 746a65b6..f9950212 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadataOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageClassificationOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelImageClassificationOperationMetadataOrBuilder extends +public interface LabelImageClassificationOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadata.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadata.java similarity index 55% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadata.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadata.java index aa0bf0e2..ea4ce023 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadata.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadata.java @@ -1,39 +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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Details of a LabelImageOrientedBoundingBox operation metadata.
  * 
* - * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata} + * Protobuf type {@code + * google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata} */ -public final class LabelImageOrientedBoundingBoxOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LabelImageOrientedBoundingBoxOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) LabelImageOrientedBoundingBoxOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LabelImageOrientedBoundingBoxOperationMetadata.newBuilder() to construct. - private LabelImageOrientedBoundingBoxOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelImageOrientedBoundingBoxOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LabelImageOrientedBoundingBoxOperationMetadata() { - } + + private LabelImageOrientedBoundingBoxOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LabelImageOrientedBoundingBoxOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LabelImageOrientedBoundingBoxOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +71,30 @@ private LabelImageOrientedBoundingBoxOperationMetadata( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); + case 10: + { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); + } + basicConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; } - basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = 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) { @@ -79,34 +102,41 @@ private LabelImageOrientedBoundingBoxOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + .class, + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + .Builder.class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** + * + * *
    * Basic human annotation config.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -114,18 +144,25 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** + * + * *
    * Basic human annotation config.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } /** + * + * *
    * Basic human annotation config.
    * 
@@ -133,11 +170,13 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -164,8 +202,7 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +212,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.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata)) { + if (!(obj + instanceof + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata other = + (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig() - .equals(other.getBasicConfig())) return false; + if (!getBasicConfig().equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -207,135 +246,156 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + 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.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata 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.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + 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.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata 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.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + 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.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata 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.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + 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.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 a LabelImageOrientedBoundingBox operation metadata.
    * 
* - * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata} + * Protobuf type {@code + * google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor; + com.google.cloud.datalabeling.v1beta1 + .LabelImageOrientedBoundingBoxOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + .class, + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + .Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.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(); @@ -349,19 +409,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata build() { - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata result = buildPartial(); + public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + build() { + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -369,8 +433,11 @@ public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperat } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata(this); + public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + buildPartial() { + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata result = + new com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata( + this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -384,46 +451,55 @@ public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperat public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata)other); + if (other + instanceof + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) { + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata other) { - if (other == com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + other) { + if (other + == com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + .getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -442,11 +518,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata parsedMessage = null; + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,41 +537,55 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + basicConfigBuilder_; /** + * + * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** + * + * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** + * + * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -506,6 +599,8 @@ public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotat return this; } /** + * + * *
      * Basic human annotation config.
      * 
@@ -524,17 +619,22 @@ public Builder setBasicConfig( return this; } /** + * + * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) + .mergeFrom(value) + .buildPartial(); } else { basicConfig_ = value; } @@ -546,6 +646,8 @@ public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnot return this; } /** + * + * *
      * Basic human annotation config.
      * 
@@ -564,33 +666,42 @@ public Builder clearBasicConfig() { return this; } /** + * + * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder + getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null ? - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } } /** + * + * *
      * Basic human annotation config.
      * 
@@ -598,21 +709,24 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getB * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), - getParentForChildren(), - isClean()); + basicConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), getParentForChildren(), isClean()); basicConfig_ = null; } return basicConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,44 +736,50 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1 + .LabelImageOrientedBoundingBoxOperationMetadata + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata(); + DEFAULT_INSTANCE = + new com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelImageOrientedBoundingBoxOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelImageOrientedBoundingBoxOperationMetadata(input, extensionRegistry); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelImageOrientedBoundingBoxOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelImageOrientedBoundingBoxOperationMetadata(input, extensionRegistry); + } + }; - public static com.google.protobuf.Parser parser() { + 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.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadataOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadataOrBuilder.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadataOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadataOrBuilder.java index 850d9a8d..33ff967a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadataOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageOrientedBoundingBoxOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelImageOrientedBoundingBoxOperationMetadataOrBuilder extends +public interface LabelImageOrientedBoundingBoxOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Basic human annotation config.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** + * + * *
    * Basic human annotation config.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** + * + * *
    * Basic human annotation config.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadata.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadata.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadata.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadata.java index d3111a84..15c10787 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadata.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadata.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Details of LabelImagePolyline operation metadata.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata} */ -public final class LabelImagePolylineOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LabelImagePolylineOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) LabelImagePolylineOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LabelImagePolylineOperationMetadata.newBuilder() to construct. - private LabelImagePolylineOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelImagePolylineOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LabelImagePolylineOperationMetadata() { - } + + private LabelImagePolylineOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LabelImagePolylineOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LabelImagePolylineOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +70,30 @@ private LabelImagePolylineOperationMetadata( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); + case 10: + { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); + } + basicConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; } - basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = 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) { @@ -79,34 +101,40 @@ private LabelImagePolylineOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder + .class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -114,18 +142,25 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
@@ -133,11 +168,13 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +186,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -164,8 +200,7 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +210,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.datalabeling.v1beta1.LabelImagePolylineOperationMetadata)) { + if (!(obj + instanceof com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata other = + (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig() - .equals(other.getBasicConfig())) return false; + if (!getBasicConfig().equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -208,134 +244,146 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata 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.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata 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.datalabeling.v1beta1.LabelImagePolylineOperationMetadata + 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.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 LabelImagePolyline operation metadata.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder + .class); } - // Construct using com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.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(); @@ -349,19 +397,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata build() { - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata result = buildPartial(); + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -369,8 +420,10 @@ public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata(this); + public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata + buildPartial() { + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata result = + new com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata(this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -384,46 +437,52 @@ public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata)other); + if (other + instanceof com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) { + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata other) { - if (other == com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata other) { + if (other + == com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata + .getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -442,11 +501,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parsedMessage = null; + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,41 +520,55 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + basicConfigBuilder_; /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -506,6 +582,8 @@ public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotat return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -524,17 +602,22 @@ public Builder setBasicConfig( return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) + .mergeFrom(value) + .buildPartial(); } else { basicConfig_ = value; } @@ -546,6 +629,8 @@ public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnot return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -564,33 +649,42 @@ public Builder clearBasicConfig() { return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder + getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null ? - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -598,21 +692,24 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getB * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), - getParentForChildren(), - isClean()); + basicConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), getParentForChildren(), isClean()); basicConfig_ = null; } return basicConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,30 +719,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata(); + DEFAULT_INSTANCE = + new com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelImagePolylineOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelImagePolylineOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelImagePolylineOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelImagePolylineOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,9 +757,8 @@ public com.google.protobuf.Parser getParser } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadataOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadataOrBuilder.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadataOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadataOrBuilder.java index fc8feddc..04fbfcd0 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadataOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImagePolylineOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelImagePolylineOperationMetadataOrBuilder extends +public interface LabelImagePolylineOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequest.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequest.java index abc606b0..da3198fa 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for starting an image labeling task.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageRequest} */ -public final class LabelImageRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LabelImageRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelImageRequest) LabelImageRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LabelImageRequest.newBuilder() to construct. private LabelImageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LabelImageRequest() { parent_ = ""; feature_ = 0; @@ -26,16 +44,15 @@ private LabelImageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LabelImageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LabelImageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,94 +71,127 @@ private LabelImageRequest( 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.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); + parent_ = s; + break; } - basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); + } + basicConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; } + case 24: + { + int rawValue = input.readEnum(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - feature_ = rawValue; - break; - } - case 34: { - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder subBuilder = null; - if (requestConfigCase_ == 4) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_).toBuilder(); - } - requestConfig_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_); - requestConfig_ = subBuilder.buildPartial(); + feature_ = rawValue; + break; } - requestConfigCase_ = 4; - break; - } - case 42: { - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder subBuilder = null; - if (requestConfigCase_ == 5) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_).toBuilder(); - } - requestConfig_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_); - requestConfig_ = subBuilder.buildPartial(); - } - requestConfigCase_ = 5; - break; - } - case 50: { - com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder subBuilder = null; - if (requestConfigCase_ == 6) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_).toBuilder(); + case 34: + { + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder subBuilder = + null; + if (requestConfigCase_ == 4) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) + requestConfig_) + .toBuilder(); + } + requestConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) + requestConfig_); + requestConfig_ = subBuilder.buildPartial(); + } + requestConfigCase_ = 4; + break; } - requestConfig_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.PolylineConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_); - requestConfig_ = subBuilder.buildPartial(); + case 42: + { + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder subBuilder = null; + if (requestConfigCase_ == 5) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_) + .toBuilder(); + } + requestConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_); + requestConfig_ = subBuilder.buildPartial(); + } + requestConfigCase_ = 5; + break; } - requestConfigCase_ = 6; - break; - } - case 58: { - com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder subBuilder = null; - if (requestConfigCase_ == 7) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_).toBuilder(); + case 50: + { + com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder subBuilder = null; + if (requestConfigCase_ == 6) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_) + .toBuilder(); + } + requestConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.PolylineConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_); + requestConfig_ = subBuilder.buildPartial(); + } + requestConfigCase_ = 6; + break; } - requestConfig_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.SegmentationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_); - requestConfig_ = subBuilder.buildPartial(); + case 58: + { + com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder subBuilder = null; + if (requestConfigCase_ == 7) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_) + .toBuilder(); + } + requestConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.SegmentationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_); + requestConfig_ = subBuilder.buildPartial(); + } + requestConfigCase_ = 7; + break; } - requestConfigCase_ = 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) { @@ -149,40 +199,43 @@ private LabelImageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageRequest.class, com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelImageRequest.class, + com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Builder.class); } /** + * + * *
    * Image labeling task feature.
    * 
* * Protobuf enum {@code google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature} */ - public enum Feature - implements com.google.protobuf.ProtocolMessageEnum { - /** - * FEATURE_UNSPECIFIED = 0; - */ + public enum Feature implements com.google.protobuf.ProtocolMessageEnum { + /** FEATURE_UNSPECIFIED = 0; */ FEATURE_UNSPECIFIED(0), /** + * + * *
      * Label whole image with one or more of labels.
      * 
@@ -191,6 +244,8 @@ public enum Feature */ CLASSIFICATION(1), /** + * + * *
      * Label image with bounding boxes for labels.
      * 
@@ -199,6 +254,8 @@ public enum Feature */ BOUNDING_BOX(2), /** + * + * *
      * Label oriented bounding box. The box does not have to be parallel to
      * horizontal line.
@@ -208,6 +265,8 @@ public enum Feature
      */
     ORIENTED_BOUNDING_BOX(6),
     /**
+     *
+     *
      * 
      * Label images with bounding poly. A bounding poly is a plane figure that
      * is bounded by a finite chain of straight line segments closing in a loop.
@@ -217,6 +276,8 @@ public enum Feature
      */
     BOUNDING_POLY(3),
     /**
+     *
+     *
      * 
      * Label images with polyline. Polyline is formed by connected line segments
      * which are not in closed form.
@@ -226,6 +287,8 @@ public enum Feature
      */
     POLYLINE(4),
     /**
+     *
+     *
      * 
      * Label images with segmentation. Segmentation is different from bounding
      * poly since it is more fine-grained, pixel level annotation.
@@ -237,11 +300,11 @@ public enum Feature
     UNRECOGNIZED(-1),
     ;
 
-    /**
-     * FEATURE_UNSPECIFIED = 0;
-     */
+    /** FEATURE_UNSPECIFIED = 0; */
     public static final int FEATURE_UNSPECIFIED_VALUE = 0;
     /**
+     *
+     *
      * 
      * Label whole image with one or more of labels.
      * 
@@ -250,6 +313,8 @@ public enum Feature */ public static final int CLASSIFICATION_VALUE = 1; /** + * + * *
      * Label image with bounding boxes for labels.
      * 
@@ -258,6 +323,8 @@ public enum Feature */ public static final int BOUNDING_BOX_VALUE = 2; /** + * + * *
      * Label oriented bounding box. The box does not have to be parallel to
      * horizontal line.
@@ -267,6 +334,8 @@ public enum Feature
      */
     public static final int ORIENTED_BOUNDING_BOX_VALUE = 6;
     /**
+     *
+     *
      * 
      * Label images with bounding poly. A bounding poly is a plane figure that
      * is bounded by a finite chain of straight line segments closing in a loop.
@@ -276,6 +345,8 @@ public enum Feature
      */
     public static final int BOUNDING_POLY_VALUE = 3;
     /**
+     *
+     *
      * 
      * Label images with polyline. Polyline is formed by connected line segments
      * which are not in closed form.
@@ -285,6 +356,8 @@ public enum Feature
      */
     public static final int POLYLINE_VALUE = 4;
     /**
+     *
+     *
      * 
      * Label images with segmentation. Segmentation is different from bounding
      * poly since it is more fine-grained, pixel level annotation.
@@ -294,7 +367,6 @@ public enum Feature
      */
     public static final int SEGMENTATION_VALUE = 5;
 
-
     public final int getNumber() {
       if (this == UNRECOGNIZED) {
         throw new java.lang.IllegalArgumentException(
@@ -319,53 +391,59 @@ public static Feature valueOf(int value) {
      */
     public static Feature forNumber(int value) {
       switch (value) {
-        case 0: return FEATURE_UNSPECIFIED;
-        case 1: return CLASSIFICATION;
-        case 2: return BOUNDING_BOX;
-        case 6: return ORIENTED_BOUNDING_BOX;
-        case 3: return BOUNDING_POLY;
-        case 4: return POLYLINE;
-        case 5: return SEGMENTATION;
-        default: return null;
+        case 0:
+          return FEATURE_UNSPECIFIED;
+        case 1:
+          return CLASSIFICATION;
+        case 2:
+          return BOUNDING_BOX;
+        case 6:
+          return ORIENTED_BOUNDING_BOX;
+        case 3:
+          return BOUNDING_POLY;
+        case 4:
+          return POLYLINE;
+        case 5:
+          return SEGMENTATION;
+        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<
-        Feature> internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public Feature findValueByNumber(int number) {
-              return Feature.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 Feature findValueByNumber(int number) {
+            return Feature.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.datalabeling.v1beta1.LabelImageRequest.getDescriptor().getEnumTypes().get(0);
+
+    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.LabelImageRequest.getDescriptor()
+          .getEnumTypes()
+          .get(0);
     }
 
     private static final Feature[] VALUES = values();
 
-    public static Feature valueOf(
-        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+    public static Feature 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;
@@ -384,8 +462,10 @@ private Feature(int value) {
 
   private int requestConfigCase_ = 0;
   private java.lang.Object requestConfig_;
+
   public enum RequestConfigCase
-      implements com.google.protobuf.Internal.EnumLite,
+      implements
+          com.google.protobuf.Internal.EnumLite,
           com.google.protobuf.AbstractMessage.InternalOneOfEnum {
     IMAGE_CLASSIFICATION_CONFIG(4),
     BOUNDING_POLY_CONFIG(5),
@@ -393,6 +473,7 @@ public enum RequestConfigCase
     SEGMENTATION_CONFIG(7),
     REQUESTCONFIG_NOT_SET(0);
     private final int value;
+
     private RequestConfigCase(int value) {
       this.value = value;
     }
@@ -408,34 +489,44 @@ public static RequestConfigCase valueOf(int value) {
 
     public static RequestConfigCase forNumber(int value) {
       switch (value) {
-        case 4: return IMAGE_CLASSIFICATION_CONFIG;
-        case 5: return BOUNDING_POLY_CONFIG;
-        case 6: return POLYLINE_CONFIG;
-        case 7: return SEGMENTATION_CONFIG;
-        case 0: return REQUESTCONFIG_NOT_SET;
-        default: return null;
+        case 4:
+          return IMAGE_CLASSIFICATION_CONFIG;
+        case 5:
+          return BOUNDING_POLY_CONFIG;
+        case 6:
+          return POLYLINE_CONFIG;
+        case 7:
+          return SEGMENTATION_CONFIG;
+        case 0:
+          return REQUESTCONFIG_NOT_SET;
+        default:
+          return null;
       }
     }
+
     public int getNumber() {
       return this.value;
     }
   };
 
-  public RequestConfigCase
-  getRequestConfigCase() {
-    return RequestConfigCase.forNumber(
-        requestConfigCase_);
+  public RequestConfigCase getRequestConfigCase() {
+    return RequestConfigCase.forNumber(requestConfigCase_);
   }
 
   public static final int IMAGE_CLASSIFICATION_CONFIG_FIELD_NUMBER = 4;
   /**
+   *
+   *
    * 
    * Configuration for image classification task.
    * One of image_classification_config, bounding_poly_config,
    * polyline_config and segmentation_config are required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * * @return Whether the imageClassificationConfig field is set. */ @java.lang.Override @@ -443,41 +534,54 @@ public boolean hasImageClassificationConfig() { return requestConfigCase_ == 4; } /** + * + * *
    * Configuration for image classification task.
    * One of image_classification_config, bounding_poly_config,
    * polyline_config and segmentation_config are required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * * @return The imageClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig + getImageClassificationConfig() { if (requestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } /** + * + * *
    * Configuration for image classification task.
    * One of image_classification_config, bounding_poly_config,
    * polyline_config and segmentation_config are required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder getImageClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder + getImageClassificationConfigOrBuilder() { if (requestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } public static final int BOUNDING_POLY_CONFIG_FIELD_NUMBER = 5; /** + * + * *
    * Configuration for bounding box and bounding poly task.
    * One of image_classification_config, bounding_poly_config,
@@ -485,6 +589,7 @@ public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; + * * @return Whether the boundingPolyConfig field is set. */ @java.lang.Override @@ -492,6 +597,8 @@ public boolean hasBoundingPolyConfig() { return requestConfigCase_ == 5; } /** + * + * *
    * Configuration for bounding box and bounding poly task.
    * One of image_classification_config, bounding_poly_config,
@@ -499,16 +606,19 @@ public boolean hasBoundingPolyConfig() {
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; + * * @return The boundingPolyConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyConfig() { if (requestConfigCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance(); } /** + * + * *
    * Configuration for bounding box and bounding poly task.
    * One of image_classification_config, bounding_poly_config,
@@ -518,15 +628,18 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyC
    * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoundingPolyConfigOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder
+      getBoundingPolyConfigOrBuilder() {
     if (requestConfigCase_ == 5) {
-       return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_;
+      return (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_;
     }
     return com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance();
   }
 
   public static final int POLYLINE_CONFIG_FIELD_NUMBER = 6;
   /**
+   *
+   *
    * 
    * Configuration for polyline task.
    * One of image_classification_config, bounding_poly_config,
@@ -534,6 +647,7 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoun
    * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6; + * * @return Whether the polylineConfig field is set. */ @java.lang.Override @@ -541,6 +655,8 @@ public boolean hasPolylineConfig() { return requestConfigCase_ == 6; } /** + * + * *
    * Configuration for polyline task.
    * One of image_classification_config, bounding_poly_config,
@@ -548,16 +664,19 @@ public boolean hasPolylineConfig() {
    * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6; + * * @return The polylineConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PolylineConfig getPolylineConfig() { if (requestConfigCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance(); } /** + * + * *
    * Configuration for polyline task.
    * One of image_classification_config, bounding_poly_config,
@@ -567,15 +686,18 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig getPolylineConfig()
    * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder getPolylineConfigOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder
+      getPolylineConfigOrBuilder() {
     if (requestConfigCase_ == 6) {
-       return (com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_;
+      return (com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_;
     }
     return com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance();
   }
 
   public static final int SEGMENTATION_CONFIG_FIELD_NUMBER = 7;
   /**
+   *
+   *
    * 
    * Configuration for segmentation task.
    * One of image_classification_config, bounding_poly_config,
@@ -583,6 +705,7 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder getPolyline
    * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7; + * * @return Whether the segmentationConfig field is set. */ @java.lang.Override @@ -590,6 +713,8 @@ public boolean hasSegmentationConfig() { return requestConfigCase_ == 7; } /** + * + * *
    * Configuration for segmentation task.
    * One of image_classification_config, bounding_poly_config,
@@ -597,16 +722,19 @@ public boolean hasSegmentationConfig() {
    * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7; + * * @return The segmentationConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SegmentationConfig getSegmentationConfig() { if (requestConfigCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance(); } /** + * + * *
    * Configuration for segmentation task.
    * One of image_classification_config, bounding_poly_config,
@@ -616,9 +744,10 @@ public com.google.cloud.datalabeling.v1beta1.SegmentationConfig getSegmentationC
    * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder getSegmentationConfigOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder
+      getSegmentationConfigOrBuilder() {
     if (requestConfigCase_ == 7) {
-       return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_;
+      return (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_;
     }
     return com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance();
   }
@@ -626,12 +755,17 @@ public com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder getSegm
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
+   *
+   *
    * 
    * Required. Name of the dataset to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * 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 @@ -640,30 +774,32 @@ 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. Name of the dataset to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * 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 { @@ -674,11 +810,16 @@ public java.lang.String getParent() { public static final int BASIC_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** + * + * *
    * Required. Basic human annotation config.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -686,57 +827,85 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** + * + * *
    * Required. Basic human annotation config.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } /** + * + * *
    * Required. Basic human annotation config.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { return getBasicConfig(); } public static final int FEATURE_FIELD_NUMBER = 3; private int feature_; /** + * + * *
    * Required. The type of image labeling task.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for feature. */ - @java.lang.Override public int getFeatureValue() { + @java.lang.Override + public int getFeatureValue() { return feature_; } /** + * + * *
    * Required. The type of image labeling task.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The feature. */ - @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature getFeature() { + @java.lang.Override + public com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature getFeature() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature result = com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.valueOf(feature_); - return result == null ? com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.UNRECOGNIZED : result; + com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature result = + com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.valueOf(feature_); + return result == null + ? com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -748,28 +917,32 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } if (basicConfig_ != null) { output.writeMessage(2, getBasicConfig()); } - if (feature_ != com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.FEATURE_UNSPECIFIED.getNumber()) { + if (feature_ + != com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.FEATURE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, feature_); } if (requestConfigCase_ == 4) { - output.writeMessage(4, (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_); + output.writeMessage( + 4, (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_); } if (requestConfigCase_ == 5) { - output.writeMessage(5, (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_); + output.writeMessage( + 5, (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_); } if (requestConfigCase_ == 6) { output.writeMessage(6, (com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_); } if (requestConfigCase_ == 7) { - output.writeMessage(7, (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_); + output.writeMessage( + 7, (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_); } unknownFields.writeTo(output); } @@ -784,28 +957,32 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBasicConfig()); } - if (feature_ != com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.FEATURE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, feature_); + if (feature_ + != com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.FEATURE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, feature_); } if (requestConfigCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_); } if (requestConfigCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_); } if (requestConfigCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_); } if (requestConfigCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -815,38 +992,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.datalabeling.v1beta1.LabelImageRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelImageRequest other = (com.google.cloud.datalabeling.v1beta1.LabelImageRequest) obj; + com.google.cloud.datalabeling.v1beta1.LabelImageRequest other = + (com.google.cloud.datalabeling.v1beta1.LabelImageRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig() - .equals(other.getBasicConfig())) return false; + if (!getBasicConfig().equals(other.getBasicConfig())) return false; } if (feature_ != other.feature_) return false; if (!getRequestConfigCase().equals(other.getRequestConfigCase())) return false; switch (requestConfigCase_) { case 4: - if (!getImageClassificationConfig() - .equals(other.getImageClassificationConfig())) return false; + if (!getImageClassificationConfig().equals(other.getImageClassificationConfig())) + return false; break; case 5: - if (!getBoundingPolyConfig() - .equals(other.getBoundingPolyConfig())) return false; + if (!getBoundingPolyConfig().equals(other.getBoundingPolyConfig())) return false; break; case 6: - if (!getPolylineConfig() - .equals(other.getPolylineConfig())) return false; + if (!getPolylineConfig().equals(other.getPolylineConfig())) return false; break; case 7: - if (!getSegmentationConfig() - .equals(other.getSegmentationConfig())) return false; + if (!getSegmentationConfig().equals(other.getSegmentationConfig())) return false; break; case 0: default: @@ -896,117 +1069,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest 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.datalabeling.v1beta1.LabelImageRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelImageRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.LabelImageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 starting an image labeling task.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelImageRequest) com.google.cloud.datalabeling.v1beta1.LabelImageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageRequest.class, com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelImageRequest.class, + com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.LabelImageRequest.newBuilder() @@ -1014,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(); @@ -1043,9 +1225,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageRequest_descriptor; } @java.lang.Override @@ -1064,7 +1246,8 @@ public com.google.cloud.datalabeling.v1beta1.LabelImageRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelImageRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelImageRequest result = new com.google.cloud.datalabeling.v1beta1.LabelImageRequest(this); + com.google.cloud.datalabeling.v1beta1.LabelImageRequest result = + new com.google.cloud.datalabeling.v1beta1.LabelImageRequest(this); if (requestConfigCase_ == 4) { if (imageClassificationConfigBuilder_ == null) { result.requestConfig_ = requestConfig_; @@ -1109,38 +1292,39 @@ public com.google.cloud.datalabeling.v1beta1.LabelImageRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelImageRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageRequest) other); } else { super.mergeFrom(other); return this; @@ -1148,7 +1332,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelImageRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.LabelImageRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.LabelImageRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1160,25 +1345,30 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelImageRequest setFeatureValue(other.getFeatureValue()); } switch (other.getRequestConfigCase()) { - case IMAGE_CLASSIFICATION_CONFIG: { - mergeImageClassificationConfig(other.getImageClassificationConfig()); - break; - } - case BOUNDING_POLY_CONFIG: { - mergeBoundingPolyConfig(other.getBoundingPolyConfig()); - break; - } - case POLYLINE_CONFIG: { - mergePolylineConfig(other.getPolylineConfig()); - break; - } - case SEGMENTATION_CONFIG: { - mergeSegmentationConfig(other.getSegmentationConfig()); - break; - } - case REQUESTCONFIG_NOT_SET: { - break; - } + case IMAGE_CLASSIFICATION_CONFIG: + { + mergeImageClassificationConfig(other.getImageClassificationConfig()); + break; + } + case BOUNDING_POLY_CONFIG: + { + mergeBoundingPolyConfig(other.getBoundingPolyConfig()); + break; + } + case POLYLINE_CONFIG: + { + mergePolylineConfig(other.getPolylineConfig()); + break; + } + case SEGMENTATION_CONFIG: + { + mergeSegmentationConfig(other.getSegmentationConfig()); + break; + } + case REQUESTCONFIG_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1199,7 +1389,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelImageRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.LabelImageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1208,12 +1399,12 @@ public Builder mergeFrom( } return this; } + private int requestConfigCase_ = 0; private java.lang.Object requestConfig_; - public RequestConfigCase - getRequestConfigCase() { - return RequestConfigCase.forNumber( - requestConfigCase_); + + public RequestConfigCase getRequestConfigCase() { + return RequestConfigCase.forNumber(requestConfigCase_); } public Builder clearRequestConfig() { @@ -1223,17 +1414,24 @@ public Builder clearRequestConfig() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder> imageClassificationConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder> + imageClassificationConfigBuilder_; /** + * + * *
      * Configuration for image classification task.
      * One of image_classification_config, bounding_poly_config,
      * polyline_config and segmentation_config are required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * * @return Whether the imageClassificationConfig field is set. */ @java.lang.Override @@ -1241,17 +1439,23 @@ public boolean hasImageClassificationConfig() { return requestConfigCase_ == 4; } /** + * + * *
      * Configuration for image classification task.
      * One of image_classification_config, bounding_poly_config,
      * polyline_config and segmentation_config are required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * * @return The imageClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig + getImageClassificationConfig() { if (imageClassificationConfigBuilder_ == null) { if (requestConfigCase_ == 4) { return (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_; @@ -1265,15 +1469,20 @@ public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageC } } /** + * + * *
      * Configuration for image classification task.
      * One of image_classification_config, bounding_poly_config,
      * polyline_config and segmentation_config are required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * */ - public Builder setImageClassificationConfig(com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { + public Builder setImageClassificationConfig( + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { if (imageClassificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1287,13 +1496,17 @@ public Builder setImageClassificationConfig(com.google.cloud.datalabeling.v1beta return this; } /** + * + * *
      * Configuration for image classification task.
      * One of image_classification_config, bounding_poly_config,
      * polyline_config and segmentation_config are required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * */ public Builder setImageClassificationConfig( com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder builderForValue) { @@ -1307,20 +1520,31 @@ public Builder setImageClassificationConfig( return this; } /** + * + * *
      * Configuration for image classification task.
      * One of image_classification_config, bounding_poly_config,
      * polyline_config and segmentation_config are required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * */ - public Builder mergeImageClassificationConfig(com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { + public Builder mergeImageClassificationConfig( + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig value) { if (imageClassificationConfigBuilder_ == null) { - if (requestConfigCase_ == 4 && - requestConfig_ != com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance()) { - requestConfig_ = com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_) - .mergeFrom(value).buildPartial(); + if (requestConfigCase_ == 4 + && requestConfig_ + != com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig + .getDefaultInstance()) { + requestConfig_ = + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.newBuilder( + (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) + requestConfig_) + .mergeFrom(value) + .buildPartial(); } else { requestConfig_ = value; } @@ -1336,13 +1560,17 @@ public Builder mergeImageClassificationConfig(com.google.cloud.datalabeling.v1be return this; } /** + * + * *
      * Configuration for image classification task.
      * One of image_classification_config, bounding_poly_config,
      * polyline_config and segmentation_config are required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * */ public Builder clearImageClassificationConfig() { if (imageClassificationConfigBuilder_ == null) { @@ -1361,28 +1589,38 @@ public Builder clearImageClassificationConfig() { return this; } /** + * + * *
      * Configuration for image classification task.
      * One of image_classification_config, bounding_poly_config,
      * polyline_config and segmentation_config are required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * */ - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder getImageClassificationConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder + getImageClassificationConfigBuilder() { return getImageClassificationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Configuration for image classification task.
      * One of image_classification_config, bounding_poly_config,
      * polyline_config and segmentation_config are required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder getImageClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder + getImageClassificationConfigOrBuilder() { if ((requestConfigCase_ == 4) && (imageClassificationConfigBuilder_ != null)) { return imageClassificationConfigBuilder_.getMessageOrBuilder(); } else { @@ -1393,36 +1631,52 @@ public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder } } /** + * + * *
      * Configuration for image classification task.
      * One of image_classification_config, bounding_poly_config,
      * polyline_config and segmentation_config are required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder> getImageClassificationConfigFieldBuilder() { if (imageClassificationConfigBuilder_ == null) { if (!(requestConfigCase_ == 4)) { - requestConfig_ = com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); + requestConfig_ = + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.getDefaultInstance(); } - imageClassificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder>( + imageClassificationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig, + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder>( (com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig) requestConfig_, getParentForChildren(), isClean()); requestConfig_ = null; } requestConfigCase_ = 4; - onChanged();; + onChanged(); + ; return imageClassificationConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder> boundingPolyConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, + com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder> + boundingPolyConfigBuilder_; /** + * + * *
      * Configuration for bounding box and bounding poly task.
      * One of image_classification_config, bounding_poly_config,
@@ -1430,6 +1684,7 @@ public com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder
      * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; + * * @return Whether the boundingPolyConfig field is set. */ @java.lang.Override @@ -1437,6 +1692,8 @@ public boolean hasBoundingPolyConfig() { return requestConfigCase_ == 5; } /** + * + * *
      * Configuration for bounding box and bounding poly task.
      * One of image_classification_config, bounding_poly_config,
@@ -1444,6 +1701,7 @@ public boolean hasBoundingPolyConfig() {
      * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; + * * @return The boundingPolyConfig. */ @java.lang.Override @@ -1461,6 +1719,8 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyC } } /** + * + * *
      * Configuration for bounding box and bounding poly task.
      * One of image_classification_config, bounding_poly_config,
@@ -1469,7 +1729,8 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyC
      *
      * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
      */
-    public Builder setBoundingPolyConfig(com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) {
+    public Builder setBoundingPolyConfig(
+        com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) {
       if (boundingPolyConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1483,6 +1744,8 @@ public Builder setBoundingPolyConfig(com.google.cloud.datalabeling.v1beta1.Bound
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for bounding box and bounding poly task.
      * One of image_classification_config, bounding_poly_config,
@@ -1503,6 +1766,8 @@ public Builder setBoundingPolyConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for bounding box and bounding poly task.
      * One of image_classification_config, bounding_poly_config,
@@ -1511,12 +1776,17 @@ public Builder setBoundingPolyConfig(
      *
      * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
      */
-    public Builder mergeBoundingPolyConfig(com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) {
+    public Builder mergeBoundingPolyConfig(
+        com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig value) {
       if (boundingPolyConfigBuilder_ == null) {
-        if (requestConfigCase_ == 5 &&
-            requestConfig_ != com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance()) {
-          requestConfig_ = com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_)
-              .mergeFrom(value).buildPartial();
+        if (requestConfigCase_ == 5
+            && requestConfig_
+                != com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance()) {
+          requestConfig_ =
+              com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.newBuilder(
+                      (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           requestConfig_ = value;
         }
@@ -1532,6 +1802,8 @@ public Builder mergeBoundingPolyConfig(com.google.cloud.datalabeling.v1beta1.Bou
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for bounding box and bounding poly task.
      * One of image_classification_config, bounding_poly_config,
@@ -1557,6 +1829,8 @@ public Builder clearBoundingPolyConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for bounding box and bounding poly task.
      * One of image_classification_config, bounding_poly_config,
@@ -1565,10 +1839,13 @@ public Builder clearBoundingPolyConfig() {
      *
      * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
      */
-    public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder getBoundingPolyConfigBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder
+        getBoundingPolyConfigBuilder() {
       return getBoundingPolyConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Configuration for bounding box and bounding poly task.
      * One of image_classification_config, bounding_poly_config,
@@ -1578,7 +1855,8 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder getBound
      * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
      */
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoundingPolyConfigOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder
+        getBoundingPolyConfigOrBuilder() {
       if ((requestConfigCase_ == 5) && (boundingPolyConfigBuilder_ != null)) {
         return boundingPolyConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -1589,6 +1867,8 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoun
       }
     }
     /**
+     *
+     *
      * 
      * Configuration for bounding box and bounding poly task.
      * One of image_classification_config, bounding_poly_config,
@@ -1598,27 +1878,39 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoun
      * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder> 
+            com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig,
+            com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder,
+            com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder>
         getBoundingPolyConfigFieldBuilder() {
       if (boundingPolyConfigBuilder_ == null) {
         if (!(requestConfigCase_ == 5)) {
-          requestConfig_ = com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance();
+          requestConfig_ =
+              com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.getDefaultInstance();
         }
-        boundingPolyConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder>(
+        boundingPolyConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig,
+                com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig.Builder,
+                com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder>(
                 (com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig) requestConfig_,
                 getParentForChildren(),
                 isClean());
         requestConfig_ = null;
       }
       requestConfigCase_ = 5;
-      onChanged();;
+      onChanged();
+      ;
       return boundingPolyConfigBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.PolylineConfig, com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder, com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder> polylineConfigBuilder_;
+            com.google.cloud.datalabeling.v1beta1.PolylineConfig,
+            com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder,
+            com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder>
+        polylineConfigBuilder_;
     /**
+     *
+     *
      * 
      * Configuration for polyline task.
      * One of image_classification_config, bounding_poly_config,
@@ -1626,6 +1918,7 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoun
      * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6; + * * @return Whether the polylineConfig field is set. */ @java.lang.Override @@ -1633,6 +1926,8 @@ public boolean hasPolylineConfig() { return requestConfigCase_ == 6; } /** + * + * *
      * Configuration for polyline task.
      * One of image_classification_config, bounding_poly_config,
@@ -1640,6 +1935,7 @@ public boolean hasPolylineConfig() {
      * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6; + * * @return The polylineConfig. */ @java.lang.Override @@ -1657,6 +1953,8 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig getPolylineConfig() } } /** + * + * *
      * Configuration for polyline task.
      * One of image_classification_config, bounding_poly_config,
@@ -1679,6 +1977,8 @@ public Builder setPolylineConfig(com.google.cloud.datalabeling.v1beta1.PolylineC
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for polyline task.
      * One of image_classification_config, bounding_poly_config,
@@ -1699,6 +1999,8 @@ public Builder setPolylineConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for polyline task.
      * One of image_classification_config, bounding_poly_config,
@@ -1709,10 +2011,14 @@ public Builder setPolylineConfig(
      */
     public Builder mergePolylineConfig(com.google.cloud.datalabeling.v1beta1.PolylineConfig value) {
       if (polylineConfigBuilder_ == null) {
-        if (requestConfigCase_ == 6 &&
-            requestConfig_ != com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance()) {
-          requestConfig_ = com.google.cloud.datalabeling.v1beta1.PolylineConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_)
-              .mergeFrom(value).buildPartial();
+        if (requestConfigCase_ == 6
+            && requestConfig_
+                != com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance()) {
+          requestConfig_ =
+              com.google.cloud.datalabeling.v1beta1.PolylineConfig.newBuilder(
+                      (com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           requestConfig_ = value;
         }
@@ -1728,6 +2034,8 @@ public Builder mergePolylineConfig(com.google.cloud.datalabeling.v1beta1.Polylin
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for polyline task.
      * One of image_classification_config, bounding_poly_config,
@@ -1753,6 +2061,8 @@ public Builder clearPolylineConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for polyline task.
      * One of image_classification_config, bounding_poly_config,
@@ -1765,6 +2075,8 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder getPolylineC
       return getPolylineConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Configuration for polyline task.
      * One of image_classification_config, bounding_poly_config,
@@ -1774,7 +2086,8 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder getPolylineC
      * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6;
      */
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder getPolylineConfigOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder
+        getPolylineConfigOrBuilder() {
       if ((requestConfigCase_ == 6) && (polylineConfigBuilder_ != null)) {
         return polylineConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -1785,6 +2098,8 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder getPolyline
       }
     }
     /**
+     *
+     *
      * 
      * Configuration for polyline task.
      * One of image_classification_config, bounding_poly_config,
@@ -1794,27 +2109,39 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder getPolyline
      * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.PolylineConfig, com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder, com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder> 
+            com.google.cloud.datalabeling.v1beta1.PolylineConfig,
+            com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder,
+            com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder>
         getPolylineConfigFieldBuilder() {
       if (polylineConfigBuilder_ == null) {
         if (!(requestConfigCase_ == 6)) {
-          requestConfig_ = com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance();
+          requestConfig_ =
+              com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance();
         }
-        polylineConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.PolylineConfig, com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder, com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder>(
+        polylineConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.datalabeling.v1beta1.PolylineConfig,
+                com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder,
+                com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder>(
                 (com.google.cloud.datalabeling.v1beta1.PolylineConfig) requestConfig_,
                 getParentForChildren(),
                 isClean());
         requestConfig_ = null;
       }
       requestConfigCase_ = 6;
-      onChanged();;
+      onChanged();
+      ;
       return polylineConfigBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.SegmentationConfig, com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder, com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder> segmentationConfigBuilder_;
+            com.google.cloud.datalabeling.v1beta1.SegmentationConfig,
+            com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder,
+            com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder>
+        segmentationConfigBuilder_;
     /**
+     *
+     *
      * 
      * Configuration for segmentation task.
      * One of image_classification_config, bounding_poly_config,
@@ -1822,6 +2149,7 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder getPolyline
      * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7; + * * @return Whether the segmentationConfig field is set. */ @java.lang.Override @@ -1829,6 +2157,8 @@ public boolean hasSegmentationConfig() { return requestConfigCase_ == 7; } /** + * + * *
      * Configuration for segmentation task.
      * One of image_classification_config, bounding_poly_config,
@@ -1836,6 +2166,7 @@ public boolean hasSegmentationConfig() {
      * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7; + * * @return The segmentationConfig. */ @java.lang.Override @@ -1853,6 +2184,8 @@ public com.google.cloud.datalabeling.v1beta1.SegmentationConfig getSegmentationC } } /** + * + * *
      * Configuration for segmentation task.
      * One of image_classification_config, bounding_poly_config,
@@ -1861,7 +2194,8 @@ public com.google.cloud.datalabeling.v1beta1.SegmentationConfig getSegmentationC
      *
      * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7;
      */
-    public Builder setSegmentationConfig(com.google.cloud.datalabeling.v1beta1.SegmentationConfig value) {
+    public Builder setSegmentationConfig(
+        com.google.cloud.datalabeling.v1beta1.SegmentationConfig value) {
       if (segmentationConfigBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -1875,6 +2209,8 @@ public Builder setSegmentationConfig(com.google.cloud.datalabeling.v1beta1.Segme
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for segmentation task.
      * One of image_classification_config, bounding_poly_config,
@@ -1895,6 +2231,8 @@ public Builder setSegmentationConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for segmentation task.
      * One of image_classification_config, bounding_poly_config,
@@ -1903,12 +2241,17 @@ public Builder setSegmentationConfig(
      *
      * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7;
      */
-    public Builder mergeSegmentationConfig(com.google.cloud.datalabeling.v1beta1.SegmentationConfig value) {
+    public Builder mergeSegmentationConfig(
+        com.google.cloud.datalabeling.v1beta1.SegmentationConfig value) {
       if (segmentationConfigBuilder_ == null) {
-        if (requestConfigCase_ == 7 &&
-            requestConfig_ != com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance()) {
-          requestConfig_ = com.google.cloud.datalabeling.v1beta1.SegmentationConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_)
-              .mergeFrom(value).buildPartial();
+        if (requestConfigCase_ == 7
+            && requestConfig_
+                != com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance()) {
+          requestConfig_ =
+              com.google.cloud.datalabeling.v1beta1.SegmentationConfig.newBuilder(
+                      (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           requestConfig_ = value;
         }
@@ -1924,6 +2267,8 @@ public Builder mergeSegmentationConfig(com.google.cloud.datalabeling.v1beta1.Seg
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for segmentation task.
      * One of image_classification_config, bounding_poly_config,
@@ -1949,6 +2294,8 @@ public Builder clearSegmentationConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for segmentation task.
      * One of image_classification_config, bounding_poly_config,
@@ -1957,10 +2304,13 @@ public Builder clearSegmentationConfig() {
      *
      * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7;
      */
-    public com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder getSegmentationConfigBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder
+        getSegmentationConfigBuilder() {
       return getSegmentationConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Configuration for segmentation task.
      * One of image_classification_config, bounding_poly_config,
@@ -1970,7 +2320,8 @@ public com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder getSegme
      * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7;
      */
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder getSegmentationConfigOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder
+        getSegmentationConfigOrBuilder() {
       if ((requestConfigCase_ == 7) && (segmentationConfigBuilder_ != null)) {
         return segmentationConfigBuilder_.getMessageOrBuilder();
       } else {
@@ -1981,6 +2332,8 @@ public com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder getSegm
       }
     }
     /**
+     *
+     *
      * 
      * Configuration for segmentation task.
      * One of image_classification_config, bounding_poly_config,
@@ -1990,39 +2343,50 @@ public com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder getSegm
      * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.SegmentationConfig, com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder, com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder> 
+            com.google.cloud.datalabeling.v1beta1.SegmentationConfig,
+            com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder,
+            com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder>
         getSegmentationConfigFieldBuilder() {
       if (segmentationConfigBuilder_ == null) {
         if (!(requestConfigCase_ == 7)) {
-          requestConfig_ = com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance();
+          requestConfig_ =
+              com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance();
         }
-        segmentationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.SegmentationConfig, com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder, com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder>(
+        segmentationConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.datalabeling.v1beta1.SegmentationConfig,
+                com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder,
+                com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder>(
                 (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) requestConfig_,
                 getParentForChildren(),
                 isClean());
         requestConfig_ = null;
       }
       requestConfigCase_ = 7;
-      onChanged();;
+      onChanged();
+      ;
       return segmentationConfigBuilder_;
     }
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. Name of the dataset to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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; @@ -2031,21 +2395,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the dataset to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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 { @@ -2053,57 +2420,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the dataset to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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. Name of the dataset to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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. Name of the dataset to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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; @@ -2111,41 +2491,61 @@ public Builder setParentBytes( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + basicConfigBuilder_; /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2159,11 +2559,15 @@ public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotat return this; } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBasicConfig( com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder builderForValue) { @@ -2177,17 +2581,24 @@ public Builder setBasicConfig( return this; } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) + .mergeFrom(value) + .buildPartial(); } else { basicConfig_ = value; } @@ -2199,11 +2610,15 @@ public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnot return this; } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBasicConfig() { if (basicConfigBuilder_ == null) { @@ -2217,48 +2632,66 @@ public Builder clearBasicConfig() { return this; } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder + getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null ? - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), - getParentForChildren(), - isClean()); + basicConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), getParentForChildren(), isClean()); basicConfig_ = null; } return basicConfigBuilder_; @@ -2266,80 +2699,110 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getB private int feature_ = 0; /** + * + * *
      * Required. The type of image labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for feature. */ - @java.lang.Override public int getFeatureValue() { + @java.lang.Override + public int getFeatureValue() { return feature_; } /** + * + * *
      * Required. The type of image labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for feature to set. * @return This builder for chaining. */ public Builder setFeatureValue(int value) { - + feature_ = value; onChanged(); return this; } /** + * + * *
      * Required. The type of image labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The feature. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature getFeature() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature result = com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.valueOf(feature_); - return result == null ? com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.UNRECOGNIZED : result; + com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature result = + com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.valueOf(feature_); + return result == null + ? com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature.UNRECOGNIZED + : result; } /** + * + * *
      * Required. The type of image labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The feature to set. * @return This builder for chaining. */ - public Builder setFeature(com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature value) { + public Builder setFeature( + com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature value) { if (value == null) { throw new NullPointerException(); } - + feature_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. The type of image labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearFeature() { - + feature_ = 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); } @@ -2349,12 +2812,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelImageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelImageRequest) private static final com.google.cloud.datalabeling.v1beta1.LabelImageRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelImageRequest(); } @@ -2363,16 +2826,16 @@ public static com.google.cloud.datalabeling.v1beta1.LabelImageRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelImageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelImageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelImageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelImageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2387,6 +2850,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.LabelImageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequestOrBuilder.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequestOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequestOrBuilder.java index 9ff15c47..c72840d5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequestOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageRequestOrBuilder.java @@ -1,46 +1,79 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelImageRequestOrBuilder extends +public interface LabelImageRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelImageRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Configuration for image classification task.
    * One of image_classification_config, bounding_poly_config,
    * polyline_config and segmentation_config are required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * * @return Whether the imageClassificationConfig field is set. */ boolean hasImageClassificationConfig(); /** + * + * *
    * Configuration for image classification task.
    * One of image_classification_config, bounding_poly_config,
    * polyline_config and segmentation_config are required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * * @return The imageClassificationConfig. */ com.google.cloud.datalabeling.v1beta1.ImageClassificationConfig getImageClassificationConfig(); /** + * + * *
    * Configuration for image classification task.
    * One of image_classification_config, bounding_poly_config,
    * polyline_config and segmentation_config are required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 4; + * */ - com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder getImageClassificationConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ImageClassificationConfigOrBuilder + getImageClassificationConfigOrBuilder(); /** + * + * *
    * Configuration for bounding box and bounding poly task.
    * One of image_classification_config, bounding_poly_config,
@@ -48,10 +81,13 @@ public interface LabelImageRequestOrBuilder extends
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; + * * @return Whether the boundingPolyConfig field is set. */ boolean hasBoundingPolyConfig(); /** + * + * *
    * Configuration for bounding box and bounding poly task.
    * One of image_classification_config, bounding_poly_config,
@@ -59,10 +95,13 @@ public interface LabelImageRequestOrBuilder extends
    * 
* * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5; + * * @return The boundingPolyConfig. */ com.google.cloud.datalabeling.v1beta1.BoundingPolyConfig getBoundingPolyConfig(); /** + * + * *
    * Configuration for bounding box and bounding poly task.
    * One of image_classification_config, bounding_poly_config,
@@ -71,9 +110,12 @@ public interface LabelImageRequestOrBuilder extends
    *
    * .google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 5;
    */
-  com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder getBoundingPolyConfigOrBuilder();
+  com.google.cloud.datalabeling.v1beta1.BoundingPolyConfigOrBuilder
+      getBoundingPolyConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Configuration for polyline task.
    * One of image_classification_config, bounding_poly_config,
@@ -81,10 +123,13 @@ public interface LabelImageRequestOrBuilder extends
    * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6; + * * @return Whether the polylineConfig field is set. */ boolean hasPolylineConfig(); /** + * + * *
    * Configuration for polyline task.
    * One of image_classification_config, bounding_poly_config,
@@ -92,10 +137,13 @@ public interface LabelImageRequestOrBuilder extends
    * 
* * .google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 6; + * * @return The polylineConfig. */ com.google.cloud.datalabeling.v1beta1.PolylineConfig getPolylineConfig(); /** + * + * *
    * Configuration for polyline task.
    * One of image_classification_config, bounding_poly_config,
@@ -107,6 +155,8 @@ public interface LabelImageRequestOrBuilder extends
   com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder getPolylineConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Configuration for segmentation task.
    * One of image_classification_config, bounding_poly_config,
@@ -114,10 +164,13 @@ public interface LabelImageRequestOrBuilder extends
    * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7; + * * @return Whether the segmentationConfig field is set. */ boolean hasSegmentationConfig(); /** + * + * *
    * Configuration for segmentation task.
    * One of image_classification_config, bounding_poly_config,
@@ -125,10 +178,13 @@ public interface LabelImageRequestOrBuilder extends
    * 
* * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7; + * * @return The segmentationConfig. */ com.google.cloud.datalabeling.v1beta1.SegmentationConfig getSegmentationConfig(); /** + * + * *
    * Configuration for segmentation task.
    * One of image_classification_config, bounding_poly_config,
@@ -137,75 +193,110 @@ public interface LabelImageRequestOrBuilder extends
    *
    * .google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 7;
    */
-  com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder getSegmentationConfigOrBuilder();
+  com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder
+      getSegmentationConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Required. Name of the dataset to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * 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. Name of the dataset to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * 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. Basic human annotation config.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** + * + * *
    * Required. Basic human annotation config.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** + * + * *
    * Required. Basic human annotation config.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder(); /** + * + * *
    * Required. The type of image labeling task.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for feature. */ int getFeatureValue(); /** + * + * *
    * Required. The type of image labeling task.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The feature. */ com.google.cloud.datalabeling.v1beta1.LabelImageRequest.Feature getFeature(); - public com.google.cloud.datalabeling.v1beta1.LabelImageRequest.RequestConfigCase getRequestConfigCase(); + public com.google.cloud.datalabeling.v1beta1.LabelImageRequest.RequestConfigCase + getRequestConfigCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadata.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadata.java similarity index 57% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadata.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadata.java index 6f63cb34..17aad006 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadata.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadata.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Details of a LabelImageSegmentation operation metadata.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata} */ -public final class LabelImageSegmentationOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LabelImageSegmentationOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) LabelImageSegmentationOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LabelImageSegmentationOperationMetadata.newBuilder() to construct. - private LabelImageSegmentationOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelImageSegmentationOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LabelImageSegmentationOperationMetadata() { - } + + private LabelImageSegmentationOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LabelImageSegmentationOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LabelImageSegmentationOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +70,30 @@ private LabelImageSegmentationOperationMetadata( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); + case 10: + { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); + } + basicConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; } - basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = 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) { @@ -79,34 +101,40 @@ private LabelImageSegmentationOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder + .class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** + * + * *
    * Basic human annotation config.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -114,18 +142,25 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** + * + * *
    * Basic human annotation config.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } /** + * + * *
    * Basic human annotation config.
    * 
@@ -133,11 +168,13 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +186,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -164,8 +200,7 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +210,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.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata)) { + if (!(obj + instanceof com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata other = + (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig() - .equals(other.getBasicConfig())) return false; + if (!getBasicConfig().equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -207,135 +243,152 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + 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.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata 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.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + 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.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata 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.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + 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.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata 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.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + 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.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 a LabelImageSegmentation operation metadata.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder + .class); } - // Construct using com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.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(); @@ -349,19 +402,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata build() { - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata result = buildPartial(); + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -369,8 +425,10 @@ public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMeta } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata(this); + public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + buildPartial() { + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata result = + new com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata(this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -384,46 +442,53 @@ public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMeta public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata)other); + if (other + instanceof + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) { + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata other) { - if (other == com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata other) { + if (other + == com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + .getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -442,11 +507,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata parsedMessage = null; + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,41 +526,55 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + basicConfigBuilder_; /** + * + * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** + * + * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** + * + * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -506,6 +588,8 @@ public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotat return this; } /** + * + * *
      * Basic human annotation config.
      * 
@@ -524,17 +608,22 @@ public Builder setBasicConfig( return this; } /** + * + * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) + .mergeFrom(value) + .buildPartial(); } else { basicConfig_ = value; } @@ -546,6 +635,8 @@ public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnot return this; } /** + * + * *
      * Basic human annotation config.
      * 
@@ -564,33 +655,42 @@ public Builder clearBasicConfig() { return this; } /** + * + * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder + getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Basic human annotation config.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null ? - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } } /** + * + * *
      * Basic human annotation config.
      * 
@@ -598,21 +698,24 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getB * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), - getParentForChildren(), - isClean()); + basicConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), getParentForChildren(), isClean()); basicConfig_ = null; } return basicConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,30 +725,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata(); + DEFAULT_INSTANCE = + new com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelImageSegmentationOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelImageSegmentationOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelImageSegmentationOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelImageSegmentationOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,9 +763,8 @@ public com.google.protobuf.Parser getPa } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadataOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadataOrBuilder.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadataOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadataOrBuilder.java index cb3d7e00..36f6569e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadataOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelImageSegmentationOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelImageSegmentationOperationMetadataOrBuilder extends +public interface LabelImageSegmentationOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Basic human annotation config.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** + * + * *
    * Basic human annotation config.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** + * + * *
    * Basic human annotation config.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadata.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadata.java similarity index 54% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadata.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadata.java index 9af74730..ecf87edb 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadata.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadata.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Metadata of a labeling operation, such as LabelImage or LabelVideo.
  * Next tag: 20
@@ -11,31 +28,31 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelOperationMetadata}
  */
-public final class LabelOperationMetadata extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class LabelOperationMetadata extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelOperationMetadata)
     LabelOperationMetadataOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use LabelOperationMetadata.newBuilder() to construct.
   private LabelOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private LabelOperationMetadata() {
     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 LabelOperationMetadata();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private LabelOperationMetadata(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -55,208 +72,350 @@ private LabelOperationMetadata(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            progressPercent_ = input.readInt32();
-            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.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder subBuilder = null;
-            if (detailsCase_ == 3) {
-              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) details_).toBuilder();
-            }
-            details_ =
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) details_);
-              details_ = subBuilder.buildPartial();
-            }
-            detailsCase_ = 3;
-            break;
-          }
-          case 34: {
-            com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder subBuilder = null;
-            if (detailsCase_ == 4) {
-              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) details_).toBuilder();
-            }
-            details_ =
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) details_);
-              details_ = subBuilder.buildPartial();
-            }
-            detailsCase_ = 4;
-            break;
-          }
-          case 42: {
-            com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder subBuilder = null;
-            if (detailsCase_ == 5) {
-              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) details_).toBuilder();
-            }
-            details_ =
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) details_);
-              details_ = subBuilder.buildPartial();
-            }
-            detailsCase_ = 5;
-            break;
-          }
-          case 50: {
-            com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.Builder subBuilder = null;
-            if (detailsCase_ == 6) {
-              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) details_).toBuilder();
+          case 8:
+            {
+              progressPercent_ = input.readInt32();
+              break;
             }
-            details_ =
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) details_);
-              details_ = 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;
             }
-            detailsCase_ = 6;
-            break;
-          }
-          case 58: {
-            com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder subBuilder = null;
-            if (detailsCase_ == 7) {
-              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) details_).toBuilder();
+          case 26:
+            {
+              com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata
+                      .Builder
+                  subBuilder = null;
+              if (detailsCase_ == 3) {
+                subBuilder =
+                    ((com.google.cloud.datalabeling.v1beta1
+                                .LabelImageClassificationOperationMetadata)
+                            details_)
+                        .toBuilder();
+              }
+              details_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1
+                          .LabelImageClassificationOperationMetadata.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.datalabeling.v1beta1
+                            .LabelImageClassificationOperationMetadata)
+                        details_);
+                details_ = subBuilder.buildPartial();
+              }
+              detailsCase_ = 3;
+              break;
             }
-            details_ =
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) details_);
-              details_ = subBuilder.buildPartial();
+          case 34:
+            {
+              com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder
+                  subBuilder = null;
+              if (detailsCase_ == 4) {
+                subBuilder =
+                    ((com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata)
+                            details_)
+                        .toBuilder();
+              }
+              details_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata)
+                        details_);
+                details_ = subBuilder.buildPartial();
+              }
+              detailsCase_ = 4;
+              break;
             }
-            detailsCase_ = 7;
-            break;
-          }
-          case 66: {
-            com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder subBuilder = null;
-            if (detailsCase_ == 8) {
-              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_).toBuilder();
+          case 42:
+            {
+              com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata
+                      .Builder
+                  subBuilder = null;
+              if (detailsCase_ == 5) {
+                subBuilder =
+                    ((com.google.cloud.datalabeling.v1beta1
+                                .LabelVideoClassificationOperationMetadata)
+                            details_)
+                        .toBuilder();
+              }
+              details_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1
+                          .LabelVideoClassificationOperationMetadata.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.datalabeling.v1beta1
+                            .LabelVideoClassificationOperationMetadata)
+                        details_);
+                details_ = subBuilder.buildPartial();
+              }
+              detailsCase_ = 5;
+              break;
             }
-            details_ =
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_);
-              details_ = subBuilder.buildPartial();
+          case 50:
+            {
+              com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata
+                      .Builder
+                  subBuilder = null;
+              if (detailsCase_ == 6) {
+                subBuilder =
+                    ((com.google.cloud.datalabeling.v1beta1
+                                .LabelVideoObjectDetectionOperationMetadata)
+                            details_)
+                        .toBuilder();
+              }
+              details_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1
+                          .LabelVideoObjectDetectionOperationMetadata.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.datalabeling.v1beta1
+                            .LabelVideoObjectDetectionOperationMetadata)
+                        details_);
+                details_ = subBuilder.buildPartial();
+              }
+              detailsCase_ = 6;
+              break;
             }
-            detailsCase_ = 8;
-            break;
-          }
-          case 74: {
-            com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder subBuilder = null;
-            if (detailsCase_ == 9) {
-              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) details_).toBuilder();
+          case 58:
+            {
+              com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata
+                      .Builder
+                  subBuilder = null;
+              if (detailsCase_ == 7) {
+                subBuilder =
+                    ((com.google.cloud.datalabeling.v1beta1
+                                .LabelVideoObjectTrackingOperationMetadata)
+                            details_)
+                        .toBuilder();
+              }
+              details_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1
+                          .LabelVideoObjectTrackingOperationMetadata.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.datalabeling.v1beta1
+                            .LabelVideoObjectTrackingOperationMetadata)
+                        details_);
+                details_ = subBuilder.buildPartial();
+              }
+              detailsCase_ = 7;
+              break;
             }
-            details_ =
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) details_);
-              details_ = subBuilder.buildPartial();
+          case 66:
+            {
+              com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder
+                  subBuilder = null;
+              if (detailsCase_ == 8) {
+                subBuilder =
+                    ((com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata)
+                            details_)
+                        .toBuilder();
+              }
+              details_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata)
+                        details_);
+                details_ = subBuilder.buildPartial();
+              }
+              detailsCase_ = 8;
+              break;
             }
-            detailsCase_ = 9;
-            break;
-          }
-          case 90: {
-            com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder subBuilder = null;
-            if (detailsCase_ == 11) {
-              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) details_).toBuilder();
+          case 74:
+            {
+              com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder
+                  subBuilder = null;
+              if (detailsCase_ == 9) {
+                subBuilder =
+                    ((com.google.cloud.datalabeling.v1beta1
+                                .LabelTextClassificationOperationMetadata)
+                            details_)
+                        .toBuilder();
+              }
+              details_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata)
+                        details_);
+                details_ = subBuilder.buildPartial();
+              }
+              detailsCase_ = 9;
+              break;
             }
-            details_ =
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) details_);
-              details_ = subBuilder.buildPartial();
+          case 90:
+            {
+              com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder
+                  subBuilder = null;
+              if (detailsCase_ == 11) {
+                subBuilder =
+                    ((com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata)
+                            details_)
+                        .toBuilder();
+              }
+              details_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata)
+                        details_);
+                details_ = subBuilder.buildPartial();
+              }
+              detailsCase_ = 11;
+              break;
             }
-            detailsCase_ = 11;
-            break;
-          }
-          case 98: {
-            com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder subBuilder = null;
-            if (detailsCase_ == 12) {
-              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_).toBuilder();
-            }
-            details_ =
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_);
-              details_ = subBuilder.buildPartial();
-            }
-            detailsCase_ = 12;
-            break;
-          }
-          case 106: {
-            com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.Builder subBuilder = null;
-            if (detailsCase_ == 13) {
-              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) details_).toBuilder();
+          case 98:
+            {
+              com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder
+                  subBuilder = null;
+              if (detailsCase_ == 12) {
+                subBuilder =
+                    ((com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata)
+                            details_)
+                        .toBuilder();
+              }
+              details_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata)
+                        details_);
+                details_ = subBuilder.buildPartial();
+              }
+              detailsCase_ = 12;
+              break;
             }
-            details_ =
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) details_);
-              details_ = subBuilder.buildPartial();
+          case 106:
+            {
+              com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata
+                      .Builder
+                  subBuilder = null;
+              if (detailsCase_ == 13) {
+                subBuilder =
+                    ((com.google.cloud.datalabeling.v1beta1
+                                .LabelTextEntityExtractionOperationMetadata)
+                            details_)
+                        .toBuilder();
+              }
+              details_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1
+                          .LabelTextEntityExtractionOperationMetadata.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.datalabeling.v1beta1
+                            .LabelTextEntityExtractionOperationMetadata)
+                        details_);
+                details_ = subBuilder.buildPartial();
+              }
+              detailsCase_ = 13;
+              break;
             }
-            detailsCase_ = 13;
-            break;
-          }
-          case 114: {
-            com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.Builder subBuilder = null;
-            if (detailsCase_ == 14) {
-              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) details_).toBuilder();
-            }
-            details_ =
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) details_);
-              details_ = subBuilder.buildPartial();
-            }
-            detailsCase_ = 14;
-            break;
-          }
-          case 122: {
-            com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder subBuilder = null;
-            if (detailsCase_ == 15) {
-              subBuilder = ((com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) details_).toBuilder();
+          case 114:
+            {
+              com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata
+                      .Builder
+                  subBuilder = null;
+              if (detailsCase_ == 14) {
+                subBuilder =
+                    ((com.google.cloud.datalabeling.v1beta1
+                                .LabelImageOrientedBoundingBoxOperationMetadata)
+                            details_)
+                        .toBuilder();
+              }
+              details_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1
+                          .LabelImageOrientedBoundingBoxOperationMetadata.parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.datalabeling.v1beta1
+                            .LabelImageOrientedBoundingBoxOperationMetadata)
+                        details_);
+                details_ = subBuilder.buildPartial();
+              }
+              detailsCase_ = 14;
+              break;
             }
-            details_ =
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.parser(), extensionRegistry);
-            if (subBuilder != null) {
-              subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) details_);
-              details_ = subBuilder.buildPartial();
-            }
-            detailsCase_ = 15;
-            break;
-          }
-          case 130: {
-            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 122:
+            {
+              com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder
+                  subBuilder = null;
+              if (detailsCase_ == 15) {
+                subBuilder =
+                    ((com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata)
+                            details_)
+                        .toBuilder();
+              }
+              details_ =
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata
+                          .parser(),
+                      extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(
+                    (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata)
+                        details_);
+                details_ = subBuilder.buildPartial();
+              }
+              detailsCase_ = 15;
+              break;
             }
+          case 130:
+            {
+              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;
-          }
-          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) {
@@ -264,8 +423,7 @@ private LabelOperationMetadata(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } 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_);
@@ -274,23 +432,28 @@ private LabelOperationMetadata(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.Operations
+        .internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.Operations
+        .internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.class,
+            com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.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 {
     IMAGE_CLASSIFICATION_DETAILS(3),
     IMAGE_BOUNDING_BOX_DETAILS(4),
@@ -306,6 +469,7 @@ public enum DetailsCase
     TEXT_ENTITY_EXTRACTION_DETAILS(13),
     DETAILS_NOT_SET(0);
     private final int value;
+
     private DetailsCase(int value) {
       this.value = value;
     }
@@ -321,40 +485,58 @@ public static DetailsCase valueOf(int value) {
 
     public static DetailsCase forNumber(int value) {
       switch (value) {
-        case 3: return IMAGE_CLASSIFICATION_DETAILS;
-        case 4: return IMAGE_BOUNDING_BOX_DETAILS;
-        case 11: return IMAGE_BOUNDING_POLY_DETAILS;
-        case 14: return IMAGE_ORIENTED_BOUNDING_BOX_DETAILS;
-        case 12: return IMAGE_POLYLINE_DETAILS;
-        case 15: return IMAGE_SEGMENTATION_DETAILS;
-        case 5: return VIDEO_CLASSIFICATION_DETAILS;
-        case 6: return VIDEO_OBJECT_DETECTION_DETAILS;
-        case 7: return VIDEO_OBJECT_TRACKING_DETAILS;
-        case 8: return VIDEO_EVENT_DETAILS;
-        case 9: return TEXT_CLASSIFICATION_DETAILS;
-        case 13: return TEXT_ENTITY_EXTRACTION_DETAILS;
-        case 0: return DETAILS_NOT_SET;
-        default: return null;
+        case 3:
+          return IMAGE_CLASSIFICATION_DETAILS;
+        case 4:
+          return IMAGE_BOUNDING_BOX_DETAILS;
+        case 11:
+          return IMAGE_BOUNDING_POLY_DETAILS;
+        case 14:
+          return IMAGE_ORIENTED_BOUNDING_BOX_DETAILS;
+        case 12:
+          return IMAGE_POLYLINE_DETAILS;
+        case 15:
+          return IMAGE_SEGMENTATION_DETAILS;
+        case 5:
+          return VIDEO_CLASSIFICATION_DETAILS;
+        case 6:
+          return VIDEO_OBJECT_DETECTION_DETAILS;
+        case 7:
+          return VIDEO_OBJECT_TRACKING_DETAILS;
+        case 8:
+          return VIDEO_EVENT_DETAILS;
+        case 9:
+          return TEXT_CLASSIFICATION_DETAILS;
+        case 13:
+          return TEXT_ENTITY_EXTRACTION_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 IMAGE_CLASSIFICATION_DETAILS_FIELD_NUMBER = 3;
   /**
+   *
+   *
    * 
    * Details of label image classification operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * + * * @return Whether the imageClassificationDetails field is set. */ @java.lang.Override @@ -362,42 +544,62 @@ public boolean hasImageClassificationDetails() { return detailsCase_ == 3; } /** + * + * *
    * Details of label image classification operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * + * * @return The imageClassificationDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata getImageClassificationDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + getImageClassificationDetails() { if (detailsCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + .getDefaultInstance(); } /** + * + * *
    * Details of label image classification operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadataOrBuilder getImageClassificationDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadataOrBuilder + getImageClassificationDetailsOrBuilder() { if (detailsCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + .getDefaultInstance(); } public static final int IMAGE_BOUNDING_BOX_DETAILS_FIELD_NUMBER = 4; /** + * + * *
    * Details of label image bounding box operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * + * * @return Whether the imageBoundingBoxDetails field is set. */ @java.lang.Override @@ -405,42 +607,62 @@ public boolean hasImageBoundingBoxDetails() { return detailsCase_ == 4; } /** + * + * *
    * Details of label image bounding box operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * + * * @return The imageBoundingBoxDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata getImageBoundingBoxDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + getImageBoundingBoxDetails() { if (detailsCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + .getDefaultInstance(); } /** + * + * *
    * Details of label image bounding box operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder getImageBoundingBoxDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder + getImageBoundingBoxDetailsOrBuilder() { if (detailsCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + .getDefaultInstance(); } public static final int IMAGE_BOUNDING_POLY_DETAILS_FIELD_NUMBER = 11; /** + * + * *
    * Details of label image bounding poly operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * + * * @return Whether the imageBoundingPolyDetails field is set. */ @java.lang.Override @@ -448,42 +670,62 @@ public boolean hasImageBoundingPolyDetails() { return detailsCase_ == 11; } /** + * + * *
    * Details of label image bounding poly operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * + * * @return The imageBoundingPolyDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata getImageBoundingPolyDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + getImageBoundingPolyDetails() { if (detailsCase_ == 11) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + .getDefaultInstance(); } /** + * + * *
    * Details of label image bounding poly operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder getImageBoundingPolyDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder + getImageBoundingPolyDetailsOrBuilder() { if (detailsCase_ == 11) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + .getDefaultInstance(); } public static final int IMAGE_ORIENTED_BOUNDING_BOX_DETAILS_FIELD_NUMBER = 14; /** + * + * *
    * Details of label image oriented bounding box operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * + * * @return Whether the imageOrientedBoundingBoxDetails field is set. */ @java.lang.Override @@ -491,42 +733,63 @@ public boolean hasImageOrientedBoundingBoxDetails() { return detailsCase_ == 14; } /** + * + * *
    * Details of label image oriented bounding box operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * + * * @return The imageOrientedBoundingBoxDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata getImageOrientedBoundingBoxDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + getImageOrientedBoundingBoxDetails() { if (detailsCase_ == 14) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + .getDefaultInstance(); } /** + * + * *
    * Details of label image oriented bounding box operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadataOrBuilder getImageOrientedBoundingBoxDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1 + .LabelImageOrientedBoundingBoxOperationMetadataOrBuilder + getImageOrientedBoundingBoxDetailsOrBuilder() { if (detailsCase_ == 14) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + .getDefaultInstance(); } public static final int IMAGE_POLYLINE_DETAILS_FIELD_NUMBER = 12; /** + * + * *
    * Details of label image polyline operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * + * * @return Whether the imagePolylineDetails field is set. */ @java.lang.Override @@ -534,42 +797,60 @@ public boolean hasImagePolylineDetails() { return detailsCase_ == 12; } /** + * + * *
    * Details of label image polyline operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * + * * @return The imagePolylineDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata getImagePolylineDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata + getImagePolylineDetails() { if (detailsCase_ == 12) { - return (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata + .getDefaultInstance(); } /** + * + * *
    * Details of label image polyline operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder getImagePolylineDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder + getImagePolylineDetailsOrBuilder() { if (detailsCase_ == 12) { - return (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata + .getDefaultInstance(); } public static final int IMAGE_SEGMENTATION_DETAILS_FIELD_NUMBER = 15; /** + * + * *
    * Details of label image segmentation operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * + * * @return Whether the imageSegmentationDetails field is set. */ @java.lang.Override @@ -577,42 +858,62 @@ public boolean hasImageSegmentationDetails() { return detailsCase_ == 15; } /** + * + * *
    * Details of label image segmentation operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * + * * @return The imageSegmentationDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata getImageSegmentationDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + getImageSegmentationDetails() { if (detailsCase_ == 15) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + .getDefaultInstance(); } /** + * + * *
    * Details of label image segmentation operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder getImageSegmentationDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder + getImageSegmentationDetailsOrBuilder() { if (detailsCase_ == 15) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + .getDefaultInstance(); } public static final int VIDEO_CLASSIFICATION_DETAILS_FIELD_NUMBER = 5; /** + * + * *
    * Details of label video classification operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * + * * @return Whether the videoClassificationDetails field is set. */ @java.lang.Override @@ -620,42 +921,62 @@ public boolean hasVideoClassificationDetails() { return detailsCase_ == 5; } /** + * + * *
    * Details of label video classification operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * + * * @return The videoClassificationDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata getVideoClassificationDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + getVideoClassificationDetails() { if (detailsCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + .getDefaultInstance(); } /** + * + * *
    * Details of label video classification operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadataOrBuilder getVideoClassificationDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadataOrBuilder + getVideoClassificationDetailsOrBuilder() { if (detailsCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + .getDefaultInstance(); } public static final int VIDEO_OBJECT_DETECTION_DETAILS_FIELD_NUMBER = 6; /** + * + * *
    * Details of label video object detection operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * + * * @return Whether the videoObjectDetectionDetails field is set. */ @java.lang.Override @@ -663,42 +984,62 @@ public boolean hasVideoObjectDetectionDetails() { return detailsCase_ == 6; } /** + * + * *
    * Details of label video object detection operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * + * * @return The videoObjectDetectionDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata getVideoObjectDetectionDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + getVideoObjectDetectionDetails() { if (detailsCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + .getDefaultInstance(); } /** + * + * *
    * Details of label video object detection operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadataOrBuilder getVideoObjectDetectionDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadataOrBuilder + getVideoObjectDetectionDetailsOrBuilder() { if (detailsCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + .getDefaultInstance(); } public static final int VIDEO_OBJECT_TRACKING_DETAILS_FIELD_NUMBER = 7; /** + * + * *
    * Details of label video object tracking operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * + * * @return Whether the videoObjectTrackingDetails field is set. */ @java.lang.Override @@ -706,42 +1047,62 @@ public boolean hasVideoObjectTrackingDetails() { return detailsCase_ == 7; } /** + * + * *
    * Details of label video object tracking operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * + * * @return The videoObjectTrackingDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata getVideoObjectTrackingDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + getVideoObjectTrackingDetails() { if (detailsCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + .getDefaultInstance(); } /** + * + * *
    * Details of label video object tracking operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadataOrBuilder getVideoObjectTrackingDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadataOrBuilder + getVideoObjectTrackingDetailsOrBuilder() { if (detailsCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + .getDefaultInstance(); } public static final int VIDEO_EVENT_DETAILS_FIELD_NUMBER = 8; /** + * + * *
    * Details of label video event operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * + * * @return Whether the videoEventDetails field is set. */ @java.lang.Override @@ -749,42 +1110,60 @@ public boolean hasVideoEventDetails() { return detailsCase_ == 8; } /** + * + * *
    * Details of label video event operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * + * * @return The videoEventDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata getVideoEventDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata + getVideoEventDetails() { if (detailsCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata + .getDefaultInstance(); } /** + * + * *
    * Details of label video event operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder getVideoEventDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder + getVideoEventDetailsOrBuilder() { if (detailsCase_ == 8) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata + .getDefaultInstance(); } public static final int TEXT_CLASSIFICATION_DETAILS_FIELD_NUMBER = 9; /** + * + * *
    * Details of label text classification operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * + * * @return Whether the textClassificationDetails field is set. */ @java.lang.Override @@ -792,42 +1171,62 @@ public boolean hasTextClassificationDetails() { return detailsCase_ == 9; } /** + * + * *
    * Details of label text classification operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * + * * @return The textClassificationDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata getTextClassificationDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + getTextClassificationDetails() { if (detailsCase_ == 9) { - return (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + .getDefaultInstance(); } /** + * + * *
    * Details of label text classification operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder getTextClassificationDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder + getTextClassificationDetailsOrBuilder() { if (detailsCase_ == 9) { - return (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + .getDefaultInstance(); } public static final int TEXT_ENTITY_EXTRACTION_DETAILS_FIELD_NUMBER = 13; /** + * + * *
    * Details of label text entity extraction operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * + * * @return Whether the textEntityExtractionDetails field is set. */ @java.lang.Override @@ -835,43 +1234,61 @@ public boolean hasTextEntityExtractionDetails() { return detailsCase_ == 13; } /** + * + * *
    * Details of label text entity extraction operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * + * * @return The textEntityExtractionDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata getTextEntityExtractionDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + getTextEntityExtractionDetails() { if (detailsCase_ == 13) { - return (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + .getDefaultInstance(); } /** + * + * *
    * Details of label text entity extraction operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataOrBuilder getTextEntityExtractionDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataOrBuilder + getTextEntityExtractionDetailsOrBuilder() { if (detailsCase_ == 13) { - return (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + .getDefaultInstance(); } public static final int PROGRESS_PERCENT_FIELD_NUMBER = 1; private int progressPercent_; /** + * + * *
    * Output only. Progress of label operation. Range: [0, 100].
    * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ @java.lang.Override @@ -882,6 +1299,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.
@@ -895,6 +1314,8 @@ public java.util.List getPartialFailuresList() {
     return partialFailures_;
   }
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -904,11 +1325,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.
@@ -922,6 +1345,8 @@ public int getPartialFailuresCount() {
     return partialFailures_.size();
   }
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -935,6 +1360,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.
@@ -944,19 +1371,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 = 16;
   private com.google.protobuf.Timestamp createTime_;
   /**
+   *
+   *
    * 
    * Output only. Timestamp when labeling request was created.
    * 
* * .google.protobuf.Timestamp create_time = 16; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -964,11 +1393,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Timestamp when labeling request was created.
    * 
* * .google.protobuf.Timestamp create_time = 16; + * * @return The createTime. */ @java.lang.Override @@ -976,6 +1408,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Timestamp when labeling request was created.
    * 
@@ -988,6 +1422,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -999,8 +1434,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 (progressPercent_ != 0) { output.writeInt32(1, progressPercent_); } @@ -1008,40 +1442,69 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(2, partialFailures_.get(i)); } if (detailsCase_ == 3) { - output.writeMessage(3, (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) details_); + output.writeMessage( + 3, + (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) + details_); } if (detailsCase_ == 4) { - output.writeMessage(4, (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) details_); + output.writeMessage( + 4, + (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) details_); } if (detailsCase_ == 5) { - output.writeMessage(5, (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) details_); + output.writeMessage( + 5, + (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) + details_); } if (detailsCase_ == 6) { - output.writeMessage(6, (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) details_); + output.writeMessage( + 6, + (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) + details_); } if (detailsCase_ == 7) { - output.writeMessage(7, (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) details_); + output.writeMessage( + 7, + (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) + details_); } if (detailsCase_ == 8) { - output.writeMessage(8, (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_); + output.writeMessage( + 8, (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_); } if (detailsCase_ == 9) { - output.writeMessage(9, (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) details_); + output.writeMessage( + 9, + (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) + details_); } if (detailsCase_ == 11) { - output.writeMessage(11, (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) details_); + output.writeMessage( + 11, + (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) details_); } if (detailsCase_ == 12) { - output.writeMessage(12, (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_); + output.writeMessage( + 12, (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_); } if (detailsCase_ == 13) { - output.writeMessage(13, (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) details_); + output.writeMessage( + 13, + (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) + details_); } if (detailsCase_ == 14) { - output.writeMessage(14, (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) details_); + output.writeMessage( + 14, + (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) + details_); } if (detailsCase_ == 15) { - output.writeMessage(15, (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) details_); + output.writeMessage( + 15, + (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) details_); } if (createTime_ != null) { output.writeMessage(16, getCreateTime()); @@ -1056,64 +1519,94 @@ public int getSerializedSize() { size = 0; if (progressPercent_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, progressPercent_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, progressPercent_); } 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 (detailsCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) details_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) + details_); } if (detailsCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) details_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) + details_); } if (detailsCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) details_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) + details_); } if (detailsCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) details_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, + (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) + details_); } if (detailsCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) details_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, + (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) + details_); } if (detailsCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_); } if (detailsCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) details_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, + (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) + details_); } if (detailsCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) details_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, + (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) + details_); } if (detailsCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, + (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_); } if (detailsCase_ == 13) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) details_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, + (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) + details_); } if (detailsCase_ == 14) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) details_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, + (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) + details_); } if (detailsCase_ == 15) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) details_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, + (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) + details_); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(16, getCreateTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1123,71 +1616,66 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata other = + (com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata) 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 (!getDetailsCase().equals(other.getDetailsCase())) return false; switch (detailsCase_) { case 3: - if (!getImageClassificationDetails() - .equals(other.getImageClassificationDetails())) return false; + if (!getImageClassificationDetails().equals(other.getImageClassificationDetails())) + return false; break; case 4: - if (!getImageBoundingBoxDetails() - .equals(other.getImageBoundingBoxDetails())) return false; + if (!getImageBoundingBoxDetails().equals(other.getImageBoundingBoxDetails())) return false; break; case 11: - if (!getImageBoundingPolyDetails() - .equals(other.getImageBoundingPolyDetails())) return false; + if (!getImageBoundingPolyDetails().equals(other.getImageBoundingPolyDetails())) + return false; break; case 14: if (!getImageOrientedBoundingBoxDetails() .equals(other.getImageOrientedBoundingBoxDetails())) return false; break; case 12: - if (!getImagePolylineDetails() - .equals(other.getImagePolylineDetails())) return false; + if (!getImagePolylineDetails().equals(other.getImagePolylineDetails())) return false; break; case 15: - if (!getImageSegmentationDetails() - .equals(other.getImageSegmentationDetails())) return false; + if (!getImageSegmentationDetails().equals(other.getImageSegmentationDetails())) + return false; break; case 5: - if (!getVideoClassificationDetails() - .equals(other.getVideoClassificationDetails())) return false; + if (!getVideoClassificationDetails().equals(other.getVideoClassificationDetails())) + return false; break; case 6: - if (!getVideoObjectDetectionDetails() - .equals(other.getVideoObjectDetectionDetails())) return false; + if (!getVideoObjectDetectionDetails().equals(other.getVideoObjectDetectionDetails())) + return false; break; case 7: - if (!getVideoObjectTrackingDetails() - .equals(other.getVideoObjectTrackingDetails())) return false; + if (!getVideoObjectTrackingDetails().equals(other.getVideoObjectTrackingDetails())) + return false; break; case 8: - if (!getVideoEventDetails() - .equals(other.getVideoEventDetails())) return false; + if (!getVideoEventDetails().equals(other.getVideoEventDetails())) return false; break; case 9: - if (!getTextClassificationDetails() - .equals(other.getTextClassificationDetails())) return false; + if (!getTextClassificationDetails().equals(other.getTextClassificationDetails())) + return false; break; case 13: - if (!getTextEntityExtractionDetails() - .equals(other.getTextEntityExtractionDetails())) return false; + if (!getTextEntityExtractionDetails().equals(other.getTextEntityExtractionDetails())) + return false; break; case 0: default: @@ -1271,96 +1759,104 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata 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.datalabeling.v1beta1.LabelOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 of a labeling operation, such as LabelImage or LabelVideo.
    * Next tag: 20
@@ -1368,21 +1864,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelOperationMetadata}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelOperationMetadata)
       com.google.cloud.datalabeling.v1beta1.LabelOperationMetadataOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.Operations
+          .internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.Operations
+          .internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.class,
+              com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.newBuilder()
@@ -1390,17 +1888,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();
@@ -1424,13 +1922,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.Operations
+          .internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata getDefaultInstanceForType() {
+    public com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata
+        getDefaultInstanceForType() {
       return com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.getDefaultInstance();
     }
 
@@ -1445,7 +1944,8 @@ public com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata(this);
+      com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata result =
+          new com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata(this);
       int from_bitField0_ = bitField0_;
       if (detailsCase_ == 3) {
         if (imageClassificationDetailsBuilder_ == null) {
@@ -1555,38 +2055,39 @@ public com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata buildPartial
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata)other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1594,7 +2095,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.getDefaultInstance()) return this;
+      if (other
+          == com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata.getDefaultInstance())
+        return this;
       if (other.getProgressPercent() != 0) {
         setProgressPercent(other.getProgressPercent());
       }
@@ -1616,9 +2119,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelOperationMet
             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_);
           }
@@ -1628,57 +2132,70 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelOperationMet
         mergeCreateTime(other.getCreateTime());
       }
       switch (other.getDetailsCase()) {
-        case IMAGE_CLASSIFICATION_DETAILS: {
-          mergeImageClassificationDetails(other.getImageClassificationDetails());
-          break;
-        }
-        case IMAGE_BOUNDING_BOX_DETAILS: {
-          mergeImageBoundingBoxDetails(other.getImageBoundingBoxDetails());
-          break;
-        }
-        case IMAGE_BOUNDING_POLY_DETAILS: {
-          mergeImageBoundingPolyDetails(other.getImageBoundingPolyDetails());
-          break;
-        }
-        case IMAGE_ORIENTED_BOUNDING_BOX_DETAILS: {
-          mergeImageOrientedBoundingBoxDetails(other.getImageOrientedBoundingBoxDetails());
-          break;
-        }
-        case IMAGE_POLYLINE_DETAILS: {
-          mergeImagePolylineDetails(other.getImagePolylineDetails());
-          break;
-        }
-        case IMAGE_SEGMENTATION_DETAILS: {
-          mergeImageSegmentationDetails(other.getImageSegmentationDetails());
-          break;
-        }
-        case VIDEO_CLASSIFICATION_DETAILS: {
-          mergeVideoClassificationDetails(other.getVideoClassificationDetails());
-          break;
-        }
-        case VIDEO_OBJECT_DETECTION_DETAILS: {
-          mergeVideoObjectDetectionDetails(other.getVideoObjectDetectionDetails());
-          break;
-        }
-        case VIDEO_OBJECT_TRACKING_DETAILS: {
-          mergeVideoObjectTrackingDetails(other.getVideoObjectTrackingDetails());
-          break;
-        }
-        case VIDEO_EVENT_DETAILS: {
-          mergeVideoEventDetails(other.getVideoEventDetails());
-          break;
-        }
-        case TEXT_CLASSIFICATION_DETAILS: {
-          mergeTextClassificationDetails(other.getTextClassificationDetails());
-          break;
-        }
-        case TEXT_ENTITY_EXTRACTION_DETAILS: {
-          mergeTextEntityExtractionDetails(other.getTextEntityExtractionDetails());
-          break;
-        }
-        case DETAILS_NOT_SET: {
-          break;
-        }
+        case IMAGE_CLASSIFICATION_DETAILS:
+          {
+            mergeImageClassificationDetails(other.getImageClassificationDetails());
+            break;
+          }
+        case IMAGE_BOUNDING_BOX_DETAILS:
+          {
+            mergeImageBoundingBoxDetails(other.getImageBoundingBoxDetails());
+            break;
+          }
+        case IMAGE_BOUNDING_POLY_DETAILS:
+          {
+            mergeImageBoundingPolyDetails(other.getImageBoundingPolyDetails());
+            break;
+          }
+        case IMAGE_ORIENTED_BOUNDING_BOX_DETAILS:
+          {
+            mergeImageOrientedBoundingBoxDetails(other.getImageOrientedBoundingBoxDetails());
+            break;
+          }
+        case IMAGE_POLYLINE_DETAILS:
+          {
+            mergeImagePolylineDetails(other.getImagePolylineDetails());
+            break;
+          }
+        case IMAGE_SEGMENTATION_DETAILS:
+          {
+            mergeImageSegmentationDetails(other.getImageSegmentationDetails());
+            break;
+          }
+        case VIDEO_CLASSIFICATION_DETAILS:
+          {
+            mergeVideoClassificationDetails(other.getVideoClassificationDetails());
+            break;
+          }
+        case VIDEO_OBJECT_DETECTION_DETAILS:
+          {
+            mergeVideoObjectDetectionDetails(other.getVideoObjectDetectionDetails());
+            break;
+          }
+        case VIDEO_OBJECT_TRACKING_DETAILS:
+          {
+            mergeVideoObjectTrackingDetails(other.getVideoObjectTrackingDetails());
+            break;
+          }
+        case VIDEO_EVENT_DETAILS:
+          {
+            mergeVideoEventDetails(other.getVideoEventDetails());
+            break;
+          }
+        case TEXT_CLASSIFICATION_DETAILS:
+          {
+            mergeTextClassificationDetails(other.getTextClassificationDetails());
+            break;
+          }
+        case TEXT_ENTITY_EXTRACTION_DETAILS:
+          {
+            mergeTextEntityExtractionDetails(other.getTextEntityExtractionDetails());
+            break;
+          }
+        case DETAILS_NOT_SET:
+          {
+            break;
+          }
       }
       this.mergeUnknownFields(other.unknownFields);
       onChanged();
@@ -1699,7 +2216,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1708,12 +2226,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() {
@@ -1726,13 +2244,22 @@ public Builder clearDetails() {
     private int bitField0_;
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadataOrBuilder> imageClassificationDetailsBuilder_;
+            com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata,
+            com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder,
+            com.google.cloud.datalabeling.v1beta1
+                .LabelImageClassificationOperationMetadataOrBuilder>
+        imageClassificationDetailsBuilder_;
     /**
+     *
+     *
      * 
      * Details of label image classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * + * * @return Whether the imageClassificationDetails field is set. */ @java.lang.Override @@ -1740,35 +2267,49 @@ public boolean hasImageClassificationDetails() { return detailsCase_ == 3; } /** + * + * *
      * Details of label image classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * + * * @return The imageClassificationDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata getImageClassificationDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + getImageClassificationDetails() { if (imageClassificationDetailsBuilder_ == null) { if (detailsCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + .getDefaultInstance(); } else { if (detailsCase_ == 3) { return imageClassificationDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label image classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * */ - public Builder setImageClassificationDetails(com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata value) { + public Builder setImageClassificationDetails( + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata value) { if (imageClassificationDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1782,14 +2323,19 @@ public Builder setImageClassificationDetails(com.google.cloud.datalabeling.v1bet return this; } /** + * + * *
      * Details of label image classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * */ public Builder setImageClassificationDetails( - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder + builderForValue) { if (imageClassificationDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -1800,18 +2346,31 @@ public Builder setImageClassificationDetails( return this; } /** + * + * *
      * Details of label image classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * */ - public Builder mergeImageClassificationDetails(com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata value) { + public Builder mergeImageClassificationDetails( + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata value) { if (imageClassificationDetailsBuilder_ == null) { - if (detailsCase_ == 3 && - details_ != com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.getDefaultInstance()) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) details_) - .mergeFrom(value).buildPartial(); + if (detailsCase_ == 3 + && details_ + != com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + .getDefaultInstance()) { + details_ = + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + .newBuilder( + (com.google.cloud.datalabeling.v1beta1 + .LabelImageClassificationOperationMetadata) + details_) + .mergeFrom(value) + .buildPartial(); } else { details_ = value; } @@ -1827,11 +2386,15 @@ public Builder mergeImageClassificationDetails(com.google.cloud.datalabeling.v1b return this; } /** + * + * *
      * Details of label image classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * */ public Builder clearImageClassificationDetails() { if (imageClassificationDetailsBuilder_ == null) { @@ -1850,67 +2413,103 @@ public Builder clearImageClassificationDetails() { return this; } /** + * + * *
      * Details of label image classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * */ - public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder getImageClassificationDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder + getImageClassificationDetailsBuilder() { return getImageClassificationDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of label image classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadataOrBuilder getImageClassificationDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadataOrBuilder + getImageClassificationDetailsOrBuilder() { if ((detailsCase_ == 3) && (imageClassificationDetailsBuilder_ != null)) { return imageClassificationDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 3) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label image classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder, + com.google.cloud.datalabeling.v1beta1 + .LabelImageClassificationOperationMetadataOrBuilder> getImageClassificationDetailsFieldBuilder() { if (imageClassificationDetailsBuilder_ == null) { if (!(detailsCase_ == 3)) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.getDefaultInstance(); - } - imageClassificationDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadataOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) details_, + details_ = + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + .getDefaultInstance(); + } + imageClassificationDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + .Builder, + com.google.cloud.datalabeling.v1beta1 + .LabelImageClassificationOperationMetadataOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata) + details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 3; - onChanged();; + onChanged(); + ; return imageClassificationDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder> imageBoundingBoxDetailsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder> + imageBoundingBoxDetailsBuilder_; /** + * + * *
      * Details of label image bounding box operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * + * * @return Whether the imageBoundingBoxDetails field is set. */ @java.lang.Override @@ -1918,35 +2517,49 @@ public boolean hasImageBoundingBoxDetails() { return detailsCase_ == 4; } /** + * + * *
      * Details of label image bounding box operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * + * * @return The imageBoundingBoxDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata getImageBoundingBoxDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + getImageBoundingBoxDetails() { if (imageBoundingBoxDetailsBuilder_ == null) { if (detailsCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + .getDefaultInstance(); } else { if (detailsCase_ == 4) { return imageBoundingBoxDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label image bounding box operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * */ - public Builder setImageBoundingBoxDetails(com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata value) { + public Builder setImageBoundingBoxDetails( + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata value) { if (imageBoundingBoxDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1960,14 +2573,19 @@ public Builder setImageBoundingBoxDetails(com.google.cloud.datalabeling.v1beta1. return this; } /** + * + * *
      * Details of label image bounding box operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * */ public Builder setImageBoundingBoxDetails( - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder + builderForValue) { if (imageBoundingBoxDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -1978,18 +2596,30 @@ public Builder setImageBoundingBoxDetails( return this; } /** + * + * *
      * Details of label image bounding box operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * */ - public Builder mergeImageBoundingBoxDetails(com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata value) { + public Builder mergeImageBoundingBoxDetails( + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata value) { if (imageBoundingBoxDetailsBuilder_ == null) { - if (detailsCase_ == 4 && - details_ != com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.getDefaultInstance()) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) details_) - .mergeFrom(value).buildPartial(); + if (detailsCase_ == 4 + && details_ + != com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + .getDefaultInstance()) { + details_ = + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + .newBuilder( + (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) + details_) + .mergeFrom(value) + .buildPartial(); } else { details_ = value; } @@ -2005,11 +2635,15 @@ public Builder mergeImageBoundingBoxDetails(com.google.cloud.datalabeling.v1beta return this; } /** + * + * *
      * Details of label image bounding box operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * */ public Builder clearImageBoundingBoxDetails() { if (imageBoundingBoxDetailsBuilder_ == null) { @@ -2028,67 +2662,102 @@ public Builder clearImageBoundingBoxDetails() { return this; } /** + * + * *
      * Details of label image bounding box operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * */ - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder getImageBoundingBoxDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder + getImageBoundingBoxDetailsBuilder() { return getImageBoundingBoxDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of label image bounding box operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder getImageBoundingBoxDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder + getImageBoundingBoxDetailsOrBuilder() { if ((detailsCase_ == 4) && (imageBoundingBoxDetailsBuilder_ != null)) { return imageBoundingBoxDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label image bounding box operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder> getImageBoundingBoxDetailsFieldBuilder() { if (imageBoundingBoxDetailsBuilder_ == null) { if (!(detailsCase_ == 4)) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.getDefaultInstance(); - } - imageBoundingBoxDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) details_, + details_ = + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + .getDefaultInstance(); + } + imageBoundingBoxDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + .Builder, + com.google.cloud.datalabeling.v1beta1 + .LabelImageBoundingBoxOperationMetadataOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata) + details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 4; - onChanged();; + onChanged(); + ; return imageBoundingBoxDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder> imageBoundingPolyDetailsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder> + imageBoundingPolyDetailsBuilder_; /** + * + * *
      * Details of label image bounding poly operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * + * * @return Whether the imageBoundingPolyDetails field is set. */ @java.lang.Override @@ -2096,35 +2765,49 @@ public boolean hasImageBoundingPolyDetails() { return detailsCase_ == 11; } /** + * + * *
      * Details of label image bounding poly operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * + * * @return The imageBoundingPolyDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata getImageBoundingPolyDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + getImageBoundingPolyDetails() { if (imageBoundingPolyDetailsBuilder_ == null) { if (detailsCase_ == 11) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + .getDefaultInstance(); } else { if (detailsCase_ == 11) { return imageBoundingPolyDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label image bounding poly operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * */ - public Builder setImageBoundingPolyDetails(com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata value) { + public Builder setImageBoundingPolyDetails( + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata value) { if (imageBoundingPolyDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2138,14 +2821,19 @@ public Builder setImageBoundingPolyDetails(com.google.cloud.datalabeling.v1beta1 return this; } /** + * + * *
      * Details of label image bounding poly operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * */ public Builder setImageBoundingPolyDetails( - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder + builderForValue) { if (imageBoundingPolyDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -2156,18 +2844,31 @@ public Builder setImageBoundingPolyDetails( return this; } /** + * + * *
      * Details of label image bounding poly operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * */ - public Builder mergeImageBoundingPolyDetails(com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata value) { + public Builder mergeImageBoundingPolyDetails( + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata value) { if (imageBoundingPolyDetailsBuilder_ == null) { - if (detailsCase_ == 11 && - details_ != com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.getDefaultInstance()) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) details_) - .mergeFrom(value).buildPartial(); + if (detailsCase_ == 11 + && details_ + != com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + .getDefaultInstance()) { + details_ = + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + .newBuilder( + (com.google.cloud.datalabeling.v1beta1 + .LabelImageBoundingPolyOperationMetadata) + details_) + .mergeFrom(value) + .buildPartial(); } else { details_ = value; } @@ -2183,11 +2884,15 @@ public Builder mergeImageBoundingPolyDetails(com.google.cloud.datalabeling.v1bet return this; } /** + * + * *
      * Details of label image bounding poly operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * */ public Builder clearImageBoundingPolyDetails() { if (imageBoundingPolyDetailsBuilder_ == null) { @@ -2206,67 +2911,104 @@ public Builder clearImageBoundingPolyDetails() { return this; } /** + * + * *
      * Details of label image bounding poly operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * */ - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder getImageBoundingPolyDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder + getImageBoundingPolyDetailsBuilder() { return getImageBoundingPolyDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of label image bounding poly operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder getImageBoundingPolyDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder + getImageBoundingPolyDetailsOrBuilder() { if ((detailsCase_ == 11) && (imageBoundingPolyDetailsBuilder_ != null)) { return imageBoundingPolyDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 11) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label image bounding poly operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder> getImageBoundingPolyDetailsFieldBuilder() { if (imageBoundingPolyDetailsBuilder_ == null) { if (!(detailsCase_ == 11)) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.getDefaultInstance(); - } - imageBoundingPolyDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) details_, + details_ = + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + .getDefaultInstance(); + } + imageBoundingPolyDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + .Builder, + com.google.cloud.datalabeling.v1beta1 + .LabelImageBoundingPolyOperationMetadataOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata) + details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 11; - onChanged();; + onChanged(); + ; return imageBoundingPolyDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadataOrBuilder> imageOrientedBoundingBoxDetailsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + .Builder, + com.google.cloud.datalabeling.v1beta1 + .LabelImageOrientedBoundingBoxOperationMetadataOrBuilder> + imageOrientedBoundingBoxDetailsBuilder_; /** + * + * *
      * Details of label image oriented bounding box operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * + * * @return Whether the imageOrientedBoundingBoxDetails field is set. */ @java.lang.Override @@ -2274,35 +3016,51 @@ public boolean hasImageOrientedBoundingBoxDetails() { return detailsCase_ == 14; } /** + * + * *
      * Details of label image oriented bounding box operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * + * * @return The imageOrientedBoundingBoxDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata getImageOrientedBoundingBoxDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + getImageOrientedBoundingBoxDetails() { if (imageOrientedBoundingBoxDetailsBuilder_ == null) { if (detailsCase_ == 14) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1 + .LabelImageOrientedBoundingBoxOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + .getDefaultInstance(); } else { if (detailsCase_ == 14) { return imageOrientedBoundingBoxDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label image oriented bounding box operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * */ - public Builder setImageOrientedBoundingBoxDetails(com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata value) { + public Builder setImageOrientedBoundingBoxDetails( + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + value) { if (imageOrientedBoundingBoxDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2316,14 +3074,19 @@ public Builder setImageOrientedBoundingBoxDetails(com.google.cloud.datalabeling. return this; } /** + * + * *
      * Details of label image oriented bounding box operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * */ public Builder setImageOrientedBoundingBoxDetails( - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.Builder builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.Builder + builderForValue) { if (imageOrientedBoundingBoxDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -2334,18 +3097,32 @@ public Builder setImageOrientedBoundingBoxDetails( return this; } /** + * + * *
      * Details of label image oriented bounding box operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * */ - public Builder mergeImageOrientedBoundingBoxDetails(com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata value) { + public Builder mergeImageOrientedBoundingBoxDetails( + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + value) { if (imageOrientedBoundingBoxDetailsBuilder_ == null) { - if (detailsCase_ == 14 && - details_ != com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.getDefaultInstance()) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) details_) - .mergeFrom(value).buildPartial(); + if (detailsCase_ == 14 + && details_ + != com.google.cloud.datalabeling.v1beta1 + .LabelImageOrientedBoundingBoxOperationMetadata.getDefaultInstance()) { + details_ = + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + .newBuilder( + (com.google.cloud.datalabeling.v1beta1 + .LabelImageOrientedBoundingBoxOperationMetadata) + details_) + .mergeFrom(value) + .buildPartial(); } else { details_ = value; } @@ -2361,11 +3138,15 @@ public Builder mergeImageOrientedBoundingBoxDetails(com.google.cloud.datalabelin return this; } /** + * + * *
      * Details of label image oriented bounding box operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * */ public Builder clearImageOrientedBoundingBoxDetails() { if (imageOrientedBoundingBoxDetailsBuilder_ == null) { @@ -2384,67 +3165,109 @@ public Builder clearImageOrientedBoundingBoxDetails() { return this; } /** + * + * *
      * Details of label image oriented bounding box operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * */ - public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.Builder getImageOrientedBoundingBoxDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + .Builder + getImageOrientedBoundingBoxDetailsBuilder() { return getImageOrientedBoundingBoxDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of label image oriented bounding box operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadataOrBuilder getImageOrientedBoundingBoxDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1 + .LabelImageOrientedBoundingBoxOperationMetadataOrBuilder + getImageOrientedBoundingBoxDetailsOrBuilder() { if ((detailsCase_ == 14) && (imageOrientedBoundingBoxDetailsBuilder_ != null)) { return imageOrientedBoundingBoxDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 14) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1 + .LabelImageOrientedBoundingBoxOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label image oriented bounding box operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + .Builder, + com.google.cloud.datalabeling.v1beta1 + .LabelImageOrientedBoundingBoxOperationMetadataOrBuilder> getImageOrientedBoundingBoxDetailsFieldBuilder() { if (imageOrientedBoundingBoxDetailsBuilder_ == null) { if (!(detailsCase_ == 14)) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.getDefaultInstance(); - } - imageOrientedBoundingBoxDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadataOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata) details_, + details_ = + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + .getDefaultInstance(); + } + imageOrientedBoundingBoxDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1 + .LabelImageOrientedBoundingBoxOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + .Builder, + com.google.cloud.datalabeling.v1beta1 + .LabelImageOrientedBoundingBoxOperationMetadataOrBuilder>( + (com.google.cloud.datalabeling.v1beta1 + .LabelImageOrientedBoundingBoxOperationMetadata) + details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 14; - onChanged();; + onChanged(); + ; return imageOrientedBoundingBoxDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder> imagePolylineDetailsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder> + imagePolylineDetailsBuilder_; /** + * + * *
      * Details of label image polyline operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * + * * @return Whether the imagePolylineDetails field is set. */ @java.lang.Override @@ -2452,35 +3275,49 @@ public boolean hasImagePolylineDetails() { return detailsCase_ == 12; } /** + * + * *
      * Details of label image polyline operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * + * * @return The imagePolylineDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata getImagePolylineDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata + getImagePolylineDetails() { if (imagePolylineDetailsBuilder_ == null) { if (detailsCase_ == 12) { - return (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata + .getDefaultInstance(); } else { if (detailsCase_ == 12) { return imagePolylineDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label image polyline operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * */ - public Builder setImagePolylineDetails(com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata value) { + public Builder setImagePolylineDetails( + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata value) { if (imagePolylineDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2494,14 +3331,19 @@ public Builder setImagePolylineDetails(com.google.cloud.datalabeling.v1beta1.Lab return this; } /** + * + * *
      * Details of label image polyline operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * */ public Builder setImagePolylineDetails( - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder + builderForValue) { if (imagePolylineDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -2512,18 +3354,29 @@ public Builder setImagePolylineDetails( return this; } /** + * + * *
      * Details of label image polyline operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * */ - public Builder mergeImagePolylineDetails(com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata value) { + public Builder mergeImagePolylineDetails( + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata value) { if (imagePolylineDetailsBuilder_ == null) { - if (detailsCase_ == 12 && - details_ != com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.getDefaultInstance()) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_) - .mergeFrom(value).buildPartial(); + if (detailsCase_ == 12 + && details_ + != com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata + .getDefaultInstance()) { + details_ = + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.newBuilder( + (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) + details_) + .mergeFrom(value) + .buildPartial(); } else { details_ = value; } @@ -2539,11 +3392,15 @@ public Builder mergeImagePolylineDetails(com.google.cloud.datalabeling.v1beta1.L return this; } /** + * + * *
      * Details of label image polyline operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * */ public Builder clearImagePolylineDetails() { if (imagePolylineDetailsBuilder_ == null) { @@ -2562,67 +3419,100 @@ public Builder clearImagePolylineDetails() { return this; } /** + * + * *
      * Details of label image polyline operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * */ - public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder getImagePolylineDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder + getImagePolylineDetailsBuilder() { return getImagePolylineDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of label image polyline operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder getImagePolylineDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder + getImagePolylineDetailsOrBuilder() { if ((detailsCase_ == 12) && (imagePolylineDetailsBuilder_ != null)) { return imagePolylineDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 12) { - return (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label image polyline operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder> getImagePolylineDetailsFieldBuilder() { if (imagePolylineDetailsBuilder_ == null) { if (!(detailsCase_ == 12)) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.getDefaultInstance(); - } - imagePolylineDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) details_, + details_ = + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata + .getDefaultInstance(); + } + imagePolylineDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata) + details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 12; - onChanged();; + onChanged(); + ; return imagePolylineDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder> imageSegmentationDetailsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder> + imageSegmentationDetailsBuilder_; /** + * + * *
      * Details of label image segmentation operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * + * * @return Whether the imageSegmentationDetails field is set. */ @java.lang.Override @@ -2630,35 +3520,49 @@ public boolean hasImageSegmentationDetails() { return detailsCase_ == 15; } /** + * + * *
      * Details of label image segmentation operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * + * * @return The imageSegmentationDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata getImageSegmentationDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + getImageSegmentationDetails() { if (imageSegmentationDetailsBuilder_ == null) { if (detailsCase_ == 15) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + .getDefaultInstance(); } else { if (detailsCase_ == 15) { return imageSegmentationDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label image segmentation operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * */ - public Builder setImageSegmentationDetails(com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata value) { + public Builder setImageSegmentationDetails( + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata value) { if (imageSegmentationDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2672,14 +3576,19 @@ public Builder setImageSegmentationDetails(com.google.cloud.datalabeling.v1beta1 return this; } /** + * + * *
      * Details of label image segmentation operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * */ public Builder setImageSegmentationDetails( - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder + builderForValue) { if (imageSegmentationDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -2690,18 +3599,31 @@ public Builder setImageSegmentationDetails( return this; } /** + * + * *
      * Details of label image segmentation operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * */ - public Builder mergeImageSegmentationDetails(com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata value) { + public Builder mergeImageSegmentationDetails( + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata value) { if (imageSegmentationDetailsBuilder_ == null) { - if (detailsCase_ == 15 && - details_ != com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.getDefaultInstance()) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) details_) - .mergeFrom(value).buildPartial(); + if (detailsCase_ == 15 + && details_ + != com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + .getDefaultInstance()) { + details_ = + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + .newBuilder( + (com.google.cloud.datalabeling.v1beta1 + .LabelImageSegmentationOperationMetadata) + details_) + .mergeFrom(value) + .buildPartial(); } else { details_ = value; } @@ -2717,11 +3639,15 @@ public Builder mergeImageSegmentationDetails(com.google.cloud.datalabeling.v1bet return this; } /** + * + * *
      * Details of label image segmentation operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * */ public Builder clearImageSegmentationDetails() { if (imageSegmentationDetailsBuilder_ == null) { @@ -2740,67 +3666,103 @@ public Builder clearImageSegmentationDetails() { return this; } /** + * + * *
      * Details of label image segmentation operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * */ - public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder getImageSegmentationDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder + getImageSegmentationDetailsBuilder() { return getImageSegmentationDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of label image segmentation operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder getImageSegmentationDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder + getImageSegmentationDetailsOrBuilder() { if ((detailsCase_ == 15) && (imageSegmentationDetailsBuilder_ != null)) { return imageSegmentationDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 15) { - return (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label image segmentation operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder> getImageSegmentationDetailsFieldBuilder() { if (imageSegmentationDetailsBuilder_ == null) { if (!(detailsCase_ == 15)) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.getDefaultInstance(); - } - imageSegmentationDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) details_, + details_ = + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + .getDefaultInstance(); + } + imageSegmentationDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + .Builder, + com.google.cloud.datalabeling.v1beta1 + .LabelImageSegmentationOperationMetadataOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata) + details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 15; - onChanged();; + onChanged(); + ; return imageSegmentationDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadataOrBuilder> videoClassificationDetailsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder, + com.google.cloud.datalabeling.v1beta1 + .LabelVideoClassificationOperationMetadataOrBuilder> + videoClassificationDetailsBuilder_; /** + * + * *
      * Details of label video classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * + * * @return Whether the videoClassificationDetails field is set. */ @java.lang.Override @@ -2808,35 +3770,49 @@ public boolean hasVideoClassificationDetails() { return detailsCase_ == 5; } /** + * + * *
      * Details of label video classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * + * * @return The videoClassificationDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata getVideoClassificationDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + getVideoClassificationDetails() { if (videoClassificationDetailsBuilder_ == null) { if (detailsCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + .getDefaultInstance(); } else { if (detailsCase_ == 5) { return videoClassificationDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label video classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * */ - public Builder setVideoClassificationDetails(com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata value) { + public Builder setVideoClassificationDetails( + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata value) { if (videoClassificationDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2850,14 +3826,19 @@ public Builder setVideoClassificationDetails(com.google.cloud.datalabeling.v1bet return this; } /** + * + * *
      * Details of label video classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * */ public Builder setVideoClassificationDetails( - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder + builderForValue) { if (videoClassificationDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -2868,18 +3849,31 @@ public Builder setVideoClassificationDetails( return this; } /** + * + * *
      * Details of label video classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * */ - public Builder mergeVideoClassificationDetails(com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata value) { + public Builder mergeVideoClassificationDetails( + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata value) { if (videoClassificationDetailsBuilder_ == null) { - if (detailsCase_ == 5 && - details_ != com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.getDefaultInstance()) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) details_) - .mergeFrom(value).buildPartial(); + if (detailsCase_ == 5 + && details_ + != com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + .getDefaultInstance()) { + details_ = + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + .newBuilder( + (com.google.cloud.datalabeling.v1beta1 + .LabelVideoClassificationOperationMetadata) + details_) + .mergeFrom(value) + .buildPartial(); } else { details_ = value; } @@ -2895,11 +3889,15 @@ public Builder mergeVideoClassificationDetails(com.google.cloud.datalabeling.v1b return this; } /** + * + * *
      * Details of label video classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * */ public Builder clearVideoClassificationDetails() { if (videoClassificationDetailsBuilder_ == null) { @@ -2918,67 +3916,105 @@ public Builder clearVideoClassificationDetails() { return this; } /** + * + * *
      * Details of label video classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * */ - public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder getVideoClassificationDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder + getVideoClassificationDetailsBuilder() { return getVideoClassificationDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of label video classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadataOrBuilder getVideoClassificationDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadataOrBuilder + getVideoClassificationDetailsOrBuilder() { if ((detailsCase_ == 5) && (videoClassificationDetailsBuilder_ != null)) { return videoClassificationDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label video classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder, + com.google.cloud.datalabeling.v1beta1 + .LabelVideoClassificationOperationMetadataOrBuilder> getVideoClassificationDetailsFieldBuilder() { if (videoClassificationDetailsBuilder_ == null) { if (!(detailsCase_ == 5)) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.getDefaultInstance(); - } - videoClassificationDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadataOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) details_, + details_ = + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + .getDefaultInstance(); + } + videoClassificationDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + .Builder, + com.google.cloud.datalabeling.v1beta1 + .LabelVideoClassificationOperationMetadataOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) + details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 5; - onChanged();; + onChanged(); + ; return videoClassificationDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadataOrBuilder> videoObjectDetectionDetailsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + .Builder, + com.google.cloud.datalabeling.v1beta1 + .LabelVideoObjectDetectionOperationMetadataOrBuilder> + videoObjectDetectionDetailsBuilder_; /** + * + * *
      * Details of label video object detection operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * + * * @return Whether the videoObjectDetectionDetails field is set. */ @java.lang.Override @@ -2986,35 +4022,49 @@ public boolean hasVideoObjectDetectionDetails() { return detailsCase_ == 6; } /** + * + * *
      * Details of label video object detection operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * + * * @return The videoObjectDetectionDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata getVideoObjectDetectionDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + getVideoObjectDetectionDetails() { if (videoObjectDetectionDetailsBuilder_ == null) { if (detailsCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + .getDefaultInstance(); } else { if (detailsCase_ == 6) { return videoObjectDetectionDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label video object detection operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * */ - public Builder setVideoObjectDetectionDetails(com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata value) { + public Builder setVideoObjectDetectionDetails( + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata value) { if (videoObjectDetectionDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3028,14 +4078,19 @@ public Builder setVideoObjectDetectionDetails(com.google.cloud.datalabeling.v1be return this; } /** + * + * *
      * Details of label video object detection operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * */ public Builder setVideoObjectDetectionDetails( - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.Builder builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.Builder + builderForValue) { if (videoObjectDetectionDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -3046,18 +4101,31 @@ public Builder setVideoObjectDetectionDetails( return this; } /** + * + * *
      * Details of label video object detection operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * */ - public Builder mergeVideoObjectDetectionDetails(com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata value) { + public Builder mergeVideoObjectDetectionDetails( + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata value) { if (videoObjectDetectionDetailsBuilder_ == null) { - if (detailsCase_ == 6 && - details_ != com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.getDefaultInstance()) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) details_) - .mergeFrom(value).buildPartial(); + if (detailsCase_ == 6 + && details_ + != com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + .getDefaultInstance()) { + details_ = + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + .newBuilder( + (com.google.cloud.datalabeling.v1beta1 + .LabelVideoObjectDetectionOperationMetadata) + details_) + .mergeFrom(value) + .buildPartial(); } else { details_ = value; } @@ -3073,11 +4141,15 @@ public Builder mergeVideoObjectDetectionDetails(com.google.cloud.datalabeling.v1 return this; } /** + * + * *
      * Details of label video object detection operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * */ public Builder clearVideoObjectDetectionDetails() { if (videoObjectDetectionDetailsBuilder_ == null) { @@ -3096,67 +4168,105 @@ public Builder clearVideoObjectDetectionDetails() { return this; } /** + * + * *
      * Details of label video object detection operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * */ - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.Builder getVideoObjectDetectionDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.Builder + getVideoObjectDetectionDetailsBuilder() { return getVideoObjectDetectionDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of label video object detection operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadataOrBuilder getVideoObjectDetectionDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadataOrBuilder + getVideoObjectDetectionDetailsOrBuilder() { if ((detailsCase_ == 6) && (videoObjectDetectionDetailsBuilder_ != null)) { return videoObjectDetectionDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label video object detection operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + .Builder, + com.google.cloud.datalabeling.v1beta1 + .LabelVideoObjectDetectionOperationMetadataOrBuilder> getVideoObjectDetectionDetailsFieldBuilder() { if (videoObjectDetectionDetailsBuilder_ == null) { if (!(detailsCase_ == 6)) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.getDefaultInstance(); - } - videoObjectDetectionDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadataOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) details_, + details_ = + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + .getDefaultInstance(); + } + videoObjectDetectionDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + .Builder, + com.google.cloud.datalabeling.v1beta1 + .LabelVideoObjectDetectionOperationMetadataOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) + details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 6; - onChanged();; + onChanged(); + ; return videoObjectDetectionDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadataOrBuilder> videoObjectTrackingDetailsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder, + com.google.cloud.datalabeling.v1beta1 + .LabelVideoObjectTrackingOperationMetadataOrBuilder> + videoObjectTrackingDetailsBuilder_; /** + * + * *
      * Details of label video object tracking operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * + * * @return Whether the videoObjectTrackingDetails field is set. */ @java.lang.Override @@ -3164,35 +4274,49 @@ public boolean hasVideoObjectTrackingDetails() { return detailsCase_ == 7; } /** + * + * *
      * Details of label video object tracking operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * + * * @return The videoObjectTrackingDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata getVideoObjectTrackingDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + getVideoObjectTrackingDetails() { if (videoObjectTrackingDetailsBuilder_ == null) { if (detailsCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + .getDefaultInstance(); } else { if (detailsCase_ == 7) { return videoObjectTrackingDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label video object tracking operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * */ - public Builder setVideoObjectTrackingDetails(com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata value) { + public Builder setVideoObjectTrackingDetails( + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata value) { if (videoObjectTrackingDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3206,14 +4330,19 @@ public Builder setVideoObjectTrackingDetails(com.google.cloud.datalabeling.v1bet return this; } /** + * + * *
      * Details of label video object tracking operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * */ public Builder setVideoObjectTrackingDetails( - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder + builderForValue) { if (videoObjectTrackingDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -3224,18 +4353,31 @@ public Builder setVideoObjectTrackingDetails( return this; } /** + * + * *
      * Details of label video object tracking operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * */ - public Builder mergeVideoObjectTrackingDetails(com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata value) { + public Builder mergeVideoObjectTrackingDetails( + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata value) { if (videoObjectTrackingDetailsBuilder_ == null) { - if (detailsCase_ == 7 && - details_ != com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.getDefaultInstance()) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) details_) - .mergeFrom(value).buildPartial(); + if (detailsCase_ == 7 + && details_ + != com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + .getDefaultInstance()) { + details_ = + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + .newBuilder( + (com.google.cloud.datalabeling.v1beta1 + .LabelVideoObjectTrackingOperationMetadata) + details_) + .mergeFrom(value) + .buildPartial(); } else { details_ = value; } @@ -3251,11 +4393,15 @@ public Builder mergeVideoObjectTrackingDetails(com.google.cloud.datalabeling.v1b return this; } /** + * + * *
      * Details of label video object tracking operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * */ public Builder clearVideoObjectTrackingDetails() { if (videoObjectTrackingDetailsBuilder_ == null) { @@ -3274,67 +4420,103 @@ public Builder clearVideoObjectTrackingDetails() { return this; } /** + * + * *
      * Details of label video object tracking operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * */ - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder getVideoObjectTrackingDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder + getVideoObjectTrackingDetailsBuilder() { return getVideoObjectTrackingDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of label video object tracking operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadataOrBuilder getVideoObjectTrackingDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadataOrBuilder + getVideoObjectTrackingDetailsOrBuilder() { if ((detailsCase_ == 7) && (videoObjectTrackingDetailsBuilder_ != null)) { return videoObjectTrackingDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label video object tracking operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder, + com.google.cloud.datalabeling.v1beta1 + .LabelVideoObjectTrackingOperationMetadataOrBuilder> getVideoObjectTrackingDetailsFieldBuilder() { if (videoObjectTrackingDetailsBuilder_ == null) { if (!(detailsCase_ == 7)) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.getDefaultInstance(); - } - videoObjectTrackingDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadataOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) details_, + details_ = + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + .getDefaultInstance(); + } + videoObjectTrackingDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + .Builder, + com.google.cloud.datalabeling.v1beta1 + .LabelVideoObjectTrackingOperationMetadataOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) + details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 7; - onChanged();; + onChanged(); + ; return videoObjectTrackingDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder> videoEventDetailsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder> + videoEventDetailsBuilder_; /** + * + * *
      * Details of label video event operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * + * * @return Whether the videoEventDetails field is set. */ @java.lang.Override @@ -3342,35 +4524,48 @@ public boolean hasVideoEventDetails() { return detailsCase_ == 8; } /** + * + * *
      * Details of label video event operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * + * * @return The videoEventDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata getVideoEventDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata + getVideoEventDetails() { if (videoEventDetailsBuilder_ == null) { if (detailsCase_ == 8) { return (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata + .getDefaultInstance(); } else { if (detailsCase_ == 8) { return videoEventDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label video event operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * */ - public Builder setVideoEventDetails(com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata value) { + public Builder setVideoEventDetails( + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata value) { if (videoEventDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3384,14 +4579,19 @@ public Builder setVideoEventDetails(com.google.cloud.datalabeling.v1beta1.LabelV return this; } /** + * + * *
      * Details of label video event operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * */ public Builder setVideoEventDetails( - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder + builderForValue) { if (videoEventDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -3402,18 +4602,29 @@ public Builder setVideoEventDetails( return this; } /** + * + * *
      * Details of label video event operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * */ - public Builder mergeVideoEventDetails(com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata value) { + public Builder mergeVideoEventDetails( + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata value) { if (videoEventDetailsBuilder_ == null) { - if (detailsCase_ == 8 && - details_ != com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.getDefaultInstance()) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_) - .mergeFrom(value).buildPartial(); + if (detailsCase_ == 8 + && details_ + != com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata + .getDefaultInstance()) { + details_ = + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.newBuilder( + (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) + details_) + .mergeFrom(value) + .buildPartial(); } else { details_ = value; } @@ -3429,11 +4640,15 @@ public Builder mergeVideoEventDetails(com.google.cloud.datalabeling.v1beta1.Labe return this; } /** + * + * *
      * Details of label video event operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * */ public Builder clearVideoEventDetails() { if (videoEventDetailsBuilder_ == null) { @@ -3452,67 +4667,98 @@ public Builder clearVideoEventDetails() { return this; } /** + * + * *
      * Details of label video event operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * */ - public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder getVideoEventDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder + getVideoEventDetailsBuilder() { return getVideoEventDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of label video event operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder getVideoEventDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder + getVideoEventDetailsOrBuilder() { if ((detailsCase_ == 8) && (videoEventDetailsBuilder_ != null)) { return videoEventDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 8) { return (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_; } - return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label video event operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder> getVideoEventDetailsFieldBuilder() { if (videoEventDetailsBuilder_ == null) { if (!(detailsCase_ == 8)) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.getDefaultInstance(); - } - videoEventDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder>( + details_ = + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata + .getDefaultInstance(); + } + videoEventDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder>( (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 8; - onChanged();; + onChanged(); + ; return videoEventDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder> textClassificationDetailsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder> + textClassificationDetailsBuilder_; /** + * + * *
      * Details of label text classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * + * * @return Whether the textClassificationDetails field is set. */ @java.lang.Override @@ -3520,35 +4766,49 @@ public boolean hasTextClassificationDetails() { return detailsCase_ == 9; } /** + * + * *
      * Details of label text classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * + * * @return The textClassificationDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata getTextClassificationDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + getTextClassificationDetails() { if (textClassificationDetailsBuilder_ == null) { if (detailsCase_ == 9) { - return (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + .getDefaultInstance(); } else { if (detailsCase_ == 9) { return textClassificationDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label text classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * */ - public Builder setTextClassificationDetails(com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata value) { + public Builder setTextClassificationDetails( + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata value) { if (textClassificationDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3562,14 +4822,19 @@ public Builder setTextClassificationDetails(com.google.cloud.datalabeling.v1beta return this; } /** + * + * *
      * Details of label text classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * */ public Builder setTextClassificationDetails( - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder + builderForValue) { if (textClassificationDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -3580,18 +4845,31 @@ public Builder setTextClassificationDetails( return this; } /** + * + * *
      * Details of label text classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * */ - public Builder mergeTextClassificationDetails(com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata value) { + public Builder mergeTextClassificationDetails( + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata value) { if (textClassificationDetailsBuilder_ == null) { - if (detailsCase_ == 9 && - details_ != com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.getDefaultInstance()) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) details_) - .mergeFrom(value).buildPartial(); + if (detailsCase_ == 9 + && details_ + != com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + .getDefaultInstance()) { + details_ = + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + .newBuilder( + (com.google.cloud.datalabeling.v1beta1 + .LabelTextClassificationOperationMetadata) + details_) + .mergeFrom(value) + .buildPartial(); } else { details_ = value; } @@ -3607,11 +4885,15 @@ public Builder mergeTextClassificationDetails(com.google.cloud.datalabeling.v1be return this; } /** + * + * *
      * Details of label text classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * */ public Builder clearTextClassificationDetails() { if (textClassificationDetailsBuilder_ == null) { @@ -3630,67 +4912,104 @@ public Builder clearTextClassificationDetails() { return this; } /** + * + * *
      * Details of label text classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * */ - public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder getTextClassificationDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder + getTextClassificationDetailsBuilder() { return getTextClassificationDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of label text classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder getTextClassificationDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder + getTextClassificationDetailsOrBuilder() { if ((detailsCase_ == 9) && (textClassificationDetailsBuilder_ != null)) { return textClassificationDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 9) { - return (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label text classification operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder, + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder> getTextClassificationDetailsFieldBuilder() { if (textClassificationDetailsBuilder_ == null) { if (!(detailsCase_ == 9)) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.getDefaultInstance(); - } - textClassificationDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) details_, + details_ = + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + .getDefaultInstance(); + } + textClassificationDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + .Builder, + com.google.cloud.datalabeling.v1beta1 + .LabelTextClassificationOperationMetadataOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) + details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 9; - onChanged();; + onChanged(); + ; return textClassificationDetailsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataOrBuilder> textEntityExtractionDetailsBuilder_; + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + .Builder, + com.google.cloud.datalabeling.v1beta1 + .LabelTextEntityExtractionOperationMetadataOrBuilder> + textEntityExtractionDetailsBuilder_; /** + * + * *
      * Details of label text entity extraction operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * + * * @return Whether the textEntityExtractionDetails field is set. */ @java.lang.Override @@ -3698,35 +5017,49 @@ public boolean hasTextEntityExtractionDetails() { return detailsCase_ == 13; } /** + * + * *
      * Details of label text entity extraction operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * + * * @return The textEntityExtractionDetails. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata getTextEntityExtractionDetails() { + public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + getTextEntityExtractionDetails() { if (textEntityExtractionDetailsBuilder_ == null) { if (detailsCase_ == 13) { - return (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + .getDefaultInstance(); } else { if (detailsCase_ == 13) { return textEntityExtractionDetailsBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label text entity extraction operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * */ - public Builder setTextEntityExtractionDetails(com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata value) { + public Builder setTextEntityExtractionDetails( + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata value) { if (textEntityExtractionDetailsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3740,14 +5073,19 @@ public Builder setTextEntityExtractionDetails(com.google.cloud.datalabeling.v1be return this; } /** + * + * *
      * Details of label text entity extraction operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * */ public Builder setTextEntityExtractionDetails( - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.Builder builderForValue) { + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.Builder + builderForValue) { if (textEntityExtractionDetailsBuilder_ == null) { details_ = builderForValue.build(); onChanged(); @@ -3758,18 +5096,31 @@ public Builder setTextEntityExtractionDetails( return this; } /** + * + * *
      * Details of label text entity extraction operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * */ - public Builder mergeTextEntityExtractionDetails(com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata value) { + public Builder mergeTextEntityExtractionDetails( + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata value) { if (textEntityExtractionDetailsBuilder_ == null) { - if (detailsCase_ == 13 && - details_ != com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.getDefaultInstance()) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.newBuilder((com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) details_) - .mergeFrom(value).buildPartial(); + if (detailsCase_ == 13 + && details_ + != com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + .getDefaultInstance()) { + details_ = + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + .newBuilder( + (com.google.cloud.datalabeling.v1beta1 + .LabelTextEntityExtractionOperationMetadata) + details_) + .mergeFrom(value) + .buildPartial(); } else { details_ = value; } @@ -3785,11 +5136,15 @@ public Builder mergeTextEntityExtractionDetails(com.google.cloud.datalabeling.v1 return this; } /** + * + * *
      * Details of label text entity extraction operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * */ public Builder clearTextEntityExtractionDetails() { if (textEntityExtractionDetailsBuilder_ == null) { @@ -3808,66 +5163,98 @@ public Builder clearTextEntityExtractionDetails() { return this; } /** + * + * *
      * Details of label text entity extraction operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * */ - public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.Builder getTextEntityExtractionDetailsBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.Builder + getTextEntityExtractionDetailsBuilder() { return getTextEntityExtractionDetailsFieldBuilder().getBuilder(); } /** + * + * *
      * Details of label text entity extraction operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataOrBuilder getTextEntityExtractionDetailsOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataOrBuilder + getTextEntityExtractionDetailsOrBuilder() { if ((detailsCase_ == 13) && (textEntityExtractionDetailsBuilder_ != null)) { return textEntityExtractionDetailsBuilder_.getMessageOrBuilder(); } else { if (detailsCase_ == 13) { - return (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) details_; + return (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) + details_; } - return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + .getDefaultInstance(); } } /** + * + * *
      * Details of label text entity extraction operation.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataOrBuilder> + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + .Builder, + com.google.cloud.datalabeling.v1beta1 + .LabelTextEntityExtractionOperationMetadataOrBuilder> getTextEntityExtractionDetailsFieldBuilder() { if (textEntityExtractionDetailsBuilder_ == null) { if (!(detailsCase_ == 13)) { - details_ = com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.getDefaultInstance(); - } - textEntityExtractionDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata, com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.Builder, com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataOrBuilder>( - (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) details_, + details_ = + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + .getDefaultInstance(); + } + textEntityExtractionDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata, + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + .Builder, + com.google.cloud.datalabeling.v1beta1 + .LabelTextEntityExtractionOperationMetadataOrBuilder>( + (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) + details_, getParentForChildren(), isClean()); details_ = null; } detailsCase_ = 13; - onChanged();; + onChanged(); + ; return textEntityExtractionDetailsBuilder_; } - private int progressPercent_ ; + private int progressPercent_; /** + * + * *
      * Output only. Progress of label operation. Range: [0, 100].
      * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ @java.lang.Override @@ -3875,48 +5262,58 @@ public int getProgressPercent() { return progressPercent_; } /** + * + * *
      * Output only. Progress of label operation. Range: [0, 100].
      * 
* * int32 progress_percent = 1; + * * @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 label operation. Range: [0, 100].
      * 
* * int32 progress_percent = 1; + * * @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.
@@ -3933,6 +5330,8 @@ public java.util.List getPartialFailuresList() {
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3949,6 +5348,8 @@ public int getPartialFailuresCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3965,6 +5366,8 @@ public com.google.rpc.Status getPartialFailures(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3973,8 +5376,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();
@@ -3988,6 +5390,8 @@ public Builder setPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -3996,8 +5400,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());
@@ -4008,6 +5411,8 @@ public Builder setPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4030,6 +5435,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.
@@ -4038,8 +5445,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();
@@ -4053,6 +5459,8 @@ public Builder addPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4061,8 +5469,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());
@@ -4073,6 +5480,8 @@ public Builder addPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4081,8 +5490,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());
@@ -4093,6 +5501,8 @@ public Builder addPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4105,8 +5515,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);
@@ -4114,6 +5523,8 @@ public Builder addAllPartialFailures(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4133,6 +5544,8 @@ public Builder clearPartialFailures() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4152,6 +5565,8 @@ public Builder removePartialFailures(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4160,11 +5575,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.
@@ -4173,14 +5589,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.
@@ -4189,8 +5607,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 {
@@ -4198,6 +5616,8 @@ public com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
       }
     }
     /**
+     *
+     *
      * 
      * Output only. Partial failures encountered.
      * E.g. single files that couldn't be read.
@@ -4207,10 +5627,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.
@@ -4219,12 +5641,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.
@@ -4233,16 +5656,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(),
@@ -4254,34 +5680,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. Timestamp when labeling request was created.
      * 
* * .google.protobuf.Timestamp create_time = 16; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return createTimeBuilder_ != null || createTime_ != null; } /** + * + * *
      * Output only. Timestamp when labeling request was created.
      * 
* * .google.protobuf.Timestamp create_time = 16; + * * @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 labeling request was created.
      * 
@@ -4302,14 +5741,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp when labeling request was created.
      * 
* * .google.protobuf.Timestamp create_time = 16; */ - 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(); @@ -4320,6 +5760,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Timestamp when labeling request was created.
      * 
@@ -4330,7 +5772,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; } @@ -4342,6 +5784,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Timestamp when labeling request was created.
      * 
@@ -4360,6 +5804,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Timestamp when labeling request was created.
      * 
@@ -4367,11 +5813,13 @@ public Builder clearCreateTime() { * .google.protobuf.Timestamp create_time = 16; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - + onChanged(); return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Timestamp when labeling request was created.
      * 
@@ -4382,11 +5830,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 labeling request was created.
      * 
@@ -4394,21 +5845,24 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 16; */ 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_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -4418,12 +5872,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata(); } @@ -4432,16 +5887,16 @@ public static com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -4456,6 +5911,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.LabelOperationMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadataOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadataOrBuilder.java similarity index 54% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadataOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadataOrBuilder.java index c0d373f4..f4a46dad 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadataOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelOperationMetadataOrBuilder.java @@ -1,347 +1,559 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelOperationMetadataOrBuilder extends +public interface LabelOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Details of label image classification operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * + * * @return Whether the imageClassificationDetails field is set. */ boolean hasImageClassificationDetails(); /** + * + * *
    * Details of label image classification operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * + * * @return The imageClassificationDetails. */ - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata getImageClassificationDetails(); + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata + getImageClassificationDetails(); /** + * + * *
    * Details of label image classification operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * + * .google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadata image_classification_details = 3; + * */ - com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadataOrBuilder getImageClassificationDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelImageClassificationOperationMetadataOrBuilder + getImageClassificationDetailsOrBuilder(); /** + * + * *
    * Details of label image bounding box operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * + * * @return Whether the imageBoundingBoxDetails field is set. */ boolean hasImageBoundingBoxDetails(); /** + * + * *
    * Details of label image bounding box operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * + * * @return The imageBoundingBoxDetails. */ - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata getImageBoundingBoxDetails(); + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata + getImageBoundingBoxDetails(); /** + * + * *
    * Details of label image bounding box operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadata image_bounding_box_details = 4; + * */ - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder getImageBoundingBoxDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingBoxOperationMetadataOrBuilder + getImageBoundingBoxDetailsOrBuilder(); /** + * + * *
    * Details of label image bounding poly operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * + * * @return Whether the imageBoundingPolyDetails field is set. */ boolean hasImageBoundingPolyDetails(); /** + * + * *
    * Details of label image bounding poly operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * + * * @return The imageBoundingPolyDetails. */ - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata getImageBoundingPolyDetails(); + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata + getImageBoundingPolyDetails(); /** + * + * *
    * Details of label image bounding poly operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * + * .google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadata image_bounding_poly_details = 11; + * */ - com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder getImageBoundingPolyDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelImageBoundingPolyOperationMetadataOrBuilder + getImageBoundingPolyDetailsOrBuilder(); /** + * + * *
    * Details of label image oriented bounding box operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * + * * @return Whether the imageOrientedBoundingBoxDetails field is set. */ boolean hasImageOrientedBoundingBoxDetails(); /** + * + * *
    * Details of label image oriented bounding box operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * + * * @return The imageOrientedBoundingBoxDetails. */ - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata getImageOrientedBoundingBoxDetails(); + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata + getImageOrientedBoundingBoxDetails(); /** + * + * *
    * Details of label image oriented bounding box operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * + * .google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadata image_oriented_bounding_box_details = 14; + * */ - com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadataOrBuilder getImageOrientedBoundingBoxDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelImageOrientedBoundingBoxOperationMetadataOrBuilder + getImageOrientedBoundingBoxDetailsOrBuilder(); /** + * + * *
    * Details of label image polyline operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * + * * @return Whether the imagePolylineDetails field is set. */ boolean hasImagePolylineDetails(); /** + * + * *
    * Details of label image polyline operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * + * * @return The imagePolylineDetails. */ - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata getImagePolylineDetails(); + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata + getImagePolylineDetails(); /** + * + * *
    * Details of label image polyline operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * + * .google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadata image_polyline_details = 12; + * */ - com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder getImagePolylineDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelImagePolylineOperationMetadataOrBuilder + getImagePolylineDetailsOrBuilder(); /** + * + * *
    * Details of label image segmentation operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * + * * @return Whether the imageSegmentationDetails field is set. */ boolean hasImageSegmentationDetails(); /** + * + * *
    * Details of label image segmentation operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * + * * @return The imageSegmentationDetails. */ - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata getImageSegmentationDetails(); + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata + getImageSegmentationDetails(); /** + * + * *
    * Details of label image segmentation operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * + * .google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadata image_segmentation_details = 15; + * */ - com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder getImageSegmentationDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelImageSegmentationOperationMetadataOrBuilder + getImageSegmentationDetailsOrBuilder(); /** + * + * *
    * Details of label video classification operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * + * * @return Whether the videoClassificationDetails field is set. */ boolean hasVideoClassificationDetails(); /** + * + * *
    * Details of label video classification operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * + * * @return The videoClassificationDetails. */ - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata getVideoClassificationDetails(); + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + getVideoClassificationDetails(); /** + * + * *
    * Details of label video classification operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata video_classification_details = 5; + * */ - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadataOrBuilder getVideoClassificationDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadataOrBuilder + getVideoClassificationDetailsOrBuilder(); /** + * + * *
    * Details of label video object detection operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * + * * @return Whether the videoObjectDetectionDetails field is set. */ boolean hasVideoObjectDetectionDetails(); /** + * + * *
    * Details of label video object detection operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * + * * @return The videoObjectDetectionDetails. */ - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata getVideoObjectDetectionDetails(); + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + getVideoObjectDetectionDetails(); /** + * + * *
    * Details of label video object detection operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata video_object_detection_details = 6; + * */ - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadataOrBuilder getVideoObjectDetectionDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadataOrBuilder + getVideoObjectDetectionDetailsOrBuilder(); /** + * + * *
    * Details of label video object tracking operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * + * * @return Whether the videoObjectTrackingDetails field is set. */ boolean hasVideoObjectTrackingDetails(); /** + * + * *
    * Details of label video object tracking operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * + * * @return The videoObjectTrackingDetails. */ - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata getVideoObjectTrackingDetails(); + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + getVideoObjectTrackingDetails(); /** + * + * *
    * Details of label video object tracking operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata video_object_tracking_details = 7; + * */ - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadataOrBuilder getVideoObjectTrackingDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadataOrBuilder + getVideoObjectTrackingDetailsOrBuilder(); /** + * + * *
    * Details of label video event operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * + * * @return Whether the videoEventDetails field is set. */ boolean hasVideoEventDetails(); /** + * + * *
    * Details of label video event operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * + * * @return The videoEventDetails. */ com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata getVideoEventDetails(); /** + * + * *
    * Details of label video event operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata video_event_details = 8; + * */ - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder getVideoEventDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder + getVideoEventDetailsOrBuilder(); /** + * + * *
    * Details of label text classification operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * + * * @return Whether the textClassificationDetails field is set. */ boolean hasTextClassificationDetails(); /** + * + * *
    * Details of label text classification operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * + * * @return The textClassificationDetails. */ - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata getTextClassificationDetails(); + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + getTextClassificationDetails(); /** + * + * *
    * Details of label text classification operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * + * .google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata text_classification_details = 9; + * */ - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder getTextClassificationDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder + getTextClassificationDetailsOrBuilder(); /** + * + * *
    * Details of label text entity extraction operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * + * * @return Whether the textEntityExtractionDetails field is set. */ boolean hasTextEntityExtractionDetails(); /** + * + * *
    * Details of label text entity extraction operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * + * * @return The textEntityExtractionDetails. */ - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata getTextEntityExtractionDetails(); + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + getTextEntityExtractionDetails(); /** + * + * *
    * Details of label text entity extraction operation.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * + * .google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata text_entity_extraction_details = 13; + * */ - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataOrBuilder getTextEntityExtractionDetailsOrBuilder(); + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataOrBuilder + getTextEntityExtractionDetailsOrBuilder(); /** + * + * *
    * Output only. Progress of label operation. Range: [0, 100].
    * 
* * int32 progress_percent = 1; + * * @return The progressPercent. */ int getProgressPercent(); /** + * + * *
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -350,9 +562,10 @@ public interface LabelOperationMetadataOrBuilder 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.
@@ -363,6 +576,8 @@ public interface LabelOperationMetadataOrBuilder extends
    */
   com.google.rpc.Status getPartialFailures(int index);
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -373,6 +588,8 @@ public interface LabelOperationMetadataOrBuilder extends
    */
   int getPartialFailuresCount();
   /**
+   *
+   *
    * 
    * Output only. Partial failures encountered.
    * E.g. single files that couldn't be read.
@@ -381,9 +598,10 @@ public interface LabelOperationMetadataOrBuilder 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.
@@ -392,28 +610,35 @@ public interface LabelOperationMetadataOrBuilder extends
    *
    * repeated .google.rpc.Status partial_failures = 2;
    */
-  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(
-      int index);
+  com.google.rpc.StatusOrBuilder getPartialFailuresOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * Output only. Timestamp when labeling request was created.
    * 
* * .google.protobuf.Timestamp create_time = 16; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Timestamp when labeling request was created.
    * 
* * .google.protobuf.Timestamp create_time = 16; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Timestamp when labeling request was created.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStats.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStats.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStats.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStats.java index 58366d7c..8b94e867 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStats.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStats.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Statistics about annotation specs.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelStats} */ -public final class LabelStats extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LabelStats extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelStats) LabelStatsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LabelStats.newBuilder() to construct. private LabelStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LabelStats() { - } + + private LabelStats() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LabelStats(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LabelStats( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,26 +69,28 @@ private LabelStats( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - exampleCount_ = com.google.protobuf.MapField.newMapField( - ExampleCountDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + exampleCount_ = + com.google.protobuf.MapField.newMapField( + ExampleCountDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry exampleCount__ = + input.readMessage( + ExampleCountDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + exampleCount_.getMutableMap().put(exampleCount__.getKey(), exampleCount__.getValue()); + break; } - com.google.protobuf.MapEntry - exampleCount__ = input.readMessage( - ExampleCountDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - exampleCount_.getMutableMap().put( - exampleCount__.getKey(), exampleCount__.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) { @@ -80,54 +98,55 @@ private LabelStats( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_LabelStats_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 internalGetExampleCount(); 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.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelStats_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_LabelStats_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelStats.class, com.google.cloud.datalabeling.v1beta1.LabelStats.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelStats.class, + com.google.cloud.datalabeling.v1beta1.LabelStats.Builder.class); } public static final int EXAMPLE_COUNT_FIELD_NUMBER = 1; + private static final class ExampleCountDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.Long> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.INT64, - 0L); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.Long> exampleCount_; - private com.google.protobuf.MapField - internalGetExampleCount() { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_LabelStats_ExampleCountEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.INT64, + 0L); + } + + private com.google.protobuf.MapField exampleCount_; + + private com.google.protobuf.MapField internalGetExampleCount() { if (exampleCount_ == null) { return com.google.protobuf.MapField.emptyMapField( ExampleCountDefaultEntryHolder.defaultEntry); @@ -139,6 +158,8 @@ public int getExampleCountCount() { return internalGetExampleCount().getMap().size(); } /** + * + * *
    * Map of each annotation spec's example count. Key is the annotation spec
    * name and value is the number of examples for that annotation spec.
@@ -149,22 +170,22 @@ public int getExampleCountCount() {
    *
    * map<string, int64> example_count = 1;
    */
-
   @java.lang.Override
-  public boolean containsExampleCount(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
+  public boolean containsExampleCount(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
     return internalGetExampleCount().getMap().containsKey(key);
   }
-  /**
-   * Use {@link #getExampleCountMap()} instead.
-   */
+  /** Use {@link #getExampleCountMap()} instead. */
   @java.lang.Override
   @java.lang.Deprecated
   public java.util.Map getExampleCount() {
     return getExampleCountMap();
   }
   /**
+   *
+   *
    * 
    * Map of each annotation spec's example count. Key is the annotation spec
    * name and value is the number of examples for that annotation spec.
@@ -176,11 +197,12 @@ public java.util.Map getExampleCount() {
    * map<string, int64> example_count = 1;
    */
   @java.lang.Override
-
   public java.util.Map getExampleCountMap() {
     return internalGetExampleCount().getMap();
   }
   /**
+   *
+   *
    * 
    * Map of each annotation spec's example count. Key is the annotation spec
    * name and value is the number of examples for that annotation spec.
@@ -192,16 +214,16 @@ public java.util.Map getExampleCountMap() {
    * map<string, int64> example_count = 1;
    */
   @java.lang.Override
-
-  public long getExampleCountOrDefault(
-      java.lang.String key,
-      long defaultValue) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetExampleCount().getMap();
+  public long getExampleCountOrDefault(java.lang.String key, long defaultValue) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetExampleCount().getMap();
     return map.containsKey(key) ? map.get(key) : defaultValue;
   }
   /**
+   *
+   *
    * 
    * Map of each annotation spec's example count. Key is the annotation spec
    * name and value is the number of examples for that annotation spec.
@@ -213,12 +235,11 @@ public long getExampleCountOrDefault(
    * map<string, int64> example_count = 1;
    */
   @java.lang.Override
-
-  public long getExampleCountOrThrow(
-      java.lang.String key) {
-    if (key == null) { throw new NullPointerException("map key"); }
-    java.util.Map map =
-        internalGetExampleCount().getMap();
+  public long getExampleCountOrThrow(java.lang.String key) {
+    if (key == null) {
+      throw new NullPointerException("map key");
+    }
+    java.util.Map map = internalGetExampleCount().getMap();
     if (!map.containsKey(key)) {
       throw new java.lang.IllegalArgumentException();
     }
@@ -226,6 +247,7 @@ public long getExampleCountOrThrow(
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -237,14 +259,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,
-        internalGetExampleCount(),
-        ExampleCountDefaultEntryHolder.defaultEntry,
-        1);
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+    com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+        output, internalGetExampleCount(), ExampleCountDefaultEntryHolder.defaultEntry, 1);
     unknownFields.writeTo(output);
   }
 
@@ -254,15 +271,15 @@ public int getSerializedSize() {
     if (size != -1) return size;
 
     size = 0;
-    for (java.util.Map.Entry entry
-         : internalGetExampleCount().getMap().entrySet()) {
-      com.google.protobuf.MapEntry
-      exampleCount__ = ExampleCountDefaultEntryHolder.defaultEntry.newBuilderForType()
-          .setKey(entry.getKey())
-          .setValue(entry.getValue())
-          .build();
-      size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(1, exampleCount__);
+    for (java.util.Map.Entry entry :
+        internalGetExampleCount().getMap().entrySet()) {
+      com.google.protobuf.MapEntry exampleCount__ =
+          ExampleCountDefaultEntryHolder.defaultEntry
+              .newBuilderForType()
+              .setKey(entry.getKey())
+              .setValue(entry.getValue())
+              .build();
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, exampleCount__);
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -272,15 +289,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.datalabeling.v1beta1.LabelStats)) {
       return super.equals(obj);
     }
-    com.google.cloud.datalabeling.v1beta1.LabelStats other = (com.google.cloud.datalabeling.v1beta1.LabelStats) obj;
+    com.google.cloud.datalabeling.v1beta1.LabelStats other =
+        (com.google.cloud.datalabeling.v1beta1.LabelStats) obj;
 
-    if (!internalGetExampleCount().equals(
-        other.internalGetExampleCount())) return false;
+    if (!internalGetExampleCount().equals(other.internalGetExampleCount())) return false;
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
   }
@@ -301,140 +318,147 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.datalabeling.v1beta1.LabelStats parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.datalabeling.v1beta1.LabelStats parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.LabelStats parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.LabelStats parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelStats prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Statistics about annotation specs.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelStats} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelStats) com.google.cloud.datalabeling.v1beta1.LabelStatsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor; } @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { + protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 1: return internalGetExampleCount(); 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 internalGetMutableExampleCount(); 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.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelStats_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_LabelStats_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelStats.class, com.google.cloud.datalabeling.v1beta1.LabelStats.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelStats.class, + com.google.cloud.datalabeling.v1beta1.LabelStats.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.LabelStats.newBuilder() @@ -442,16 +466,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 +483,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_LabelStats_descriptor; } @java.lang.Override @@ -481,7 +504,8 @@ public com.google.cloud.datalabeling.v1beta1.LabelStats build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelStats buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelStats result = new com.google.cloud.datalabeling.v1beta1.LabelStats(this); + com.google.cloud.datalabeling.v1beta1.LabelStats result = + new com.google.cloud.datalabeling.v1beta1.LabelStats(this); int from_bitField0_ = bitField0_; result.exampleCount_ = internalGetExampleCount(); result.exampleCount_.makeImmutable(); @@ -493,38 +517,39 @@ public com.google.cloud.datalabeling.v1beta1.LabelStats buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelStats) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelStats)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelStats) other); } else { super.mergeFrom(other); return this; @@ -532,9 +557,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelStats other) { - if (other == com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance()) return this; - internalGetMutableExampleCount().mergeFrom( - other.internalGetExampleCount()); + if (other == com.google.cloud.datalabeling.v1beta1.LabelStats.getDefaultInstance()) + return this; + internalGetMutableExampleCount().mergeFrom(other.internalGetExampleCount()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -563,24 +588,27 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.MapField< - java.lang.String, java.lang.Long> exampleCount_; + private com.google.protobuf.MapField exampleCount_; + private com.google.protobuf.MapField - internalGetExampleCount() { + internalGetExampleCount() { if (exampleCount_ == null) { return com.google.protobuf.MapField.emptyMapField( ExampleCountDefaultEntryHolder.defaultEntry); } return exampleCount_; } + private com.google.protobuf.MapField - internalGetMutableExampleCount() { - onChanged();; + internalGetMutableExampleCount() { + onChanged(); + ; if (exampleCount_ == null) { - exampleCount_ = com.google.protobuf.MapField.newMapField( - ExampleCountDefaultEntryHolder.defaultEntry); + exampleCount_ = + com.google.protobuf.MapField.newMapField(ExampleCountDefaultEntryHolder.defaultEntry); } if (!exampleCount_.isMutable()) { exampleCount_ = exampleCount_.copy(); @@ -592,6 +620,8 @@ public int getExampleCountCount() { return internalGetExampleCount().getMap().size(); } /** + * + * *
      * Map of each annotation spec's example count. Key is the annotation spec
      * name and value is the number of examples for that annotation spec.
@@ -602,22 +632,22 @@ public int getExampleCountCount() {
      *
      * map<string, int64> example_count = 1;
      */
-
     @java.lang.Override
-    public boolean containsExampleCount(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
+    public boolean containsExampleCount(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
       return internalGetExampleCount().getMap().containsKey(key);
     }
-    /**
-     * Use {@link #getExampleCountMap()} instead.
-     */
+    /** Use {@link #getExampleCountMap()} instead. */
     @java.lang.Override
     @java.lang.Deprecated
     public java.util.Map getExampleCount() {
       return getExampleCountMap();
     }
     /**
+     *
+     *
      * 
      * Map of each annotation spec's example count. Key is the annotation spec
      * name and value is the number of examples for that annotation spec.
@@ -629,11 +659,12 @@ public java.util.Map getExampleCount() {
      * map<string, int64> example_count = 1;
      */
     @java.lang.Override
-
     public java.util.Map getExampleCountMap() {
       return internalGetExampleCount().getMap();
     }
     /**
+     *
+     *
      * 
      * Map of each annotation spec's example count. Key is the annotation spec
      * name and value is the number of examples for that annotation spec.
@@ -645,16 +676,16 @@ public java.util.Map getExampleCountMap() {
      * map<string, int64> example_count = 1;
      */
     @java.lang.Override
-
-    public long getExampleCountOrDefault(
-        java.lang.String key,
-        long defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetExampleCount().getMap();
+    public long getExampleCountOrDefault(java.lang.String key, long defaultValue) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetExampleCount().getMap();
       return map.containsKey(key) ? map.get(key) : defaultValue;
     }
     /**
+     *
+     *
      * 
      * Map of each annotation spec's example count. Key is the annotation spec
      * name and value is the number of examples for that annotation spec.
@@ -666,12 +697,11 @@ public long getExampleCountOrDefault(
      * map<string, int64> example_count = 1;
      */
     @java.lang.Override
-
-    public long getExampleCountOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetExampleCount().getMap();
+    public long getExampleCountOrThrow(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      java.util.Map map = internalGetExampleCount().getMap();
       if (!map.containsKey(key)) {
         throw new java.lang.IllegalArgumentException();
       }
@@ -679,11 +709,12 @@ public long getExampleCountOrThrow(
     }
 
     public Builder clearExampleCount() {
-      internalGetMutableExampleCount().getMutableMap()
-          .clear();
+      internalGetMutableExampleCount().getMutableMap().clear();
       return this;
     }
     /**
+     *
+     *
      * 
      * Map of each annotation spec's example count. Key is the annotation spec
      * name and value is the number of examples for that annotation spec.
@@ -694,23 +725,21 @@ public Builder clearExampleCount() {
      *
      * map<string, int64> example_count = 1;
      */
-
-    public Builder removeExampleCount(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      internalGetMutableExampleCount().getMutableMap()
-          .remove(key);
+    public Builder removeExampleCount(java.lang.String key) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+      internalGetMutableExampleCount().getMutableMap().remove(key);
       return this;
     }
-    /**
-     * Use alternate mutation accessors instead.
-     */
+    /** Use alternate mutation accessors instead. */
     @java.lang.Deprecated
-    public java.util.Map
-    getMutableExampleCount() {
+    public java.util.Map getMutableExampleCount() {
       return internalGetMutableExampleCount().getMutableMap();
     }
     /**
+     *
+     *
      * 
      * Map of each annotation spec's example count. Key is the annotation spec
      * name and value is the number of examples for that annotation spec.
@@ -721,16 +750,17 @@ public Builder removeExampleCount(
      *
      * map<string, int64> example_count = 1;
      */
-    public Builder putExampleCount(
-        java.lang.String key,
-        long value) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      
-      internalGetMutableExampleCount().getMutableMap()
-          .put(key, value);
+    public Builder putExampleCount(java.lang.String key, long value) {
+      if (key == null) {
+        throw new NullPointerException("map key");
+      }
+
+      internalGetMutableExampleCount().getMutableMap().put(key, value);
       return this;
     }
     /**
+     *
+     *
      * 
      * Map of each annotation spec's example count. Key is the annotation spec
      * name and value is the number of examples for that annotation spec.
@@ -741,16 +771,13 @@ public Builder putExampleCount(
      *
      * map<string, int64> example_count = 1;
      */
-
-    public Builder putAllExampleCount(
-        java.util.Map values) {
-      internalGetMutableExampleCount().getMutableMap()
-          .putAll(values);
+    public Builder putAllExampleCount(java.util.Map values) {
+      internalGetMutableExampleCount().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);
     }
 
@@ -760,12 +787,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelStats)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelStats)
   private static final com.google.cloud.datalabeling.v1beta1.LabelStats DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelStats();
   }
@@ -774,16 +801,16 @@ public static com.google.cloud.datalabeling.v1beta1.LabelStats getDefaultInstanc
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public LabelStats parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new LabelStats(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public LabelStats parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new LabelStats(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -798,6 +825,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datalabeling.v1beta1.LabelStats getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStatsOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStatsOrBuilder.java
similarity index 69%
rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStatsOrBuilder.java
rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStatsOrBuilder.java
index c467ad56..f38d8102 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStatsOrBuilder.java
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelStatsOrBuilder.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/datalabeling/v1beta1/dataset.proto
 
 package com.google.cloud.datalabeling.v1beta1;
 
-public interface LabelStatsOrBuilder extends
+public interface LabelStatsOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelStats)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * Map of each annotation spec's example count. Key is the annotation spec
    * name and value is the number of examples for that annotation spec.
@@ -20,6 +38,8 @@ public interface LabelStatsOrBuilder extends
    */
   int getExampleCountCount();
   /**
+   *
+   *
    * 
    * Map of each annotation spec's example count. Key is the annotation spec
    * name and value is the number of examples for that annotation spec.
@@ -30,15 +50,13 @@ public interface LabelStatsOrBuilder extends
    *
    * map<string, int64> example_count = 1;
    */
-  boolean containsExampleCount(
-      java.lang.String key);
-  /**
-   * Use {@link #getExampleCountMap()} instead.
-   */
+  boolean containsExampleCount(java.lang.String key);
+  /** Use {@link #getExampleCountMap()} instead. */
   @java.lang.Deprecated
-  java.util.Map
-  getExampleCount();
+  java.util.Map getExampleCount();
   /**
+   *
+   *
    * 
    * Map of each annotation spec's example count. Key is the annotation spec
    * name and value is the number of examples for that annotation spec.
@@ -49,9 +67,10 @@ boolean containsExampleCount(
    *
    * map<string, int64> example_count = 1;
    */
-  java.util.Map
-  getExampleCountMap();
+  java.util.Map getExampleCountMap();
   /**
+   *
+   *
    * 
    * Map of each annotation spec's example count. Key is the annotation spec
    * name and value is the number of examples for that annotation spec.
@@ -62,11 +81,10 @@ boolean containsExampleCount(
    *
    * map<string, int64> example_count = 1;
    */
-
-  long getExampleCountOrDefault(
-      java.lang.String key,
-      long defaultValue);
+  long getExampleCountOrDefault(java.lang.String key, long defaultValue);
   /**
+   *
+   *
    * 
    * Map of each annotation spec's example count. Key is the annotation spec
    * name and value is the number of examples for that annotation spec.
@@ -77,7 +95,5 @@ long getExampleCountOrDefault(
    *
    * map<string, int64> example_count = 1;
    */
-
-  long getExampleCountOrThrow(
-      java.lang.String key);
+  long getExampleCountOrThrow(java.lang.String key);
 }
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadata.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadata.java
similarity index 57%
rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadata.java
rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadata.java
index 97558f44..81c8741e 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadata.java
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadata.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/datalabeling/v1beta1/operations.proto
 
 package com.google.cloud.datalabeling.v1beta1;
 
 /**
+ *
+ *
  * 
  * Details of a LabelTextClassification operation metadata.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata} */ -public final class LabelTextClassificationOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LabelTextClassificationOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) LabelTextClassificationOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LabelTextClassificationOperationMetadata.newBuilder() to construct. - private LabelTextClassificationOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelTextClassificationOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LabelTextClassificationOperationMetadata() { - } + + private LabelTextClassificationOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LabelTextClassificationOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LabelTextClassificationOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +70,30 @@ private LabelTextClassificationOperationMetadata( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); + case 10: + { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); + } + basicConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; } - basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = 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) { @@ -79,34 +101,40 @@ private LabelTextClassificationOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder + .class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -114,18 +142,25 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
@@ -133,11 +168,13 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +186,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -164,8 +200,7 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +210,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.datalabeling.v1beta1.LabelTextClassificationOperationMetadata)) { + if (!(obj + instanceof + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata other = + (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig() - .equals(other.getBasicConfig())) return false; + if (!getBasicConfig().equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -207,135 +244,153 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + 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.datalabeling.v1beta1.LabelTextClassificationOperationMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata 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.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + 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.datalabeling.v1beta1.LabelTextClassificationOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata 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.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + 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.datalabeling.v1beta1.LabelTextClassificationOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata 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.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + 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.datalabeling.v1beta1.LabelTextClassificationOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 a LabelTextClassification operation metadata.
    * 
* - * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata} + * Protobuf type {@code + * google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.Builder + .class); } - // Construct using com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.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(); @@ -349,19 +404,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata build() { - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata result = buildPartial(); + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -369,8 +427,10 @@ public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMet } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata(this); + public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + buildPartial() { + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata result = + new com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata(this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -384,46 +444,53 @@ public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMet public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata)other); + if (other + instanceof + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) { + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata other) { - if (other == com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata other) { + if (other + == com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + .getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -442,11 +509,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata parsedMessage = null; + com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,41 +528,55 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + basicConfigBuilder_; /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -506,6 +590,8 @@ public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotat return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -524,17 +610,22 @@ public Builder setBasicConfig( return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) + .mergeFrom(value) + .buildPartial(); } else { basicConfig_ = value; } @@ -546,6 +637,8 @@ public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnot return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -564,33 +657,42 @@ public Builder clearBasicConfig() { return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder + getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null ? - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -598,21 +700,24 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getB * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), - getParentForChildren(), - isClean()); + basicConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), getParentForChildren(), isClean()); basicConfig_ = null; } return basicConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,30 +727,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1 + .LabelTextClassificationOperationMetadata + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata(); + DEFAULT_INSTANCE = + new com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelTextClassificationOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelTextClassificationOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelTextClassificationOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelTextClassificationOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,9 +766,8 @@ public com.google.protobuf.Parser getP } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadataOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadataOrBuilder.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadataOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadataOrBuilder.java index 93483028..60c58f28 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadataOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextClassificationOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelTextClassificationOperationMetadataOrBuilder extends +public interface LabelTextClassificationOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelTextClassificationOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadata.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadata.java similarity index 56% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadata.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadata.java index 18f42062..4d867f27 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadata.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadata.java @@ -1,39 +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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Details of a LabelTextEntityExtraction operation metadata.
  * 
* - * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata} + * Protobuf type {@code + * google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata} */ -public final class LabelTextEntityExtractionOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LabelTextEntityExtractionOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) LabelTextEntityExtractionOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LabelTextEntityExtractionOperationMetadata.newBuilder() to construct. - private LabelTextEntityExtractionOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelTextEntityExtractionOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LabelTextEntityExtractionOperationMetadata() { - } + + private LabelTextEntityExtractionOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LabelTextEntityExtractionOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LabelTextEntityExtractionOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +71,30 @@ private LabelTextEntityExtractionOperationMetadata( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); + case 10: + { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); + } + basicConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; } - basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = 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) { @@ -79,34 +102,40 @@ private LabelTextEntityExtractionOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.Builder + .class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -114,18 +143,25 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
@@ -133,11 +169,13 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +187,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -164,8 +201,7 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +211,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.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata)) { + if (!(obj + instanceof + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata other = + (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig() - .equals(other.getBasicConfig())) return false; + if (!getBasicConfig().equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -207,135 +245,154 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + 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.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata 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.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + 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.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata 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.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + 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.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata 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.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + 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.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 a LabelTextEntityExtraction operation metadata.
    * 
* - * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata} + * Protobuf type {@code + * google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + .class, + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + .Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.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(); @@ -349,19 +406,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata build() { - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata result = buildPartial(); + public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + build() { + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -369,8 +430,11 @@ public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationM } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata(this); + public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + buildPartial() { + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata result = + new com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata( + this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -384,46 +448,54 @@ public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationM public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata)other); + if (other + instanceof + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) { + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata other) { - if (other == com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata other) { + if (other + == com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + .getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -442,11 +514,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata parsedMessage = null; + com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,41 +533,55 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + basicConfigBuilder_; /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -506,6 +595,8 @@ public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotat return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -524,17 +615,22 @@ public Builder setBasicConfig( return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) + .mergeFrom(value) + .buildPartial(); } else { basicConfig_ = value; } @@ -546,6 +642,8 @@ public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnot return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -564,33 +662,42 @@ public Builder clearBasicConfig() { return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder + getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null ? - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -598,21 +705,24 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getB * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), - getParentForChildren(), - isClean()); + basicConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), getParentForChildren(), isClean()); basicConfig_ = null; } return basicConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,30 +732,35 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1 + .LabelTextEntityExtractionOperationMetadata + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata(); + DEFAULT_INSTANCE = + new com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelTextEntityExtractionOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelTextEntityExtractionOperationMetadata(input, extensionRegistry); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelTextEntityExtractionOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelTextEntityExtractionOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,9 +772,8 @@ public com.google.protobuf.Parser ge } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadataOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadataOrBuilder.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadataOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadataOrBuilder.java index d57679ee..b0693be0 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadataOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextEntityExtractionOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelTextEntityExtractionOperationMetadataOrBuilder extends +public interface LabelTextEntityExtractionOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelTextEntityExtractionOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequest.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequest.java index d21e4949..ddbae9d5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for LabelText.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelTextRequest} */ -public final class LabelTextRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LabelTextRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelTextRequest) LabelTextRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LabelTextRequest.newBuilder() to construct. private LabelTextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LabelTextRequest() { parent_ = ""; feature_ = 0; @@ -26,16 +44,15 @@ private LabelTextRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LabelTextRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LabelTextRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,66 +71,90 @@ private LabelTextRequest( 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.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); - } - basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = subBuilder.buildPartial(); - } - - break; - } - case 34: { - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder subBuilder = null; - if (requestConfigCase_ == 4) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_).toBuilder(); + parent_ = s; + break; } - requestConfig_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_); - requestConfig_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); + } + basicConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; } - requestConfigCase_ = 4; - break; - } - case 42: { - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder subBuilder = null; - if (requestConfigCase_ == 5) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_).toBuilder(); + case 34: + { + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder subBuilder = + null; + if (requestConfigCase_ == 4) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) + requestConfig_) + .toBuilder(); + } + requestConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) + requestConfig_); + requestConfig_ = subBuilder.buildPartial(); + } + requestConfigCase_ = 4; + break; } - requestConfig_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_); - requestConfig_ = subBuilder.buildPartial(); + case 42: + { + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder subBuilder = + null; + if (requestConfigCase_ == 5) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) + requestConfig_) + .toBuilder(); + } + requestConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) + requestConfig_); + requestConfig_ = subBuilder.buildPartial(); + } + requestConfigCase_ = 5; + break; } - requestConfigCase_ = 5; - break; - } - case 48: { - int rawValue = input.readEnum(); + case 48: + { + int rawValue = input.readEnum(); - feature_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + feature_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -121,40 +162,43 @@ private LabelTextRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelTextRequest.class, com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelTextRequest.class, + com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Builder.class); } /** + * + * *
    * Text labeling task feature.
    * 
* * Protobuf enum {@code google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature} */ - public enum Feature - implements com.google.protobuf.ProtocolMessageEnum { - /** - * FEATURE_UNSPECIFIED = 0; - */ + public enum Feature implements com.google.protobuf.ProtocolMessageEnum { + /** FEATURE_UNSPECIFIED = 0; */ FEATURE_UNSPECIFIED(0), /** + * + * *
      * Label text content to one of more labels.
      * 
@@ -163,6 +207,8 @@ public enum Feature */ TEXT_CLASSIFICATION(1), /** + * + * *
      * Label entities and their span in text.
      * 
@@ -173,11 +219,11 @@ public enum Feature UNRECOGNIZED(-1), ; - /** - * FEATURE_UNSPECIFIED = 0; - */ + /** FEATURE_UNSPECIFIED = 0; */ public static final int FEATURE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Label text content to one of more labels.
      * 
@@ -186,6 +232,8 @@ public enum Feature */ public static final int TEXT_CLASSIFICATION_VALUE = 1; /** + * + * *
      * Label entities and their span in text.
      * 
@@ -194,7 +242,6 @@ public enum Feature */ public static final int TEXT_ENTITY_EXTRACTION_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -219,49 +266,51 @@ public static Feature valueOf(int value) { */ public static Feature forNumber(int value) { switch (value) { - case 0: return FEATURE_UNSPECIFIED; - case 1: return TEXT_CLASSIFICATION; - case 2: return TEXT_ENTITY_EXTRACTION; - default: return null; + case 0: + return FEATURE_UNSPECIFIED; + case 1: + return TEXT_CLASSIFICATION; + case 2: + return TEXT_ENTITY_EXTRACTION; + 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< - Feature> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Feature findValueByNumber(int number) { - return Feature.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 Feature findValueByNumber(int number) { + return Feature.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.datalabeling.v1beta1.LabelTextRequest.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.LabelTextRequest.getDescriptor() + .getEnumTypes() + .get(0); } private static final Feature[] VALUES = values(); - public static Feature valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Feature 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; @@ -280,13 +329,16 @@ private Feature(int value) { private int requestConfigCase_ = 0; private java.lang.Object requestConfig_; + public enum RequestConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TEXT_CLASSIFICATION_CONFIG(4), TEXT_ENTITY_EXTRACTION_CONFIG(5), REQUESTCONFIG_NOT_SET(0); private final int value; + private RequestConfigCase(int value) { this.value = value; } @@ -302,32 +354,40 @@ public static RequestConfigCase valueOf(int value) { public static RequestConfigCase forNumber(int value) { switch (value) { - case 4: return TEXT_CLASSIFICATION_CONFIG; - case 5: return TEXT_ENTITY_EXTRACTION_CONFIG; - case 0: return REQUESTCONFIG_NOT_SET; - default: return null; + case 4: + return TEXT_CLASSIFICATION_CONFIG; + case 5: + return TEXT_ENTITY_EXTRACTION_CONFIG; + case 0: + return REQUESTCONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public RequestConfigCase - getRequestConfigCase() { - return RequestConfigCase.forNumber( - requestConfigCase_); + public RequestConfigCase getRequestConfigCase() { + return RequestConfigCase.forNumber(requestConfigCase_); } public static final int TEXT_CLASSIFICATION_CONFIG_FIELD_NUMBER = 4; /** + * + * *
    * Configuration for text classification task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * + * * @return Whether the textClassificationConfig field is set. */ @java.lang.Override @@ -335,48 +395,64 @@ public boolean hasTextClassificationConfig() { return requestConfigCase_ == 4; } /** + * + * *
    * Configuration for text classification task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * + * * @return The textClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig + getTextClassificationConfig() { if (requestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } /** + * + * *
    * Configuration for text classification task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder getTextClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder + getTextClassificationConfigOrBuilder() { if (requestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } public static final int TEXT_ENTITY_EXTRACTION_CONFIG_FIELD_NUMBER = 5; /** + * + * *
    * Configuration for entity extraction task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * + * * @return Whether the textEntityExtractionConfig field is set. */ @java.lang.Override @@ -384,35 +460,46 @@ public boolean hasTextEntityExtractionConfig() { return requestConfigCase_ == 5; } /** + * + * *
    * Configuration for entity extraction task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * + * * @return The textEntityExtractionConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig getTextEntityExtractionConfig() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig + getTextEntityExtractionConfig() { if (requestConfigCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); } /** + * + * *
    * Configuration for entity extraction task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder getTextEntityExtractionConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder + getTextEntityExtractionConfigOrBuilder() { if (requestConfigCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); } @@ -420,12 +507,17 @@ public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Name of the data set to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * 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 @@ -434,30 +526,32 @@ 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. Name of the data set to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * 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 { @@ -468,11 +562,16 @@ public java.lang.String getParent() { public static final int BASIC_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** + * + * *
    * Required. Basic human annotation config.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -480,57 +579,85 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** + * + * *
    * Required. Basic human annotation config.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } /** + * + * *
    * Required. Basic human annotation config.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { return getBasicConfig(); } public static final int FEATURE_FIELD_NUMBER = 6; private int feature_; /** + * + * *
    * Required. The type of text labeling task.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for feature. */ - @java.lang.Override public int getFeatureValue() { + @java.lang.Override + public int getFeatureValue() { return feature_; } /** + * + * *
    * Required. The type of text labeling task.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The feature. */ - @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature getFeature() { + @java.lang.Override + public com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature getFeature() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature result = com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.valueOf(feature_); - return result == null ? com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.UNRECOGNIZED : result; + com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature result = + com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.valueOf(feature_); + return result == null + ? com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -542,8 +669,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_); } @@ -551,12 +677,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(2, getBasicConfig()); } if (requestConfigCase_ == 4) { - output.writeMessage(4, (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_); + output.writeMessage( + 4, (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_); } if (requestConfigCase_ == 5) { - output.writeMessage(5, (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_); + output.writeMessage( + 5, (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_); } - if (feature_ != com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.FEATURE_UNSPECIFIED.getNumber()) { + if (feature_ + != com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.FEATURE_UNSPECIFIED + .getNumber()) { output.writeEnum(6, feature_); } unknownFields.writeTo(output); @@ -572,20 +702,22 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBasicConfig()); } if (requestConfigCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_); } if (requestConfigCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_); } - if (feature_ != com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.FEATURE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, feature_); + if (feature_ + != com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.FEATURE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, feature_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -595,30 +727,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.datalabeling.v1beta1.LabelTextRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelTextRequest other = (com.google.cloud.datalabeling.v1beta1.LabelTextRequest) obj; + com.google.cloud.datalabeling.v1beta1.LabelTextRequest other = + (com.google.cloud.datalabeling.v1beta1.LabelTextRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig() - .equals(other.getBasicConfig())) return false; + if (!getBasicConfig().equals(other.getBasicConfig())) return false; } if (feature_ != other.feature_) return false; if (!getRequestConfigCase().equals(other.getRequestConfigCase())) return false; switch (requestConfigCase_) { case 4: - if (!getTextClassificationConfig() - .equals(other.getTextClassificationConfig())) return false; + if (!getTextClassificationConfig().equals(other.getTextClassificationConfig())) + return false; break; case 5: - if (!getTextEntityExtractionConfig() - .equals(other.getTextEntityExtractionConfig())) return false; + if (!getTextEntityExtractionConfig().equals(other.getTextEntityExtractionConfig())) + return false; break; case 0: default: @@ -660,117 +791,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest 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.datalabeling.v1beta1.LabelTextRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelTextRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.LabelTextRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 LabelText.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelTextRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelTextRequest) com.google.cloud.datalabeling.v1beta1.LabelTextRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelTextRequest.class, com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelTextRequest.class, + com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.LabelTextRequest.newBuilder() @@ -778,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(); @@ -807,9 +947,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_LabelTextRequest_descriptor; } @java.lang.Override @@ -828,7 +968,8 @@ public com.google.cloud.datalabeling.v1beta1.LabelTextRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelTextRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelTextRequest result = new com.google.cloud.datalabeling.v1beta1.LabelTextRequest(this); + com.google.cloud.datalabeling.v1beta1.LabelTextRequest result = + new com.google.cloud.datalabeling.v1beta1.LabelTextRequest(this); if (requestConfigCase_ == 4) { if (textClassificationConfigBuilder_ == null) { result.requestConfig_ = requestConfig_; @@ -859,38 +1000,39 @@ public com.google.cloud.datalabeling.v1beta1.LabelTextRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelTextRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelTextRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelTextRequest) other); } else { super.mergeFrom(other); return this; @@ -898,7 +1040,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelTextRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.LabelTextRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.LabelTextRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -910,17 +1053,20 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelTextRequest setFeatureValue(other.getFeatureValue()); } switch (other.getRequestConfigCase()) { - case TEXT_CLASSIFICATION_CONFIG: { - mergeTextClassificationConfig(other.getTextClassificationConfig()); - break; - } - case TEXT_ENTITY_EXTRACTION_CONFIG: { - mergeTextEntityExtractionConfig(other.getTextEntityExtractionConfig()); - break; - } - case REQUESTCONFIG_NOT_SET: { - break; - } + case TEXT_CLASSIFICATION_CONFIG: + { + mergeTextClassificationConfig(other.getTextClassificationConfig()); + break; + } + case TEXT_ENTITY_EXTRACTION_CONFIG: + { + mergeTextEntityExtractionConfig(other.getTextEntityExtractionConfig()); + break; + } + case REQUESTCONFIG_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -941,7 +1087,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelTextRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.LabelTextRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -950,12 +1097,12 @@ public Builder mergeFrom( } return this; } + private int requestConfigCase_ = 0; private java.lang.Object requestConfig_; - public RequestConfigCase - getRequestConfigCase() { - return RequestConfigCase.forNumber( - requestConfigCase_); + + public RequestConfigCase getRequestConfigCase() { + return RequestConfigCase.forNumber(requestConfigCase_); } public Builder clearRequestConfig() { @@ -965,17 +1112,24 @@ public Builder clearRequestConfig() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder> textClassificationConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder> + textClassificationConfigBuilder_; /** + * + * *
      * Configuration for text classification task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * + * * @return Whether the textClassificationConfig field is set. */ @java.lang.Override @@ -983,17 +1137,23 @@ public boolean hasTextClassificationConfig() { return requestConfigCase_ == 4; } /** + * + * *
      * Configuration for text classification task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * + * * @return The textClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig + getTextClassificationConfig() { if (textClassificationConfigBuilder_ == null) { if (requestConfigCase_ == 4) { return (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_; @@ -1007,15 +1167,20 @@ public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextCla } } /** + * + * *
      * Configuration for text classification task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * */ - public Builder setTextClassificationConfig(com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { + public Builder setTextClassificationConfig( + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { if (textClassificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1029,13 +1194,17 @@ public Builder setTextClassificationConfig(com.google.cloud.datalabeling.v1beta1 return this; } /** + * + * *
      * Configuration for text classification task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * */ public Builder setTextClassificationConfig( com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder builderForValue) { @@ -1049,20 +1218,31 @@ public Builder setTextClassificationConfig( return this; } /** + * + * *
      * Configuration for text classification task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * */ - public Builder mergeTextClassificationConfig(com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { + public Builder mergeTextClassificationConfig( + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig value) { if (textClassificationConfigBuilder_ == null) { - if (requestConfigCase_ == 4 && - requestConfig_ != com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance()) { - requestConfig_ = com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_) - .mergeFrom(value).buildPartial(); + if (requestConfigCase_ == 4 + && requestConfig_ + != com.google.cloud.datalabeling.v1beta1.TextClassificationConfig + .getDefaultInstance()) { + requestConfig_ = + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.newBuilder( + (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) + requestConfig_) + .mergeFrom(value) + .buildPartial(); } else { requestConfig_ = value; } @@ -1078,13 +1258,17 @@ public Builder mergeTextClassificationConfig(com.google.cloud.datalabeling.v1bet return this; } /** + * + * *
      * Configuration for text classification task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * */ public Builder clearTextClassificationConfig() { if (textClassificationConfigBuilder_ == null) { @@ -1103,28 +1287,38 @@ public Builder clearTextClassificationConfig() { return this; } /** + * + * *
      * Configuration for text classification task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * */ - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder getTextClassificationConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder + getTextClassificationConfigBuilder() { return getTextClassificationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Configuration for text classification task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder getTextClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder + getTextClassificationConfigOrBuilder() { if ((requestConfigCase_ == 4) && (textClassificationConfigBuilder_ != null)) { return textClassificationConfigBuilder_.getMessageOrBuilder(); } else { @@ -1135,43 +1329,62 @@ public com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder g } } /** + * + * *
      * Configuration for text classification task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder> getTextClassificationConfigFieldBuilder() { if (textClassificationConfigBuilder_ == null) { if (!(requestConfigCase_ == 4)) { - requestConfig_ = com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); + requestConfig_ = + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } - textClassificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder>( + textClassificationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig, + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder>( (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) requestConfig_, getParentForChildren(), isClean()); requestConfig_ = null; } requestConfigCase_ = 4; - onChanged();; + onChanged(); + ; return textClassificationConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder> textEntityExtractionConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder> + textEntityExtractionConfigBuilder_; /** + * + * *
      * Configuration for entity extraction task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * + * * @return Whether the textEntityExtractionConfig field is set. */ @java.lang.Override @@ -1179,39 +1392,52 @@ public boolean hasTextEntityExtractionConfig() { return requestConfigCase_ == 5; } /** + * + * *
      * Configuration for entity extraction task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * + * * @return The textEntityExtractionConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig getTextEntityExtractionConfig() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig + getTextEntityExtractionConfig() { if (textEntityExtractionConfigBuilder_ == null) { if (requestConfigCase_ == 5) { return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_; } - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig + .getDefaultInstance(); } else { if (requestConfigCase_ == 5) { return textEntityExtractionConfigBuilder_.getMessage(); } - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig + .getDefaultInstance(); } } /** + * + * *
      * Configuration for entity extraction task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * */ - public Builder setTextEntityExtractionConfig(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig value) { + public Builder setTextEntityExtractionConfig( + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig value) { if (textEntityExtractionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1225,13 +1451,17 @@ public Builder setTextEntityExtractionConfig(com.google.cloud.datalabeling.v1bet return this; } /** + * + * *
      * Configuration for entity extraction task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * */ public Builder setTextEntityExtractionConfig( com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder builderForValue) { @@ -1245,20 +1475,31 @@ public Builder setTextEntityExtractionConfig( return this; } /** + * + * *
      * Configuration for entity extraction task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * */ - public Builder mergeTextEntityExtractionConfig(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig value) { + public Builder mergeTextEntityExtractionConfig( + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig value) { if (textEntityExtractionConfigBuilder_ == null) { - if (requestConfigCase_ == 5 && - requestConfig_ != com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance()) { - requestConfig_ = com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_) - .mergeFrom(value).buildPartial(); + if (requestConfigCase_ == 5 + && requestConfig_ + != com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig + .getDefaultInstance()) { + requestConfig_ = + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.newBuilder( + (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) + requestConfig_) + .mergeFrom(value) + .buildPartial(); } else { requestConfig_ = value; } @@ -1274,13 +1515,17 @@ public Builder mergeTextEntityExtractionConfig(com.google.cloud.datalabeling.v1b return this; } /** + * + * *
      * Configuration for entity extraction task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * */ public Builder clearTextEntityExtractionConfig() { if (textEntityExtractionConfigBuilder_ == null) { @@ -1299,80 +1544,106 @@ public Builder clearTextEntityExtractionConfig() { return this; } /** + * + * *
      * Configuration for entity extraction task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * */ - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder getTextEntityExtractionConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder + getTextEntityExtractionConfigBuilder() { return getTextEntityExtractionConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Configuration for entity extraction task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder getTextEntityExtractionConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder + getTextEntityExtractionConfigOrBuilder() { if ((requestConfigCase_ == 5) && (textEntityExtractionConfigBuilder_ != null)) { return textEntityExtractionConfigBuilder_.getMessageOrBuilder(); } else { if (requestConfigCase_ == 5) { return (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_; } - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig + .getDefaultInstance(); } } /** + * + * *
      * Configuration for entity extraction task.
      * One of text_classification_config and text_entity_extraction_config
      * is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder> getTextEntityExtractionConfigFieldBuilder() { if (textEntityExtractionConfigBuilder_ == null) { if (!(requestConfigCase_ == 5)) { - requestConfig_ = com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); + requestConfig_ = + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); } - textEntityExtractionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder>( + textEntityExtractionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig, + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder, + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder>( (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) requestConfig_, getParentForChildren(), isClean()); requestConfig_ = null; } requestConfigCase_ = 5; - onChanged();; + onChanged(); + ; return textEntityExtractionConfigBuilder_; } private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of the data set to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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; @@ -1381,21 +1652,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the data set to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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 { @@ -1403,57 +1677,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the data set to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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. Name of the data set to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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. Name of the data set to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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; @@ -1461,41 +1748,61 @@ public Builder setParentBytes( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + basicConfigBuilder_; /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1509,11 +1816,15 @@ public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotat return this; } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBasicConfig( com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder builderForValue) { @@ -1527,17 +1838,24 @@ public Builder setBasicConfig( return this; } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) + .mergeFrom(value) + .buildPartial(); } else { basicConfig_ = value; } @@ -1549,11 +1867,15 @@ public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnot return this; } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBasicConfig() { if (basicConfigBuilder_ == null) { @@ -1567,48 +1889,66 @@ public Builder clearBasicConfig() { return this; } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder + getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null ? - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), - getParentForChildren(), - isClean()); + basicConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), getParentForChildren(), isClean()); basicConfig_ = null; } return basicConfigBuilder_; @@ -1616,80 +1956,110 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getB private int feature_ = 0; /** + * + * *
      * Required. The type of text labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for feature. */ - @java.lang.Override public int getFeatureValue() { + @java.lang.Override + public int getFeatureValue() { return feature_; } /** + * + * *
      * Required. The type of text labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for feature to set. * @return This builder for chaining. */ public Builder setFeatureValue(int value) { - + feature_ = value; onChanged(); return this; } /** + * + * *
      * Required. The type of text labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The feature. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature getFeature() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature result = com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.valueOf(feature_); - return result == null ? com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.UNRECOGNIZED : result; + com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature result = + com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.valueOf(feature_); + return result == null + ? com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature.UNRECOGNIZED + : result; } /** + * + * *
      * Required. The type of text labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The feature to set. * @return This builder for chaining. */ - public Builder setFeature(com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature value) { + public Builder setFeature( + com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature value) { if (value == null) { throw new NullPointerException(); } - + feature_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. The type of text labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearFeature() { - + feature_ = 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); } @@ -1699,12 +2069,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelTextRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelTextRequest) private static final com.google.cloud.datalabeling.v1beta1.LabelTextRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelTextRequest(); } @@ -1713,16 +2083,16 @@ public static com.google.cloud.datalabeling.v1beta1.LabelTextRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelTextRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelTextRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelTextRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelTextRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1737,6 +2107,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.LabelTextRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequestOrBuilder.java similarity index 55% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequestOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequestOrBuilder.java index ae5fda79..846b0685 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequestOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelTextRequestOrBuilder.java @@ -1,145 +1,225 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelTextRequestOrBuilder extends +public interface LabelTextRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelTextRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Configuration for text classification task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * + * * @return Whether the textClassificationConfig field is set. */ boolean hasTextClassificationConfig(); /** + * + * *
    * Configuration for text classification task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * + * * @return The textClassificationConfig. */ com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getTextClassificationConfig(); /** + * + * *
    * Configuration for text classification task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 4; + * */ - com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder getTextClassificationConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder + getTextClassificationConfigOrBuilder(); /** + * + * *
    * Configuration for entity extraction task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * + * * @return Whether the textEntityExtractionConfig field is set. */ boolean hasTextEntityExtractionConfig(); /** + * + * *
    * Configuration for entity extraction task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * + * * @return The textEntityExtractionConfig. */ com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig getTextEntityExtractionConfig(); /** + * + * *
    * Configuration for entity extraction task.
    * One of text_classification_config and text_entity_extraction_config
    * is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * + * .google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 5; + * */ - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder getTextEntityExtractionConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder + getTextEntityExtractionConfigOrBuilder(); /** + * + * *
    * Required. Name of the data set to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * 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. Name of the data set to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * 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. Basic human annotation config.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** + * + * *
    * Required. Basic human annotation config.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** + * + * *
    * Required. Basic human annotation config.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder(); /** + * + * *
    * Required. The type of text labeling task.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for feature. */ int getFeatureValue(); /** + * + * *
    * Required. The type of text labeling task.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature feature = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The feature. */ com.google.cloud.datalabeling.v1beta1.LabelTextRequest.Feature getFeature(); - public com.google.cloud.datalabeling.v1beta1.LabelTextRequest.RequestConfigCase getRequestConfigCase(); + public com.google.cloud.datalabeling.v1beta1.LabelTextRequest.RequestConfigCase + getRequestConfigCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadata.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadata.java similarity index 57% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadata.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadata.java index 4cd94a5b..891817ec 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadata.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadata.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Details of a LabelVideoClassification operation metadata.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata} */ -public final class LabelVideoClassificationOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LabelVideoClassificationOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) LabelVideoClassificationOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LabelVideoClassificationOperationMetadata.newBuilder() to construct. - private LabelVideoClassificationOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelVideoClassificationOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LabelVideoClassificationOperationMetadata() { - } + + private LabelVideoClassificationOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LabelVideoClassificationOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LabelVideoClassificationOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +70,30 @@ private LabelVideoClassificationOperationMetadata( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); + case 10: + { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); + } + basicConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; } - basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = 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) { @@ -79,34 +101,40 @@ private LabelVideoClassificationOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder + .class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -114,18 +142,25 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
@@ -133,11 +168,13 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +186,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -164,8 +200,7 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +210,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.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata)) { + if (!(obj + instanceof + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata other = + (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig() - .equals(other.getBasicConfig())) return false; + if (!getBasicConfig().equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -207,135 +244,153 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + 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.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata 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.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + 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.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata 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.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + 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.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata 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.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + 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.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 a LabelVideoClassification operation metadata.
    * 
* - * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata} + * Protobuf type {@code + * google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + .Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.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(); @@ -349,19 +404,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata build() { - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata result = buildPartial(); + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -369,8 +427,10 @@ public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMe } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata(this); + public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + buildPartial() { + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata result = + new com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata(this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -384,46 +444,54 @@ public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata)other); + if (other + instanceof + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) { + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata other) { - if (other == com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata other) { + if (other + == com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + .getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -442,11 +510,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata parsedMessage = null; + com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,41 +529,55 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + basicConfigBuilder_; /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -506,6 +591,8 @@ public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotat return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -524,17 +611,22 @@ public Builder setBasicConfig( return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) + .mergeFrom(value) + .buildPartial(); } else { basicConfig_ = value; } @@ -546,6 +638,8 @@ public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnot return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -564,33 +658,42 @@ public Builder clearBasicConfig() { return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder + getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null ? - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -598,21 +701,24 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getB * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), - getParentForChildren(), - isClean()); + basicConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), getParentForChildren(), isClean()); basicConfig_ = null; } return basicConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,30 +728,35 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1 + .LabelVideoClassificationOperationMetadata + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata(); + DEFAULT_INSTANCE = + new com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelVideoClassificationOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelVideoClassificationOperationMetadata(input, extensionRegistry); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelVideoClassificationOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelVideoClassificationOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,9 +768,8 @@ public com.google.protobuf.Parser get } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadataOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadataOrBuilder.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadataOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadataOrBuilder.java index 8b733d1e..8f5e3636 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadataOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoClassificationOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelVideoClassificationOperationMetadataOrBuilder extends +public interface LabelVideoClassificationOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelVideoClassificationOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadata.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadata.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadata.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadata.java index 60b2f90e..38b17aba 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadata.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadata.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Details of a LabelVideoEvent operation metadata.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata} */ -public final class LabelVideoEventOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LabelVideoEventOperationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) LabelVideoEventOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LabelVideoEventOperationMetadata.newBuilder() to construct. - private LabelVideoEventOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelVideoEventOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LabelVideoEventOperationMetadata() { - } + + private LabelVideoEventOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LabelVideoEventOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LabelVideoEventOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +69,30 @@ private LabelVideoEventOperationMetadata( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); + case 10: + { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); + } + basicConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; } - basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = 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) { @@ -79,34 +100,39 @@ private LabelVideoEventOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder.class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -114,18 +140,25 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
@@ -133,11 +166,13 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +184,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -164,8 +198,7 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +208,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.datalabeling.v1beta1.LabelVideoEventOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata other = + (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig() - .equals(other.getBasicConfig())) return false; + if (!getBasicConfig().equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -208,134 +241,145 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata 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.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata 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.datalabeling.v1beta1.LabelVideoEventOperationMetadata + 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.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 a LabelVideoEvent operation metadata.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.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(); @@ -349,19 +393,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata build() { - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata result = buildPartial(); + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -370,7 +417,8 @@ public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata bu @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata(this); + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata result = + new com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata(this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -384,46 +432,51 @@ public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata 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.datalabeling.v1beta1.LabelVideoEventOperationMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata)other); + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata other) { - if (other == com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata other) { + if (other + == com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata + .getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -446,7 +499,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,41 +513,55 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + basicConfigBuilder_; /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -506,6 +575,8 @@ public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotat return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -524,17 +595,22 @@ public Builder setBasicConfig( return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) + .mergeFrom(value) + .buildPartial(); } else { basicConfig_ = value; } @@ -546,6 +622,8 @@ public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnot return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -564,33 +642,42 @@ public Builder clearBasicConfig() { return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder + getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null ? - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -598,21 +685,24 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getB * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), - getParentForChildren(), - isClean()); + basicConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), getParentForChildren(), isClean()); basicConfig_ = null; } return basicConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,30 +712,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelVideoEventOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelVideoEventOperationMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelVideoEventOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelVideoEventOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,9 +749,8 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadataOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadataOrBuilder.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadataOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadataOrBuilder.java index d77de170..82b4e79c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadataOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoEventOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelVideoEventOperationMetadataOrBuilder extends +public interface LabelVideoEventOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelVideoEventOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadata.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadata.java similarity index 56% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadata.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadata.java index 1b6fe4ab..ac3b19aa 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadata.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadata.java @@ -1,39 +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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Details of a LabelVideoObjectDetection operation metadata.
  * 
* - * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata} + * Protobuf type {@code + * google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata} */ -public final class LabelVideoObjectDetectionOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LabelVideoObjectDetectionOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) LabelVideoObjectDetectionOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LabelVideoObjectDetectionOperationMetadata.newBuilder() to construct. - private LabelVideoObjectDetectionOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelVideoObjectDetectionOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LabelVideoObjectDetectionOperationMetadata() { - } + + private LabelVideoObjectDetectionOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LabelVideoObjectDetectionOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LabelVideoObjectDetectionOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +71,30 @@ private LabelVideoObjectDetectionOperationMetadata( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); + case 10: + { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); + } + basicConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; } - basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = 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) { @@ -79,34 +102,40 @@ private LabelVideoObjectDetectionOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.Builder + .class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -114,18 +143,25 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
@@ -133,11 +169,13 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +187,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -164,8 +201,7 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +211,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.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata)) { + if (!(obj + instanceof + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata other = + (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig() - .equals(other.getBasicConfig())) return false; + if (!getBasicConfig().equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -207,135 +245,154 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + 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.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata 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.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + 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.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata 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.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + 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.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata 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.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + 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.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 a LabelVideoObjectDetection operation metadata.
    * 
* - * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata} + * Protobuf type {@code + * google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + .class, + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + .Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.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(); @@ -349,19 +406,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata build() { - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata result = buildPartial(); + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + build() { + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -369,8 +430,11 @@ public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationM } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata(this); + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + buildPartial() { + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata result = + new com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata( + this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -384,46 +448,54 @@ public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationM public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata)other); + if (other + instanceof + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) { + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata other) { - if (other == com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata other) { + if (other + == com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + .getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -442,11 +514,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata parsedMessage = null; + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,41 +533,55 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + basicConfigBuilder_; /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -506,6 +595,8 @@ public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotat return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -524,17 +615,22 @@ public Builder setBasicConfig( return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) + .mergeFrom(value) + .buildPartial(); } else { basicConfig_ = value; } @@ -546,6 +642,8 @@ public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnot return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -564,33 +662,42 @@ public Builder clearBasicConfig() { return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder + getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null ? - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -598,21 +705,24 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getB * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), - getParentForChildren(), - isClean()); + basicConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), getParentForChildren(), isClean()); basicConfig_ = null; } return basicConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,30 +732,35 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1 + .LabelVideoObjectDetectionOperationMetadata + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata(); + DEFAULT_INSTANCE = + new com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelVideoObjectDetectionOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelVideoObjectDetectionOperationMetadata(input, extensionRegistry); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelVideoObjectDetectionOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelVideoObjectDetectionOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,9 +772,8 @@ public com.google.protobuf.Parser ge } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadataOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadataOrBuilder.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadataOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadataOrBuilder.java index 9aea6ebb..451fda92 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadataOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectDetectionOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelVideoObjectDetectionOperationMetadataOrBuilder extends +public interface LabelVideoObjectDetectionOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelVideoObjectDetectionOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadata.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadata.java similarity index 57% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadata.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadata.java index 68a2b518..b7c9b3e3 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadata.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadata.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Details of a LabelVideoObjectTracking operation metadata.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata} */ -public final class LabelVideoObjectTrackingOperationMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LabelVideoObjectTrackingOperationMetadata + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) LabelVideoObjectTrackingOperationMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LabelVideoObjectTrackingOperationMetadata.newBuilder() to construct. - private LabelVideoObjectTrackingOperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private LabelVideoObjectTrackingOperationMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private LabelVideoObjectTrackingOperationMetadata() { - } + + private LabelVideoObjectTrackingOperationMetadata() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LabelVideoObjectTrackingOperationMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LabelVideoObjectTrackingOperationMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +70,30 @@ private LabelVideoObjectTrackingOperationMetadata( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); + case 10: + { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); + } + basicConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; } - basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = 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) { @@ -79,34 +101,40 @@ private LabelVideoObjectTrackingOperationMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder + .class); } public static final int BASIC_CONFIG_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -114,18 +142,25 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
@@ -133,11 +168,13 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfi * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { return getBasicConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +186,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 (basicConfig_ != null) { output.writeMessage(1, getBasicConfig()); } @@ -164,8 +200,7 @@ public int getSerializedSize() { size = 0; if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBasicConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +210,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.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata)) { + if (!(obj + instanceof + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata other = (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) obj; + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata other = + (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) obj; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig() - .equals(other.getBasicConfig())) return false; + if (!getBasicConfig().equals(other.getBasicConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -207,135 +244,153 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + 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.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata 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.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + 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.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata 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.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + 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.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata 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.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + 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.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 a LabelVideoObjectTracking operation metadata.
    * 
* - * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata} + * Protobuf type {@code + * google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.class, com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.class, + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + .Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.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(); @@ -349,19 +404,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.Operations.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.Operations + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata build() { - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata result = buildPartial(); + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -369,8 +427,10 @@ public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMe } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata result = new com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata(this); + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + buildPartial() { + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata result = + new com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata(this); if (basicConfigBuilder_ == null) { result.basicConfig_ = basicConfig_; } else { @@ -384,46 +444,54 @@ public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMe public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata)other); + if (other + instanceof + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) { + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata other) { - if (other == com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata other) { + if (other + == com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + .getDefaultInstance()) return this; if (other.hasBasicConfig()) { mergeBasicConfig(other.getBasicConfig()); } @@ -442,11 +510,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata parsedMessage = null; + com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,41 +529,55 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + basicConfigBuilder_; /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -506,6 +591,8 @@ public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotat return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -524,17 +611,22 @@ public Builder setBasicConfig( return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) + .mergeFrom(value) + .buildPartial(); } else { basicConfig_ = value; } @@ -546,6 +638,8 @@ public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnot return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -564,33 +658,42 @@ public Builder clearBasicConfig() { return this; } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder + getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null ? - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } } /** + * + * *
      * Basic human annotation config used in labeling request.
      * 
@@ -598,21 +701,24 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getB * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), - getParentForChildren(), - isClean()); + basicConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), getParentForChildren(), isClean()); basicConfig_ = null; } return basicConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,30 +728,35 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) - private static final com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1 + .LabelVideoObjectTrackingOperationMetadata + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata(); + DEFAULT_INSTANCE = + new com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata(); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelVideoObjectTrackingOperationMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelVideoObjectTrackingOperationMetadata(input, extensionRegistry); - } - }; + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelVideoObjectTrackingOperationMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelVideoObjectTrackingOperationMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,9 +768,8 @@ public com.google.protobuf.Parser get } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadataOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadataOrBuilder.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadataOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadataOrBuilder.java index 4ddba2ed..ce5dc4ff 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadataOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoObjectTrackingOperationMetadataOrBuilder.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/datalabeling/v1beta1/operations.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelVideoObjectTrackingOperationMetadataOrBuilder extends +public interface LabelVideoObjectTrackingOperationMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelVideoObjectTrackingOperationMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
* * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 1; + * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** + * + * *
    * Basic human annotation config used in labeling request.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequest.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequest.java index e75dda83..ae840b1f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for LabelVideo.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelVideoRequest} */ -public final class LabelVideoRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class LabelVideoRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.LabelVideoRequest) LabelVideoRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use LabelVideoRequest.newBuilder() to construct. private LabelVideoRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private LabelVideoRequest() { parent_ = ""; feature_ = 0; @@ -26,16 +44,15 @@ private LabelVideoRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new LabelVideoRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private LabelVideoRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,94 +71,127 @@ private LabelVideoRequest( 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.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; - if (basicConfig_ != null) { - subBuilder = basicConfig_.toBuilder(); + parent_ = s; + break; } - basicConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(basicConfig_); - basicConfig_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder subBuilder = null; + if (basicConfig_ != null) { + subBuilder = basicConfig_.toBuilder(); + } + basicConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(basicConfig_); + basicConfig_ = subBuilder.buildPartial(); + } + + break; } + case 24: + { + int rawValue = input.readEnum(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - feature_ = rawValue; - break; - } - case 34: { - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder subBuilder = null; - if (requestConfigCase_ == 4) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_).toBuilder(); + feature_ = rawValue; + break; } - requestConfig_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_); - requestConfig_ = subBuilder.buildPartial(); + case 34: + { + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder subBuilder = + null; + if (requestConfigCase_ == 4) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) + requestConfig_) + .toBuilder(); + } + requestConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) + requestConfig_); + requestConfig_ = subBuilder.buildPartial(); + } + requestConfigCase_ = 4; + break; } - requestConfigCase_ = 4; - break; - } - case 42: { - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder subBuilder = null; - if (requestConfigCase_ == 5) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_).toBuilder(); + case 42: + { + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder subBuilder = null; + if (requestConfigCase_ == 5) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_) + .toBuilder(); + } + requestConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_); + requestConfig_ = subBuilder.buildPartial(); + } + requestConfigCase_ = 5; + break; } - requestConfig_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_); - requestConfig_ = subBuilder.buildPartial(); + case 50: + { + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder subBuilder = null; + if (requestConfigCase_ == 6) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_) + .toBuilder(); + } + requestConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_); + requestConfig_ = subBuilder.buildPartial(); + } + requestConfigCase_ = 6; + break; } - requestConfigCase_ = 5; - break; - } - case 50: { - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder subBuilder = null; - if (requestConfigCase_ == 6) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_).toBuilder(); - } - requestConfig_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_); - requestConfig_ = subBuilder.buildPartial(); + case 58: + { + com.google.cloud.datalabeling.v1beta1.EventConfig.Builder subBuilder = null; + if (requestConfigCase_ == 7) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_) + .toBuilder(); + } + requestConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.EventConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_); + requestConfig_ = subBuilder.buildPartial(); + } + requestConfigCase_ = 7; + break; } - requestConfigCase_ = 6; - break; - } - case 58: { - com.google.cloud.datalabeling.v1beta1.EventConfig.Builder subBuilder = null; - if (requestConfigCase_ == 7) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_).toBuilder(); + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - requestConfig_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.EventConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_); - requestConfig_ = subBuilder.buildPartial(); - } - requestConfigCase_ = 7; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -149,40 +199,43 @@ private LabelVideoRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.class, com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.class, + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Builder.class); } /** + * + * *
    * Video labeling task feature.
    * 
* * Protobuf enum {@code google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature} */ - public enum Feature - implements com.google.protobuf.ProtocolMessageEnum { - /** - * FEATURE_UNSPECIFIED = 0; - */ + public enum Feature implements com.google.protobuf.ProtocolMessageEnum { + /** FEATURE_UNSPECIFIED = 0; */ FEATURE_UNSPECIFIED(0), /** + * + * *
      * Label whole video or video segment with one or more labels.
      * 
@@ -191,6 +244,8 @@ public enum Feature */ CLASSIFICATION(1), /** + * + * *
      * Label objects with bounding box on image frames extracted from the video.
      * 
@@ -199,6 +254,8 @@ public enum Feature */ OBJECT_DETECTION(2), /** + * + * *
      * Label and track objects in video.
      * 
@@ -207,6 +264,8 @@ public enum Feature */ OBJECT_TRACKING(3), /** + * + * *
      * Label the range of video for the specified events.
      * 
@@ -217,11 +276,11 @@ public enum Feature UNRECOGNIZED(-1), ; - /** - * FEATURE_UNSPECIFIED = 0; - */ + /** FEATURE_UNSPECIFIED = 0; */ public static final int FEATURE_UNSPECIFIED_VALUE = 0; /** + * + * *
      * Label whole video or video segment with one or more labels.
      * 
@@ -230,6 +289,8 @@ public enum Feature */ public static final int CLASSIFICATION_VALUE = 1; /** + * + * *
      * Label objects with bounding box on image frames extracted from the video.
      * 
@@ -238,6 +299,8 @@ public enum Feature */ public static final int OBJECT_DETECTION_VALUE = 2; /** + * + * *
      * Label and track objects in video.
      * 
@@ -246,6 +309,8 @@ public enum Feature */ public static final int OBJECT_TRACKING_VALUE = 3; /** + * + * *
      * Label the range of video for the specified events.
      * 
@@ -254,7 +319,6 @@ public enum Feature */ public static final int EVENT_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -279,51 +343,55 @@ public static Feature valueOf(int value) { */ public static Feature forNumber(int value) { switch (value) { - case 0: return FEATURE_UNSPECIFIED; - case 1: return CLASSIFICATION; - case 2: return OBJECT_DETECTION; - case 3: return OBJECT_TRACKING; - case 4: return EVENT; - default: return null; + case 0: + return FEATURE_UNSPECIFIED; + case 1: + return CLASSIFICATION; + case 2: + return OBJECT_DETECTION; + case 3: + return OBJECT_TRACKING; + case 4: + return EVENT; + 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< - Feature> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Feature findValueByNumber(int number) { - return Feature.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 Feature findValueByNumber(int number) { + return Feature.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.datalabeling.v1beta1.LabelVideoRequest.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.getDescriptor() + .getEnumTypes() + .get(0); } private static final Feature[] VALUES = values(); - public static Feature valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Feature 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; @@ -342,8 +410,10 @@ private Feature(int value) { private int requestConfigCase_ = 0; private java.lang.Object requestConfig_; + public enum RequestConfigCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VIDEO_CLASSIFICATION_CONFIG(4), OBJECT_DETECTION_CONFIG(5), @@ -351,6 +421,7 @@ public enum RequestConfigCase EVENT_CONFIG(7), REQUESTCONFIG_NOT_SET(0); private final int value; + private RequestConfigCase(int value) { this.value = value; } @@ -366,34 +437,44 @@ public static RequestConfigCase valueOf(int value) { public static RequestConfigCase forNumber(int value) { switch (value) { - case 4: return VIDEO_CLASSIFICATION_CONFIG; - case 5: return OBJECT_DETECTION_CONFIG; - case 6: return OBJECT_TRACKING_CONFIG; - case 7: return EVENT_CONFIG; - case 0: return REQUESTCONFIG_NOT_SET; - default: return null; + case 4: + return VIDEO_CLASSIFICATION_CONFIG; + case 5: + return OBJECT_DETECTION_CONFIG; + case 6: + return OBJECT_TRACKING_CONFIG; + case 7: + return EVENT_CONFIG; + case 0: + return REQUESTCONFIG_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public RequestConfigCase - getRequestConfigCase() { - return RequestConfigCase.forNumber( - requestConfigCase_); + public RequestConfigCase getRequestConfigCase() { + return RequestConfigCase.forNumber(requestConfigCase_); } public static final int VIDEO_CLASSIFICATION_CONFIG_FIELD_NUMBER = 4; /** + * + * *
    * Configuration for video classification task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * + * * @return Whether the videoClassificationConfig field is set. */ @java.lang.Override @@ -401,48 +482,63 @@ public boolean hasVideoClassificationConfig() { return requestConfigCase_ == 4; } /** + * + * *
    * Configuration for video classification task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * + * * @return The videoClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig getVideoClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + getVideoClassificationConfig() { if (requestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); } /** + * + * *
    * Configuration for video classification task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder getVideoClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder + getVideoClassificationConfigOrBuilder() { if (requestConfigCase_ == 4) { - return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); } public static final int OBJECT_DETECTION_CONFIG_FIELD_NUMBER = 5; /** + * + * *
    * Configuration for video object detection task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * + * * @return Whether the objectDetectionConfig field is set. */ @java.lang.Override @@ -450,48 +546,60 @@ public boolean hasObjectDetectionConfig() { return requestConfigCase_ == 5; } /** + * + * *
    * Configuration for video object detection task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * + * * @return The objectDetectionConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig getObjectDetectionConfig() { if (requestConfigCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); } /** + * + * *
    * Configuration for video object detection task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder getObjectDetectionConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder + getObjectDetectionConfigOrBuilder() { if (requestConfigCase_ == 5) { - return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); } public static final int OBJECT_TRACKING_CONFIG_FIELD_NUMBER = 6; /** + * + * *
    * Configuration for video object tracking task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * + * * @return Whether the objectTrackingConfig field is set. */ @java.lang.Override @@ -499,41 +607,51 @@ public boolean hasObjectTrackingConfig() { return requestConfigCase_ == 6; } /** + * + * *
    * Configuration for video object tracking task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * + * * @return The objectTrackingConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig getObjectTrackingConfig() { if (requestConfigCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); } /** + * + * *
    * Configuration for video object tracking task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder getObjectTrackingConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder + getObjectTrackingConfigOrBuilder() { if (requestConfigCase_ == 6) { - return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); } public static final int EVENT_CONFIG_FIELD_NUMBER = 7; /** + * + * *
    * Configuration for video event task.
    * One of video_classification_config, object_detection_config,
@@ -541,6 +659,7 @@ public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder getOb
    * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 7; + * * @return Whether the eventConfig field is set. */ @java.lang.Override @@ -548,6 +667,8 @@ public boolean hasEventConfig() { return requestConfigCase_ == 7; } /** + * + * *
    * Configuration for video event task.
    * One of video_classification_config, object_detection_config,
@@ -555,16 +676,19 @@ public boolean hasEventConfig() {
    * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 7; + * * @return The eventConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EventConfig getEventConfig() { if (requestConfigCase_ == 7) { - return (com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_; + return (com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_; } return com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance(); } /** + * + * *
    * Configuration for video event task.
    * One of video_classification_config, object_detection_config,
@@ -576,7 +700,7 @@ public com.google.cloud.datalabeling.v1beta1.EventConfig getEventConfig() {
   @java.lang.Override
   public com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder getEventConfigOrBuilder() {
     if (requestConfigCase_ == 7) {
-       return (com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_;
+      return (com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_;
     }
     return com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance();
   }
@@ -584,12 +708,17 @@ public com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder getEventConfig
   public static final int PARENT_FIELD_NUMBER = 1;
   private volatile java.lang.Object parent_;
   /**
+   *
+   *
    * 
    * Required. Name of the dataset to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * 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 @@ -598,30 +727,32 @@ 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. Name of the dataset to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * 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 { @@ -632,11 +763,16 @@ public java.lang.String getParent() { public static final int BASIC_CONFIG_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; /** + * + * *
    * Required. Basic human annotation config.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the basicConfig field is set. */ @java.lang.Override @@ -644,57 +780,85 @@ public boolean hasBasicConfig() { return basicConfig_ != null; } /** + * + * *
    * Required. Basic human annotation config.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The basicConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } /** + * + * *
    * Required. Basic human annotation config.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { return getBasicConfig(); } public static final int FEATURE_FIELD_NUMBER = 3; private int feature_; /** + * + * *
    * Required. The type of video labeling task.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for feature. */ - @java.lang.Override public int getFeatureValue() { + @java.lang.Override + public int getFeatureValue() { return feature_; } /** + * + * *
    * Required. The type of video labeling task.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The feature. */ - @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature getFeature() { + @java.lang.Override + public com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature getFeature() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature result = com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.valueOf(feature_); - return result == null ? com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.UNRECOGNIZED : result; + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature result = + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.valueOf(feature_); + return result == null + ? com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -706,25 +870,29 @@ public final boolean isInitialized() { } @java.lang.Override - public 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_); } if (basicConfig_ != null) { output.writeMessage(2, getBasicConfig()); } - if (feature_ != com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.FEATURE_UNSPECIFIED.getNumber()) { + if (feature_ + != com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.FEATURE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, feature_); } if (requestConfigCase_ == 4) { - output.writeMessage(4, (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_); + output.writeMessage( + 4, (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_); } if (requestConfigCase_ == 5) { - output.writeMessage(5, (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_); + output.writeMessage( + 5, (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_); } if (requestConfigCase_ == 6) { - output.writeMessage(6, (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_); + output.writeMessage( + 6, (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_); } if (requestConfigCase_ == 7) { output.writeMessage(7, (com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_); @@ -742,28 +910,32 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (basicConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getBasicConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getBasicConfig()); } - if (feature_ != com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.FEATURE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, feature_); + if (feature_ + != com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.FEATURE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, feature_); } if (requestConfigCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_); } if (requestConfigCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_); } if (requestConfigCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_); } if (requestConfigCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -773,38 +945,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.datalabeling.v1beta1.LabelVideoRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest other = (com.google.cloud.datalabeling.v1beta1.LabelVideoRequest) obj; + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest other = + (com.google.cloud.datalabeling.v1beta1.LabelVideoRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasBasicConfig() != other.hasBasicConfig()) return false; if (hasBasicConfig()) { - if (!getBasicConfig() - .equals(other.getBasicConfig())) return false; + if (!getBasicConfig().equals(other.getBasicConfig())) return false; } if (feature_ != other.feature_) return false; if (!getRequestConfigCase().equals(other.getRequestConfigCase())) return false; switch (requestConfigCase_) { case 4: - if (!getVideoClassificationConfig() - .equals(other.getVideoClassificationConfig())) return false; + if (!getVideoClassificationConfig().equals(other.getVideoClassificationConfig())) + return false; break; case 5: - if (!getObjectDetectionConfig() - .equals(other.getObjectDetectionConfig())) return false; + if (!getObjectDetectionConfig().equals(other.getObjectDetectionConfig())) return false; break; case 6: - if (!getObjectTrackingConfig() - .equals(other.getObjectTrackingConfig())) return false; + if (!getObjectTrackingConfig().equals(other.getObjectTrackingConfig())) return false; break; case 7: - if (!getEventConfig() - .equals(other.getEventConfig())) return false; + if (!getEventConfig().equals(other.getEventConfig())) return false; break; case 0: default: @@ -854,117 +1022,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest 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.datalabeling.v1beta1.LabelVideoRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.LabelVideoRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 LabelVideo.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.LabelVideoRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.LabelVideoRequest) com.google.cloud.datalabeling.v1beta1.LabelVideoRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.class, com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.class, + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.newBuilder() @@ -972,16 +1150,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(); @@ -1001,9 +1178,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_LabelVideoRequest_descriptor; } @java.lang.Override @@ -1022,7 +1199,8 @@ public com.google.cloud.datalabeling.v1beta1.LabelVideoRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelVideoRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest result = new com.google.cloud.datalabeling.v1beta1.LabelVideoRequest(this); + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest result = + new com.google.cloud.datalabeling.v1beta1.LabelVideoRequest(this); if (requestConfigCase_ == 4) { if (videoClassificationConfigBuilder_ == null) { result.requestConfig_ = requestConfig_; @@ -1067,38 +1245,39 @@ public com.google.cloud.datalabeling.v1beta1.LabelVideoRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.LabelVideoRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelVideoRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.LabelVideoRequest) other); } else { super.mergeFrom(other); return this; @@ -1106,7 +1285,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelVideoRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -1118,25 +1298,30 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.LabelVideoRequest setFeatureValue(other.getFeatureValue()); } switch (other.getRequestConfigCase()) { - case VIDEO_CLASSIFICATION_CONFIG: { - mergeVideoClassificationConfig(other.getVideoClassificationConfig()); - break; - } - case OBJECT_DETECTION_CONFIG: { - mergeObjectDetectionConfig(other.getObjectDetectionConfig()); - break; - } - case OBJECT_TRACKING_CONFIG: { - mergeObjectTrackingConfig(other.getObjectTrackingConfig()); - break; - } - case EVENT_CONFIG: { - mergeEventConfig(other.getEventConfig()); - break; - } - case REQUESTCONFIG_NOT_SET: { - break; - } + case VIDEO_CLASSIFICATION_CONFIG: + { + mergeVideoClassificationConfig(other.getVideoClassificationConfig()); + break; + } + case OBJECT_DETECTION_CONFIG: + { + mergeObjectDetectionConfig(other.getObjectDetectionConfig()); + break; + } + case OBJECT_TRACKING_CONFIG: + { + mergeObjectTrackingConfig(other.getObjectTrackingConfig()); + break; + } + case EVENT_CONFIG: + { + mergeEventConfig(other.getEventConfig()); + break; + } + case REQUESTCONFIG_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1157,7 +1342,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.LabelVideoRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.LabelVideoRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1166,12 +1352,12 @@ public Builder mergeFrom( } return this; } + private int requestConfigCase_ = 0; private java.lang.Object requestConfig_; - public RequestConfigCase - getRequestConfigCase() { - return RequestConfigCase.forNumber( - requestConfigCase_); + + public RequestConfigCase getRequestConfigCase() { + return RequestConfigCase.forNumber(requestConfigCase_); } public Builder clearRequestConfig() { @@ -1181,17 +1367,24 @@ public Builder clearRequestConfig() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder> videoClassificationConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder> + videoClassificationConfigBuilder_; /** + * + * *
      * Configuration for video classification task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * + * * @return Whether the videoClassificationConfig field is set. */ @java.lang.Override @@ -1199,17 +1392,23 @@ public boolean hasVideoClassificationConfig() { return requestConfigCase_ == 4; } /** + * + * *
      * Configuration for video classification task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * + * * @return The videoClassificationConfig. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig getVideoClassificationConfig() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + getVideoClassificationConfig() { if (videoClassificationConfigBuilder_ == null) { if (requestConfigCase_ == 4) { return (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_; @@ -1223,15 +1422,20 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig getVideoC } } /** + * + * *
      * Configuration for video classification task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * */ - public Builder setVideoClassificationConfig(com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig value) { + public Builder setVideoClassificationConfig( + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig value) { if (videoClassificationConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1245,13 +1449,17 @@ public Builder setVideoClassificationConfig(com.google.cloud.datalabeling.v1beta return this; } /** + * + * *
      * Configuration for video classification task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * */ public Builder setVideoClassificationConfig( com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder builderForValue) { @@ -1265,20 +1473,31 @@ public Builder setVideoClassificationConfig( return this; } /** + * + * *
      * Configuration for video classification task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * */ - public Builder mergeVideoClassificationConfig(com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig value) { + public Builder mergeVideoClassificationConfig( + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig value) { if (videoClassificationConfigBuilder_ == null) { - if (requestConfigCase_ == 4 && - requestConfig_ != com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance()) { - requestConfig_ = com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_) - .mergeFrom(value).buildPartial(); + if (requestConfigCase_ == 4 + && requestConfig_ + != com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .getDefaultInstance()) { + requestConfig_ = + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.newBuilder( + (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) + requestConfig_) + .mergeFrom(value) + .buildPartial(); } else { requestConfig_ = value; } @@ -1294,13 +1513,17 @@ public Builder mergeVideoClassificationConfig(com.google.cloud.datalabeling.v1be return this; } /** + * + * *
      * Configuration for video classification task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * */ public Builder clearVideoClassificationConfig() { if (videoClassificationConfigBuilder_ == null) { @@ -1319,28 +1542,38 @@ public Builder clearVideoClassificationConfig() { return this; } /** + * + * *
      * Configuration for video classification task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * */ - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder getVideoClassificationConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder + getVideoClassificationConfigBuilder() { return getVideoClassificationConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Configuration for video classification task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder getVideoClassificationConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder + getVideoClassificationConfigOrBuilder() { if ((requestConfigCase_ == 4) && (videoClassificationConfigBuilder_ != null)) { return videoClassificationConfigBuilder_.getMessageOrBuilder(); } else { @@ -1351,43 +1584,61 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder } } /** + * + * *
      * Configuration for video classification task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder> getVideoClassificationConfigFieldBuilder() { if (videoClassificationConfigBuilder_ == null) { if (!(requestConfigCase_ == 4)) { - requestConfig_ = com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); + requestConfig_ = + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance(); } - videoClassificationConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder>( + videoClassificationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig, + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder>( (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) requestConfig_, getParentForChildren(), isClean()); requestConfig_ = null; } requestConfigCase_ = 4; - onChanged();; + onChanged(); + ; return videoClassificationConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder> objectDetectionConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder> + objectDetectionConfigBuilder_; /** + * + * *
      * Configuration for video object detection task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * + * * @return Whether the objectDetectionConfig field is set. */ @java.lang.Override @@ -1395,13 +1646,17 @@ public boolean hasObjectDetectionConfig() { return requestConfigCase_ == 5; } /** + * + * *
      * Configuration for video object detection task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * + * * @return The objectDetectionConfig. */ @java.lang.Override @@ -1419,15 +1674,19 @@ public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig getObjectDete } } /** + * + * *
      * Configuration for video object detection task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * */ - public Builder setObjectDetectionConfig(com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig value) { + public Builder setObjectDetectionConfig( + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig value) { if (objectDetectionConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1441,13 +1700,16 @@ public Builder setObjectDetectionConfig(com.google.cloud.datalabeling.v1beta1.Ob return this; } /** + * + * *
      * Configuration for video object detection task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * */ public Builder setObjectDetectionConfig( com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder builderForValue) { @@ -1461,20 +1723,29 @@ public Builder setObjectDetectionConfig( return this; } /** + * + * *
      * Configuration for video object detection task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * */ - public Builder mergeObjectDetectionConfig(com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig value) { + public Builder mergeObjectDetectionConfig( + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig value) { if (objectDetectionConfigBuilder_ == null) { - if (requestConfigCase_ == 5 && - requestConfig_ != com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance()) { - requestConfig_ = com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_) - .mergeFrom(value).buildPartial(); + if (requestConfigCase_ == 5 + && requestConfig_ + != com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig + .getDefaultInstance()) { + requestConfig_ = + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.newBuilder( + (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_) + .mergeFrom(value) + .buildPartial(); } else { requestConfig_ = value; } @@ -1490,13 +1761,16 @@ public Builder mergeObjectDetectionConfig(com.google.cloud.datalabeling.v1beta1. return this; } /** + * + * *
      * Configuration for video object detection task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * */ public Builder clearObjectDetectionConfig() { if (objectDetectionConfigBuilder_ == null) { @@ -1515,28 +1789,36 @@ public Builder clearObjectDetectionConfig() { return this; } /** + * + * *
      * Configuration for video object detection task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * */ - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder getObjectDetectionConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder + getObjectDetectionConfigBuilder() { return getObjectDetectionConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Configuration for video object detection task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder getObjectDetectionConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder + getObjectDetectionConfigOrBuilder() { if ((requestConfigCase_ == 5) && (objectDetectionConfigBuilder_ != null)) { return objectDetectionConfigBuilder_.getMessageOrBuilder(); } else { @@ -1547,43 +1829,60 @@ public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder getO } } /** + * + * *
      * Configuration for video object detection task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder> getObjectDetectionConfigFieldBuilder() { if (objectDetectionConfigBuilder_ == null) { if (!(requestConfigCase_ == 5)) { - requestConfig_ = com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); + requestConfig_ = + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance(); } - objectDetectionConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder>( + objectDetectionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig, + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder, + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder>( (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) requestConfig_, getParentForChildren(), isClean()); requestConfig_ = null; } requestConfigCase_ = 5; - onChanged();; + onChanged(); + ; return objectDetectionConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder> objectTrackingConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder> + objectTrackingConfigBuilder_; /** + * + * *
      * Configuration for video object tracking task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * + * * @return Whether the objectTrackingConfig field is set. */ @java.lang.Override @@ -1591,13 +1890,17 @@ public boolean hasObjectTrackingConfig() { return requestConfigCase_ == 6; } /** + * + * *
      * Configuration for video object tracking task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * + * * @return The objectTrackingConfig. */ @java.lang.Override @@ -1615,15 +1918,19 @@ public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig getObjectTrack } } /** + * + * *
      * Configuration for video object tracking task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * */ - public Builder setObjectTrackingConfig(com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig value) { + public Builder setObjectTrackingConfig( + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig value) { if (objectTrackingConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1637,13 +1944,16 @@ public Builder setObjectTrackingConfig(com.google.cloud.datalabeling.v1beta1.Obj return this; } /** + * + * *
      * Configuration for video object tracking task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * */ public Builder setObjectTrackingConfig( com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder builderForValue) { @@ -1657,20 +1967,29 @@ public Builder setObjectTrackingConfig( return this; } /** + * + * *
      * Configuration for video object tracking task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * */ - public Builder mergeObjectTrackingConfig(com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig value) { + public Builder mergeObjectTrackingConfig( + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig value) { if (objectTrackingConfigBuilder_ == null) { - if (requestConfigCase_ == 6 && - requestConfig_ != com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance()) { - requestConfig_ = com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_) - .mergeFrom(value).buildPartial(); + if (requestConfigCase_ == 6 + && requestConfig_ + != com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig + .getDefaultInstance()) { + requestConfig_ = + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.newBuilder( + (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_) + .mergeFrom(value) + .buildPartial(); } else { requestConfig_ = value; } @@ -1686,13 +2005,16 @@ public Builder mergeObjectTrackingConfig(com.google.cloud.datalabeling.v1beta1.O return this; } /** + * + * *
      * Configuration for video object tracking task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * */ public Builder clearObjectTrackingConfig() { if (objectTrackingConfigBuilder_ == null) { @@ -1711,28 +2033,36 @@ public Builder clearObjectTrackingConfig() { return this; } /** + * + * *
      * Configuration for video object tracking task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * */ - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder getObjectTrackingConfigBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder + getObjectTrackingConfigBuilder() { return getObjectTrackingConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Configuration for video object tracking task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder getObjectTrackingConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder + getObjectTrackingConfigOrBuilder() { if ((requestConfigCase_ == 6) && (objectTrackingConfigBuilder_ != null)) { return objectTrackingConfigBuilder_.getMessageOrBuilder(); } else { @@ -1743,36 +2073,51 @@ public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder getOb } } /** + * + * *
      * Configuration for video object tracking task.
      * One of video_classification_config, object_detection_config,
      * object_tracking_config and event_config is required.
      * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder> getObjectTrackingConfigFieldBuilder() { if (objectTrackingConfigBuilder_ == null) { if (!(requestConfigCase_ == 6)) { - requestConfig_ = com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); + requestConfig_ = + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance(); } - objectTrackingConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder>( + objectTrackingConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder>( (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) requestConfig_, getParentForChildren(), isClean()); requestConfig_ = null; } requestConfigCase_ = 6; - onChanged();; + onChanged(); + ; return objectTrackingConfigBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EventConfig, com.google.cloud.datalabeling.v1beta1.EventConfig.Builder, com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder> eventConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.EventConfig, + com.google.cloud.datalabeling.v1beta1.EventConfig.Builder, + com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder> + eventConfigBuilder_; /** + * + * *
      * Configuration for video event task.
      * One of video_classification_config, object_detection_config,
@@ -1780,6 +2125,7 @@ public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder getOb
      * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 7; + * * @return Whether the eventConfig field is set. */ @java.lang.Override @@ -1787,6 +2133,8 @@ public boolean hasEventConfig() { return requestConfigCase_ == 7; } /** + * + * *
      * Configuration for video event task.
      * One of video_classification_config, object_detection_config,
@@ -1794,6 +2142,7 @@ public boolean hasEventConfig() {
      * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 7; + * * @return The eventConfig. */ @java.lang.Override @@ -1811,6 +2160,8 @@ public com.google.cloud.datalabeling.v1beta1.EventConfig getEventConfig() { } } /** + * + * *
      * Configuration for video event task.
      * One of video_classification_config, object_detection_config,
@@ -1833,6 +2184,8 @@ public Builder setEventConfig(com.google.cloud.datalabeling.v1beta1.EventConfig
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for video event task.
      * One of video_classification_config, object_detection_config,
@@ -1853,6 +2206,8 @@ public Builder setEventConfig(
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for video event task.
      * One of video_classification_config, object_detection_config,
@@ -1863,10 +2218,14 @@ public Builder setEventConfig(
      */
     public Builder mergeEventConfig(com.google.cloud.datalabeling.v1beta1.EventConfig value) {
       if (eventConfigBuilder_ == null) {
-        if (requestConfigCase_ == 7 &&
-            requestConfig_ != com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance()) {
-          requestConfig_ = com.google.cloud.datalabeling.v1beta1.EventConfig.newBuilder((com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_)
-              .mergeFrom(value).buildPartial();
+        if (requestConfigCase_ == 7
+            && requestConfig_
+                != com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance()) {
+          requestConfig_ =
+              com.google.cloud.datalabeling.v1beta1.EventConfig.newBuilder(
+                      (com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           requestConfig_ = value;
         }
@@ -1882,6 +2241,8 @@ public Builder mergeEventConfig(com.google.cloud.datalabeling.v1beta1.EventConfi
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for video event task.
      * One of video_classification_config, object_detection_config,
@@ -1907,6 +2268,8 @@ public Builder clearEventConfig() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Configuration for video event task.
      * One of video_classification_config, object_detection_config,
@@ -1919,6 +2282,8 @@ public com.google.cloud.datalabeling.v1beta1.EventConfig.Builder getEventConfigB
       return getEventConfigFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Configuration for video event task.
      * One of video_classification_config, object_detection_config,
@@ -1939,6 +2304,8 @@ public com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder getEventConfig
       }
     }
     /**
+     *
+     *
      * 
      * Configuration for video event task.
      * One of video_classification_config, object_detection_config,
@@ -1948,39 +2315,49 @@ public com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder getEventConfig
      * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 7;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.EventConfig, com.google.cloud.datalabeling.v1beta1.EventConfig.Builder, com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder> 
+            com.google.cloud.datalabeling.v1beta1.EventConfig,
+            com.google.cloud.datalabeling.v1beta1.EventConfig.Builder,
+            com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder>
         getEventConfigFieldBuilder() {
       if (eventConfigBuilder_ == null) {
         if (!(requestConfigCase_ == 7)) {
           requestConfig_ = com.google.cloud.datalabeling.v1beta1.EventConfig.getDefaultInstance();
         }
-        eventConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.EventConfig, com.google.cloud.datalabeling.v1beta1.EventConfig.Builder, com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder>(
+        eventConfigBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.datalabeling.v1beta1.EventConfig,
+                com.google.cloud.datalabeling.v1beta1.EventConfig.Builder,
+                com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder>(
                 (com.google.cloud.datalabeling.v1beta1.EventConfig) requestConfig_,
                 getParentForChildren(),
                 isClean());
         requestConfig_ = null;
       }
       requestConfigCase_ = 7;
-      onChanged();;
+      onChanged();
+      ;
       return eventConfigBuilder_;
     }
 
     private java.lang.Object parent_ = "";
     /**
+     *
+     *
      * 
      * Required. Name of the dataset to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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; @@ -1989,21 +2366,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the dataset to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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 { @@ -2011,57 +2391,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the dataset to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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. Name of the dataset to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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. Name of the dataset to request labeling task, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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; @@ -2069,41 +2462,61 @@ public Builder setParentBytes( private com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basicConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> basicConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + basicConfigBuilder_; /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the basicConfig field is set. */ public boolean hasBasicConfig() { return basicConfigBuilder_ != null || basicConfig_ != null; } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The basicConfig. */ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig() { if (basicConfigBuilder_ == null) { - return basicConfig_ == null ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } else { return basicConfigBuilder_.getMessage(); } } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder setBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2117,11 +2530,15 @@ public Builder setBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotat return this; } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setBasicConfig( com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder builderForValue) { @@ -2135,17 +2552,24 @@ public Builder setBasicConfig( return this; } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { + public Builder mergeBasicConfig( + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig value) { if (basicConfigBuilder_ == null) { if (basicConfig_ != null) { basicConfig_ = - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.newBuilder(basicConfig_) + .mergeFrom(value) + .buildPartial(); } else { basicConfig_ = value; } @@ -2157,11 +2581,15 @@ public Builder mergeBasicConfig(com.google.cloud.datalabeling.v1beta1.HumanAnnot return this; } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearBasicConfig() { if (basicConfigBuilder_ == null) { @@ -2175,48 +2603,66 @@ public Builder clearBasicConfig() { return this; } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder getBasicConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder + getBasicConfigBuilder() { + onChanged(); return getBasicConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder + getBasicConfigOrBuilder() { if (basicConfigBuilder_ != null) { return basicConfigBuilder_.getMessageOrBuilder(); } else { - return basicConfig_ == null ? - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() : basicConfig_; + return basicConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.getDefaultInstance() + : basicConfig_; } } /** + * + * *
      * Required. Basic human annotation config.
      * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder> getBasicConfigFieldBuilder() { if (basicConfigBuilder_ == null) { - basicConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( - getBasicConfig(), - getParentForChildren(), - isClean()); + basicConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig.Builder, + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder>( + getBasicConfig(), getParentForChildren(), isClean()); basicConfig_ = null; } return basicConfigBuilder_; @@ -2224,80 +2670,110 @@ public com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getB private int feature_ = 0; /** + * + * *
      * Required. The type of video labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for feature. */ - @java.lang.Override public int getFeatureValue() { + @java.lang.Override + public int getFeatureValue() { return feature_; } /** + * + * *
      * Required. The type of video labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for feature to set. * @return This builder for chaining. */ public Builder setFeatureValue(int value) { - + feature_ = value; onChanged(); return this; } /** + * + * *
      * Required. The type of video labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The feature. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature getFeature() { @SuppressWarnings("deprecation") - com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature result = com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.valueOf(feature_); - return result == null ? com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.UNRECOGNIZED : result; + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature result = + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.valueOf(feature_); + return result == null + ? com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature.UNRECOGNIZED + : result; } /** + * + * *
      * Required. The type of video labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The feature to set. * @return This builder for chaining. */ - public Builder setFeature(com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature value) { + public Builder setFeature( + com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature value) { if (value == null) { throw new NullPointerException(); } - + feature_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. The type of video labeling task.
      * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearFeature() { - + feature_ = 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); } @@ -2307,12 +2783,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.LabelVideoRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.LabelVideoRequest) private static final com.google.cloud.datalabeling.v1beta1.LabelVideoRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.LabelVideoRequest(); } @@ -2321,16 +2797,16 @@ public static com.google.cloud.datalabeling.v1beta1.LabelVideoRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LabelVideoRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LabelVideoRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LabelVideoRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LabelVideoRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2345,6 +2821,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.LabelVideoRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequestOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequestOrBuilder.java index e0f709aa..459fafca 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequestOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/LabelVideoRequestOrBuilder.java @@ -1,112 +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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface LabelVideoRequestOrBuilder extends +public interface LabelVideoRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.LabelVideoRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Configuration for video classification task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * + * * @return Whether the videoClassificationConfig field is set. */ boolean hasVideoClassificationConfig(); /** + * + * *
    * Configuration for video classification task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * + * * @return The videoClassificationConfig. */ com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig getVideoClassificationConfig(); /** + * + * *
    * Configuration for video classification task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * + * .google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 4; + * */ - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder getVideoClassificationConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder + getVideoClassificationConfigOrBuilder(); /** + * + * *
    * Configuration for video object detection task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * + * * @return Whether the objectDetectionConfig field is set. */ boolean hasObjectDetectionConfig(); /** + * + * *
    * Configuration for video object detection task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * + * * @return The objectDetectionConfig. */ com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig getObjectDetectionConfig(); /** + * + * *
    * Configuration for video object detection task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * .google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 5; + * */ - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder getObjectDetectionConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder + getObjectDetectionConfigOrBuilder(); /** + * + * *
    * Configuration for video object tracking task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * + * * @return Whether the objectTrackingConfig field is set. */ boolean hasObjectTrackingConfig(); /** + * + * *
    * Configuration for video object tracking task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * + * * @return The objectTrackingConfig. */ com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig getObjectTrackingConfig(); /** + * + * *
    * Configuration for video object tracking task.
    * One of video_classification_config, object_detection_config,
    * object_tracking_config and event_config is required.
    * 
* - * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * .google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 6; + * */ - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder getObjectTrackingConfigOrBuilder(); + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder + getObjectTrackingConfigOrBuilder(); /** + * + * *
    * Configuration for video event task.
    * One of video_classification_config, object_detection_config,
@@ -114,10 +171,13 @@ public interface LabelVideoRequestOrBuilder extends
    * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 7; + * * @return Whether the eventConfig field is set. */ boolean hasEventConfig(); /** + * + * *
    * Configuration for video event task.
    * One of video_classification_config, object_detection_config,
@@ -125,10 +185,13 @@ public interface LabelVideoRequestOrBuilder extends
    * 
* * .google.cloud.datalabeling.v1beta1.EventConfig event_config = 7; + * * @return The eventConfig. */ com.google.cloud.datalabeling.v1beta1.EventConfig getEventConfig(); /** + * + * *
    * Configuration for video event task.
    * One of video_classification_config, object_detection_config,
@@ -140,72 +203,106 @@ public interface LabelVideoRequestOrBuilder extends
   com.google.cloud.datalabeling.v1beta1.EventConfigOrBuilder getEventConfigOrBuilder();
 
   /**
+   *
+   *
    * 
    * Required. Name of the dataset to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * 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. Name of the dataset to request labeling task, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * 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. Basic human annotation config.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the basicConfig field is set. */ boolean hasBasicConfig(); /** + * + * *
    * Required. Basic human annotation config.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The basicConfig. */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig getBasicConfig(); /** + * + * *
    * Required. Basic human annotation config.
    * 
* - * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.HumanAnnotationConfig basic_config = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOrBuilder getBasicConfigOrBuilder(); /** + * + * *
    * Required. The type of video labeling task.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for feature. */ int getFeatureValue(); /** + * + * *
    * Required. The type of video labeling task.
    * 
* - * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature feature = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The feature. */ com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.Feature getFeature(); - public com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.RequestConfigCase getRequestConfigCase(); + public com.google.cloud.datalabeling.v1beta1.LabelVideoRequest.RequestConfigCase + getRequestConfigCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequest.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequest.java index 8c1b13e9..c2ab42a3 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for ListAnnotatedDatasets.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest} */ -public final class ListAnnotatedDatasetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAnnotatedDatasetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) ListAnnotatedDatasetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAnnotatedDatasetsRequest.newBuilder() to construct. private ListAnnotatedDatasetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAnnotatedDatasetsRequest() { parent_ = ""; filter_ = ""; @@ -27,16 +45,15 @@ private ListAnnotatedDatasetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAnnotatedDatasetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListAnnotatedDatasetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListAnnotatedDatasetsRequest( 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: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + 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) { @@ -92,35 +112,42 @@ private ListAnnotatedDatasetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.class, com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.class, + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Name of the dataset to list annotated datasets, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * 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 @@ -129,30 +156,32 @@ 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. Name of the dataset to list annotated datasets, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * 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,11 +192,14 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -176,29 +208,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; } } /** + * + * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -209,12 +241,15 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -225,6 +260,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -234,6 +271,7 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -242,14 +280,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; } } /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -259,16 +298,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -277,6 +315,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,8 +327,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_); } @@ -318,8 +356,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -332,21 +369,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.datalabeling.v1beta1.ListAnnotatedDatasetsRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest other = (com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) 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.datalabeling.v1beta1.ListAnnotatedDatasetsRequest other = + (com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) 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; } @@ -372,134 +406,145 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest 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.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest 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.datalabeling.v1beta1.ListAnnotatedDatasetsRequest + 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.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListAnnotatedDatasets.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.class, com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.class, + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.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(); @@ -515,14 +560,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest + .getDefaultInstance(); } @java.lang.Override @@ -536,7 +583,8 @@ public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest build( @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest result = new com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest(this); + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest result = + new com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -549,46 +597,51 @@ public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest 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.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest)other); + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest other) { + if (other + == com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -623,7 +676,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -635,19 +690,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of the dataset to list annotated datasets, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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; @@ -656,21 +715,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the dataset to list annotated datasets, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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 { @@ -678,57 +740,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the dataset to list annotated datasets, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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. Name of the dataset to list annotated datasets, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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. Name of the dataset to list annotated datasets, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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,18 +811,20 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -756,20 +833,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -777,67 +855,77 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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_; /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -845,32 +933,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -878,6 +972,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -887,13 +983,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -902,6 +998,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -911,15 +1009,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -927,6 +1024,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -936,20 +1035,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -959,15 +1060,18 @@ public Builder setPageToken(
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -977,23 +1081,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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); } @@ -1003,30 +1107,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) - private static final com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest(); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAnnotatedDatasetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAnnotatedDatasetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAnnotatedDatasetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAnnotatedDatasetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1038,9 +1144,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequestOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequestOrBuilder.java index 70c28503..dbe7faa5 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequestOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsRequestOrBuilder.java @@ -1,66 +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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListAnnotatedDatasetsRequestOrBuilder extends +public interface ListAnnotatedDatasetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the dataset to list annotated datasets, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * 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. Name of the dataset to list annotated datasets, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * 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(); /** + * + * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -70,10 +105,13 @@ public interface ListAnnotatedDatasetsRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -83,8 +121,8 @@ public interface ListAnnotatedDatasetsRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponse.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponse.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponse.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponse.java index c4308c7d..064a10ad 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponse.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponse.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Results of listing annotated datasets for a dataset.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse} */ -public final class ListAnnotatedDatasetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAnnotatedDatasetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) ListAnnotatedDatasetsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAnnotatedDatasetsResponse.newBuilder() to construct. private ListAnnotatedDatasetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAnnotatedDatasetsResponse() { annotatedDatasets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListAnnotatedDatasetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAnnotatedDatasetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListAnnotatedDatasetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,34 @@ private ListAnnotatedDatasetsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - annotatedDatasets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + annotatedDatasets_ = + new java.util.ArrayList< + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset>(); + mutable_bitField0_ |= 0x00000001; + } + annotatedDatasets_.add( + input.readMessage( + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.parser(), + extensionRegistry)); + break; } - annotatedDatasets_.add( - input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.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) { @@ -84,8 +107,7 @@ private ListAnnotatedDatasetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { annotatedDatasets_ = java.util.Collections.unmodifiableList(annotatedDatasets_); @@ -94,87 +116,109 @@ private ListAnnotatedDatasetsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.class, com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.class, + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.Builder.class); } public static final int ANNOTATED_DATASETS_FIELD_NUMBER = 1; private java.util.List annotatedDatasets_; /** + * + * *
    * The list of annotated datasets to return.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ @java.lang.Override - public java.util.List getAnnotatedDatasetsList() { + public java.util.List + getAnnotatedDatasetsList() { return annotatedDatasets_; } /** + * + * *
    * The list of annotated datasets to return.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List getAnnotatedDatasetsOrBuilderList() { return annotatedDatasets_; } /** + * + * *
    * The list of annotated datasets to return.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ @java.lang.Override public int getAnnotatedDatasetsCount() { return annotatedDatasets_.size(); } /** + * + * *
    * The list of annotated datasets to return.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset getAnnotatedDatasets(int index) { return annotatedDatasets_.get(index); } /** + * + * *
    * The list of annotated datasets to return.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder getAnnotatedDatasetsOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder + getAnnotatedDatasetsOrBuilder(int index) { return annotatedDatasets_.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.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,29 +227,29 @@ 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.
    * 
* * 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 +258,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +270,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 < annotatedDatasets_.size(); i++) { output.writeMessage(1, annotatedDatasets_.get(i)); } @@ -243,8 +287,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < annotatedDatasets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, annotatedDatasets_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, annotatedDatasets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -257,17 +301,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.datalabeling.v1beta1.ListAnnotatedDatasetsResponse)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse other = (com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) obj; + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse other = + (com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) obj; - if (!getAnnotatedDatasetsList() - .equals(other.getAnnotatedDatasetsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getAnnotatedDatasetsList().equals(other.getAnnotatedDatasetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,135 +334,147 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse 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.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse 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.datalabeling.v1beta1.ListAnnotatedDatasetsResponse + 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.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Results of listing annotated datasets for a dataset.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.class, com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.class, + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.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) { getAnnotatedDatasetsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,14 +490,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotatedDatasetsResponse_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse + .getDefaultInstance(); } @java.lang.Override @@ -456,7 +513,8 @@ public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse build @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse result = new com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse(this); + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse result = + new com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse(this); int from_bitField0_ = bitField0_; if (annotatedDatasetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,46 +534,51 @@ public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse 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.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse)other); + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse other) { - if (other == com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse other) { + if (other + == com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse + .getDefaultInstance()) return this; if (annotatedDatasetsBuilder_ == null) { if (!other.annotatedDatasets_.isEmpty()) { if (annotatedDatasets_.isEmpty()) { @@ -534,9 +597,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListAnnotatedData annotatedDatasetsBuilder_ = null; annotatedDatasets_ = other.annotatedDatasets_; bitField0_ = (bitField0_ & ~0x00000001); - annotatedDatasetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAnnotatedDatasetsFieldBuilder() : null; + annotatedDatasetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAnnotatedDatasetsFieldBuilder() + : null; } else { annotatedDatasetsBuilder_.addAllMessages(other.annotatedDatasets_); } @@ -565,7 +629,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,28 +640,39 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List annotatedDatasets_ = - java.util.Collections.emptyList(); + private java.util.List + annotatedDatasets_ = java.util.Collections.emptyList(); + private void ensureAnnotatedDatasetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - annotatedDatasets_ = new java.util.ArrayList(annotatedDatasets_); + annotatedDatasets_ = + new java.util.ArrayList( + annotatedDatasets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset, com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder, com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder> annotatedDatasetsBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset, + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder> + annotatedDatasetsBuilder_; /** + * + * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ - public java.util.List getAnnotatedDatasetsList() { + public java.util.List + getAnnotatedDatasetsList() { if (annotatedDatasetsBuilder_ == null) { return java.util.Collections.unmodifiableList(annotatedDatasets_); } else { @@ -603,11 +680,14 @@ public java.util.List ge } } /** + * + * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ public int getAnnotatedDatasetsCount() { if (annotatedDatasetsBuilder_ == null) { @@ -617,11 +697,14 @@ public int getAnnotatedDatasetsCount() { } } /** + * + * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset getAnnotatedDatasets(int index) { if (annotatedDatasetsBuilder_ == null) { @@ -631,11 +714,14 @@ public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset getAnnotatedDatase } } /** + * + * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ public Builder setAnnotatedDatasets( int index, com.google.cloud.datalabeling.v1beta1.AnnotatedDataset value) { @@ -652,11 +738,14 @@ public Builder setAnnotatedDatasets( return this; } /** + * + * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ public Builder setAnnotatedDatasets( int index, com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder builderForValue) { @@ -670,13 +759,17 @@ public Builder setAnnotatedDatasets( return this; } /** + * + * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ - public Builder addAnnotatedDatasets(com.google.cloud.datalabeling.v1beta1.AnnotatedDataset value) { + public Builder addAnnotatedDatasets( + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset value) { if (annotatedDatasetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -690,11 +783,14 @@ public Builder addAnnotatedDatasets(com.google.cloud.datalabeling.v1beta1.Annota return this; } /** + * + * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ public Builder addAnnotatedDatasets( int index, com.google.cloud.datalabeling.v1beta1.AnnotatedDataset value) { @@ -711,11 +807,14 @@ public Builder addAnnotatedDatasets( return this; } /** + * + * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ public Builder addAnnotatedDatasets( com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder builderForValue) { @@ -729,11 +828,14 @@ public Builder addAnnotatedDatasets( return this; } /** + * + * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ public Builder addAnnotatedDatasets( int index, com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder builderForValue) { @@ -747,18 +849,21 @@ public Builder addAnnotatedDatasets( return this; } /** + * + * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ public Builder addAllAnnotatedDatasets( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (annotatedDatasetsBuilder_ == null) { ensureAnnotatedDatasetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, annotatedDatasets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotatedDatasets_); onChanged(); } else { annotatedDatasetsBuilder_.addAllMessages(values); @@ -766,11 +871,14 @@ public Builder addAllAnnotatedDatasets( return this; } /** + * + * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ public Builder clearAnnotatedDatasets() { if (annotatedDatasetsBuilder_ == null) { @@ -783,11 +891,14 @@ public Builder clearAnnotatedDatasets() { return this; } /** + * + * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ public Builder removeAnnotatedDatasets(int index) { if (annotatedDatasetsBuilder_ == null) { @@ -800,39 +911,49 @@ public Builder removeAnnotatedDatasets(int index) { return this; } /** + * + * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder getAnnotatedDatasetsBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder + getAnnotatedDatasetsBuilder(int index) { return getAnnotatedDatasetsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder getAnnotatedDatasetsOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder + getAnnotatedDatasetsOrBuilder(int index) { if (annotatedDatasetsBuilder_ == null) { - return annotatedDatasets_.get(index); } else { + return annotatedDatasets_.get(index); + } else { return annotatedDatasetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ - public java.util.List - getAnnotatedDatasetsOrBuilderList() { + public java.util.List + getAnnotatedDatasetsOrBuilderList() { if (annotatedDatasetsBuilder_ != null) { return annotatedDatasetsBuilder_.getMessageOrBuilderList(); } else { @@ -840,45 +961,62 @@ public com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder getAnnota } } /** + * + * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder addAnnotatedDatasetsBuilder() { - return getAnnotatedDatasetsFieldBuilder().addBuilder( - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder + addAnnotatedDatasetsBuilder() { + return getAnnotatedDatasetsFieldBuilder() + .addBuilder(com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.getDefaultInstance()); } /** + * + * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder addAnnotatedDatasetsBuilder( - int index) { - return getAnnotatedDatasetsFieldBuilder().addBuilder( - index, com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder + addAnnotatedDatasetsBuilder(int index) { + return getAnnotatedDatasetsFieldBuilder() + .addBuilder( + index, com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.getDefaultInstance()); } /** + * + * *
      * The list of annotated datasets to return.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ - public java.util.List - getAnnotatedDatasetsBuilderList() { + public java.util.List + getAnnotatedDatasetsBuilderList() { return getAnnotatedDatasetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset, com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder, com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset, + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder> getAnnotatedDatasetsFieldBuilder() { if (annotatedDatasetsBuilder_ == null) { - annotatedDatasetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotatedDataset, com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder, com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder>( + annotatedDatasetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset, + com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder>( annotatedDatasets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -890,18 +1028,20 @@ public com.google.cloud.datalabeling.v1beta1.AnnotatedDataset.Builder addAnnotat private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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; @@ -910,20 +1050,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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 { @@ -931,61 +1072,68 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -995,30 +1143,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) - private static final com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse(); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAnnotatedDatasetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAnnotatedDatasetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAnnotatedDatasetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAnnotatedDatasetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1030,9 +1180,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponseOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponseOrBuilder.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponseOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponseOrBuilder.java index decd9564..7618200e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponseOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotatedDatasetsResponseOrBuilder.java @@ -1,73 +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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListAnnotatedDatasetsResponseOrBuilder extends +public interface ListAnnotatedDatasetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListAnnotatedDatasetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of annotated datasets to return.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ - java.util.List - getAnnotatedDatasetsList(); + java.util.List getAnnotatedDatasetsList(); /** + * + * *
    * The list of annotated datasets to return.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ com.google.cloud.datalabeling.v1beta1.AnnotatedDataset getAnnotatedDatasets(int index); /** + * + * *
    * The list of annotated datasets to return.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ int getAnnotatedDatasetsCount(); /** + * + * *
    * The list of annotated datasets to return.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ - java.util.List + java.util.List getAnnotatedDatasetsOrBuilderList(); /** + * + * *
    * The list of annotated datasets to return.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotatedDataset annotated_datasets = 1; + * */ com.google.cloud.datalabeling.v1beta1.AnnotatedDatasetOrBuilder getAnnotatedDatasetsOrBuilder( int index); /** + * + * *
    * A token to retrieve next page of results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results.
    * 
* * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequest.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequest.java index 7291d223..a6430767 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for ListAnnotationSpecSets.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest} */ -public final class ListAnnotationSpecSetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAnnotationSpecSetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) ListAnnotationSpecSetsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAnnotationSpecSetsRequest.newBuilder() to construct. private ListAnnotationSpecSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAnnotationSpecSetsRequest() { parent_ = ""; filter_ = ""; @@ -27,16 +45,15 @@ private ListAnnotationSpecSetsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAnnotationSpecSetsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListAnnotationSpecSetsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListAnnotationSpecSetsRequest( 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: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + 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) { @@ -92,35 +112,42 @@ private ListAnnotationSpecSetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.class, com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.class, + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent of AnnotationSpecSet resource, format:
    * projects/{project_id}
    * 
* - * 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 @@ -129,30 +156,32 @@ 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. Parent of AnnotationSpecSet resource, format:
    * projects/{project_id}
    * 
* - * 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,11 +192,14 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -176,29 +208,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; } } /** + * + * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -209,12 +241,15 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -225,6 +260,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -234,6 +271,7 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -242,14 +280,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; } } /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -259,16 +298,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -277,6 +315,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,8 +327,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_); } @@ -318,8 +356,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -332,21 +369,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.datalabeling.v1beta1.ListAnnotationSpecSetsRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest other = (com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) 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.datalabeling.v1beta1.ListAnnotationSpecSetsRequest other = + (com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) 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; } @@ -372,134 +406,145 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest 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.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest 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.datalabeling.v1beta1.ListAnnotationSpecSetsRequest + 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.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListAnnotationSpecSets.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.class, com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.class, + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.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(); @@ -515,14 +560,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest + .getDefaultInstance(); } @java.lang.Override @@ -536,7 +583,8 @@ public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest build @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest result = new com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest(this); + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest result = + new com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -549,46 +597,51 @@ public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest 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.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest)other); + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest other) { + if (other + == com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -623,7 +676,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -635,19 +690,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent of AnnotationSpecSet resource, format:
      * projects/{project_id}
      * 
* - * 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; @@ -656,21 +715,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent of AnnotationSpecSet resource, format:
      * projects/{project_id}
      * 
* - * 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 { @@ -678,57 +740,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent of AnnotationSpecSet resource, format:
      * projects/{project_id}
      * 
* - * 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. Parent of AnnotationSpecSet resource, format:
      * projects/{project_id}
      * 
* - * 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. Parent of AnnotationSpecSet resource, format:
      * projects/{project_id}
      * 
* - * 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,18 +811,20 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -756,20 +833,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -777,67 +855,77 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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_; /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -845,32 +933,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -878,6 +972,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -887,13 +983,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -902,6 +998,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -911,15 +1009,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -927,6 +1024,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -936,20 +1035,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -959,15 +1060,18 @@ public Builder setPageToken(
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -977,23 +1081,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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); } @@ -1003,30 +1107,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) - private static final com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest(); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAnnotationSpecSetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAnnotationSpecSetsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAnnotationSpecSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAnnotationSpecSetsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1038,9 +1144,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequestOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequestOrBuilder.java index 801bd3fa..c7020472 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequestOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsRequestOrBuilder.java @@ -1,66 +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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListAnnotationSpecSetsRequestOrBuilder extends +public interface ListAnnotationSpecSetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent of AnnotationSpecSet resource, format:
    * projects/{project_id}
    * 
* - * 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. Parent of AnnotationSpecSet resource, format:
    * projects/{project_id}
    * 
* - * 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(); /** + * + * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -70,10 +105,13 @@ public interface ListAnnotationSpecSetsRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -83,8 +121,8 @@ public interface ListAnnotationSpecSetsRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponse.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponse.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponse.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponse.java index 201f90ec..cdb5e1bb 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponse.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponse.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Results of listing annotation spec set under a project.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse} */ -public final class ListAnnotationSpecSetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListAnnotationSpecSetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) ListAnnotationSpecSetsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListAnnotationSpecSetsResponse.newBuilder() to construct. - private ListAnnotationSpecSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private ListAnnotationSpecSetsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListAnnotationSpecSetsResponse() { annotationSpecSets_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +45,15 @@ private ListAnnotationSpecSetsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListAnnotationSpecSetsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListAnnotationSpecSetsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +73,34 @@ private ListAnnotationSpecSetsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - annotationSpecSets_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + annotationSpecSets_ = + new java.util.ArrayList< + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet>(); + mutable_bitField0_ |= 0x00000001; + } + annotationSpecSets_.add( + input.readMessage( + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.parser(), + extensionRegistry)); + break; } - annotationSpecSets_.add( - input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.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) { @@ -84,8 +108,7 @@ private ListAnnotationSpecSetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { annotationSpecSets_ = java.util.Collections.unmodifiableList(annotationSpecSets_); @@ -94,87 +117,110 @@ private ListAnnotationSpecSetsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.class, com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.class, + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.Builder.class); } public static final int ANNOTATION_SPEC_SETS_FIELD_NUMBER = 1; - private java.util.List annotationSpecSets_; + private java.util.List + annotationSpecSets_; /** + * + * *
    * The list of annotation spec sets.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ @java.lang.Override - public java.util.List getAnnotationSpecSetsList() { + public java.util.List + getAnnotationSpecSetsList() { return annotationSpecSets_; } /** + * + * *
    * The list of annotation spec sets.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List getAnnotationSpecSetsOrBuilderList() { return annotationSpecSets_; } /** + * + * *
    * The list of annotation spec sets.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ @java.lang.Override public int getAnnotationSpecSetsCount() { return annotationSpecSets_.size(); } /** + * + * *
    * The list of annotation spec sets.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpecSets(int index) { return annotationSpecSets_.get(index); } /** + * + * *
    * The list of annotation spec sets.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder getAnnotationSpecSetsOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder + getAnnotationSpecSetsOrBuilder(int index) { return annotationSpecSets_.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.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,29 +229,29 @@ 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.
    * 
* * 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 +260,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +272,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 < annotationSpecSets_.size(); i++) { output.writeMessage(1, annotationSpecSets_.get(i)); } @@ -243,8 +289,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < annotationSpecSets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, annotationSpecSets_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, annotationSpecSets_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -257,17 +303,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.datalabeling.v1beta1.ListAnnotationSpecSetsResponse)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse other = (com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) obj; + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse other = + (com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) obj; - if (!getAnnotationSpecSetsList() - .equals(other.getAnnotationSpecSetsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getAnnotationSpecSetsList().equals(other.getAnnotationSpecSetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,135 +336,147 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse 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.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse 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.datalabeling.v1beta1.ListAnnotationSpecSetsResponse + 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.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Results of listing annotation spec set under a project.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.class, com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.class, + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.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) { getAnnotationSpecSetsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,14 +492,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListAnnotationSpecSetsResponse_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse + .getDefaultInstance(); } @java.lang.Override @@ -456,7 +515,8 @@ public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse buil @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse result = new com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse(this); + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse result = + new com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse(this); int from_bitField0_ = bitField0_; if (annotationSpecSetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,46 +536,51 @@ public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse 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.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse)other); + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse other) { - if (other == com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse other) { + if (other + == com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse + .getDefaultInstance()) return this; if (annotationSpecSetsBuilder_ == null) { if (!other.annotationSpecSets_.isEmpty()) { if (annotationSpecSets_.isEmpty()) { @@ -534,9 +599,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListAnnotationSpe annotationSpecSetsBuilder_ = null; annotationSpecSets_ = other.annotationSpecSets_; bitField0_ = (bitField0_ & ~0x00000001); - annotationSpecSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAnnotationSpecSetsFieldBuilder() : null; + annotationSpecSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAnnotationSpecSetsFieldBuilder() + : null; } else { annotationSpecSetsBuilder_.addAllMessages(other.annotationSpecSets_); } @@ -565,7 +631,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,28 +642,39 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List annotationSpecSets_ = - java.util.Collections.emptyList(); + private java.util.List + annotationSpecSets_ = java.util.Collections.emptyList(); + private void ensureAnnotationSpecSetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - annotationSpecSets_ = new java.util.ArrayList(annotationSpecSets_); + annotationSpecSets_ = + new java.util.ArrayList( + annotationSpecSets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder> annotationSpecSetsBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder> + annotationSpecSetsBuilder_; /** + * + * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ - public java.util.List getAnnotationSpecSetsList() { + public java.util.List + getAnnotationSpecSetsList() { if (annotationSpecSetsBuilder_ == null) { return java.util.Collections.unmodifiableList(annotationSpecSets_); } else { @@ -603,11 +682,14 @@ public java.util.List g } } /** + * + * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ public int getAnnotationSpecSetsCount() { if (annotationSpecSetsBuilder_ == null) { @@ -617,13 +699,17 @@ public int getAnnotationSpecSetsCount() { } } /** + * + * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpecSets(int index) { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpecSets( + int index) { if (annotationSpecSetsBuilder_ == null) { return annotationSpecSets_.get(index); } else { @@ -631,11 +717,14 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpec } } /** + * + * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ public Builder setAnnotationSpecSets( int index, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet value) { @@ -652,14 +741,18 @@ public Builder setAnnotationSpecSets( return this; } /** + * + * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ public Builder setAnnotationSpecSets( - int index, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder builderForValue) { + int index, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder builderForValue) { if (annotationSpecSetsBuilder_ == null) { ensureAnnotationSpecSetsIsMutable(); annotationSpecSets_.set(index, builderForValue.build()); @@ -670,13 +763,17 @@ public Builder setAnnotationSpecSets( return this; } /** + * + * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ - public Builder addAnnotationSpecSets(com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet value) { + public Builder addAnnotationSpecSets( + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet value) { if (annotationSpecSetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -690,11 +787,14 @@ public Builder addAnnotationSpecSets(com.google.cloud.datalabeling.v1beta1.Annot return this; } /** + * + * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ public Builder addAnnotationSpecSets( int index, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet value) { @@ -711,11 +811,14 @@ public Builder addAnnotationSpecSets( return this; } /** + * + * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ public Builder addAnnotationSpecSets( com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder builderForValue) { @@ -729,14 +832,18 @@ public Builder addAnnotationSpecSets( return this; } /** + * + * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ public Builder addAnnotationSpecSets( - int index, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder builderForValue) { + int index, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder builderForValue) { if (annotationSpecSetsBuilder_ == null) { ensureAnnotationSpecSetsIsMutable(); annotationSpecSets_.add(index, builderForValue.build()); @@ -747,18 +854,21 @@ public Builder addAnnotationSpecSets( return this; } /** + * + * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ public Builder addAllAnnotationSpecSets( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (annotationSpecSetsBuilder_ == null) { ensureAnnotationSpecSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, annotationSpecSets_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationSpecSets_); onChanged(); } else { annotationSpecSetsBuilder_.addAllMessages(values); @@ -766,11 +876,14 @@ public Builder addAllAnnotationSpecSets( return this; } /** + * + * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ public Builder clearAnnotationSpecSets() { if (annotationSpecSetsBuilder_ == null) { @@ -783,11 +896,14 @@ public Builder clearAnnotationSpecSets() { return this; } /** + * + * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ public Builder removeAnnotationSpecSets(int index) { if (annotationSpecSetsBuilder_ == null) { @@ -800,39 +916,50 @@ public Builder removeAnnotationSpecSets(int index) { return this; } /** + * + * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder getAnnotationSpecSetsBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder + getAnnotationSpecSetsBuilder(int index) { return getAnnotationSpecSetsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder getAnnotationSpecSetsOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder + getAnnotationSpecSetsOrBuilder(int index) { if (annotationSpecSetsBuilder_ == null) { - return annotationSpecSets_.get(index); } else { + return annotationSpecSets_.get(index); + } else { return annotationSpecSetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ - public java.util.List - getAnnotationSpecSetsOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder> + getAnnotationSpecSetsOrBuilderList() { if (annotationSpecSetsBuilder_ != null) { return annotationSpecSetsBuilder_.getMessageOrBuilderList(); } else { @@ -840,45 +967,62 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder getAnnot } } /** + * + * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder addAnnotationSpecSetsBuilder() { - return getAnnotationSpecSetsFieldBuilder().addBuilder( - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder + addAnnotationSpecSetsBuilder() { + return getAnnotationSpecSetsFieldBuilder() + .addBuilder(com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance()); } /** + * + * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder addAnnotationSpecSetsBuilder( - int index) { - return getAnnotationSpecSetsFieldBuilder().addBuilder( - index, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder + addAnnotationSpecSetsBuilder(int index) { + return getAnnotationSpecSetsFieldBuilder() + .addBuilder( + index, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.getDefaultInstance()); } /** + * + * *
      * The list of annotation spec sets.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ - public java.util.List - getAnnotationSpecSetsBuilderList() { + public java.util.List + getAnnotationSpecSetsBuilderList() { return getAnnotationSpecSetsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder> getAnnotationSpecSetsFieldBuilder() { if (annotationSpecSetsBuilder_ == null) { - annotationSpecSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder>( + annotationSpecSetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder>( annotationSpecSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -890,18 +1034,20 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet.Builder addAnnota private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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; @@ -910,20 +1056,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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 { @@ -931,61 +1078,68 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -995,30 +1149,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) - private static final com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse(); } - public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAnnotationSpecSetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListAnnotationSpecSetsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAnnotationSpecSetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListAnnotationSpecSetsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1030,9 +1186,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponseOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponseOrBuilder.java similarity index 63% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponseOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponseOrBuilder.java index 7f6b3eb4..ac656eca 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponseOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListAnnotationSpecSetsResponseOrBuilder.java @@ -1,73 +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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListAnnotationSpecSetsResponseOrBuilder extends +public interface ListAnnotationSpecSetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListAnnotationSpecSetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of annotation spec sets.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ - java.util.List + java.util.List getAnnotationSpecSetsList(); /** + * + * *
    * The list of annotation spec sets.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ com.google.cloud.datalabeling.v1beta1.AnnotationSpecSet getAnnotationSpecSets(int index); /** + * + * *
    * The list of annotation spec sets.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ int getAnnotationSpecSetsCount(); /** + * + * *
    * The list of annotation spec sets.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ - java.util.List + java.util.List getAnnotationSpecSetsOrBuilderList(); /** + * + * *
    * The list of annotation spec sets.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * repeated .google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_sets = 1; + * */ com.google.cloud.datalabeling.v1beta1.AnnotationSpecSetOrBuilder getAnnotationSpecSetsOrBuilder( int index); /** + * + * *
    * A token to retrieve next page of results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results.
    * 
* * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequest.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequest.java index 1eed3f0b..ea4c1e65 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for ListDataItems.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListDataItemsRequest} */ -public final class ListDataItemsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDataItemsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListDataItemsRequest) ListDataItemsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDataItemsRequest.newBuilder() to construct. private ListDataItemsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDataItemsRequest() { parent_ = ""; filter_ = ""; @@ -27,16 +45,15 @@ private ListDataItemsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDataItemsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListDataItemsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListDataItemsRequest( 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: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + 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) { @@ -92,35 +112,42 @@ private ListDataItemsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.class, com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.class, + com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Name of the dataset to list data items, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * 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 @@ -129,30 +156,32 @@ 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. Name of the dataset to list data items, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * 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,11 +192,14 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -176,29 +208,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; } } /** + * + * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -209,12 +241,15 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -225,6 +260,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -234,6 +271,7 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -242,14 +280,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; } } /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -259,16 +298,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -277,6 +315,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,8 +327,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_); } @@ -318,8 +356,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -332,21 +369,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.datalabeling.v1beta1.ListDataItemsRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest other = (com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest) 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.datalabeling.v1beta1.ListDataItemsRequest other = + (com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest) 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; } @@ -372,117 +406,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest 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.datalabeling.v1beta1.ListDataItemsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListDataItems.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListDataItemsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListDataItemsRequest) com.google.cloud.datalabeling.v1beta1.ListDataItemsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.class, com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.class, + com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.newBuilder() @@ -490,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(); @@ -515,9 +558,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsRequest_descriptor; } @java.lang.Override @@ -536,7 +579,8 @@ public com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest result = new com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest(this); + com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest result = + new com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -549,38 +593,39 @@ public com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest) other); } else { super.mergeFrom(other); return this; @@ -588,7 +633,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -623,7 +669,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -635,19 +682,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of the dataset to list data items, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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; @@ -656,21 +707,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the dataset to list data items, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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 { @@ -678,57 +732,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the dataset to list data items, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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. Name of the dataset to list data items, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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. Name of the dataset to list data items, format:
      * projects/{project_id}/datasets/{dataset_id}
      * 
* - * 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,18 +803,20 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -756,20 +825,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -777,67 +847,77 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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_; /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -845,32 +925,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -878,6 +964,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -887,13 +975,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -902,6 +990,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -911,15 +1001,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -927,6 +1016,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -936,20 +1027,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -959,15 +1052,18 @@ public Builder setPageToken(
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -977,23 +1073,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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); } @@ -1003,12 +1099,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListDataItemsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListDataItemsRequest) private static final com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest(); } @@ -1017,16 +1113,16 @@ public static com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDataItemsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDataItemsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataItemsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDataItemsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1041,6 +1137,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ListDataItemsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequestOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequestOrBuilder.java index 77db5b62..14741e6c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequestOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsRequestOrBuilder.java @@ -1,66 +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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListDataItemsRequestOrBuilder extends +public interface ListDataItemsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListDataItemsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the dataset to list data items, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * 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. Name of the dataset to list data items, format:
    * projects/{project_id}/datasets/{dataset_id}
    * 
* - * 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(); /** + * + * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -70,10 +105,13 @@ public interface ListDataItemsRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -83,8 +121,8 @@ public interface ListDataItemsRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponse.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponse.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponse.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponse.java index af7b9fc7..f39c15e1 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponse.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponse.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Results of listing data items in a dataset.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListDataItemsResponse} */ -public final class ListDataItemsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListDataItemsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListDataItemsResponse) ListDataItemsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListDataItemsResponse.newBuilder() to construct. private ListDataItemsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListDataItemsResponse() { dataItems_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListDataItemsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListDataItemsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListDataItemsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private ListDataItemsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dataItems_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + dataItems_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + dataItems_.add( + input.readMessage( + com.google.cloud.datalabeling.v1beta1.DataItem.parser(), extensionRegistry)); + break; } - dataItems_.add( - input.readMessage(com.google.cloud.datalabeling.v1beta1.DataItem.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) { @@ -84,8 +105,7 @@ private ListDataItemsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { dataItems_ = java.util.Collections.unmodifiableList(dataItems_); @@ -94,22 +114,27 @@ private ListDataItemsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.class, com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.class, + com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.Builder.class); } public static final int DATA_ITEMS_FIELD_NUMBER = 1; private java.util.List dataItems_; /** + * + * *
    * The list of data items to return.
    * 
@@ -121,6 +146,8 @@ public java.util.List getDataIte return dataItems_; } /** + * + * *
    * The list of data items to return.
    * 
@@ -128,11 +155,13 @@ public java.util.List getDataIte * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDataItemsOrBuilderList() { return dataItems_; } /** + * + * *
    * The list of data items to return.
    * 
@@ -144,6 +173,8 @@ public int getDataItemsCount() { return dataItems_.size(); } /** + * + * *
    * The list of data items to return.
    * 
@@ -155,6 +186,8 @@ public com.google.cloud.datalabeling.v1beta1.DataItem getDataItems(int index) { return dataItems_.get(index); } /** + * + * *
    * The list of data items to return.
    * 
@@ -162,19 +195,21 @@ public com.google.cloud.datalabeling.v1beta1.DataItem getDataItems(int index) { * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder getDataItemsOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder getDataItemsOrBuilder(int index) { return dataItems_.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.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,29 +218,29 @@ 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.
    * 
* * 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 < dataItems_.size(); i++) { output.writeMessage(1, dataItems_.get(i)); } @@ -243,8 +278,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < dataItems_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, dataItems_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataItems_.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.datalabeling.v1beta1.ListDataItemsResponse)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse other = (com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse) obj; + com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse other = + (com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse) obj; - if (!getDataItemsList() - .equals(other.getDataItemsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getDataItemsList().equals(other.getDataItemsList())) 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.datalabeling.v1beta1.ListDataItemsResponse 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.datalabeling.v1beta1.ListDataItemsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Results of listing data items in a dataset.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListDataItemsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListDataItemsResponse) com.google.cloud.datalabeling.v1beta1.ListDataItemsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.class, com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.class, + com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.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) { getDataItemsFieldBuilder(); } } + @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.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListDataItemsResponse_descriptor; } @java.lang.Override @@ -456,7 +499,8 @@ public com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse result = new com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse(this); + com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse result = + new com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse(this); int from_bitField0_ = bitField0_; if (dataItemsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,38 +520,39 @@ public com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse buildPartial( public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse) 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.datalabeling.v1beta1.ListDataItemsResponse other) { - if (other == com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse.getDefaultInstance()) + return this; if (dataItemsBuilder_ == null) { if (!other.dataItems_.isEmpty()) { if (dataItems_.isEmpty()) { @@ -534,9 +580,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListDataItemsResp dataItemsBuilder_ = null; dataItems_ = other.dataItems_; bitField0_ = (bitField0_ & ~0x00000001); - dataItemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDataItemsFieldBuilder() : null; + dataItemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDataItemsFieldBuilder() + : null; } else { dataItemsBuilder_.addAllMessages(other.dataItems_); } @@ -565,7 +612,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse) 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 dataItems_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDataItemsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - dataItems_ = new java.util.ArrayList(dataItems_); + dataItems_ = + new java.util.ArrayList(dataItems_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.DataItem, com.google.cloud.datalabeling.v1beta1.DataItem.Builder, com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder> dataItemsBuilder_; + com.google.cloud.datalabeling.v1beta1.DataItem, + com.google.cloud.datalabeling.v1beta1.DataItem.Builder, + com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder> + dataItemsBuilder_; /** + * + * *
      * The list of data items to return.
      * 
@@ -603,6 +659,8 @@ public java.util.List getDataIte } } /** + * + * *
      * The list of data items to return.
      * 
@@ -617,6 +675,8 @@ public int getDataItemsCount() { } } /** + * + * *
      * The list of data items to return.
      * 
@@ -631,14 +691,15 @@ public com.google.cloud.datalabeling.v1beta1.DataItem getDataItems(int index) { } } /** + * + * *
      * The list of data items to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ - public Builder setDataItems( - int index, com.google.cloud.datalabeling.v1beta1.DataItem value) { + public Builder setDataItems(int index, com.google.cloud.datalabeling.v1beta1.DataItem value) { if (dataItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -652,6 +713,8 @@ public Builder setDataItems( return this; } /** + * + * *
      * The list of data items to return.
      * 
@@ -670,6 +733,8 @@ public Builder setDataItems( return this; } /** + * + * *
      * The list of data items to return.
      * 
@@ -690,14 +755,15 @@ public Builder addDataItems(com.google.cloud.datalabeling.v1beta1.DataItem value return this; } /** + * + * *
      * The list of data items to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ - public Builder addDataItems( - int index, com.google.cloud.datalabeling.v1beta1.DataItem value) { + public Builder addDataItems(int index, com.google.cloud.datalabeling.v1beta1.DataItem value) { if (dataItemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -711,6 +777,8 @@ public Builder addDataItems( return this; } /** + * + * *
      * The list of data items to return.
      * 
@@ -729,6 +797,8 @@ public Builder addDataItems( return this; } /** + * + * *
      * The list of data items to return.
      * 
@@ -747,6 +817,8 @@ public Builder addDataItems( return this; } /** + * + * *
      * The list of data items to return.
      * 
@@ -757,8 +829,7 @@ public Builder addAllDataItems( java.lang.Iterable values) { if (dataItemsBuilder_ == null) { ensureDataItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dataItems_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataItems_); onChanged(); } else { dataItemsBuilder_.addAllMessages(values); @@ -766,6 +837,8 @@ public Builder addAllDataItems( return this; } /** + * + * *
      * The list of data items to return.
      * 
@@ -783,6 +856,8 @@ public Builder clearDataItems() { return this; } /** + * + * *
      * The list of data items to return.
      * 
@@ -800,17 +875,20 @@ public Builder removeDataItems(int index) { return this; } /** + * + * *
      * The list of data items to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ - public com.google.cloud.datalabeling.v1beta1.DataItem.Builder getDataItemsBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.DataItem.Builder getDataItemsBuilder(int index) { return getDataItemsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of data items to return.
      * 
@@ -820,19 +898,22 @@ public com.google.cloud.datalabeling.v1beta1.DataItem.Builder getDataItemsBuilde public com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder getDataItemsOrBuilder( int index) { if (dataItemsBuilder_ == null) { - return dataItems_.get(index); } else { + return dataItems_.get(index); + } else { return dataItemsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of data items to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ - public java.util.List - getDataItemsOrBuilderList() { + public java.util.List + getDataItemsOrBuilderList() { if (dataItemsBuilder_ != null) { return dataItemsBuilder_.getMessageOrBuilderList(); } else { @@ -840,6 +921,8 @@ public com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder getDataItemsOrBui } } /** + * + * *
      * The list of data items to return.
      * 
@@ -847,42 +930,48 @@ public com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder getDataItemsOrBui * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ public com.google.cloud.datalabeling.v1beta1.DataItem.Builder addDataItemsBuilder() { - return getDataItemsFieldBuilder().addBuilder( - com.google.cloud.datalabeling.v1beta1.DataItem.getDefaultInstance()); + return getDataItemsFieldBuilder() + .addBuilder(com.google.cloud.datalabeling.v1beta1.DataItem.getDefaultInstance()); } /** + * + * *
      * The list of data items to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ - public com.google.cloud.datalabeling.v1beta1.DataItem.Builder addDataItemsBuilder( - int index) { - return getDataItemsFieldBuilder().addBuilder( - index, com.google.cloud.datalabeling.v1beta1.DataItem.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.DataItem.Builder addDataItemsBuilder(int index) { + return getDataItemsFieldBuilder() + .addBuilder(index, com.google.cloud.datalabeling.v1beta1.DataItem.getDefaultInstance()); } /** + * + * *
      * The list of data items to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ - public java.util.List - getDataItemsBuilderList() { + public java.util.List + getDataItemsBuilderList() { return getDataItemsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.DataItem, com.google.cloud.datalabeling.v1beta1.DataItem.Builder, com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder> + com.google.cloud.datalabeling.v1beta1.DataItem, + com.google.cloud.datalabeling.v1beta1.DataItem.Builder, + com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder> getDataItemsFieldBuilder() { if (dataItemsBuilder_ == null) { - dataItemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.DataItem, com.google.cloud.datalabeling.v1beta1.DataItem.Builder, com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder>( - dataItems_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + dataItemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.DataItem, + com.google.cloud.datalabeling.v1beta1.DataItem.Builder, + com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder>( + dataItems_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); dataItems_ = null; } return dataItemsBuilder_; @@ -890,18 +979,20 @@ public com.google.cloud.datalabeling.v1beta1.DataItem.Builder addDataItemsBuilde private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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; @@ -910,20 +1001,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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 { @@ -931,61 +1023,68 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -995,12 +1094,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListDataItemsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListDataItemsResponse) private static final com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse(); } @@ -1009,16 +1108,16 @@ public static com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDataItemsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListDataItemsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataItemsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDataItemsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1033,6 +1132,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ListDataItemsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponseOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponseOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponseOrBuilder.java index 47f63aa0..75589d88 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponseOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDataItemsResponseOrBuilder.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListDataItemsResponseOrBuilder extends +public interface ListDataItemsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListDataItemsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of data items to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ - java.util.List - getDataItemsList(); + java.util.List getDataItemsList(); /** + * + * *
    * The list of data items to return.
    * 
@@ -25,6 +44,8 @@ public interface ListDataItemsResponseOrBuilder extends */ com.google.cloud.datalabeling.v1beta1.DataItem getDataItems(int index); /** + * + * *
    * The list of data items to return.
    * 
@@ -33,41 +54,49 @@ public interface ListDataItemsResponseOrBuilder extends */ int getDataItemsCount(); /** + * + * *
    * The list of data items to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ - java.util.List + java.util.List getDataItemsOrBuilderList(); /** + * + * *
    * The list of data items to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.DataItem data_items = 1; */ - com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder getDataItemsOrBuilder( - int index); + com.google.cloud.datalabeling.v1beta1.DataItemOrBuilder getDataItemsOrBuilder(int index); /** + * + * *
    * A token to retrieve next page of results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results.
    * 
* * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequest.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequest.java index 9e34fd36..1717304d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for ListDataset.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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,36 +72,39 @@ 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 18: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + 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) { @@ -92,35 +112,42 @@ private ListDatasetsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.class, com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.class, + com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Dataset resource parent, format:
    * projects/{project_id}
    * 
* - * 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 @@ -129,30 +156,32 @@ 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. Dataset resource parent, format:
    * projects/{project_id}
    * 
* - * 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,11 +192,14 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Optional. Filter on dataset is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -176,29 +208,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; } } /** + * + * *
    * Optional. Filter on dataset is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -209,12 +241,15 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -225,6 +260,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -234,6 +271,7 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -242,14 +280,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; } } /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -259,16 +298,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -277,6 +315,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,8 +327,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_); } @@ -318,8 +356,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -332,21 +369,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.datalabeling.v1beta1.ListDatasetsRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest other = (com.google.cloud.datalabeling.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.datalabeling.v1beta1.ListDatasetsRequest other = + (com.google.cloud.datalabeling.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; } @@ -372,117 +406,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ListDatasetsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ListDatasetsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ListDatasetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ListDatasetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ListDatasetsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.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 ListDataset.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.ListDatasetsRequest) com.google.cloud.datalabeling.v1beta1.ListDatasetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.class, com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.class, + com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.newBuilder() @@ -490,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(); @@ -515,9 +558,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsRequest_descriptor; } @java.lang.Override @@ -536,7 +579,8 @@ public com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest result = new com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest(this); + com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest result = + new com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -549,38 +593,39 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.ListDatasetsRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest) other); } else { super.mergeFrom(other); return this; @@ -588,7 +633,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -623,7 +669,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -635,19 +682,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Dataset resource parent, format:
      * projects/{project_id}
      * 
* - * 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; @@ -656,21 +707,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Dataset resource parent, format:
      * projects/{project_id}
      * 
* - * 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 { @@ -678,57 +732,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Dataset resource parent, format:
      * projects/{project_id}
      * 
* - * 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. Dataset resource parent, format:
      * projects/{project_id}
      * 
* - * 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. Dataset resource parent, format:
      * projects/{project_id}
      * 
* - * 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,18 +803,20 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Filter on dataset is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -756,20 +825,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter on dataset is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -777,67 +847,77 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter on dataset is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. Filter on dataset is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Optional. Filter on dataset is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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_; /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -845,32 +925,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -878,6 +964,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -887,13 +975,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -902,6 +990,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -911,15 +1001,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -927,6 +1016,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -936,20 +1027,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -959,15 +1052,18 @@ public Builder setPageToken(
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -977,23 +1073,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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); } @@ -1003,12 +1099,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListDatasetsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListDatasetsRequest) private static final com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest(); } @@ -1017,16 +1113,16 @@ public static com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest getDefau 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; @@ -1041,6 +1137,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ListDatasetsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequestOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequestOrBuilder.java index a5ecfeba..43f5860d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequestOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsRequestOrBuilder.java @@ -1,66 +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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListDatasetsRequestOrBuilder extends +public interface ListDatasetsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListDatasetsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Dataset resource parent, format:
    * projects/{project_id}
    * 
* - * 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. Dataset resource parent, format:
    * projects/{project_id}
    * 
* - * 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(); /** + * + * *
    * Optional. Filter on dataset is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. Filter on dataset is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -70,10 +105,13 @@ public interface ListDatasetsRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -83,8 +121,8 @@ public interface ListDatasetsRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponse.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponse.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponse.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponse.java index 0b2de610..e5adb3e4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponse.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Results of listing datasets within a project.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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,28 +72,32 @@ 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.datalabeling.v1beta1.Dataset.parser(), extensionRegistry)); + break; } - datasets_.add( - input.readMessage(com.google.cloud.datalabeling.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) { @@ -84,8 +105,7 @@ private ListDatasetsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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_); @@ -94,22 +114,27 @@ private ListDatasetsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.class, com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.class, + com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.Builder.class); } public static final int DATASETS_FIELD_NUMBER = 1; private java.util.List datasets_; /** + * + * *
    * The list of datasets to return.
    * 
@@ -121,6 +146,8 @@ public java.util.List getDatasets return datasets_; } /** + * + * *
    * The list of datasets to return.
    * 
@@ -128,11 +155,13 @@ public java.util.List getDatasets * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ @java.lang.Override - public java.util.List + public java.util.List getDatasetsOrBuilderList() { return datasets_; } /** + * + * *
    * The list of datasets to return.
    * 
@@ -144,6 +173,8 @@ public int getDatasetsCount() { return datasets_.size(); } /** + * + * *
    * The list of datasets to return.
    * 
@@ -155,6 +186,8 @@ public com.google.cloud.datalabeling.v1beta1.Dataset getDatasets(int index) { return datasets_.get(index); } /** + * + * *
    * The list of datasets to return.
    * 
@@ -162,19 +195,21 @@ public com.google.cloud.datalabeling.v1beta1.Dataset getDatasets(int index) { * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetsOrBuilder( - int index) { + public com.google.cloud.datalabeling.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.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,29 +218,29 @@ 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.
    * 
* * 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 < datasets_.size(); i++) { output.writeMessage(1, datasets_.get(i)); } @@ -243,8 +278,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 +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.datalabeling.v1beta1.ListDatasetsResponse)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse other = (com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse) obj; + com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse other = + (com.google.cloud.datalabeling.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 +324,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ListDatasetsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ListDatasetsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ListDatasetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.ListDatasetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.ListDatasetsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.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; } /** + * + * *
    * Results of listing datasets within a project.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.ListDatasetsResponse) com.google.cloud.datalabeling.v1beta1.ListDatasetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.class, com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.class, + com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.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) { getDatasetsFieldBuilder(); } } + @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.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListDatasetsResponse_descriptor; } @java.lang.Override @@ -456,7 +499,8 @@ public com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse result = new com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse(this); + com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse result = + new com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse(this); int from_bitField0_ = bitField0_; if (datasetsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,38 +520,39 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.ListDatasetsResponse) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse) 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.datalabeling.v1beta1.ListDatasetsResponse other) { - if (other == com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse.getDefaultInstance()) + return this; if (datasetsBuilder_ == null) { if (!other.datasets_.isEmpty()) { if (datasets_.isEmpty()) { @@ -534,9 +580,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListDatasetsRespo 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 +612,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse) 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 datasets_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDatasetsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - datasets_ = new java.util.ArrayList(datasets_); + datasets_ = + new java.util.ArrayList(datasets_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Dataset, com.google.cloud.datalabeling.v1beta1.Dataset.Builder, com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder> datasetsBuilder_; + com.google.cloud.datalabeling.v1beta1.Dataset, + com.google.cloud.datalabeling.v1beta1.Dataset.Builder, + com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder> + datasetsBuilder_; /** + * + * *
      * The list of datasets to return.
      * 
@@ -603,6 +659,8 @@ public java.util.List getDatasets } } /** + * + * *
      * The list of datasets to return.
      * 
@@ -617,6 +675,8 @@ public int getDatasetsCount() { } } /** + * + * *
      * The list of datasets to return.
      * 
@@ -631,14 +691,15 @@ public com.google.cloud.datalabeling.v1beta1.Dataset getDatasets(int index) { } } /** + * + * *
      * The list of datasets to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ - public Builder setDatasets( - int index, com.google.cloud.datalabeling.v1beta1.Dataset value) { + public Builder setDatasets(int index, com.google.cloud.datalabeling.v1beta1.Dataset value) { if (datasetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -652,6 +713,8 @@ public Builder setDatasets( return this; } /** + * + * *
      * The list of datasets to return.
      * 
@@ -670,6 +733,8 @@ public Builder setDatasets( return this; } /** + * + * *
      * The list of datasets to return.
      * 
@@ -690,14 +755,15 @@ public Builder addDatasets(com.google.cloud.datalabeling.v1beta1.Dataset value) return this; } /** + * + * *
      * The list of datasets to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ - public Builder addDatasets( - int index, com.google.cloud.datalabeling.v1beta1.Dataset value) { + public Builder addDatasets(int index, com.google.cloud.datalabeling.v1beta1.Dataset value) { if (datasetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -711,6 +777,8 @@ public Builder addDatasets( return this; } /** + * + * *
      * The list of datasets to return.
      * 
@@ -729,6 +797,8 @@ public Builder addDatasets( return this; } /** + * + * *
      * The list of datasets to return.
      * 
@@ -747,6 +817,8 @@ public Builder addDatasets( return this; } /** + * + * *
      * The list of datasets to return.
      * 
@@ -757,8 +829,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 +837,8 @@ public Builder addAllDatasets( return this; } /** + * + * *
      * The list of datasets to return.
      * 
@@ -783,6 +856,8 @@ public Builder clearDatasets() { return this; } /** + * + * *
      * The list of datasets to return.
      * 
@@ -800,39 +875,44 @@ public Builder removeDatasets(int index) { return this; } /** + * + * *
      * The list of datasets to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ - public com.google.cloud.datalabeling.v1beta1.Dataset.Builder getDatasetsBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.Dataset.Builder getDatasetsBuilder(int index) { return getDatasetsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of datasets to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ - public com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetsOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetsOrBuilder(int index) { if (datasetsBuilder_ == null) { - return datasets_.get(index); } else { + return datasets_.get(index); + } else { return datasetsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of datasets to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ - public java.util.List - getDatasetsOrBuilderList() { + public java.util.List + getDatasetsOrBuilderList() { if (datasetsBuilder_ != null) { return datasetsBuilder_.getMessageOrBuilderList(); } else { @@ -840,6 +920,8 @@ public com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetsOrBuild } } /** + * + * *
      * The list of datasets to return.
      * 
@@ -847,42 +929,48 @@ public com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetsOrBuild * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ public com.google.cloud.datalabeling.v1beta1.Dataset.Builder addDatasetsBuilder() { - return getDatasetsFieldBuilder().addBuilder( - com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance()); + return getDatasetsFieldBuilder() + .addBuilder(com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance()); } /** + * + * *
      * The list of datasets to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ - public com.google.cloud.datalabeling.v1beta1.Dataset.Builder addDatasetsBuilder( - int index) { - return getDatasetsFieldBuilder().addBuilder( - index, com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.Dataset.Builder addDatasetsBuilder(int index) { + return getDatasetsFieldBuilder() + .addBuilder(index, com.google.cloud.datalabeling.v1beta1.Dataset.getDefaultInstance()); } /** + * + * *
      * The list of datasets to return.
      * 
* * repeated .google.cloud.datalabeling.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.datalabeling.v1beta1.Dataset, com.google.cloud.datalabeling.v1beta1.Dataset.Builder, com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder> + com.google.cloud.datalabeling.v1beta1.Dataset, + com.google.cloud.datalabeling.v1beta1.Dataset.Builder, + com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder> getDatasetsFieldBuilder() { if (datasetsBuilder_ == null) { - datasetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Dataset, com.google.cloud.datalabeling.v1beta1.Dataset.Builder, com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder>( - datasets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + datasetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.Dataset, + com.google.cloud.datalabeling.v1beta1.Dataset.Builder, + com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder>( + datasets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); datasets_ = null; } return datasetsBuilder_; @@ -890,18 +978,20 @@ public com.google.cloud.datalabeling.v1beta1.Dataset.Builder addDatasetsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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; @@ -910,20 +1000,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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 { @@ -931,61 +1022,68 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -995,12 +1093,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListDatasetsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListDatasetsResponse) private static final com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse(); } @@ -1009,16 +1107,16 @@ public static com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse getDefa 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; @@ -1033,6 +1131,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ListDatasetsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponseOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponseOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponseOrBuilder.java index 9302ce9f..63f60058 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListDatasetsResponseOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListDatasetsResponseOrBuilder extends +public interface ListDatasetsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListDatasetsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of datasets to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ - java.util.List - getDatasetsList(); + java.util.List getDatasetsList(); /** + * + * *
    * The list of datasets to return.
    * 
@@ -25,6 +44,8 @@ public interface ListDatasetsResponseOrBuilder extends */ com.google.cloud.datalabeling.v1beta1.Dataset getDatasets(int index); /** + * + * *
    * The list of datasets to return.
    * 
@@ -33,41 +54,49 @@ public interface ListDatasetsResponseOrBuilder extends */ int getDatasetsCount(); /** + * + * *
    * The list of datasets to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ - java.util.List + java.util.List getDatasetsOrBuilderList(); /** + * + * *
    * The list of datasets to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Dataset datasets = 1; */ - com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetsOrBuilder( - int index); + com.google.cloud.datalabeling.v1beta1.DatasetOrBuilder getDatasetsOrBuilder(int index); /** + * + * *
    * A token to retrieve next page of results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results.
    * 
* * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequest.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequest.java index 1c0557a3..11f29a05 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for ListEvaluationJobs.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest} */ -public final class ListEvaluationJobsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListEvaluationJobsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) ListEvaluationJobsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListEvaluationJobsRequest.newBuilder() to construct. private ListEvaluationJobsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListEvaluationJobsRequest() { parent_ = ""; filter_ = ""; @@ -27,16 +45,15 @@ private ListEvaluationJobsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListEvaluationJobsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListEvaluationJobsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListEvaluationJobsRequest( 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: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + 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) { @@ -92,35 +112,42 @@ private ListEvaluationJobsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.class, com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.class, + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Evaluation job resource parent. Format:
    * "projects/<var>{project_id}</var>"
    * 
* - * 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 @@ -129,30 +156,32 @@ 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. Evaluation job resource parent. Format:
    * "projects/<var>{project_id}</var>"
    * 
* - * 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 = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Optional. You can filter the jobs to list by model_id (also known as
    * model_name, as described in
@@ -175,6 +206,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } } /** + * + * *
    * Optional. You can filter the jobs to list by model_id (also known as
    * model_name, as described in
@@ -203,16 +236,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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,12 +255,15 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -239,6 +274,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -248,6 +285,7 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -256,14 +294,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; } } /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -273,16 +312,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -291,6 +329,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -302,8 +341,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_); } @@ -332,8 +370,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -346,21 +383,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.datalabeling.v1beta1.ListEvaluationJobsRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest other = (com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) 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.datalabeling.v1beta1.ListEvaluationJobsRequest other = + (com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) 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; } @@ -386,117 +420,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest 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.datalabeling.v1beta1.ListEvaluationJobsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListEvaluationJobs.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.class, com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.class, + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.newBuilder() @@ -504,16 +548,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(); @@ -529,13 +572,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.getDefaultInstance(); } @@ -550,7 +594,8 @@ public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest result = new com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest(this); + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest result = + new com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -563,46 +608,50 @@ public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest 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.datalabeling.v1beta1.ListEvaluationJobsRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest other) { + if (other + == com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -637,7 +686,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -649,19 +700,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Evaluation job resource parent. Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * 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; @@ -670,21 +725,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Evaluation job resource parent. Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * 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 { @@ -692,57 +750,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Evaluation job resource parent. Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * 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. Evaluation job resource parent. Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * 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. Evaluation job resource parent. Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * 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; @@ -750,6 +821,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. You can filter the jobs to list by model_id (also known as
      * model_name, as described in
@@ -762,13 +835,13 @@ public Builder setParentBytes(
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -777,6 +850,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. You can filter the jobs to list by model_id (also known as
      * model_name, as described in
@@ -789,15 +864,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -805,6 +879,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. You can filter the jobs to list by model_id (also known as
      * model_name, as described in
@@ -817,20 +893,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. You can filter the jobs to list by model_id (also known as
      * model_name, as described in
@@ -843,15 +921,18 @@ public Builder setFilter(
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Optional. You can filter the jobs to list by model_id (also known as
      * model_name, as described in
@@ -864,29 +945,32 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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_; /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -894,32 +978,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -927,6 +1017,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -936,13 +1028,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -951,6 +1043,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -960,15 +1054,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -976,6 +1069,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -985,20 +1080,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -1008,15 +1105,18 @@ public Builder setPageToken(
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -1026,23 +1126,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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); } @@ -1052,30 +1152,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) - private static final com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest(); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEvaluationJobsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListEvaluationJobsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEvaluationJobsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListEvaluationJobsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1087,9 +1189,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequestOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequestOrBuilder.java index 549ad0e3..ef055dd8 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequestOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListEvaluationJobsRequestOrBuilder extends +public interface ListEvaluationJobsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListEvaluationJobsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Evaluation job resource parent. Format:
    * "projects/<var>{project_id}</var>"
    * 
* - * 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. Evaluation job resource parent. Format:
    * "projects/<var>{project_id}</var>"
    * 
* - * 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(); /** + * + * *
    * Optional. You can filter the jobs to list by model_id (also known as
    * model_name, as described in
@@ -42,10 +69,13 @@ public interface ListEvaluationJobsRequestOrBuilder extends
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. You can filter the jobs to list by model_id (also known as
    * model_name, as described in
@@ -58,23 +88,28 @@ public interface ListEvaluationJobsRequestOrBuilder extends
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -84,10 +119,13 @@ public interface ListEvaluationJobsRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -97,8 +135,8 @@ public interface ListEvaluationJobsRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponse.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponse.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponse.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponse.java index d7c587fc..04736707 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponse.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponse.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Results for listing evaluation jobs.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse} */ -public final class ListEvaluationJobsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListEvaluationJobsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse) ListEvaluationJobsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListEvaluationJobsResponse.newBuilder() to construct. private ListEvaluationJobsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListEvaluationJobsResponse() { evaluationJobs_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListEvaluationJobsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListEvaluationJobsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListEvaluationJobsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,33 @@ private ListEvaluationJobsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - evaluationJobs_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + evaluationJobs_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + evaluationJobs_.add( + input.readMessage( + com.google.cloud.datalabeling.v1beta1.EvaluationJob.parser(), + extensionRegistry)); + break; } - evaluationJobs_.add( - input.readMessage(com.google.cloud.datalabeling.v1beta1.EvaluationJob.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) { @@ -84,8 +106,7 @@ private ListEvaluationJobsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { evaluationJobs_ = java.util.Collections.unmodifiableList(evaluationJobs_); @@ -94,22 +115,27 @@ private ListEvaluationJobsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.class, com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.class, + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.Builder.class); } public static final int EVALUATION_JOBS_FIELD_NUMBER = 1; private java.util.List evaluationJobs_; /** + * + * *
    * The list of evaluation jobs to return.
    * 
@@ -117,10 +143,13 @@ private ListEvaluationJobsResponse( * repeated .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_jobs = 1; */ @java.lang.Override - public java.util.List getEvaluationJobsList() { + public java.util.List + getEvaluationJobsList() { return evaluationJobs_; } /** + * + * *
    * The list of evaluation jobs to return.
    * 
@@ -128,11 +157,13 @@ public java.util.List getEv * repeated .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_jobs = 1; */ @java.lang.Override - public java.util.List + public java.util.List getEvaluationJobsOrBuilderList() { return evaluationJobs_; } /** + * + * *
    * The list of evaluation jobs to return.
    * 
@@ -144,6 +175,8 @@ public int getEvaluationJobsCount() { return evaluationJobs_.size(); } /** + * + * *
    * The list of evaluation jobs to return.
    * 
@@ -155,6 +188,8 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob getEvaluationJobs(int return evaluationJobs_.get(index); } /** + * + * *
    * The list of evaluation jobs to return.
    * 
@@ -170,11 +205,14 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluatio public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token to retrieve next page of results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,29 +221,29 @@ 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.
    * 
* * 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 +252,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,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 < evaluationJobs_.size(); i++) { output.writeMessage(1, evaluationJobs_.get(i)); } @@ -243,8 +281,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < evaluationJobs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, evaluationJobs_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, evaluationJobs_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -257,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.datalabeling.v1beta1.ListEvaluationJobsResponse)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse other = (com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse) obj; + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse other = + (com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse) obj; - if (!getEvaluationJobsList() - .equals(other.getEvaluationJobsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getEvaluationJobsList().equals(other.getEvaluationJobsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,117 +327,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse 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.datalabeling.v1beta1.ListEvaluationJobsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Results for listing evaluation jobs.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse) com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.class, com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.class, + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.newBuilder() @@ -409,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) { getEvaluationJobsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,13 +481,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListEvaluationJobsResponse_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.getDefaultInstance(); } @@ -456,7 +503,8 @@ public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse result = new com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse(this); + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse result = + new com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse(this); int from_bitField0_ = bitField0_; if (evaluationJobsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,46 +524,50 @@ public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse 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.datalabeling.v1beta1.ListEvaluationJobsResponse) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse other) { - if (other == com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse other) { + if (other + == com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse.getDefaultInstance()) + return this; if (evaluationJobsBuilder_ == null) { if (!other.evaluationJobs_.isEmpty()) { if (evaluationJobs_.isEmpty()) { @@ -534,9 +586,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListEvaluationJob evaluationJobsBuilder_ = null; evaluationJobs_ = other.evaluationJobs_; bitField0_ = (bitField0_ & ~0x00000001); - evaluationJobsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEvaluationJobsFieldBuilder() : null; + evaluationJobsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEvaluationJobsFieldBuilder() + : null; } else { evaluationJobsBuilder_.addAllMessages(other.evaluationJobs_); } @@ -565,7 +618,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,28 +629,38 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List evaluationJobs_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureEvaluationJobsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - evaluationJobs_ = new java.util.ArrayList(evaluationJobs_); + evaluationJobs_ = + new java.util.ArrayList( + evaluationJobs_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJob, com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> evaluationJobsBuilder_; + com.google.cloud.datalabeling.v1beta1.EvaluationJob, + com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, + com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> + evaluationJobsBuilder_; /** + * + * *
      * The list of evaluation jobs to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_jobs = 1; */ - public java.util.List getEvaluationJobsList() { + public java.util.List + getEvaluationJobsList() { if (evaluationJobsBuilder_ == null) { return java.util.Collections.unmodifiableList(evaluationJobs_); } else { @@ -603,6 +668,8 @@ public java.util.List getEv } } /** + * + * *
      * The list of evaluation jobs to return.
      * 
@@ -617,6 +684,8 @@ public int getEvaluationJobsCount() { } } /** + * + * *
      * The list of evaluation jobs to return.
      * 
@@ -631,6 +700,8 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob getEvaluationJobs(int } } /** + * + * *
      * The list of evaluation jobs to return.
      * 
@@ -652,6 +723,8 @@ public Builder setEvaluationJobs( return this; } /** + * + * *
      * The list of evaluation jobs to return.
      * 
@@ -670,6 +743,8 @@ public Builder setEvaluationJobs( return this; } /** + * + * *
      * The list of evaluation jobs to return.
      * 
@@ -690,6 +765,8 @@ public Builder addEvaluationJobs(com.google.cloud.datalabeling.v1beta1.Evaluatio return this; } /** + * + * *
      * The list of evaluation jobs to return.
      * 
@@ -711,6 +788,8 @@ public Builder addEvaluationJobs( return this; } /** + * + * *
      * The list of evaluation jobs to return.
      * 
@@ -729,6 +808,8 @@ public Builder addEvaluationJobs( return this; } /** + * + * *
      * The list of evaluation jobs to return.
      * 
@@ -747,6 +828,8 @@ public Builder addEvaluationJobs( return this; } /** + * + * *
      * The list of evaluation jobs to return.
      * 
@@ -757,8 +840,7 @@ public Builder addAllEvaluationJobs( java.lang.Iterable values) { if (evaluationJobsBuilder_ == null) { ensureEvaluationJobsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, evaluationJobs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, evaluationJobs_); onChanged(); } else { evaluationJobsBuilder_.addAllMessages(values); @@ -766,6 +848,8 @@ public Builder addAllEvaluationJobs( return this; } /** + * + * *
      * The list of evaluation jobs to return.
      * 
@@ -783,6 +867,8 @@ public Builder clearEvaluationJobs() { return this; } /** + * + * *
      * The list of evaluation jobs to return.
      * 
@@ -800,6 +886,8 @@ public Builder removeEvaluationJobs(int index) { return this; } /** + * + * *
      * The list of evaluation jobs to return.
      * 
@@ -811,6 +899,8 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder getEvaluation return getEvaluationJobsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of evaluation jobs to return.
      * 
@@ -820,19 +910,22 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder getEvaluation public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluationJobsOrBuilder( int index) { if (evaluationJobsBuilder_ == null) { - return evaluationJobs_.get(index); } else { + return evaluationJobs_.get(index); + } else { return evaluationJobsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of evaluation jobs to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_jobs = 1; */ - public java.util.List - getEvaluationJobsOrBuilderList() { + public java.util.List + getEvaluationJobsOrBuilderList() { if (evaluationJobsBuilder_ != null) { return evaluationJobsBuilder_.getMessageOrBuilderList(); } else { @@ -840,6 +933,8 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluatio } } /** + * + * *
      * The list of evaluation jobs to return.
      * 
@@ -847,10 +942,12 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluatio * repeated .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_jobs = 1; */ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder addEvaluationJobsBuilder() { - return getEvaluationJobsFieldBuilder().addBuilder( - com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance()); + return getEvaluationJobsFieldBuilder() + .addBuilder(com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance()); } /** + * + * *
      * The list of evaluation jobs to return.
      * 
@@ -859,26 +956,35 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder addEvaluation */ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder addEvaluationJobsBuilder( int index) { - return getEvaluationJobsFieldBuilder().addBuilder( - index, com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance()); + return getEvaluationJobsFieldBuilder() + .addBuilder( + index, com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance()); } /** + * + * *
      * The list of evaluation jobs to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_jobs = 1; */ - public java.util.List - getEvaluationJobsBuilderList() { + public java.util.List + getEvaluationJobsBuilderList() { return getEvaluationJobsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJob, com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> + com.google.cloud.datalabeling.v1beta1.EvaluationJob, + com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, + com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> getEvaluationJobsFieldBuilder() { if (evaluationJobsBuilder_ == null) { - evaluationJobsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJob, com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder>( + evaluationJobsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.EvaluationJob, + com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, + com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder>( evaluationJobs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -890,18 +996,20 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder addEvaluation private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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; @@ -910,20 +1018,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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 { @@ -931,61 +1040,68 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -995,30 +1111,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse) - private static final com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse(); } - public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEvaluationJobsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListEvaluationJobsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEvaluationJobsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListEvaluationJobsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1030,9 +1148,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponseOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponseOrBuilder.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponseOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponseOrBuilder.java index 4427d2d1..5a9abaf7 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponseOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListEvaluationJobsResponseOrBuilder.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListEvaluationJobsResponseOrBuilder extends +public interface ListEvaluationJobsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListEvaluationJobsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of evaluation jobs to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_jobs = 1; */ - java.util.List - getEvaluationJobsList(); + java.util.List getEvaluationJobsList(); /** + * + * *
    * The list of evaluation jobs to return.
    * 
@@ -25,6 +44,8 @@ public interface ListEvaluationJobsResponseOrBuilder extends */ com.google.cloud.datalabeling.v1beta1.EvaluationJob getEvaluationJobs(int index); /** + * + * *
    * The list of evaluation jobs to return.
    * 
@@ -33,15 +54,19 @@ public interface ListEvaluationJobsResponseOrBuilder extends */ int getEvaluationJobsCount(); /** + * + * *
    * The list of evaluation jobs to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_jobs = 1; */ - java.util.List + java.util.List getEvaluationJobsOrBuilderList(); /** + * + * *
    * The list of evaluation jobs to return.
    * 
@@ -52,22 +77,27 @@ com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluationJobsOr int index); /** + * + * *
    * A token to retrieve next page of results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results.
    * 
* * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequest.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequest.java index 9878962e..2a0c0746 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for ListExamples.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListExamplesRequest} */ -public final class ListExamplesRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListExamplesRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListExamplesRequest) ListExamplesRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListExamplesRequest.newBuilder() to construct. private ListExamplesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListExamplesRequest() { parent_ = ""; filter_ = ""; @@ -27,16 +45,15 @@ private ListExamplesRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListExamplesRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListExamplesRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListExamplesRequest( 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: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + 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) { @@ -92,34 +112,41 @@ private ListExamplesRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.class, com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.class, + com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Example resource parent.
    * 
* - * 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,29 +155,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. Example resource parent.
    * 
* - * 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 { @@ -161,6 +190,8 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Optional. An expression for filtering Examples. For annotated datasets that
    * have annotation spec set, filter by
@@ -169,6 +200,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } } /** + * + * *
    * Optional. An expression for filtering Examples. For annotated datasets that
    * have annotation spec set, filter by
@@ -193,16 +226,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -213,12 +245,15 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -229,6 +264,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -238,6 +275,7 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -246,14 +284,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; } } /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -263,16 +302,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.datalabeling.v1beta1.ListExamplesRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListExamplesRequest other = (com.google.cloud.datalabeling.v1beta1.ListExamplesRequest) 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.datalabeling.v1beta1.ListExamplesRequest other = + (com.google.cloud.datalabeling.v1beta1.ListExamplesRequest) 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,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest 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.datalabeling.v1beta1.ListExamplesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListExamplesRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ListExamplesRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListExamples.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListExamplesRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListExamplesRequest) com.google.cloud.datalabeling.v1beta1.ListExamplesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.class, com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.class, + com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.newBuilder() @@ -494,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(); @@ -519,9 +562,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListExamplesRequest_descriptor; } @java.lang.Override @@ -540,7 +583,8 @@ public com.google.cloud.datalabeling.v1beta1.ListExamplesRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListExamplesRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListExamplesRequest result = new com.google.cloud.datalabeling.v1beta1.ListExamplesRequest(this); + com.google.cloud.datalabeling.v1beta1.ListExamplesRequest result = + new com.google.cloud.datalabeling.v1beta1.ListExamplesRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -553,38 +597,39 @@ public com.google.cloud.datalabeling.v1beta1.ListExamplesRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.ListExamplesRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListExamplesRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListExamplesRequest) other); } else { super.mergeFrom(other); return this; @@ -592,7 +637,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListExamplesRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.ListExamplesRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -627,7 +673,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListExamplesRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ListExamplesRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -639,18 +686,22 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Example resource parent.
      * 
* - * 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 +710,23 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Example resource parent.
      * 
* - * 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 +734,67 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Example resource parent.
      * 
* - * 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. Example resource parent.
      * 
* - * 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. Example resource parent.
      * 
* - * 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 +802,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. An expression for filtering Examples. For annotated datasets that
      * have annotation spec set, filter by
@@ -743,13 +812,13 @@ public Builder setParentBytes(
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -758,6 +827,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. An expression for filtering Examples. For annotated datasets that
      * have annotation spec set, filter by
@@ -766,15 +837,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -782,6 +852,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. An expression for filtering Examples. For annotated datasets that
      * have annotation spec set, filter by
@@ -790,20 +862,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. An expression for filtering Examples. For annotated datasets that
      * have annotation spec set, filter by
@@ -812,15 +886,18 @@ public Builder setFilter(
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Optional. An expression for filtering Examples. For annotated datasets that
      * have annotation spec set, filter by
@@ -829,29 +906,32 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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_; /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -859,32 +939,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -892,6 +978,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -901,13 +989,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -916,6 +1004,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -925,15 +1015,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -941,6 +1030,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -950,20 +1041,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -973,15 +1066,18 @@ public Builder setPageToken(
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -991,23 +1087,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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); } @@ -1017,12 +1113,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListExamplesRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListExamplesRequest) private static final com.google.cloud.datalabeling.v1beta1.ListExamplesRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListExamplesRequest(); } @@ -1031,16 +1127,16 @@ public static com.google.cloud.datalabeling.v1beta1.ListExamplesRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListExamplesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListExamplesRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExamplesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListExamplesRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1055,6 +1151,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ListExamplesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequestOrBuilder.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequestOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequestOrBuilder.java index 6ee8fb88..e8046808 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequestOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesRequestOrBuilder.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListExamplesRequestOrBuilder extends +public interface ListExamplesRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListExamplesRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Example resource parent.
    * 
* - * 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. Example resource parent.
    * 
* - * 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(); /** + * + * *
    * Optional. An expression for filtering Examples. For annotated datasets that
    * have annotation spec set, filter by
@@ -36,10 +63,13 @@ public interface ListExamplesRequestOrBuilder extends
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. An expression for filtering Examples. For annotated datasets that
    * have annotation spec set, filter by
@@ -48,23 +78,28 @@ public interface ListExamplesRequestOrBuilder extends
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -74,10 +109,13 @@ public interface ListExamplesRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -87,8 +125,8 @@ public interface ListExamplesRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponse.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponse.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponse.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponse.java index e38b2c0b..6e9032cd 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponse.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponse.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Results of listing Examples in and annotated dataset.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListExamplesResponse} */ -public final class ListExamplesResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListExamplesResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListExamplesResponse) ListExamplesResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListExamplesResponse.newBuilder() to construct. private ListExamplesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListExamplesResponse() { examples_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListExamplesResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListExamplesResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListExamplesResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private ListExamplesResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - examples_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + examples_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + examples_.add( + input.readMessage( + com.google.cloud.datalabeling.v1beta1.Example.parser(), extensionRegistry)); + break; } - examples_.add( - input.readMessage(com.google.cloud.datalabeling.v1beta1.Example.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) { @@ -84,8 +105,7 @@ private ListExamplesResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { examples_ = java.util.Collections.unmodifiableList(examples_); @@ -94,22 +114,27 @@ private ListExamplesResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.class, com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.class, + com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.Builder.class); } public static final int EXAMPLES_FIELD_NUMBER = 1; private java.util.List examples_; /** + * + * *
    * The list of examples to return.
    * 
@@ -121,6 +146,8 @@ public java.util.List getExamples return examples_; } /** + * + * *
    * The list of examples to return.
    * 
@@ -128,11 +155,13 @@ public java.util.List getExamples * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ @java.lang.Override - public java.util.List + public java.util.List getExamplesOrBuilderList() { return examples_; } /** + * + * *
    * The list of examples to return.
    * 
@@ -144,6 +173,8 @@ public int getExamplesCount() { return examples_.size(); } /** + * + * *
    * The list of examples to return.
    * 
@@ -155,6 +186,8 @@ public com.google.cloud.datalabeling.v1beta1.Example getExamples(int index) { return examples_.get(index); } /** + * + * *
    * The list of examples to return.
    * 
@@ -162,19 +195,21 @@ public com.google.cloud.datalabeling.v1beta1.Example getExamples(int index) { * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getExamplesOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getExamplesOrBuilder(int index) { return examples_.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.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,29 +218,29 @@ 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.
    * 
* * 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 < examples_.size(); i++) { output.writeMessage(1, examples_.get(i)); } @@ -243,8 +278,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < examples_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, examples_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, examples_.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.datalabeling.v1beta1.ListExamplesResponse)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListExamplesResponse other = (com.google.cloud.datalabeling.v1beta1.ListExamplesResponse) obj; + com.google.cloud.datalabeling.v1beta1.ListExamplesResponse other = + (com.google.cloud.datalabeling.v1beta1.ListExamplesResponse) obj; - if (!getExamplesList() - .equals(other.getExamplesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getExamplesList().equals(other.getExamplesList())) 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.datalabeling.v1beta1.ListExamplesResponse 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.datalabeling.v1beta1.ListExamplesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListExamplesResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ListExamplesResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Results of listing Examples in and annotated dataset.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListExamplesResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListExamplesResponse) com.google.cloud.datalabeling.v1beta1.ListExamplesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.class, com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.class, + com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.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) { getExamplesFieldBuilder(); } } + @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.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListExamplesResponse_descriptor; } @java.lang.Override @@ -456,7 +499,8 @@ public com.google.cloud.datalabeling.v1beta1.ListExamplesResponse build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListExamplesResponse buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListExamplesResponse result = new com.google.cloud.datalabeling.v1beta1.ListExamplesResponse(this); + com.google.cloud.datalabeling.v1beta1.ListExamplesResponse result = + new com.google.cloud.datalabeling.v1beta1.ListExamplesResponse(this); int from_bitField0_ = bitField0_; if (examplesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,38 +520,39 @@ public com.google.cloud.datalabeling.v1beta1.ListExamplesResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.ListExamplesResponse) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListExamplesResponse)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListExamplesResponse) 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.datalabeling.v1beta1.ListExamplesResponse other) { - if (other == com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.ListExamplesResponse.getDefaultInstance()) + return this; if (examplesBuilder_ == null) { if (!other.examples_.isEmpty()) { if (examples_.isEmpty()) { @@ -534,9 +580,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListExamplesRespo examplesBuilder_ = null; examples_ = other.examples_; bitField0_ = (bitField0_ & ~0x00000001); - examplesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExamplesFieldBuilder() : null; + examplesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExamplesFieldBuilder() + : null; } else { examplesBuilder_.addAllMessages(other.examples_); } @@ -565,7 +612,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListExamplesResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ListExamplesResponse) 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 examples_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureExamplesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - examples_ = new java.util.ArrayList(examples_); + examples_ = + new java.util.ArrayList(examples_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Example, com.google.cloud.datalabeling.v1beta1.Example.Builder, com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> examplesBuilder_; + com.google.cloud.datalabeling.v1beta1.Example, + com.google.cloud.datalabeling.v1beta1.Example.Builder, + com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> + examplesBuilder_; /** + * + * *
      * The list of examples to return.
      * 
@@ -603,6 +659,8 @@ public java.util.List getExamples } } /** + * + * *
      * The list of examples to return.
      * 
@@ -617,6 +675,8 @@ public int getExamplesCount() { } } /** + * + * *
      * The list of examples to return.
      * 
@@ -631,14 +691,15 @@ public com.google.cloud.datalabeling.v1beta1.Example getExamples(int index) { } } /** + * + * *
      * The list of examples to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ - public Builder setExamples( - int index, com.google.cloud.datalabeling.v1beta1.Example value) { + public Builder setExamples(int index, com.google.cloud.datalabeling.v1beta1.Example value) { if (examplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -652,6 +713,8 @@ public Builder setExamples( return this; } /** + * + * *
      * The list of examples to return.
      * 
@@ -670,6 +733,8 @@ public Builder setExamples( return this; } /** + * + * *
      * The list of examples to return.
      * 
@@ -690,14 +755,15 @@ public Builder addExamples(com.google.cloud.datalabeling.v1beta1.Example value) return this; } /** + * + * *
      * The list of examples to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ - public Builder addExamples( - int index, com.google.cloud.datalabeling.v1beta1.Example value) { + public Builder addExamples(int index, com.google.cloud.datalabeling.v1beta1.Example value) { if (examplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -711,6 +777,8 @@ public Builder addExamples( return this; } /** + * + * *
      * The list of examples to return.
      * 
@@ -729,6 +797,8 @@ public Builder addExamples( return this; } /** + * + * *
      * The list of examples to return.
      * 
@@ -747,6 +817,8 @@ public Builder addExamples( return this; } /** + * + * *
      * The list of examples to return.
      * 
@@ -757,8 +829,7 @@ public Builder addAllExamples( java.lang.Iterable values) { if (examplesBuilder_ == null) { ensureExamplesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, examples_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, examples_); onChanged(); } else { examplesBuilder_.addAllMessages(values); @@ -766,6 +837,8 @@ public Builder addAllExamples( return this; } /** + * + * *
      * The list of examples to return.
      * 
@@ -783,6 +856,8 @@ public Builder clearExamples() { return this; } /** + * + * *
      * The list of examples to return.
      * 
@@ -800,39 +875,44 @@ public Builder removeExamples(int index) { return this; } /** + * + * *
      * The list of examples to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ - public com.google.cloud.datalabeling.v1beta1.Example.Builder getExamplesBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.Example.Builder getExamplesBuilder(int index) { return getExamplesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of examples to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ - public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getExamplesOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getExamplesOrBuilder(int index) { if (examplesBuilder_ == null) { - return examples_.get(index); } else { + return examples_.get(index); + } else { return examplesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of examples to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ - public java.util.List - getExamplesOrBuilderList() { + public java.util.List + getExamplesOrBuilderList() { if (examplesBuilder_ != null) { return examplesBuilder_.getMessageOrBuilderList(); } else { @@ -840,6 +920,8 @@ public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getExamplesOrBuild } } /** + * + * *
      * The list of examples to return.
      * 
@@ -847,42 +929,48 @@ public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getExamplesOrBuild * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ public com.google.cloud.datalabeling.v1beta1.Example.Builder addExamplesBuilder() { - return getExamplesFieldBuilder().addBuilder( - com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance()); + return getExamplesFieldBuilder() + .addBuilder(com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance()); } /** + * + * *
      * The list of examples to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ - public com.google.cloud.datalabeling.v1beta1.Example.Builder addExamplesBuilder( - int index) { - return getExamplesFieldBuilder().addBuilder( - index, com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.Example.Builder addExamplesBuilder(int index) { + return getExamplesFieldBuilder() + .addBuilder(index, com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance()); } /** + * + * *
      * The list of examples to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ - public java.util.List - getExamplesBuilderList() { + public java.util.List + getExamplesBuilderList() { return getExamplesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Example, com.google.cloud.datalabeling.v1beta1.Example.Builder, com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> + com.google.cloud.datalabeling.v1beta1.Example, + com.google.cloud.datalabeling.v1beta1.Example.Builder, + com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> getExamplesFieldBuilder() { if (examplesBuilder_ == null) { - examplesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Example, com.google.cloud.datalabeling.v1beta1.Example.Builder, com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder>( - examples_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + examplesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.Example, + com.google.cloud.datalabeling.v1beta1.Example.Builder, + com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder>( + examples_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); examples_ = null; } return examplesBuilder_; @@ -890,18 +978,20 @@ public com.google.cloud.datalabeling.v1beta1.Example.Builder addExamplesBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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; @@ -910,20 +1000,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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 { @@ -931,61 +1022,68 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -995,12 +1093,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListExamplesResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListExamplesResponse) private static final com.google.cloud.datalabeling.v1beta1.ListExamplesResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListExamplesResponse(); } @@ -1009,16 +1107,16 @@ public static com.google.cloud.datalabeling.v1beta1.ListExamplesResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListExamplesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListExamplesResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExamplesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListExamplesResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1033,6 +1131,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ListExamplesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponseOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponseOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponseOrBuilder.java index 3aea2f16..03023f63 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponseOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListExamplesResponseOrBuilder.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListExamplesResponseOrBuilder extends +public interface ListExamplesResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListExamplesResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of examples to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ - java.util.List - getExamplesList(); + java.util.List getExamplesList(); /** + * + * *
    * The list of examples to return.
    * 
@@ -25,6 +44,8 @@ public interface ListExamplesResponseOrBuilder extends */ com.google.cloud.datalabeling.v1beta1.Example getExamples(int index); /** + * + * *
    * The list of examples to return.
    * 
@@ -33,41 +54,49 @@ public interface ListExamplesResponseOrBuilder extends */ int getExamplesCount(); /** + * + * *
    * The list of examples to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ - java.util.List + java.util.List getExamplesOrBuilderList(); /** + * + * *
    * The list of examples to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Example examples = 1; */ - com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getExamplesOrBuilder( - int index); + com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getExamplesOrBuilder(int index); /** + * + * *
    * A token to retrieve next page of results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results.
    * 
* * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequest.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequest.java index a04ea96a..a0333c96 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for ListInstructions.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListInstructionsRequest} */ -public final class ListInstructionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListInstructionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListInstructionsRequest) ListInstructionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListInstructionsRequest.newBuilder() to construct. private ListInstructionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListInstructionsRequest() { parent_ = ""; filter_ = ""; @@ -27,16 +45,15 @@ private ListInstructionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListInstructionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListInstructionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private ListInstructionsRequest( 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: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + 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) { @@ -92,35 +112,42 @@ private ListInstructionsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.class, com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.class, + com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Instruction resource parent, format:
    * projects/{project_id}
    * 
* - * 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 @@ -129,30 +156,32 @@ 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. Instruction resource parent, format:
    * projects/{project_id}
    * 
* - * 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,11 +192,14 @@ public java.lang.String getParent() { public static final int FILTER_FIELD_NUMBER = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -176,29 +208,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; } } /** + * + * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -209,12 +241,15 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -225,6 +260,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -234,6 +271,7 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -242,14 +280,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; } } /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -259,16 +298,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -277,6 +315,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -288,8 +327,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_); } @@ -318,8 +356,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -332,21 +369,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.datalabeling.v1beta1.ListInstructionsRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest other = (com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest) 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.datalabeling.v1beta1.ListInstructionsRequest other = + (com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest) 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; } @@ -372,117 +406,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest 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.datalabeling.v1beta1.ListInstructionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ListInstructions.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListInstructionsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListInstructionsRequest) com.google.cloud.datalabeling.v1beta1.ListInstructionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.class, com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.class, + com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.newBuilder() @@ -490,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(); @@ -515,13 +558,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.getDefaultInstance(); } @@ -536,7 +580,8 @@ public com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest result = new com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest(this); + com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest result = + new com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -549,38 +594,39 @@ public com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest 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.datalabeling.v1beta1.ListInstructionsRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest) other); } else { super.mergeFrom(other); return this; @@ -588,7 +634,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -623,7 +671,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -635,19 +685,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Instruction resource parent, format:
      * projects/{project_id}
      * 
* - * 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; @@ -656,21 +710,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Instruction resource parent, format:
      * projects/{project_id}
      * 
* - * 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 { @@ -678,57 +735,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Instruction resource parent, format:
      * projects/{project_id}
      * 
* - * 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. Instruction resource parent, format:
      * projects/{project_id}
      * 
* - * 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. Instruction resource parent, format:
      * projects/{project_id}
      * 
* - * 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,18 +806,20 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -756,20 +828,21 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -777,67 +850,77 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Optional. Filter is not supported at this moment.
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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_; /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -845,32 +928,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -878,6 +967,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -887,13 +978,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -902,6 +993,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -911,15 +1004,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -927,6 +1019,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -936,20 +1030,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -959,15 +1055,18 @@ public Builder setPageToken(
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by
@@ -977,23 +1076,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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); } @@ -1003,12 +1102,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListInstructionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListInstructionsRequest) - private static final com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest(); } @@ -1017,16 +1117,16 @@ public static com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstructionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstructionsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstructionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstructionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1041,6 +1141,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ListInstructionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequestOrBuilder.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequestOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequestOrBuilder.java index 1ce8b2dd..582ee222 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequestOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsRequestOrBuilder.java @@ -1,66 +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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListInstructionsRequestOrBuilder extends +public interface ListInstructionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListInstructionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Instruction resource parent, format:
    * projects/{project_id}
    * 
* - * 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. Instruction resource parent, format:
    * projects/{project_id}
    * 
* - * 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(); /** + * + * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. Filter is not supported at this moment.
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -70,10 +105,13 @@ public interface ListInstructionsRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by
@@ -83,8 +121,8 @@ public interface ListInstructionsRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponse.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponse.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponse.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponse.java index 9271d31a..2704bf83 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponse.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponse.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Results of listing instructions under a project.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListInstructionsResponse} */ -public final class ListInstructionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListInstructionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ListInstructionsResponse) ListInstructionsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListInstructionsResponse.newBuilder() to construct. private ListInstructionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListInstructionsResponse() { instructions_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListInstructionsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListInstructionsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListInstructionsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,33 @@ private ListInstructionsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - instructions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + instructions_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + instructions_.add( + input.readMessage( + com.google.cloud.datalabeling.v1beta1.Instruction.parser(), + extensionRegistry)); + break; } - instructions_.add( - input.readMessage(com.google.cloud.datalabeling.v1beta1.Instruction.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) { @@ -84,8 +106,7 @@ private ListInstructionsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { instructions_ = java.util.Collections.unmodifiableList(instructions_); @@ -94,22 +115,27 @@ private ListInstructionsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.class, com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.class, + com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.Builder.class); } public static final int INSTRUCTIONS_FIELD_NUMBER = 1; private java.util.List instructions_; /** + * + * *
    * The list of Instructions to return.
    * 
@@ -121,6 +147,8 @@ public java.util.List getInst return instructions_; } /** + * + * *
    * The list of Instructions to return.
    * 
@@ -128,11 +156,13 @@ public java.util.List getInst * repeated .google.cloud.datalabeling.v1beta1.Instruction instructions = 1; */ @java.lang.Override - public java.util.List + public java.util.List getInstructionsOrBuilderList() { return instructions_; } /** + * + * *
    * The list of Instructions to return.
    * 
@@ -144,6 +174,8 @@ public int getInstructionsCount() { return instructions_.size(); } /** + * + * *
    * The list of Instructions to return.
    * 
@@ -155,6 +187,8 @@ public com.google.cloud.datalabeling.v1beta1.Instruction getInstructions(int ind return instructions_.get(index); } /** + * + * *
    * The list of Instructions to return.
    * 
@@ -170,11 +204,14 @@ public com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstruction public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token to retrieve next page of results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,29 +220,29 @@ 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.
    * 
* * 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 +251,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +263,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 < instructions_.size(); i++) { output.writeMessage(1, instructions_.get(i)); } @@ -243,8 +280,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < instructions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, instructions_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, instructions_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -257,17 +293,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.datalabeling.v1beta1.ListInstructionsResponse)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse other = (com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse) obj; + com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse other = + (com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse) obj; - if (!getInstructionsList() - .equals(other.getInstructionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getInstructionsList().equals(other.getInstructionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,117 +326,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse 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.datalabeling.v1beta1.ListInstructionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Results of listing instructions under a project.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ListInstructionsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ListInstructionsResponse) com.google.cloud.datalabeling.v1beta1.ListInstructionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.class, com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.class, + com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.newBuilder() @@ -409,17 +454,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) { getInstructionsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,13 +480,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ListInstructionsResponse_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.getDefaultInstance(); } @@ -456,7 +502,8 @@ public com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse buildPartial() { - com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse result = new com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse(this); + com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse result = + new com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse(this); int from_bitField0_ = bitField0_; if (instructionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,38 +523,39 @@ public com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse 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.datalabeling.v1beta1.ListInstructionsResponse) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse) other); } else { super.mergeFrom(other); return this; @@ -515,7 +563,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse other) { - if (other == com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse.getDefaultInstance()) + return this; if (instructionsBuilder_ == null) { if (!other.instructions_.isEmpty()) { if (instructions_.isEmpty()) { @@ -534,9 +584,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ListInstructionsR instructionsBuilder_ = null; instructions_ = other.instructions_; bitField0_ = (bitField0_ & ~0x00000001); - instructionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getInstructionsFieldBuilder() : null; + instructionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getInstructionsFieldBuilder() + : null; } else { instructionsBuilder_.addAllMessages(other.instructions_); } @@ -565,7 +616,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,21 +627,30 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List instructions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureInstructionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - instructions_ = new java.util.ArrayList(instructions_); + instructions_ = + new java.util.ArrayList( + instructions_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Instruction, com.google.cloud.datalabeling.v1beta1.Instruction.Builder, com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder> instructionsBuilder_; + com.google.cloud.datalabeling.v1beta1.Instruction, + com.google.cloud.datalabeling.v1beta1.Instruction.Builder, + com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder> + instructionsBuilder_; /** + * + * *
      * The list of Instructions to return.
      * 
@@ -603,6 +665,8 @@ public java.util.List getInst } } /** + * + * *
      * The list of Instructions to return.
      * 
@@ -617,6 +681,8 @@ public int getInstructionsCount() { } } /** + * + * *
      * The list of Instructions to return.
      * 
@@ -631,6 +697,8 @@ public com.google.cloud.datalabeling.v1beta1.Instruction getInstructions(int ind } } /** + * + * *
      * The list of Instructions to return.
      * 
@@ -652,6 +720,8 @@ public Builder setInstructions( return this; } /** + * + * *
      * The list of Instructions to return.
      * 
@@ -670,6 +740,8 @@ public Builder setInstructions( return this; } /** + * + * *
      * The list of Instructions to return.
      * 
@@ -690,6 +762,8 @@ public Builder addInstructions(com.google.cloud.datalabeling.v1beta1.Instruction return this; } /** + * + * *
      * The list of Instructions to return.
      * 
@@ -711,6 +785,8 @@ public Builder addInstructions( return this; } /** + * + * *
      * The list of Instructions to return.
      * 
@@ -729,6 +805,8 @@ public Builder addInstructions( return this; } /** + * + * *
      * The list of Instructions to return.
      * 
@@ -747,6 +825,8 @@ public Builder addInstructions( return this; } /** + * + * *
      * The list of Instructions to return.
      * 
@@ -757,8 +837,7 @@ public Builder addAllInstructions( java.lang.Iterable values) { if (instructionsBuilder_ == null) { ensureInstructionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, instructions_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instructions_); onChanged(); } else { instructionsBuilder_.addAllMessages(values); @@ -766,6 +845,8 @@ public Builder addAllInstructions( return this; } /** + * + * *
      * The list of Instructions to return.
      * 
@@ -783,6 +864,8 @@ public Builder clearInstructions() { return this; } /** + * + * *
      * The list of Instructions to return.
      * 
@@ -800,6 +883,8 @@ public Builder removeInstructions(int index) { return this; } /** + * + * *
      * The list of Instructions to return.
      * 
@@ -811,6 +896,8 @@ public com.google.cloud.datalabeling.v1beta1.Instruction.Builder getInstructions return getInstructionsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of Instructions to return.
      * 
@@ -820,19 +907,22 @@ public com.google.cloud.datalabeling.v1beta1.Instruction.Builder getInstructions public com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstructionsOrBuilder( int index) { if (instructionsBuilder_ == null) { - return instructions_.get(index); } else { + return instructions_.get(index); + } else { return instructionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of Instructions to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Instruction instructions = 1; */ - public java.util.List - getInstructionsOrBuilderList() { + public java.util.List + getInstructionsOrBuilderList() { if (instructionsBuilder_ != null) { return instructionsBuilder_.getMessageOrBuilderList(); } else { @@ -840,6 +930,8 @@ public com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstruction } } /** + * + * *
      * The list of Instructions to return.
      * 
@@ -847,10 +939,12 @@ public com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstruction * repeated .google.cloud.datalabeling.v1beta1.Instruction instructions = 1; */ public com.google.cloud.datalabeling.v1beta1.Instruction.Builder addInstructionsBuilder() { - return getInstructionsFieldBuilder().addBuilder( - com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance()); + return getInstructionsFieldBuilder() + .addBuilder(com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance()); } /** + * + * *
      * The list of Instructions to return.
      * 
@@ -859,30 +953,36 @@ public com.google.cloud.datalabeling.v1beta1.Instruction.Builder addInstructions */ public com.google.cloud.datalabeling.v1beta1.Instruction.Builder addInstructionsBuilder( int index) { - return getInstructionsFieldBuilder().addBuilder( - index, com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance()); + return getInstructionsFieldBuilder() + .addBuilder( + index, com.google.cloud.datalabeling.v1beta1.Instruction.getDefaultInstance()); } /** + * + * *
      * The list of Instructions to return.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Instruction instructions = 1; */ - public java.util.List - getInstructionsBuilderList() { + public java.util.List + getInstructionsBuilderList() { return getInstructionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Instruction, com.google.cloud.datalabeling.v1beta1.Instruction.Builder, com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder> + com.google.cloud.datalabeling.v1beta1.Instruction, + com.google.cloud.datalabeling.v1beta1.Instruction.Builder, + com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder> getInstructionsFieldBuilder() { if (instructionsBuilder_ == null) { - instructionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Instruction, com.google.cloud.datalabeling.v1beta1.Instruction.Builder, com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder>( - instructions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + instructionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.Instruction, + com.google.cloud.datalabeling.v1beta1.Instruction.Builder, + com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder>( + instructions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); instructions_ = null; } return instructionsBuilder_; @@ -890,18 +990,20 @@ public com.google.cloud.datalabeling.v1beta1.Instruction.Builder addInstructions private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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; @@ -910,20 +1012,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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 { @@ -931,61 +1034,68 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -995,30 +1105,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ListInstructionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ListInstructionsResponse) - private static final com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse(); } - public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListInstructionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListInstructionsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListInstructionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListInstructionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1030,9 +1142,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ListInstructionsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponseOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponseOrBuilder.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponseOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponseOrBuilder.java index 30e6de37..4ca8be04 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponseOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ListInstructionsResponseOrBuilder.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface ListInstructionsResponseOrBuilder extends +public interface ListInstructionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ListInstructionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of Instructions to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Instruction instructions = 1; */ - java.util.List - getInstructionsList(); + java.util.List getInstructionsList(); /** + * + * *
    * The list of Instructions to return.
    * 
@@ -25,6 +44,8 @@ public interface ListInstructionsResponseOrBuilder extends */ com.google.cloud.datalabeling.v1beta1.Instruction getInstructions(int index); /** + * + * *
    * The list of Instructions to return.
    * 
@@ -33,41 +54,49 @@ public interface ListInstructionsResponseOrBuilder extends */ int getInstructionsCount(); /** + * + * *
    * The list of Instructions to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Instruction instructions = 1; */ - java.util.List + java.util.List getInstructionsOrBuilderList(); /** + * + * *
    * The list of Instructions to return.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Instruction instructions = 1; */ - com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstructionsOrBuilder( - int index); + com.google.cloud.datalabeling.v1beta1.InstructionOrBuilder getInstructionsOrBuilder(int index); /** + * + * *
    * A token to retrieve next page of results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results.
    * 
* * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPoly.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPoly.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPoly.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPoly.java index b5de6f44..72dc87ac 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPoly.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPoly.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Normalized bounding polygon.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly} */ -public final class NormalizedBoundingPoly extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NormalizedBoundingPoly extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) NormalizedBoundingPolyOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NormalizedBoundingPoly.newBuilder() to construct. private NormalizedBoundingPoly(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NormalizedBoundingPoly() { 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 NormalizedBoundingPoly(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private NormalizedBoundingPoly( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,27 @@ private NormalizedBoundingPoly( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - normalizedVertices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + normalizedVertices_ = + new java.util.ArrayList< + com.google.cloud.datalabeling.v1beta1.NormalizedVertex>(); + mutable_bitField0_ |= 0x00000001; + } + normalizedVertices_.add( + input.readMessage( + com.google.cloud.datalabeling.v1beta1.NormalizedVertex.parser(), + extensionRegistry)); + break; } - normalizedVertices_.add( - input.readMessage(com.google.cloud.datalabeling.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) { @@ -77,8 +99,7 @@ private NormalizedBoundingPoly( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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,80 +108,101 @@ private NormalizedBoundingPoly( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.class, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder.class); + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.class, + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder.class); } public static final int NORMALIZED_VERTICES_FIELD_NUMBER = 1; - private java.util.List normalizedVertices_; + private java.util.List + normalizedVertices_; /** + * + * *
    * The bounding polygon normalized vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ @java.lang.Override - public java.util.List getNormalizedVerticesList() { + public java.util.List + getNormalizedVerticesList() { return normalizedVertices_; } /** + * + * *
    * The bounding polygon normalized vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List getNormalizedVerticesOrBuilderList() { return normalizedVertices_; } /** + * + * *
    * The bounding polygon normalized vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ @java.lang.Override public int getNormalizedVerticesCount() { return normalizedVertices_.size(); } /** + * + * *
    * The bounding polygon normalized vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.NormalizedVertex getNormalizedVertices(int index) { return normalizedVertices_.get(index); } /** + * + * *
    * The bounding polygon normalized vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder + getNormalizedVerticesOrBuilder(int index) { return normalizedVertices_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +214,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(1, normalizedVertices_.get(i)); } @@ -187,8 +228,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < normalizedVertices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, normalizedVertices_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, normalizedVertices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +239,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.datalabeling.v1beta1.NormalizedBoundingPoly)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly other = (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) obj; + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly other = + (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) obj; - if (!getNormalizedVerticesList() - .equals(other.getNormalizedVerticesList())) return false; + if (!getNormalizedVerticesList().equals(other.getNormalizedVerticesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +269,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly 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.datalabeling.v1beta1.NormalizedBoundingPoly parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Normalized bounding polygon.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.class, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder.class); + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.class, + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.newBuilder() @@ -346,17 +397,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(); @@ -370,13 +421,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_NormalizedBoundingPoly_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance(); } @@ -391,7 +443,8 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly buildPartial() { - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly result = new com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly(this); + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly result = + new com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly(this); int from_bitField0_ = bitField0_; if (normalizedVerticesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +463,39 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) other); } else { super.mergeFrom(other); return this; @@ -449,7 +503,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly other) { - if (other == com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance()) return this; + if (other + == com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance()) + return this; if (normalizedVerticesBuilder_ == null) { if (!other.normalizedVertices_.isEmpty()) { if (normalizedVertices_.isEmpty()) { @@ -468,9 +524,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.NormalizedBoundin 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_); } @@ -495,7 +552,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,28 +562,39 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List normalizedVertices_ = - java.util.Collections.emptyList(); + private java.util.List + normalizedVertices_ = 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.datalabeling.v1beta1.NormalizedVertex, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder> normalizedVerticesBuilder_; + com.google.cloud.datalabeling.v1beta1.NormalizedVertex, + com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, + com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder> + normalizedVerticesBuilder_; /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ - public java.util.List getNormalizedVerticesList() { + public java.util.List + getNormalizedVerticesList() { if (normalizedVerticesBuilder_ == null) { return java.util.Collections.unmodifiableList(normalizedVertices_); } else { @@ -533,11 +602,14 @@ public java.util.List ge } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ public int getNormalizedVerticesCount() { if (normalizedVerticesBuilder_ == null) { @@ -547,11 +619,14 @@ public int getNormalizedVerticesCount() { } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ public com.google.cloud.datalabeling.v1beta1.NormalizedVertex getNormalizedVertices(int index) { if (normalizedVerticesBuilder_ == null) { @@ -561,11 +636,14 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedVertex getNormalizedVerti } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ public Builder setNormalizedVertices( int index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex value) { @@ -582,11 +660,14 @@ public Builder setNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ public Builder setNormalizedVertices( int index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder builderForValue) { @@ -600,13 +681,17 @@ public Builder setNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ - public Builder addNormalizedVertices(com.google.cloud.datalabeling.v1beta1.NormalizedVertex value) { + public Builder addNormalizedVertices( + com.google.cloud.datalabeling.v1beta1.NormalizedVertex value) { if (normalizedVerticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -620,11 +705,14 @@ public Builder addNormalizedVertices(com.google.cloud.datalabeling.v1beta1.Norma return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ public Builder addNormalizedVertices( int index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex value) { @@ -641,11 +729,14 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ public Builder addNormalizedVertices( com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder builderForValue) { @@ -659,11 +750,14 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ public Builder addNormalizedVertices( int index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder builderForValue) { @@ -677,18 +771,21 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ public Builder addAllNormalizedVertices( - java.lang.Iterable values) { + 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); @@ -696,11 +793,14 @@ public Builder addAllNormalizedVertices( return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ public Builder clearNormalizedVertices() { if (normalizedVerticesBuilder_ == null) { @@ -713,11 +813,14 @@ public Builder clearNormalizedVertices() { return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ public Builder removeNormalizedVertices(int index) { if (normalizedVerticesBuilder_ == null) { @@ -730,39 +833,49 @@ public Builder removeNormalizedVertices(int index) { return this; } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder getNormalizedVerticesBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder + getNormalizedVerticesBuilder(int index) { return getNormalizedVerticesFieldBuilder().getBuilder(index); } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder + getNormalizedVerticesOrBuilder(int index) { if (normalizedVerticesBuilder_ == null) { - return normalizedVertices_.get(index); } else { + return normalizedVertices_.get(index); + } else { return normalizedVerticesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ - public java.util.List - getNormalizedVerticesOrBuilderList() { + public java.util.List + getNormalizedVerticesOrBuilderList() { if (normalizedVerticesBuilder_ != null) { return normalizedVerticesBuilder_.getMessageOrBuilderList(); } else { @@ -770,45 +883,62 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder getNormal } } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder() { - return getNormalizedVerticesFieldBuilder().addBuilder( - com.google.cloud.datalabeling.v1beta1.NormalizedVertex.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder + addNormalizedVerticesBuilder() { + return getNormalizedVerticesFieldBuilder() + .addBuilder(com.google.cloud.datalabeling.v1beta1.NormalizedVertex.getDefaultInstance()); } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder( - int index) { - return getNormalizedVerticesFieldBuilder().addBuilder( - index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder + addNormalizedVerticesBuilder(int index) { + return getNormalizedVerticesFieldBuilder() + .addBuilder( + index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.getDefaultInstance()); } /** + * + * *
      * The bounding polygon normalized vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ - public java.util.List - getNormalizedVerticesBuilderList() { + public java.util.List + getNormalizedVerticesBuilderList() { return getNormalizedVerticesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.NormalizedVertex, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder> + com.google.cloud.datalabeling.v1beta1.NormalizedVertex, + com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, + com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder> getNormalizedVerticesFieldBuilder() { if (normalizedVerticesBuilder_ == null) { - normalizedVerticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.NormalizedVertex, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder>( + normalizedVerticesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.NormalizedVertex, + com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, + com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder>( normalizedVertices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -817,9 +947,9 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder addNormali } 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); } @@ -829,12 +959,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) - private static final com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly(); } @@ -843,16 +974,16 @@ public static com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NormalizedBoundingPoly parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NormalizedBoundingPoly(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NormalizedBoundingPoly parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NormalizedBoundingPoly(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +998,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPolyOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPolyOrBuilder.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPolyOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPolyOrBuilder.java index 9d95a345..70cb2b31 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPolyOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedBoundingPolyOrBuilder.java @@ -1,52 +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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface NormalizedBoundingPolyOrBuilder extends +public interface NormalizedBoundingPolyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The bounding polygon normalized vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ - java.util.List + java.util.List getNormalizedVerticesList(); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ com.google.cloud.datalabeling.v1beta1.NormalizedVertex getNormalizedVertices(int index); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ int getNormalizedVerticesCount(); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ - java.util.List + java.util.List getNormalizedVerticesOrBuilderList(); /** + * + * *
    * The bounding polygon normalized vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( int index); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolyline.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolyline.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolyline.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolyline.java index 8effad00..df05b713 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolyline.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolyline.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Normalized polyline.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.NormalizedPolyline} */ -public final class NormalizedPolyline extends - com.google.protobuf.GeneratedMessageV3 implements +public final class NormalizedPolyline extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.NormalizedPolyline) NormalizedPolylineOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use NormalizedPolyline.newBuilder() to construct. private NormalizedPolyline(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private NormalizedPolyline() { 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 NormalizedPolyline(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private NormalizedPolyline( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,27 @@ private NormalizedPolyline( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - normalizedVertices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + normalizedVertices_ = + new java.util.ArrayList< + com.google.cloud.datalabeling.v1beta1.NormalizedVertex>(); + mutable_bitField0_ |= 0x00000001; + } + normalizedVertices_.add( + input.readMessage( + com.google.cloud.datalabeling.v1beta1.NormalizedVertex.parser(), + extensionRegistry)); + break; } - normalizedVertices_.add( - input.readMessage(com.google.cloud.datalabeling.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) { @@ -77,8 +99,7 @@ private NormalizedPolyline( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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,80 +108,101 @@ private NormalizedPolyline( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.class, com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder.class); + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.class, + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder.class); } public static final int NORMALIZED_VERTICES_FIELD_NUMBER = 1; - private java.util.List normalizedVertices_; + private java.util.List + normalizedVertices_; /** + * + * *
    * The normalized polyline vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ @java.lang.Override - public java.util.List getNormalizedVerticesList() { + public java.util.List + getNormalizedVerticesList() { return normalizedVertices_; } /** + * + * *
    * The normalized polyline vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List getNormalizedVerticesOrBuilderList() { return normalizedVertices_; } /** + * + * *
    * The normalized polyline vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ @java.lang.Override public int getNormalizedVerticesCount() { return normalizedVertices_.size(); } /** + * + * *
    * The normalized polyline vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.NormalizedVertex getNormalizedVertices(int index) { return normalizedVertices_.get(index); } /** + * + * *
    * The normalized polyline vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder + getNormalizedVerticesOrBuilder(int index) { return normalizedVertices_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +214,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(1, normalizedVertices_.get(i)); } @@ -187,8 +228,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < normalizedVertices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, normalizedVertices_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, normalizedVertices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +239,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.datalabeling.v1beta1.NormalizedPolyline)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline other = (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) obj; + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline other = + (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) obj; - if (!getNormalizedVerticesList() - .equals(other.getNormalizedVerticesList())) return false; + if (!getNormalizedVerticesList().equals(other.getNormalizedVerticesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -228,117 +269,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline 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.datalabeling.v1beta1.NormalizedPolyline parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.NormalizedPolyline prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Normalized polyline.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.NormalizedPolyline} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.NormalizedPolyline) com.google.cloud.datalabeling.v1beta1.NormalizedPolylineOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.class, com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder.class); + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.class, + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.newBuilder() @@ -346,17 +397,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(); @@ -370,9 +421,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_NormalizedPolyline_descriptor; } @java.lang.Override @@ -391,7 +442,8 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedPolyline build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.NormalizedPolyline buildPartial() { - com.google.cloud.datalabeling.v1beta1.NormalizedPolyline result = new com.google.cloud.datalabeling.v1beta1.NormalizedPolyline(this); + com.google.cloud.datalabeling.v1beta1.NormalizedPolyline result = + new com.google.cloud.datalabeling.v1beta1.NormalizedPolyline(this); int from_bitField0_ = bitField0_; if (normalizedVerticesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +462,39 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedPolyline buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.NormalizedPolyline)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) other); } else { super.mergeFrom(other); return this; @@ -449,7 +502,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.NormalizedPolyline other) { - if (other == com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.NormalizedPolyline.getDefaultInstance()) + return this; if (normalizedVerticesBuilder_ == null) { if (!other.normalizedVertices_.isEmpty()) { if (normalizedVertices_.isEmpty()) { @@ -468,9 +522,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.NormalizedPolylin 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_); } @@ -495,7 +550,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.NormalizedPolyline) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -504,28 +560,39 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List normalizedVertices_ = - java.util.Collections.emptyList(); + private java.util.List + normalizedVertices_ = 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.datalabeling.v1beta1.NormalizedVertex, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder> normalizedVerticesBuilder_; + com.google.cloud.datalabeling.v1beta1.NormalizedVertex, + com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, + com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder> + normalizedVerticesBuilder_; /** + * + * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ - public java.util.List getNormalizedVerticesList() { + public java.util.List + getNormalizedVerticesList() { if (normalizedVerticesBuilder_ == null) { return java.util.Collections.unmodifiableList(normalizedVertices_); } else { @@ -533,11 +600,14 @@ public java.util.List ge } } /** + * + * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ public int getNormalizedVerticesCount() { if (normalizedVerticesBuilder_ == null) { @@ -547,11 +617,14 @@ public int getNormalizedVerticesCount() { } } /** + * + * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ public com.google.cloud.datalabeling.v1beta1.NormalizedVertex getNormalizedVertices(int index) { if (normalizedVerticesBuilder_ == null) { @@ -561,11 +634,14 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedVertex getNormalizedVerti } } /** + * + * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ public Builder setNormalizedVertices( int index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex value) { @@ -582,11 +658,14 @@ public Builder setNormalizedVertices( return this; } /** + * + * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ public Builder setNormalizedVertices( int index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder builderForValue) { @@ -600,13 +679,17 @@ public Builder setNormalizedVertices( return this; } /** + * + * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ - public Builder addNormalizedVertices(com.google.cloud.datalabeling.v1beta1.NormalizedVertex value) { + public Builder addNormalizedVertices( + com.google.cloud.datalabeling.v1beta1.NormalizedVertex value) { if (normalizedVerticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -620,11 +703,14 @@ public Builder addNormalizedVertices(com.google.cloud.datalabeling.v1beta1.Norma return this; } /** + * + * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ public Builder addNormalizedVertices( int index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex value) { @@ -641,11 +727,14 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ public Builder addNormalizedVertices( com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder builderForValue) { @@ -659,11 +748,14 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ public Builder addNormalizedVertices( int index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder builderForValue) { @@ -677,18 +769,21 @@ public Builder addNormalizedVertices( return this; } /** + * + * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ public Builder addAllNormalizedVertices( - java.lang.Iterable values) { + 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); @@ -696,11 +791,14 @@ public Builder addAllNormalizedVertices( return this; } /** + * + * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ public Builder clearNormalizedVertices() { if (normalizedVerticesBuilder_ == null) { @@ -713,11 +811,14 @@ public Builder clearNormalizedVertices() { return this; } /** + * + * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ public Builder removeNormalizedVertices(int index) { if (normalizedVerticesBuilder_ == null) { @@ -730,39 +831,49 @@ public Builder removeNormalizedVertices(int index) { return this; } /** + * + * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder getNormalizedVerticesBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder + getNormalizedVerticesBuilder(int index) { return getNormalizedVerticesFieldBuilder().getBuilder(index); } /** + * + * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder + getNormalizedVerticesOrBuilder(int index) { if (normalizedVerticesBuilder_ == null) { - return normalizedVertices_.get(index); } else { + return normalizedVertices_.get(index); + } else { return normalizedVerticesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ - public java.util.List - getNormalizedVerticesOrBuilderList() { + public java.util.List + getNormalizedVerticesOrBuilderList() { if (normalizedVerticesBuilder_ != null) { return normalizedVerticesBuilder_.getMessageOrBuilderList(); } else { @@ -770,45 +881,62 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder getNormal } } /** + * + * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder() { - return getNormalizedVerticesFieldBuilder().addBuilder( - com.google.cloud.datalabeling.v1beta1.NormalizedVertex.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder + addNormalizedVerticesBuilder() { + return getNormalizedVerticesFieldBuilder() + .addBuilder(com.google.cloud.datalabeling.v1beta1.NormalizedVertex.getDefaultInstance()); } /** + * + * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder addNormalizedVerticesBuilder( - int index) { - return getNormalizedVerticesFieldBuilder().addBuilder( - index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder + addNormalizedVerticesBuilder(int index) { + return getNormalizedVerticesFieldBuilder() + .addBuilder( + index, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.getDefaultInstance()); } /** + * + * *
      * The normalized polyline vertices.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ - public java.util.List - getNormalizedVerticesBuilderList() { + public java.util.List + getNormalizedVerticesBuilderList() { return getNormalizedVerticesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.NormalizedVertex, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder> + com.google.cloud.datalabeling.v1beta1.NormalizedVertex, + com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, + com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder> getNormalizedVerticesFieldBuilder() { if (normalizedVerticesBuilder_ == null) { - normalizedVerticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.NormalizedVertex, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder>( + normalizedVerticesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.NormalizedVertex, + com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder, + com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder>( normalizedVertices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -817,9 +945,9 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder addNormali } 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); } @@ -829,12 +957,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.NormalizedPolyline) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.NormalizedPolyline) private static final com.google.cloud.datalabeling.v1beta1.NormalizedPolyline DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.NormalizedPolyline(); } @@ -843,16 +971,16 @@ public static com.google.cloud.datalabeling.v1beta1.NormalizedPolyline getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NormalizedPolyline parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new NormalizedPolyline(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NormalizedPolyline parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NormalizedPolyline(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +995,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.NormalizedPolyline getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolylineOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolylineOrBuilder.java similarity index 60% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolylineOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolylineOrBuilder.java index 28effdb1..8eaef191 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolylineOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedPolylineOrBuilder.java @@ -1,52 +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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface NormalizedPolylineOrBuilder extends +public interface NormalizedPolylineOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.NormalizedPolyline) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The normalized polyline vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ - java.util.List + java.util.List getNormalizedVerticesList(); /** + * + * *
    * The normalized polyline vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ com.google.cloud.datalabeling.v1beta1.NormalizedVertex getNormalizedVertices(int index); /** + * + * *
    * The normalized polyline vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ int getNormalizedVerticesCount(); /** + * + * *
    * The normalized polyline vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ - java.util.List + java.util.List getNormalizedVerticesOrBuilderList(); /** + * + * *
    * The normalized polyline vertices.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * repeated .google.cloud.datalabeling.v1beta1.NormalizedVertex normalized_vertices = 1; + * */ com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder getNormalizedVerticesOrBuilder( int index); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertex.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertex.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertex.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertex.java index b1f26531..cfc65a87 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertex.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * A vertex represents a 2D point in the image.
  * NOTE: the normalized vertex coordinates are relative to the original image
@@ -12,30 +29,29 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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)
@@ -54,23 +70,23 @@ 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) {
@@ -78,34 +94,39 @@ private NormalizedVertex(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.NormalizedVertex.class, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.NormalizedVertex.class,
+            com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private float x_;
   /**
+   *
+   *
    * 
    * X 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_; /** + * + * *
    * Y 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 (java.lang.Float.floatToRawIntBits(x_) != 0) { output.writeFloat(1, x_); } @@ -158,12 +182,10 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(x_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, x_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, x_); } if (java.lang.Float.floatToRawIntBits(y_) != 0) { - 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.datalabeling.v1beta1.NormalizedVertex)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.NormalizedVertex other = (com.google.cloud.datalabeling.v1beta1.NormalizedVertex) obj; + com.google.cloud.datalabeling.v1beta1.NormalizedVertex other = + (com.google.cloud.datalabeling.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,113 @@ 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.datalabeling.v1beta1.NormalizedVertex 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.datalabeling.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.datalabeling.v1beta1.NormalizedVertex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.NormalizedVertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.NormalizedVertex parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.NormalizedVertex parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.NormalizedVertex parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.NormalizedVertex parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.NormalizedVertex prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.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.
    * NOTE: the normalized vertex coordinates are relative to the original image
@@ -307,21 +334,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.NormalizedVertex)
       com.google.cloud.datalabeling.v1beta1.NormalizedVertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.NormalizedVertex.class, com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.NormalizedVertex.class,
+              com.google.cloud.datalabeling.v1beta1.NormalizedVertex.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.NormalizedVertex.newBuilder()
@@ -329,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();
@@ -350,9 +378,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_NormalizedVertex_descriptor;
     }
 
     @java.lang.Override
@@ -371,7 +399,8 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedVertex build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.NormalizedVertex buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.NormalizedVertex result = new com.google.cloud.datalabeling.v1beta1.NormalizedVertex(this);
+      com.google.cloud.datalabeling.v1beta1.NormalizedVertex result =
+          new com.google.cloud.datalabeling.v1beta1.NormalizedVertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -382,38 +411,39 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.NormalizedVertex) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.NormalizedVertex)other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.NormalizedVertex) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -421,7 +451,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.NormalizedVertex other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.NormalizedVertex.getDefaultInstance()) return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.NormalizedVertex.getDefaultInstance())
+        return this;
       if (other.getX() != 0F) {
         setX(other.getX());
       }
@@ -447,7 +478,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.datalabeling.v1beta1.NormalizedVertex) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.datalabeling.v1beta1.NormalizedVertex) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -457,13 +489,16 @@ public Builder mergeFrom(
       return this;
     }
 
-    private float x_ ;
+    private float x_;
     /**
+     *
+     *
      * 
      * X coordinate.
      * 
* * float x = 1; + * * @return The x. */ @java.lang.Override @@ -471,42 +506,51 @@ public float getX() { return x_; } /** + * + * *
      * X 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; } /** + * + * *
      * X coordinate.
      * 
* * float x = 1; + * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0F; onChanged(); return this; } - private float y_ ; + private float y_; /** + * + * *
      * Y coordinate.
      * 
* * float y = 2; + * * @return The y. */ @java.lang.Override @@ -514,37 +558,43 @@ public float getY() { return y_; } /** + * + * *
      * Y 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; } /** + * + * *
      * Y 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); } @@ -554,12 +604,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.NormalizedVertex) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.NormalizedVertex) private static final com.google.cloud.datalabeling.v1beta1.NormalizedVertex DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.NormalizedVertex(); } @@ -568,16 +618,16 @@ public static com.google.cloud.datalabeling.v1beta1.NormalizedVertex getDefaultI 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; @@ -592,6 +642,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.NormalizedVertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertexOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/NormalizedVertexOrBuilder.java new file mode 100644 index 00000000..52597279 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/annotation.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface NormalizedVertexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.NormalizedVertex) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * X coordinate.
+   * 
+ * + * float x = 1; + * + * @return The x. + */ + float getX(); + + /** + * + * + *
+   * Y coordinate.
+   * 
+ * + * float y = 2; + * + * @return The y. + */ + float getY(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfig.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfig.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfig.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfig.java index 95258921..61842016 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfig.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Config for video object detection human labeling task.
  * Object detection will be conducted on the images extracted from the video,
@@ -14,31 +31,31 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.ObjectDetectionConfig}
  */
-public final class ObjectDetectionConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ObjectDetectionConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ObjectDetectionConfig)
     ObjectDetectionConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ObjectDetectionConfig.newBuilder() to construct.
   private ObjectDetectionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ObjectDetectionConfig() {
     annotationSpecSet_ = "";
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ObjectDetectionConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ObjectDetectionConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,24 +74,25 @@ private ObjectDetectionConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            java.lang.String s = input.readStringRequireUtf8();
-
-            annotationSpecSet_ = s;
-            break;
-          }
-          case 25: {
+          case 10:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            extractionFrameRate_ = input.readDouble();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              annotationSpecSet_ = s;
+              break;
+            }
+          case 25:
+            {
+              extractionFrameRate_ = input.readDouble();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -82,34 +100,39 @@ private ObjectDetectionConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.class, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.class,
+            com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder.class);
   }
 
   public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER = 1;
   private volatile java.lang.Object annotationSpecSet_;
   /**
+   *
+   *
    * 
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ @java.lang.Override @@ -118,29 +141,29 @@ public java.lang.String getAnnotationSpecSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; } } /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ @java.lang.Override - public com.google.protobuf.ByteString - getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -151,11 +174,14 @@ public java.lang.String getAnnotationSpecSet() { public static final int EXTRACTION_FRAME_RATE_FIELD_NUMBER = 3; private double extractionFrameRate_; /** + * + * *
    * Required. Number of frames per second to be extracted from the video.
    * 
* * double extraction_frame_rate = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The extractionFrameRate. */ @java.lang.Override @@ -164,6 +190,7 @@ public double getExtractionFrameRate() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,8 +202,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(annotationSpecSet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecSet_); } @@ -196,8 +222,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, annotationSpecSet_); } if (java.lang.Double.doubleToRawLongBits(extractionFrameRate_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(3, extractionFrameRate_); + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, extractionFrameRate_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -207,18 +232,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.datalabeling.v1beta1.ObjectDetectionConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig other = (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) obj; + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig other = + (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) obj; - if (!getAnnotationSpecSet() - .equals(other.getAnnotationSpecSet())) return false; + if (!getAnnotationSpecSet().equals(other.getAnnotationSpecSet())) return false; if (java.lang.Double.doubleToLongBits(getExtractionFrameRate()) - != java.lang.Double.doubleToLongBits( - other.getExtractionFrameRate())) return false; + != java.lang.Double.doubleToLongBits(other.getExtractionFrameRate())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -233,104 +257,114 @@ public int hashCode() { hash = (37 * hash) + ANNOTATION_SPEC_SET_FIELD_NUMBER; hash = (53 * hash) + getAnnotationSpecSet().hashCode(); hash = (37 * hash) + EXTRACTION_FRAME_RATE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getExtractionFrameRate())); + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getExtractionFrameRate())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig 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.datalabeling.v1beta1.ObjectDetectionConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Config for video object detection human labeling task.
    * Object detection will be conducted on the images extracted from the video,
@@ -341,21 +375,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.ObjectDetectionConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ObjectDetectionConfig)
       com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.class, com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.class,
+              com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.newBuilder()
@@ -363,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();
@@ -384,9 +419,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionConfig_descriptor;
     }
 
     @java.lang.Override
@@ -405,7 +440,8 @@ public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig result = new com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig(this);
+      com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig result =
+          new com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig(this);
       result.annotationSpecSet_ = annotationSpecSet_;
       result.extractionFrameRate_ = extractionFrameRate_;
       onBuilt();
@@ -416,38 +452,39 @@ public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig buildPartial(
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig)other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -455,7 +492,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance()) return this;
+      if (other == com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig.getDefaultInstance())
+        return this;
       if (!other.getAnnotationSpecSet().isEmpty()) {
         annotationSpecSet_ = other.annotationSpecSet_;
         onChanged();
@@ -482,7 +520,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -494,18 +533,20 @@ public Builder mergeFrom(
 
     private java.lang.Object annotationSpecSet_ = "";
     /**
+     *
+     *
      * 
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ public java.lang.String getAnnotationSpecSet() { java.lang.Object ref = annotationSpecSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; @@ -514,20 +555,21 @@ public java.lang.String getAnnotationSpecSet() { } } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ - public com.google.protobuf.ByteString - getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -535,66 +577,76 @@ public java.lang.String getAnnotationSpecSet() { } } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSet( - java.lang.String value) { + public Builder setAnnotationSpecSet(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecSet_ = value; onChanged(); return this; } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAnnotationSpecSet() { - + annotationSpecSet_ = getDefaultInstance().getAnnotationSpecSet(); onChanged(); return this; } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSetBytes( - com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecSet_ = value; onChanged(); return this; } - private double extractionFrameRate_ ; + private double extractionFrameRate_; /** + * + * *
      * Required. Number of frames per second to be extracted from the video.
      * 
* * double extraction_frame_rate = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The extractionFrameRate. */ @java.lang.Override @@ -602,37 +654,43 @@ public double getExtractionFrameRate() { return extractionFrameRate_; } /** + * + * *
      * Required. Number of frames per second to be extracted from the video.
      * 
* * double extraction_frame_rate = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The extractionFrameRate to set. * @return This builder for chaining. */ public Builder setExtractionFrameRate(double value) { - + extractionFrameRate_ = value; onChanged(); return this; } /** + * + * *
      * Required. Number of frames per second to be extracted from the video.
      * 
* * double extraction_frame_rate = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearExtractionFrameRate() { - + extractionFrameRate_ = 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); } @@ -642,12 +700,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) private static final com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig(); } @@ -656,16 +714,16 @@ public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig getDef return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectDetectionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObjectDetectionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectDetectionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectDetectionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -680,6 +738,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfigOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfigOrBuilder.java similarity index 59% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfigOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfigOrBuilder.java index 010ef1a4..3ad3b03c 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfigOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionConfigOrBuilder.java @@ -1,38 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface ObjectDetectionConfigOrBuilder extends +public interface ObjectDetectionConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ObjectDetectionConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ java.lang.String getAnnotationSpecSet(); /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ - com.google.protobuf.ByteString - getAnnotationSpecSetBytes(); + com.google.protobuf.ByteString getAnnotationSpecSetBytes(); /** + * + * *
    * Required. Number of frames per second to be extracted from the video.
    * 
* * double extraction_frame_rate = 3 [(.google.api.field_behavior) = REQUIRED]; + * * @return The extractionFrameRate. */ double getExtractionFrameRate(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetrics.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetrics.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetrics.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetrics.java index fd5030fa..8cae981f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetrics.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetrics.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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Metrics calculated for an image object detection (bounding box) model.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics} */ -public final class ObjectDetectionMetrics extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ObjectDetectionMetrics extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) ObjectDetectionMetricsOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ObjectDetectionMetrics.newBuilder() to construct. private ObjectDetectionMetrics(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ObjectDetectionMetrics() { - } + + private ObjectDetectionMetrics() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ObjectDetectionMetrics(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ObjectDetectionMetrics( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,29 @@ private ObjectDetectionMetrics( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.PrCurve.Builder subBuilder = null; - if (prCurve_ != null) { - subBuilder = prCurve_.toBuilder(); + case 10: + { + com.google.cloud.datalabeling.v1beta1.PrCurve.Builder subBuilder = null; + if (prCurve_ != null) { + subBuilder = prCurve_.toBuilder(); + } + prCurve_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.PrCurve.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(prCurve_); + prCurve_ = subBuilder.buildPartial(); + } + + break; } - prCurve_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.PrCurve.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(prCurve_); - prCurve_ = 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) { @@ -79,34 +98,39 @@ private ObjectDetectionMetrics( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.class, com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder.class); + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.class, + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder.class); } public static final int PR_CURVE_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.PrCurve prCurve_; /** + * + * *
    * Precision-recall curve.
    * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; + * * @return Whether the prCurve field is set. */ @java.lang.Override @@ -114,18 +138,25 @@ public boolean hasPrCurve() { return prCurve_ != null; } /** + * + * *
    * Precision-recall curve.
    * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; + * * @return The prCurve. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PrCurve getPrCurve() { - return prCurve_ == null ? com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance() : prCurve_; + return prCurve_ == null + ? com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance() + : prCurve_; } /** + * + * *
    * Precision-recall curve.
    * 
@@ -138,6 +169,7 @@ public com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder getPrCurveOrBuilde } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,8 +181,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 (prCurve_ != null) { output.writeMessage(1, getPrCurve()); } @@ -164,8 +195,7 @@ public int getSerializedSize() { size = 0; if (prCurve_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPrCurve()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getPrCurve()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +205,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.datalabeling.v1beta1.ObjectDetectionMetrics)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics other = (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) obj; + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics other = + (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) obj; if (hasPrCurve() != other.hasPrCurve()) return false; if (hasPrCurve()) { - if (!getPrCurve() - .equals(other.getPrCurve())) return false; + if (!getPrCurve().equals(other.getPrCurve())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -208,117 +238,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics 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.datalabeling.v1beta1.ObjectDetectionMetrics parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Metrics calculated for an image object detection (bounding box) model.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetricsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.class, com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder.class); + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.class, + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.newBuilder() @@ -326,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(); @@ -349,13 +388,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ObjectDetectionMetrics_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.getDefaultInstance(); } @@ -370,7 +410,8 @@ public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics buildPartial() { - com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics result = new com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics(this); + com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics result = + new com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics(this); if (prCurveBuilder_ == null) { result.prCurve_ = prCurve_; } else { @@ -384,38 +425,39 @@ public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) other); } else { super.mergeFrom(other); return this; @@ -423,7 +465,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics other) { - if (other == com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.getDefaultInstance()) return this; + if (other + == com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics.getDefaultInstance()) + return this; if (other.hasPrCurve()) { mergePrCurve(other.getPrCurve()); } @@ -446,7 +490,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,34 +503,47 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.PrCurve prCurve_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.PrCurve, com.google.cloud.datalabeling.v1beta1.PrCurve.Builder, com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder> prCurveBuilder_; + com.google.cloud.datalabeling.v1beta1.PrCurve, + com.google.cloud.datalabeling.v1beta1.PrCurve.Builder, + com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder> + prCurveBuilder_; /** + * + * *
      * Precision-recall curve.
      * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; + * * @return Whether the prCurve field is set. */ public boolean hasPrCurve() { return prCurveBuilder_ != null || prCurve_ != null; } /** + * + * *
      * Precision-recall curve.
      * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; + * * @return The prCurve. */ public com.google.cloud.datalabeling.v1beta1.PrCurve getPrCurve() { if (prCurveBuilder_ == null) { - return prCurve_ == null ? com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance() : prCurve_; + return prCurve_ == null + ? com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance() + : prCurve_; } else { return prCurveBuilder_.getMessage(); } } /** + * + * *
      * Precision-recall curve.
      * 
@@ -506,6 +564,8 @@ public Builder setPrCurve(com.google.cloud.datalabeling.v1beta1.PrCurve value) { return this; } /** + * + * *
      * Precision-recall curve.
      * 
@@ -524,6 +584,8 @@ public Builder setPrCurve( return this; } /** + * + * *
      * Precision-recall curve.
      * 
@@ -534,7 +596,9 @@ public Builder mergePrCurve(com.google.cloud.datalabeling.v1beta1.PrCurve value) if (prCurveBuilder_ == null) { if (prCurve_ != null) { prCurve_ = - com.google.cloud.datalabeling.v1beta1.PrCurve.newBuilder(prCurve_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.PrCurve.newBuilder(prCurve_) + .mergeFrom(value) + .buildPartial(); } else { prCurve_ = value; } @@ -546,6 +610,8 @@ public Builder mergePrCurve(com.google.cloud.datalabeling.v1beta1.PrCurve value) return this; } /** + * + * *
      * Precision-recall curve.
      * 
@@ -564,6 +630,8 @@ public Builder clearPrCurve() { return this; } /** + * + * *
      * Precision-recall curve.
      * 
@@ -571,11 +639,13 @@ public Builder clearPrCurve() { * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; */ public com.google.cloud.datalabeling.v1beta1.PrCurve.Builder getPrCurveBuilder() { - + onChanged(); return getPrCurveFieldBuilder().getBuilder(); } /** + * + * *
      * Precision-recall curve.
      * 
@@ -586,11 +656,14 @@ public com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder getPrCurveOrBuilde if (prCurveBuilder_ != null) { return prCurveBuilder_.getMessageOrBuilder(); } else { - return prCurve_ == null ? - com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance() : prCurve_; + return prCurve_ == null + ? com.google.cloud.datalabeling.v1beta1.PrCurve.getDefaultInstance() + : prCurve_; } } /** + * + * *
      * Precision-recall curve.
      * 
@@ -598,21 +671,24 @@ public com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder getPrCurveOrBuilde * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.PrCurve, com.google.cloud.datalabeling.v1beta1.PrCurve.Builder, com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder> + com.google.cloud.datalabeling.v1beta1.PrCurve, + com.google.cloud.datalabeling.v1beta1.PrCurve.Builder, + com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder> getPrCurveFieldBuilder() { if (prCurveBuilder_ == null) { - prCurveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.PrCurve, com.google.cloud.datalabeling.v1beta1.PrCurve.Builder, com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder>( - getPrCurve(), - getParentForChildren(), - isClean()); + prCurveBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.PrCurve, + com.google.cloud.datalabeling.v1beta1.PrCurve.Builder, + com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder>( + getPrCurve(), getParentForChildren(), isClean()); prCurve_ = null; } return prCurveBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,12 +698,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) - private static final com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics(); } @@ -636,16 +713,16 @@ public static com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectDetectionMetrics parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObjectDetectionMetrics(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectDetectionMetrics parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectDetectionMetrics(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -660,6 +737,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetricsOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetricsOrBuilder.java similarity index 58% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetricsOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetricsOrBuilder.java index 20a4180a..7bf3b0c9 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetricsOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectDetectionMetricsOrBuilder.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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; -public interface ObjectDetectionMetricsOrBuilder extends +public interface ObjectDetectionMetricsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ObjectDetectionMetrics) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Precision-recall curve.
    * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; + * * @return Whether the prCurve field is set. */ boolean hasPrCurve(); /** + * + * *
    * Precision-recall curve.
    * 
* * .google.cloud.datalabeling.v1beta1.PrCurve pr_curve = 1; + * * @return The prCurve. */ com.google.cloud.datalabeling.v1beta1.PrCurve getPrCurve(); /** + * + * *
    * Precision-recall curve.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfig.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfig.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfig.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfig.java index f3e39fcd..8efcc4c4 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfig.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Config for video object tracking human labeling task.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ObjectTrackingConfig} */ -public final class ObjectTrackingConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ObjectTrackingConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) ObjectTrackingConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ObjectTrackingConfig.newBuilder() to construct. private ObjectTrackingConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ObjectTrackingConfig() { annotationSpecSet_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ObjectTrackingConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ObjectTrackingConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private ObjectTrackingConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - annotationSpecSet_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + annotationSpecSet_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,39 @@ private ObjectTrackingConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.class, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.class, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder.class); } public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER = 1; private volatile java.lang.Object annotationSpecSet_; /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ @java.lang.Override @@ -109,29 +132,29 @@ public java.lang.String getAnnotationSpecSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; } } /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ @java.lang.Override - public com.google.protobuf.ByteString - getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -140,6 +163,7 @@ public java.lang.String getAnnotationSpecSet() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +175,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(annotationSpecSet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecSet_); } @@ -176,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.datalabeling.v1beta1.ObjectTrackingConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig other = (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) obj; + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig other = + (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) obj; - if (!getAnnotationSpecSet() - .equals(other.getAnnotationSpecSet())) return false; + if (!getAnnotationSpecSet().equals(other.getAnnotationSpecSet())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +227,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig 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.datalabeling.v1beta1.ObjectTrackingConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Config for video object tracking human labeling task.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ObjectTrackingConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.class, com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.class, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.newBuilder() @@ -322,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(); @@ -341,9 +373,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingConfig_descriptor; } @java.lang.Override @@ -362,7 +394,8 @@ public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig result = new com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig(this); + com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig result = + new com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig(this); result.annotationSpecSet_ = annotationSpecSet_; onBuilt(); return result; @@ -372,38 +405,39 @@ public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) other); } else { super.mergeFrom(other); return this; @@ -411,7 +445,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig other) { - if (other == com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig.getDefaultInstance()) + return this; if (!other.getAnnotationSpecSet().isEmpty()) { annotationSpecSet_ = other.annotationSpecSet_; onChanged(); @@ -435,7 +470,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +483,20 @@ public Builder mergeFrom( private java.lang.Object annotationSpecSet_ = ""; /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ public java.lang.String getAnnotationSpecSet() { java.lang.Object ref = annotationSpecSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; @@ -467,20 +505,21 @@ public java.lang.String getAnnotationSpecSet() { } } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ - public com.google.protobuf.ByteString - getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -488,61 +527,68 @@ public java.lang.String getAnnotationSpecSet() { } } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSet( - java.lang.String value) { + public Builder setAnnotationSpecSet(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecSet_ = value; onChanged(); return this; } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAnnotationSpecSet() { - + annotationSpecSet_ = getDefaultInstance().getAnnotationSpecSet(); onChanged(); return this; } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSetBytes( - com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecSet_ = 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); } @@ -552,12 +598,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) private static final com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig(); } @@ -566,16 +612,16 @@ public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectTrackingConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObjectTrackingConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectTrackingConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectTrackingConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +636,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfigOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfigOrBuilder.java similarity index 52% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfigOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfigOrBuilder.java index 1b3dc0b3..9c23d068 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfigOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingConfigOrBuilder.java @@ -1,29 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface ObjectTrackingConfigOrBuilder extends +public interface ObjectTrackingConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ObjectTrackingConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ java.lang.String getAnnotationSpecSet(); /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ - com.google.protobuf.ByteString - getAnnotationSpecSetBytes(); + com.google.protobuf.ByteString getAnnotationSpecSetBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrame.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrame.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrame.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrame.java index eac450e3..0192232d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrame.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrame.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Video frame level annotation for object detection and tracking.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ObjectTrackingFrame} */ -public final class ObjectTrackingFrame extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ObjectTrackingFrame extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ObjectTrackingFrame) ObjectTrackingFrameOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ObjectTrackingFrame.newBuilder() to construct. private ObjectTrackingFrame(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ObjectTrackingFrame() { - } + + private ObjectTrackingFrame() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ObjectTrackingFrame(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ObjectTrackingFrame( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,54 +68,68 @@ private ObjectTrackingFrame( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder subBuilder = null; - if (boundedAreaCase_ == 1) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_).toBuilder(); - } - boundedArea_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.BoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_); - boundedArea_ = subBuilder.buildPartial(); - } - boundedAreaCase_ = 1; - break; - } - case 18: { - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder subBuilder = null; - if (boundedAreaCase_ == 2) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_).toBuilder(); - } - boundedArea_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_); - boundedArea_ = subBuilder.buildPartial(); - } - boundedAreaCase_ = 2; - break; - } - case 26: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (timeOffset_ != null) { - subBuilder = timeOffset_.toBuilder(); + case 10: + { + com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder subBuilder = null; + if (boundedAreaCase_ == 1) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_).toBuilder(); + } + boundedArea_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.BoundingPoly.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_); + boundedArea_ = subBuilder.buildPartial(); + } + boundedAreaCase_ = 1; + break; } - timeOffset_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeOffset_); - timeOffset_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder subBuilder = + null; + if (boundedAreaCase_ == 2) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_) + .toBuilder(); + } + boundedArea_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_); + boundedArea_ = subBuilder.buildPartial(); + } + boundedAreaCase_ = 2; + break; } + case 26: + { + 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; - } - 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) { @@ -107,35 +137,40 @@ private ObjectTrackingFrame( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.class, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder.class); + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.class, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder.class); } private int boundedAreaCase_ = 0; private java.lang.Object boundedArea_; + public enum BoundedAreaCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { BOUNDING_POLY(1), NORMALIZED_BOUNDING_POLY(2), BOUNDEDAREA_NOT_SET(0); private final int value; + private BoundedAreaCase(int value) { this.value = value; } @@ -151,26 +186,30 @@ public static BoundedAreaCase valueOf(int value) { public static BoundedAreaCase forNumber(int value) { switch (value) { - case 1: return BOUNDING_POLY; - case 2: return NORMALIZED_BOUNDING_POLY; - case 0: return BOUNDEDAREA_NOT_SET; - default: return null; + case 1: + return BOUNDING_POLY; + case 2: + return NORMALIZED_BOUNDING_POLY; + case 0: + return BOUNDEDAREA_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public BoundedAreaCase - getBoundedAreaCase() { - return BoundedAreaCase.forNumber( - boundedAreaCase_); + public BoundedAreaCase getBoundedAreaCase() { + return BoundedAreaCase.forNumber(boundedAreaCase_); } public static final int BOUNDING_POLY_FIELD_NUMBER = 1; /** * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -179,29 +218,30 @@ public boolean hasBoundingPoly() { } /** * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BoundingPoly getBoundingPoly() { if (boundedAreaCase_ == 1) { - return (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_; + return (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_; } return com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance(); } - /** - * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; - */ + /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder() { if (boundedAreaCase_ == 1) { - return (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_; + return (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_; } return com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance(); } public static final int NORMALIZED_BOUNDING_POLY_FIELD_NUMBER = 2; /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * + * * @return Whether the normalizedBoundingPoly field is set. */ @java.lang.Override @@ -209,23 +249,27 @@ public boolean hasNormalizedBoundingPoly() { return boundedAreaCase_ == 2; } /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * + * * @return The normalizedBoundingPoly. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly getNormalizedBoundingPoly() { if (boundedAreaCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_; + return (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_; } return com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance(); } /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder getNormalizedBoundingPolyOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder + getNormalizedBoundingPolyOrBuilder() { if (boundedAreaCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_; + return (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_; } return com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance(); } @@ -233,11 +277,14 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder get public static final int TIME_OFFSET_FIELD_NUMBER = 3; private com.google.protobuf.Duration timeOffset_; /** + * + * *
    * The time offset of this frame relative to the beginning of the video.
    * 
* * .google.protobuf.Duration time_offset = 3; + * * @return Whether the timeOffset field is set. */ @java.lang.Override @@ -245,11 +292,14 @@ public boolean hasTimeOffset() { return timeOffset_ != null; } /** + * + * *
    * The time offset of this frame relative to the beginning of the video.
    * 
* * .google.protobuf.Duration time_offset = 3; + * * @return The timeOffset. */ @java.lang.Override @@ -257,6 +307,8 @@ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; } /** + * + * *
    * The time offset of this frame relative to the beginning of the video.
    * 
@@ -269,6 +321,7 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -280,13 +333,13 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (boundedAreaCase_ == 1) { output.writeMessage(1, (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_); } if (boundedAreaCase_ == 2) { - output.writeMessage(2, (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_); + output.writeMessage( + 2, (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_); } if (timeOffset_ != null) { output.writeMessage(3, getTimeOffset()); @@ -301,16 +354,17 @@ public int getSerializedSize() { size = 0; if (boundedAreaCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_); } if (boundedAreaCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_); } if (timeOffset_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTimeOffset()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTimeOffset()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -320,27 +374,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.datalabeling.v1beta1.ObjectTrackingFrame)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame other = (com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame) obj; + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame other = + (com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame) obj; if (hasTimeOffset() != other.hasTimeOffset()) return false; if (hasTimeOffset()) { - if (!getTimeOffset() - .equals(other.getTimeOffset())) return false; + if (!getTimeOffset().equals(other.getTimeOffset())) return false; } if (!getBoundedAreaCase().equals(other.getBoundedAreaCase())) return false; switch (boundedAreaCase_) { case 1: - if (!getBoundingPoly() - .equals(other.getBoundingPoly())) return false; + if (!getBoundingPoly().equals(other.getBoundingPoly())) return false; break; case 2: - if (!getNormalizedBoundingPoly() - .equals(other.getNormalizedBoundingPoly())) return false; + if (!getNormalizedBoundingPoly().equals(other.getNormalizedBoundingPoly())) return false; break; case 0: default: @@ -378,117 +430,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame 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.datalabeling.v1beta1.ObjectTrackingFrame parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Video frame level annotation for object detection and tracking.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ObjectTrackingFrame} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ObjectTrackingFrame) com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.class, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder.class); + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.class, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.newBuilder() @@ -496,16 +558,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(); @@ -521,9 +582,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ObjectTrackingFrame_descriptor; } @java.lang.Override @@ -542,7 +603,8 @@ public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame buildPartial() { - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame result = new com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame(this); + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame result = + new com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame(this); if (boundedAreaCase_ == 1) { if (boundingPolyBuilder_ == null) { result.boundedArea_ = boundedArea_; @@ -571,38 +633,39 @@ public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame) other); } else { super.mergeFrom(other); return this; @@ -610,22 +673,26 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame other) { - if (other == com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.getDefaultInstance()) + return this; if (other.hasTimeOffset()) { mergeTimeOffset(other.getTimeOffset()); } switch (other.getBoundedAreaCase()) { - case BOUNDING_POLY: { - mergeBoundingPoly(other.getBoundingPoly()); - break; - } - case NORMALIZED_BOUNDING_POLY: { - mergeNormalizedBoundingPoly(other.getNormalizedBoundingPoly()); - break; - } - case BOUNDEDAREA_NOT_SET: { - break; - } + case BOUNDING_POLY: + { + mergeBoundingPoly(other.getBoundingPoly()); + break; + } + case NORMALIZED_BOUNDING_POLY: + { + mergeNormalizedBoundingPoly(other.getNormalizedBoundingPoly()); + break; + } + case BOUNDEDAREA_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -646,7 +713,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -655,12 +723,12 @@ public Builder mergeFrom( } return this; } + private int boundedAreaCase_ = 0; private java.lang.Object boundedArea_; - public BoundedAreaCase - getBoundedAreaCase() { - return BoundedAreaCase.forNumber( - boundedAreaCase_); + + public BoundedAreaCase getBoundedAreaCase() { + return BoundedAreaCase.forNumber(boundedAreaCase_); } public Builder clearBoundedArea() { @@ -670,11 +738,14 @@ public Builder clearBoundedArea() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.BoundingPoly, com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder> boundingPolyBuilder_; + com.google.cloud.datalabeling.v1beta1.BoundingPoly, + com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder, + com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder> + boundingPolyBuilder_; /** * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ @java.lang.Override @@ -683,6 +754,7 @@ public boolean hasBoundingPoly() { } /** * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ @java.lang.Override @@ -699,9 +771,7 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPoly getBoundingPoly() { return com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance(); } } - /** - * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; - */ + /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; */ public Builder setBoundingPoly(com.google.cloud.datalabeling.v1beta1.BoundingPoly value) { if (boundingPolyBuilder_ == null) { if (value == null) { @@ -715,9 +785,7 @@ public Builder setBoundingPoly(com.google.cloud.datalabeling.v1beta1.BoundingPol boundedAreaCase_ = 1; return this; } - /** - * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; - */ + /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; */ public Builder setBoundingPoly( com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder builderForValue) { if (boundingPolyBuilder_ == null) { @@ -729,15 +797,17 @@ public Builder setBoundingPoly( boundedAreaCase_ = 1; return this; } - /** - * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; - */ + /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; */ public Builder mergeBoundingPoly(com.google.cloud.datalabeling.v1beta1.BoundingPoly value) { if (boundingPolyBuilder_ == null) { - if (boundedAreaCase_ == 1 && - boundedArea_ != com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance()) { - boundedArea_ = com.google.cloud.datalabeling.v1beta1.BoundingPoly.newBuilder((com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_) - .mergeFrom(value).buildPartial(); + if (boundedAreaCase_ == 1 + && boundedArea_ + != com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance()) { + boundedArea_ = + com.google.cloud.datalabeling.v1beta1.BoundingPoly.newBuilder( + (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_) + .mergeFrom(value) + .buildPartial(); } else { boundedArea_ = value; } @@ -752,9 +822,7 @@ public Builder mergeBoundingPoly(com.google.cloud.datalabeling.v1beta1.BoundingP boundedAreaCase_ = 1; return this; } - /** - * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; - */ + /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; */ public Builder clearBoundingPoly() { if (boundingPolyBuilder_ == null) { if (boundedAreaCase_ == 1) { @@ -771,15 +839,11 @@ public Builder clearBoundingPoly() { } return this; } - /** - * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; - */ + /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; */ public com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder getBoundingPolyBuilder() { return getBoundingPolyFieldBuilder().getBuilder(); } - /** - * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; - */ + /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder() { if ((boundedAreaCase_ == 1) && (boundingPolyBuilder_ != null)) { @@ -791,32 +855,41 @@ public com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder getBoundingPo return com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance(); } } - /** - * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; - */ + /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.BoundingPoly, com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder> + com.google.cloud.datalabeling.v1beta1.BoundingPoly, + com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder, + com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder> getBoundingPolyFieldBuilder() { if (boundingPolyBuilder_ == null) { if (!(boundedAreaCase_ == 1)) { boundedArea_ = com.google.cloud.datalabeling.v1beta1.BoundingPoly.getDefaultInstance(); } - boundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.BoundingPoly, com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder>( + boundingPolyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.BoundingPoly, + com.google.cloud.datalabeling.v1beta1.BoundingPoly.Builder, + com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder>( (com.google.cloud.datalabeling.v1beta1.BoundingPoly) boundedArea_, getParentForChildren(), isClean()); boundedArea_ = null; } boundedAreaCase_ = 1; - onChanged();; + onChanged(); + ; return boundingPolyBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder> normalizedBoundingPolyBuilder_; + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly, + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder, + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder> + normalizedBoundingPolyBuilder_; /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * + * * @return Whether the normalizedBoundingPoly field is set. */ @java.lang.Override @@ -824,11 +897,14 @@ public boolean hasNormalizedBoundingPoly() { return boundedAreaCase_ == 2; } /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * + * * @return The normalizedBoundingPoly. */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly getNormalizedBoundingPoly() { + public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly + getNormalizedBoundingPoly() { if (normalizedBoundingPolyBuilder_ == null) { if (boundedAreaCase_ == 2) { return (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_; @@ -842,9 +918,11 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly getNormalize } } /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * */ - public Builder setNormalizedBoundingPoly(com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly value) { + public Builder setNormalizedBoundingPoly( + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly value) { if (normalizedBoundingPolyBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -858,7 +936,8 @@ public Builder setNormalizedBoundingPoly(com.google.cloud.datalabeling.v1beta1.N return this; } /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * */ public Builder setNormalizedBoundingPoly( com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder builderForValue) { @@ -872,14 +951,21 @@ public Builder setNormalizedBoundingPoly( return this; } /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * */ - public Builder mergeNormalizedBoundingPoly(com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly value) { + public Builder mergeNormalizedBoundingPoly( + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly value) { if (normalizedBoundingPolyBuilder_ == null) { - if (boundedAreaCase_ == 2 && - boundedArea_ != com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance()) { - boundedArea_ = com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.newBuilder((com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_) - .mergeFrom(value).buildPartial(); + if (boundedAreaCase_ == 2 + && boundedArea_ + != com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly + .getDefaultInstance()) { + boundedArea_ = + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.newBuilder( + (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_) + .mergeFrom(value) + .buildPartial(); } else { boundedArea_ = value; } @@ -895,7 +981,8 @@ public Builder mergeNormalizedBoundingPoly(com.google.cloud.datalabeling.v1beta1 return this; } /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * */ public Builder clearNormalizedBoundingPoly() { if (normalizedBoundingPolyBuilder_ == null) { @@ -914,16 +1001,20 @@ public Builder clearNormalizedBoundingPoly() { return this; } /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * */ - public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder getNormalizedBoundingPolyBuilder() { + public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder + getNormalizedBoundingPolyBuilder() { return getNormalizedBoundingPolyFieldBuilder().getBuilder(); } /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder getNormalizedBoundingPolyOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder + getNormalizedBoundingPolyOrBuilder() { if ((boundedAreaCase_ == 2) && (normalizedBoundingPolyBuilder_ != null)) { return normalizedBoundingPolyBuilder_.getMessageOrBuilder(); } else { @@ -934,57 +1025,78 @@ public com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder get } } /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder> + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly, + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder, + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder> getNormalizedBoundingPolyFieldBuilder() { if (normalizedBoundingPolyBuilder_ == null) { if (!(boundedAreaCase_ == 2)) { - boundedArea_ = com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance(); + boundedArea_ = + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.getDefaultInstance(); } - normalizedBoundingPolyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder, com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder>( + normalizedBoundingPolyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly, + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly.Builder, + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder>( (com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly) boundedArea_, getParentForChildren(), isClean()); boundedArea_ = null; } boundedAreaCase_ = 2; - onChanged();; + onChanged(); + ; return normalizedBoundingPolyBuilder_; } 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_; /** + * + * *
      * The time offset of this frame relative to the beginning of the video.
      * 
* * .google.protobuf.Duration time_offset = 3; + * * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; } /** + * + * *
      * The time offset of this frame relative to the beginning of the video.
      * 
* * .google.protobuf.Duration time_offset = 3; + * * @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(); } } /** + * + * *
      * The time offset of this frame relative to the beginning of the video.
      * 
@@ -1005,14 +1117,15 @@ public Builder setTimeOffset(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * The time offset of this frame relative to the beginning of the video.
      * 
* * .google.protobuf.Duration time_offset = 3; */ - 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(); @@ -1023,6 +1136,8 @@ public Builder setTimeOffset( return this; } /** + * + * *
      * The time offset of this frame relative to the beginning of the video.
      * 
@@ -1033,7 +1148,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; } @@ -1045,6 +1160,8 @@ public Builder mergeTimeOffset(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * The time offset of this frame relative to the beginning of the video.
      * 
@@ -1063,6 +1180,8 @@ public Builder clearTimeOffset() { return this; } /** + * + * *
      * The time offset of this frame relative to the beginning of the video.
      * 
@@ -1070,11 +1189,13 @@ public Builder clearTimeOffset() { * .google.protobuf.Duration time_offset = 3; */ public com.google.protobuf.Duration.Builder getTimeOffsetBuilder() { - + onChanged(); return getTimeOffsetFieldBuilder().getBuilder(); } /** + * + * *
      * The time offset of this frame relative to the beginning of the video.
      * 
@@ -1085,11 +1206,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_; } } /** + * + * *
      * The time offset of this frame relative to the beginning of the video.
      * 
@@ -1097,21 +1221,24 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() { * .google.protobuf.Duration time_offset = 3; */ 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_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1121,12 +1248,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ObjectTrackingFrame) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ObjectTrackingFrame) private static final com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame(); } @@ -1135,16 +1262,16 @@ public static com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ObjectTrackingFrame parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ObjectTrackingFrame(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ObjectTrackingFrame parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ObjectTrackingFrame(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1159,6 +1286,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrameOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrameOrBuilder.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrameOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrameOrBuilder.java index 623cb81f..d84c4a2a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrameOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ObjectTrackingFrameOrBuilder.java @@ -1,61 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface ObjectTrackingFrameOrBuilder extends +public interface ObjectTrackingFrameOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ObjectTrackingFrame) com.google.protobuf.MessageOrBuilder { /** * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; + * * @return Whether the boundingPoly field is set. */ boolean hasBoundingPoly(); /** * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; + * * @return The boundingPoly. */ com.google.cloud.datalabeling.v1beta1.BoundingPoly getBoundingPoly(); - /** - * .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; - */ + /** .google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 1; */ com.google.cloud.datalabeling.v1beta1.BoundingPolyOrBuilder getBoundingPolyOrBuilder(); /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * + * * @return Whether the normalizedBoundingPoly field is set. */ boolean hasNormalizedBoundingPoly(); /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * + * * @return The normalizedBoundingPoly. */ com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly getNormalizedBoundingPoly(); /** - * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * .google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 2; + * */ - com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder getNormalizedBoundingPolyOrBuilder(); + com.google.cloud.datalabeling.v1beta1.NormalizedBoundingPolyOrBuilder + getNormalizedBoundingPolyOrBuilder(); /** + * + * *
    * The time offset of this frame relative to the beginning of the video.
    * 
* * .google.protobuf.Duration time_offset = 3; + * * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** + * + * *
    * The time offset of this frame relative to the beginning of the video.
    * 
* * .google.protobuf.Duration time_offset = 3; + * * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** + * + * *
    * The time offset of this frame relative to the beginning of the video.
    * 
@@ -64,5 +94,6 @@ public interface ObjectTrackingFrameOrBuilder extends */ com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder(); - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.BoundedAreaCase getBoundedAreaCase(); + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.BoundedAreaCase + getBoundedAreaCase(); } diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Operations.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Operations.java new file mode 100644 index 00000000..6be6f4f6 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Operations.java @@ -0,0 +1,400 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/operations.proto + +package com.google.cloud.datalabeling.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_datalabeling_v1beta1_ImportDataOperationResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_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/datalabeling/v1beta1/oper" + + "ations.proto\022!google.cloud.datalabeling." + + "v1beta1\032\034google/api/annotations.proto\032\031g" + + "oogle/api/resource.proto\032/google/cloud/d" + + "atalabeling/v1beta1/dataset.proto\032?googl" + + "e/cloud/datalabeling/v1beta1/human_annot" + + "ation_config.proto\032\037google/protobuf/time" + + "stamp.proto\032\027google/rpc/status.proto\"Y\n\033" + + "ImportDataOperationResponse\022\017\n\007dataset\030\001" + + " \001(\t\022\023\n\013total_count\030\002 \001(\005\022\024\n\014import_coun" + + "t\030\003 \001(\005\"\345\001\n\033ExportDataOperationResponse\022" + + "\017\n\007dataset\030\001 \001(\t\022\023\n\013total_count\030\002 \001(\005\022\024\n" + + "\014export_count\030\003 \001(\005\022B\n\013label_stats\030\004 \001(\013" + + "2-.google.cloud.datalabeling.v1beta1.Lab" + + "elStats\022F\n\routput_config\030\005 \001(\0132/.google." + + "cloud.datalabeling.v1beta1.OutputConfig\"" + + "\215\001\n\033ImportDataOperationMetadata\022\017\n\007datas" + + "et\030\001 \001(\t\022,\n\020partial_failures\030\002 \003(\0132\022.goo" + + "gle.rpc.Status\022/\n\013create_time\030\003 \001(\0132\032.go" + + "ogle.protobuf.Timestamp\"\215\001\n\033ExportDataOp" + + "erationMetadata\022\017\n\007dataset\030\001 \001(\t\022,\n\020part" + + "ial_failures\030\002 \003(\0132\022.google.rpc.Status\022/" + + "\n\013create_time\030\003 \001(\0132\032.google.protobuf.Ti" + + "mestamp\"\214\014\n\026LabelOperationMetadata\022t\n\034im" + + "age_classification_details\030\003 \001(\0132L.googl" + + "e.cloud.datalabeling.v1beta1.LabelImageC" + + "lassificationOperationMetadataH\000\022o\n\032imag" + + "e_bounding_box_details\030\004 \001(\0132I.google.cl" + + "oud.datalabeling.v1beta1.LabelImageBound" + + "ingBoxOperationMetadataH\000\022q\n\033image_bound" + + "ing_poly_details\030\013 \001(\0132J.google.cloud.da" + + "talabeling.v1beta1.LabelImageBoundingPol" + + "yOperationMetadataH\000\022\200\001\n#image_oriented_" + + "bounding_box_details\030\016 \001(\0132Q.google.clou" + + "d.datalabeling.v1beta1.LabelImageOriente" + + "dBoundingBoxOperationMetadataH\000\022h\n\026image" + + "_polyline_details\030\014 \001(\0132F.google.cloud.d" + + "atalabeling.v1beta1.LabelImagePolylineOp" + + "erationMetadataH\000\022p\n\032image_segmentation_" + + "details\030\017 \001(\0132J.google.cloud.datalabelin" + + "g.v1beta1.LabelImageSegmentationOperatio" + + "nMetadataH\000\022t\n\034video_classification_deta" + + "ils\030\005 \001(\0132L.google.cloud.datalabeling.v1" + + "beta1.LabelVideoClassificationOperationM" + + "etadataH\000\022w\n\036video_object_detection_deta" + + "ils\030\006 \001(\0132M.google.cloud.datalabeling.v1" + + "beta1.LabelVideoObjectDetectionOperation" + + "MetadataH\000\022u\n\035video_object_tracking_deta" + + "ils\030\007 \001(\0132L.google.cloud.datalabeling.v1" + + "beta1.LabelVideoObjectTrackingOperationM" + + "etadataH\000\022b\n\023video_event_details\030\010 \001(\0132C" + + ".google.cloud.datalabeling.v1beta1.Label" + + "VideoEventOperationMetadataH\000\022r\n\033text_cl" + + "assification_details\030\t \001(\0132K.google.clou" + + "d.datalabeling.v1beta1.LabelTextClassifi" + + "cationOperationMetadataH\000\022w\n\036text_entity" + + "_extraction_details\030\r \001(\0132M.google.cloud" + + ".datalabeling.v1beta1.LabelTextEntityExt" + + "ractionOperationMetadataH\000\022\030\n\020progress_p" + + "ercent\030\001 \001(\005\022,\n\020partial_failures\030\002 \003(\0132\022" + + ".google.rpc.Status\022/\n\013create_time\030\020 \001(\0132" + + "\032.google.protobuf.TimestampB\t\n\007details\"{" + + "\n)LabelImageClassificationOperationMetad" + + "ata\022N\n\014basic_config\030\001 \001(\01328.google.cloud" + + ".datalabeling.v1beta1.HumanAnnotationCon" + + "fig\"x\n&LabelImageBoundingBoxOperationMet" + + "adata\022N\n\014basic_config\030\001 \001(\01328.google.clo" + + "ud.datalabeling.v1beta1.HumanAnnotationC" + + "onfig\"\200\001\n.LabelImageOrientedBoundingBoxO" + + "perationMetadata\022N\n\014basic_config\030\001 \001(\01328" + + ".google.cloud.datalabeling.v1beta1.Human" + + "AnnotationConfig\"y\n\'LabelImageBoundingPo" + + "lyOperationMetadata\022N\n\014basic_config\030\001 \001(" + + "\01328.google.cloud.datalabeling.v1beta1.Hu" + + "manAnnotationConfig\"u\n#LabelImagePolylin" + + "eOperationMetadata\022N\n\014basic_config\030\001 \001(\013" + + "28.google.cloud.datalabeling.v1beta1.Hum" + + "anAnnotationConfig\"y\n\'LabelImageSegmenta" + + "tionOperationMetadata\022N\n\014basic_config\030\001 " + + "\001(\01328.google.cloud.datalabeling.v1beta1." + + "HumanAnnotationConfig\"{\n)LabelVideoClass" + + "ificationOperationMetadata\022N\n\014basic_conf" + + "ig\030\001 \001(\01328.google.cloud.datalabeling.v1b" + + "eta1.HumanAnnotationConfig\"|\n*LabelVideo" + + "ObjectDetectionOperationMetadata\022N\n\014basi" + + "c_config\030\001 \001(\01328.google.cloud.datalabeli" + + "ng.v1beta1.HumanAnnotationConfig\"{\n)Labe" + + "lVideoObjectTrackingOperationMetadata\022N\n" + + "\014basic_config\030\001 \001(\01328.google.cloud.datal" + + "abeling.v1beta1.HumanAnnotationConfig\"r\n" + + " LabelVideoEventOperationMetadata\022N\n\014bas" + + "ic_config\030\001 \001(\01328.google.cloud.datalabel" + + "ing.v1beta1.HumanAnnotationConfig\"z\n(Lab" + + "elTextClassificationOperationMetadata\022N\n" + + "\014basic_config\030\001 \001(\01328.google.cloud.datal" + + "abeling.v1beta1.HumanAnnotationConfig\"|\n" + + "*LabelTextEntityExtractionOperationMetad" + + "ata\022N\n\014basic_config\030\001 \001(\01328.google.cloud" + + ".datalabeling.v1beta1.HumanAnnotationCon" + + "fig\"\217\001\n\031CreateInstructionMetadata\022\023\n\013ins" + + "truction\030\001 \001(\t\022,\n\020partial_failures\030\002 \003(\013" + + "2\022.google.rpc.Status\022/\n\013create_time\030\003 \001(" + + "\0132\032.google.protobuf.TimestampB\347\001\n%com.go" + + "ogle.cloud.datalabeling.v1beta1P\001ZMgoogl" + + "e.golang.org/genproto/googleapis/cloud/d" + + "atalabeling/v1beta1;datalabeling\252\002!Googl" + + "e.Cloud.DataLabeling.V1Beta1\312\002!Google\\Cl" + + "oud\\DataLabeling\\V1beta1\352\002$Google::Cloud" + + "::DataLabeling::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(), + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + }); + internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationResponse_descriptor, + new java.lang.String[] { + "Dataset", "TotalCount", "ImportCount", + }); + internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationResponse_descriptor, + new java.lang.String[] { + "Dataset", "TotalCount", "ExportCount", "LabelStats", "OutputConfig", + }); + internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ImportDataOperationMetadata_descriptor, + new java.lang.String[] { + "Dataset", "PartialFailures", "CreateTime", + }); + internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_ExportDataOperationMetadata_descriptor, + new java.lang.String[] { + "Dataset", "PartialFailures", "CreateTime", + }); + internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelOperationMetadata_descriptor, + new java.lang.String[] { + "ImageClassificationDetails", + "ImageBoundingBoxDetails", + "ImageBoundingPolyDetails", + "ImageOrientedBoundingBoxDetails", + "ImagePolylineDetails", + "ImageSegmentationDetails", + "VideoClassificationDetails", + "VideoObjectDetectionDetails", + "VideoObjectTrackingDetails", + "VideoEventDetails", + "TextClassificationDetails", + "TextEntityExtractionDetails", + "ProgressPercent", + "PartialFailures", + "CreateTime", + "Details", + }); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelImageClassificationOperationMetadata_descriptor, + new java.lang.String[] { + "BasicConfig", + }); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingBoxOperationMetadata_descriptor, + new java.lang.String[] { + "BasicConfig", + }); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelImageOrientedBoundingBoxOperationMetadata_descriptor, + new java.lang.String[] { + "BasicConfig", + }); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelImageBoundingPolyOperationMetadata_descriptor, + new java.lang.String[] { + "BasicConfig", + }); + internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelImagePolylineOperationMetadata_descriptor, + new java.lang.String[] { + "BasicConfig", + }); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelImageSegmentationOperationMetadata_descriptor, + new java.lang.String[] { + "BasicConfig", + }); + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoClassificationOperationMetadata_descriptor, + new java.lang.String[] { + "BasicConfig", + }); + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectDetectionOperationMetadata_descriptor, + new java.lang.String[] { + "BasicConfig", + }); + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoObjectTrackingOperationMetadata_descriptor, + new java.lang.String[] { + "BasicConfig", + }); + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelVideoEventOperationMetadata_descriptor, + new java.lang.String[] { + "BasicConfig", + }); + internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelTextClassificationOperationMetadata_descriptor, + new java.lang.String[] { + "BasicConfig", + }); + internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_LabelTextEntityExtractionOperationMetadata_descriptor, + new java.lang.String[] { + "BasicConfig", + }); + internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_datalabeling_v1beta1_CreateInstructionMetadata_descriptor, + new java.lang.String[] { + "Instruction", "PartialFailures", "CreateTime", + }); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.getDescriptor(); + com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadata.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadata.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadata.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadata.java index ceefcb81..65e29449 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadata.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadata.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * General information useful for labels coming from contributors.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.OperatorMetadata} */ -public final class OperatorMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class OperatorMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.OperatorMetadata) OperatorMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use OperatorMetadata.newBuilder() to construct. private OperatorMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private OperatorMetadata() { comments_ = 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 OperatorMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private OperatorMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,37 +71,38 @@ private OperatorMetadata( case 0: done = true; break; - case 13: { - - score_ = input.readFloat(); - break; - } - case 16: { - - totalVotes_ = input.readInt32(); - break; - } - case 24: { - - labelVotes_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - comments_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 13: + { + score_ = input.readFloat(); + break; } - comments_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 16: + { + totalVotes_ = input.readInt32(); + break; + } + case 24: + { + labelVotes_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + comments_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + comments_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,8 +110,7 @@ private OperatorMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { comments_ = comments_.getUnmodifiableView(); @@ -102,22 +119,27 @@ private OperatorMetadata( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.OperatorMetadata.class, com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.OperatorMetadata.class, + com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder.class); } public static final int SCORE_FIELD_NUMBER = 1; private float score_; /** + * + * *
    * Confidence score corresponding to a label. For examle, if 3 contributors
    * have answered the question and 2 of them agree on the final label, the
@@ -125,6 +147,7 @@ private OperatorMetadata(
    * 
* * float score = 1; + * * @return The score. */ @java.lang.Override @@ -135,11 +158,14 @@ public float getScore() { public static final int TOTAL_VOTES_FIELD_NUMBER = 2; private int totalVotes_; /** + * + * *
    * The total number of contributors that answer this question.
    * 
* * int32 total_votes = 2; + * * @return The totalVotes. */ @java.lang.Override @@ -150,11 +176,14 @@ public int getTotalVotes() { public static final int LABEL_VOTES_FIELD_NUMBER = 3; private int labelVotes_; /** + * + * *
    * The total number of contributors that choose this label.
    * 
* * int32 label_votes = 3; + * * @return The labelVotes. */ @java.lang.Override @@ -165,34 +194,42 @@ public int getLabelVotes() { public static final int COMMENTS_FIELD_NUMBER = 4; private com.google.protobuf.LazyStringList comments_; /** + * + * *
    * Comments from contributors.
    * 
* * repeated string comments = 4; + * * @return A list containing the comments. */ - public com.google.protobuf.ProtocolStringList - getCommentsList() { + public com.google.protobuf.ProtocolStringList getCommentsList() { return comments_; } /** + * + * *
    * Comments from contributors.
    * 
* * repeated string comments = 4; + * * @return The count of comments. */ public int getCommentsCount() { return comments_.size(); } /** + * + * *
    * Comments from contributors.
    * 
* * repeated string comments = 4; + * * @param index The index of the element to return. * @return The comments at the given index. */ @@ -200,20 +237,23 @@ public java.lang.String getComments(int index) { return comments_.get(index); } /** + * + * *
    * Comments from contributors.
    * 
* * repeated string comments = 4; + * * @param index The index of the value to return. * @return The bytes of the comments at the given index. */ - public com.google.protobuf.ByteString - getCommentsBytes(int index) { + public com.google.protobuf.ByteString getCommentsBytes(int index) { return comments_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +265,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 (java.lang.Float.floatToRawIntBits(score_) != 0) { output.writeFloat(1, score_); } @@ -249,16 +288,13 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); } if (totalVotes_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, totalVotes_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, totalVotes_); } if (labelVotes_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, labelVotes_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, labelVotes_); } { int dataSize = 0; @@ -276,22 +312,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.datalabeling.v1beta1.OperatorMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.OperatorMetadata other = (com.google.cloud.datalabeling.v1beta1.OperatorMetadata) obj; + com.google.cloud.datalabeling.v1beta1.OperatorMetadata other = + (com.google.cloud.datalabeling.v1beta1.OperatorMetadata) obj; if (java.lang.Float.floatToIntBits(getScore()) - != java.lang.Float.floatToIntBits( - other.getScore())) return false; - if (getTotalVotes() - != other.getTotalVotes()) return false; - if (getLabelVotes() - != other.getLabelVotes()) return false; - if (!getCommentsList() - .equals(other.getCommentsList())) return false; + != java.lang.Float.floatToIntBits(other.getScore())) return false; + if (getTotalVotes() != other.getTotalVotes()) return false; + if (getLabelVotes() != other.getLabelVotes()) return false; + if (!getCommentsList().equals(other.getCommentsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -304,8 +337,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()); hash = (37 * hash) + TOTAL_VOTES_FIELD_NUMBER; hash = (53 * hash) + getTotalVotes(); hash = (37 * hash) + LABEL_VOTES_FIELD_NUMBER; @@ -320,117 +352,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata 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.datalabeling.v1beta1.OperatorMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.OperatorMetadata prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.OperatorMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * General information useful for labels coming from contributors.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.OperatorMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.OperatorMetadata) com.google.cloud.datalabeling.v1beta1.OperatorMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.OperatorMetadata.class, com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.OperatorMetadata.class, + com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.OperatorMetadata.newBuilder() @@ -438,16 +480,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 +504,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_OperatorMetadata_descriptor; } @java.lang.Override @@ -484,7 +525,8 @@ public com.google.cloud.datalabeling.v1beta1.OperatorMetadata build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.OperatorMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.OperatorMetadata result = new com.google.cloud.datalabeling.v1beta1.OperatorMetadata(this); + com.google.cloud.datalabeling.v1beta1.OperatorMetadata result = + new com.google.cloud.datalabeling.v1beta1.OperatorMetadata(this); int from_bitField0_ = bitField0_; result.score_ = score_; result.totalVotes_ = totalVotes_; @@ -502,38 +544,39 @@ public com.google.cloud.datalabeling.v1beta1.OperatorMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.OperatorMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.OperatorMetadata)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.OperatorMetadata) other); } else { super.mergeFrom(other); return this; @@ -541,7 +584,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.OperatorMetadata other) { - if (other == com.google.cloud.datalabeling.v1beta1.OperatorMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.OperatorMetadata.getDefaultInstance()) + return this; if (other.getScore() != 0F) { setScore(other.getScore()); } @@ -580,7 +624,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.OperatorMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.OperatorMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -589,10 +634,13 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private float score_ ; + private float score_; /** + * + * *
      * Confidence score corresponding to a label. For examle, if 3 contributors
      * have answered the question and 2 of them agree on the final label, the
@@ -600,6 +648,7 @@ public Builder mergeFrom(
      * 
* * float score = 1; + * * @return The score. */ @java.lang.Override @@ -607,6 +656,8 @@ public float getScore() { return score_; } /** + * + * *
      * Confidence score corresponding to a label. For examle, if 3 contributors
      * have answered the question and 2 of them agree on the final label, the
@@ -614,16 +665,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; } /** + * + * *
      * Confidence score corresponding to a label. For examle, if 3 contributors
      * have answered the question and 2 of them agree on the final label, the
@@ -631,22 +685,26 @@ public Builder setScore(float value) {
      * 
* * float score = 1; + * * @return This builder for chaining. */ public Builder clearScore() { - + score_ = 0F; onChanged(); return this; } - private int totalVotes_ ; + private int totalVotes_; /** + * + * *
      * The total number of contributors that answer this question.
      * 
* * int32 total_votes = 2; + * * @return The totalVotes. */ @java.lang.Override @@ -654,42 +712,51 @@ public int getTotalVotes() { return totalVotes_; } /** + * + * *
      * The total number of contributors that answer this question.
      * 
* * int32 total_votes = 2; + * * @param value The totalVotes to set. * @return This builder for chaining. */ public Builder setTotalVotes(int value) { - + totalVotes_ = value; onChanged(); return this; } /** + * + * *
      * The total number of contributors that answer this question.
      * 
* * int32 total_votes = 2; + * * @return This builder for chaining. */ public Builder clearTotalVotes() { - + totalVotes_ = 0; onChanged(); return this; } - private int labelVotes_ ; + private int labelVotes_; /** + * + * *
      * The total number of contributors that choose this label.
      * 
* * int32 label_votes = 3; + * * @return The labelVotes. */ @java.lang.Override @@ -697,71 +764,87 @@ public int getLabelVotes() { return labelVotes_; } /** + * + * *
      * The total number of contributors that choose this label.
      * 
* * int32 label_votes = 3; + * * @param value The labelVotes to set. * @return This builder for chaining. */ public Builder setLabelVotes(int value) { - + labelVotes_ = value; onChanged(); return this; } /** + * + * *
      * The total number of contributors that choose this label.
      * 
* * int32 label_votes = 3; + * * @return This builder for chaining. */ public Builder clearLabelVotes() { - + labelVotes_ = 0; onChanged(); return this; } - private com.google.protobuf.LazyStringList comments_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList comments_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCommentsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { comments_ = new com.google.protobuf.LazyStringArrayList(comments_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Comments from contributors.
      * 
* * repeated string comments = 4; + * * @return A list containing the comments. */ - public com.google.protobuf.ProtocolStringList - getCommentsList() { + public com.google.protobuf.ProtocolStringList getCommentsList() { return comments_.getUnmodifiableView(); } /** + * + * *
      * Comments from contributors.
      * 
* * repeated string comments = 4; + * * @return The count of comments. */ public int getCommentsCount() { return comments_.size(); } /** + * + * *
      * Comments from contributors.
      * 
* * repeated string comments = 4; + * * @param index The index of the element to return. * @return The comments at the given index. */ @@ -769,80 +852,90 @@ public java.lang.String getComments(int index) { return comments_.get(index); } /** + * + * *
      * Comments from contributors.
      * 
* * repeated string comments = 4; + * * @param index The index of the value to return. * @return The bytes of the comments at the given index. */ - public com.google.protobuf.ByteString - getCommentsBytes(int index) { + public com.google.protobuf.ByteString getCommentsBytes(int index) { return comments_.getByteString(index); } /** + * + * *
      * Comments from contributors.
      * 
* * repeated string comments = 4; + * * @param index The index to set the value at. * @param value The comments to set. * @return This builder for chaining. */ - public Builder setComments( - int index, java.lang.String value) { + public Builder setComments(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCommentsIsMutable(); + throw new NullPointerException(); + } + ensureCommentsIsMutable(); comments_.set(index, value); onChanged(); return this; } /** + * + * *
      * Comments from contributors.
      * 
* * repeated string comments = 4; + * * @param value The comments to add. * @return This builder for chaining. */ - public Builder addComments( - java.lang.String value) { + public Builder addComments(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureCommentsIsMutable(); + throw new NullPointerException(); + } + ensureCommentsIsMutable(); comments_.add(value); onChanged(); return this; } /** + * + * *
      * Comments from contributors.
      * 
* * repeated string comments = 4; + * * @param values The comments to add. * @return This builder for chaining. */ - public Builder addAllComments( - java.lang.Iterable values) { + public Builder addAllComments(java.lang.Iterable values) { ensureCommentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, comments_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, comments_); onChanged(); return this; } /** + * + * *
      * Comments from contributors.
      * 
* * repeated string comments = 4; + * * @return This builder for chaining. */ public Builder clearComments() { @@ -852,28 +945,30 @@ public Builder clearComments() { return this; } /** + * + * *
      * Comments from contributors.
      * 
* * repeated string comments = 4; + * * @param value The bytes of the comments to add. * @return This builder for chaining. */ - public Builder addCommentsBytes( - com.google.protobuf.ByteString value) { + public Builder addCommentsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureCommentsIsMutable(); comments_.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); } @@ -883,12 +978,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.OperatorMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.OperatorMetadata) private static final com.google.cloud.datalabeling.v1beta1.OperatorMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.OperatorMetadata(); } @@ -897,16 +992,16 @@ public static com.google.cloud.datalabeling.v1beta1.OperatorMetadata getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OperatorMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new OperatorMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperatorMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OperatorMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -921,6 +1016,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.OperatorMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadataOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadataOrBuilder.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadataOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadataOrBuilder.java index fe780c80..96eb7690 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadataOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OperatorMetadataOrBuilder.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface OperatorMetadataOrBuilder extends +public interface OperatorMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.OperatorMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Confidence score corresponding to a label. For examle, if 3 contributors
    * have answered the question and 2 of them agree on the final label, the
@@ -15,68 +33,85 @@ public interface OperatorMetadataOrBuilder extends
    * 
* * float score = 1; + * * @return The score. */ float getScore(); /** + * + * *
    * The total number of contributors that answer this question.
    * 
* * int32 total_votes = 2; + * * @return The totalVotes. */ int getTotalVotes(); /** + * + * *
    * The total number of contributors that choose this label.
    * 
* * int32 label_votes = 3; + * * @return The labelVotes. */ int getLabelVotes(); /** + * + * *
    * Comments from contributors.
    * 
* * repeated string comments = 4; + * * @return A list containing the comments. */ - java.util.List - getCommentsList(); + java.util.List getCommentsList(); /** + * + * *
    * Comments from contributors.
    * 
* * repeated string comments = 4; + * * @return The count of comments. */ int getCommentsCount(); /** + * + * *
    * Comments from contributors.
    * 
* * repeated string comments = 4; + * * @param index The index of the element to return. * @return The comments at the given index. */ java.lang.String getComments(int index); /** + * + * *
    * Comments from contributors.
    * 
* * repeated string comments = 4; + * * @param index The index of the value to return. * @return The bytes of the comments at the given index. */ - com.google.protobuf.ByteString - getCommentsBytes(int index); + com.google.protobuf.ByteString getCommentsBytes(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfig.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfig.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfig.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfig.java index 163c189f..57355afe 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfig.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfig.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * The configuration of output data.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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) @@ -52,41 +68,53 @@ private OutputConfig( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder subBuilder = null; - if (destinationCase_ == 1) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_).toBuilder(); + case 10: + { + com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder subBuilder = null; + if (destinationCase_ == 1) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_) + .toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.GcsDestination.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_); + destination_ = subBuilder.buildPartial(); + } + destinationCase_ = 1; + break; } - destination_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.GcsDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_); - destination_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder subBuilder = null; + if (destinationCase_ == 2) { + subBuilder = + ((com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_) + .toBuilder(); + } + destination_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_); + destination_ = subBuilder.buildPartial(); + } + destinationCase_ = 2; + break; } - destinationCase_ = 1; - break; - } - case 18: { - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder subBuilder = null; - if (destinationCase_ == 2) { - subBuilder = ((com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_).toBuilder(); - } - destination_ = - input.readMessage(com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) 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) { @@ -94,35 +122,40 @@ private OutputConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.OutputConfig.class, com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.OutputConfig.class, + com.google.cloud.datalabeling.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), GCS_FOLDER_DESTINATION(2), DESTINATION_NOT_SET(0); private final int value; + private DestinationCase(int value) { this.value = value; } @@ -138,31 +171,37 @@ public static DestinationCase valueOf(int value) { public static DestinationCase forNumber(int value) { switch (value) { - case 1: return GCS_DESTINATION; - case 2: return GCS_FOLDER_DESTINATION; - case 0: return DESTINATION_NOT_SET; - default: return null; + case 1: + return GCS_DESTINATION; + case 2: + return GCS_FOLDER_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; /** + * + * *
    * Output to a file in Cloud Storage. Should be used for labeling output
    * other than image segmentation.
    * 
* * .google.cloud.datalabeling.v1beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -170,22 +209,27 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
    * Output to a file in Cloud Storage. Should be used for labeling output
    * other than image segmentation.
    * 
* * .google.cloud.datalabeling.v1beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GcsDestination getGcsDestination() { if (destinationCase_ == 1) { - return (com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_; + return (com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_; } return com.google.cloud.datalabeling.v1beta1.GcsDestination.getDefaultInstance(); } /** + * + * *
    * Output to a file in Cloud Storage. Should be used for labeling output
    * other than image segmentation.
@@ -194,21 +238,26 @@ public com.google.cloud.datalabeling.v1beta1.GcsDestination getGcsDestination()
    * .google.cloud.datalabeling.v1beta1.GcsDestination gcs_destination = 1;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder
+      getGcsDestinationOrBuilder() {
     if (destinationCase_ == 1) {
-       return (com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_;
+      return (com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_;
     }
     return com.google.cloud.datalabeling.v1beta1.GcsDestination.getDefaultInstance();
   }
 
   public static final int GCS_FOLDER_DESTINATION_FIELD_NUMBER = 2;
   /**
+   *
+   *
    * 
    * Output to a folder in Cloud Storage. Should be used for image
    * segmentation labeling output.
    * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * + * * @return Whether the gcsFolderDestination field is set. */ @java.lang.Override @@ -216,38 +265,47 @@ public boolean hasGcsFolderDestination() { return destinationCase_ == 2; } /** + * + * *
    * Output to a folder in Cloud Storage. Should be used for image
    * segmentation labeling output.
    * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * + * * @return The gcsFolderDestination. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.GcsFolderDestination getGcsFolderDestination() { if (destinationCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_; + return (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_; } return com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.getDefaultInstance(); } /** + * + * *
    * Output to a folder in Cloud Storage. Should be used for image
    * segmentation labeling output.
    * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder getGcsFolderDestinationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder + getGcsFolderDestinationOrBuilder() { if (destinationCase_ == 2) { - return (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_; + return (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_; } return com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.getDefaultInstance(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,13 +317,13 @@ public final boolean isInitialized() { } @java.lang.Override - public 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.datalabeling.v1beta1.GcsDestination) destination_); } if (destinationCase_ == 2) { - output.writeMessage(2, (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_); + output.writeMessage( + 2, (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_); } unknownFields.writeTo(output); } @@ -277,12 +335,14 @@ public int getSerializedSize() { size = 0; if (destinationCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_); } if (destinationCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -292,22 +352,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.datalabeling.v1beta1.OutputConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.OutputConfig other = (com.google.cloud.datalabeling.v1beta1.OutputConfig) obj; + com.google.cloud.datalabeling.v1beta1.OutputConfig other = + (com.google.cloud.datalabeling.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 (!getGcsFolderDestination() - .equals(other.getGcsFolderDestination())) return false; + if (!getGcsFolderDestination().equals(other.getGcsFolderDestination())) return false; break; case 0: default: @@ -341,117 +400,126 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.OutputConfig 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.datalabeling.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.datalabeling.v1beta1.OutputConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.OutputConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.OutputConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.OutputConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.OutputConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.OutputConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.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; } /** + * + * *
    * The configuration of output data.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.OutputConfig) com.google.cloud.datalabeling.v1beta1.OutputConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.OutputConfig.class, com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.OutputConfig.class, + com.google.cloud.datalabeling.v1beta1.OutputConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.OutputConfig.newBuilder() @@ -459,16 +527,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(); @@ -478,9 +545,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_OutputConfig_descriptor; } @java.lang.Override @@ -499,7 +566,8 @@ public com.google.cloud.datalabeling.v1beta1.OutputConfig build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.OutputConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.OutputConfig result = new com.google.cloud.datalabeling.v1beta1.OutputConfig(this); + com.google.cloud.datalabeling.v1beta1.OutputConfig result = + new com.google.cloud.datalabeling.v1beta1.OutputConfig(this); if (destinationCase_ == 1) { if (gcsDestinationBuilder_ == null) { result.destination_ = destination_; @@ -523,38 +591,39 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.OutputConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.OutputConfig)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.OutputConfig) other); } else { super.mergeFrom(other); return this; @@ -562,19 +631,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.OutputConfig other) { - if (other == com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.OutputConfig.getDefaultInstance()) + return this; switch (other.getDestinationCase()) { - case GCS_DESTINATION: { - mergeGcsDestination(other.getGcsDestination()); - break; - } - case GCS_FOLDER_DESTINATION: { - mergeGcsFolderDestination(other.getGcsFolderDestination()); - break; - } - case DESTINATION_NOT_SET: { - break; - } + case GCS_DESTINATION: + { + mergeGcsDestination(other.getGcsDestination()); + break; + } + case GCS_FOLDER_DESTINATION: + { + mergeGcsFolderDestination(other.getGcsFolderDestination()); + break; + } + case DESTINATION_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -595,7 +668,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.OutputConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.OutputConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -604,12 +678,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() { @@ -619,16 +693,21 @@ public Builder clearDestination() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.GcsDestination, com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder, com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder> gcsDestinationBuilder_; + com.google.cloud.datalabeling.v1beta1.GcsDestination, + com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder, + com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder> + gcsDestinationBuilder_; /** + * + * *
      * Output to a file in Cloud Storage. Should be used for labeling output
      * other than image segmentation.
      * 
* * .google.cloud.datalabeling.v1beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ @java.lang.Override @@ -636,12 +715,15 @@ public boolean hasGcsDestination() { return destinationCase_ == 1; } /** + * + * *
      * Output to a file in Cloud Storage. Should be used for labeling output
      * other than image segmentation.
      * 
* * .google.cloud.datalabeling.v1beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ @java.lang.Override @@ -659,6 +741,8 @@ public com.google.cloud.datalabeling.v1beta1.GcsDestination getGcsDestination() } } /** + * + * *
      * Output to a file in Cloud Storage. Should be used for labeling output
      * other than image segmentation.
@@ -680,6 +764,8 @@ public Builder setGcsDestination(com.google.cloud.datalabeling.v1beta1.GcsDestin
       return this;
     }
     /**
+     *
+     *
      * 
      * Output to a file in Cloud Storage. Should be used for labeling output
      * other than image segmentation.
@@ -699,6 +785,8 @@ public Builder setGcsDestination(
       return this;
     }
     /**
+     *
+     *
      * 
      * Output to a file in Cloud Storage. Should be used for labeling output
      * other than image segmentation.
@@ -708,10 +796,14 @@ public Builder setGcsDestination(
      */
     public Builder mergeGcsDestination(com.google.cloud.datalabeling.v1beta1.GcsDestination value) {
       if (gcsDestinationBuilder_ == null) {
-        if (destinationCase_ == 1 &&
-            destination_ != com.google.cloud.datalabeling.v1beta1.GcsDestination.getDefaultInstance()) {
-          destination_ = com.google.cloud.datalabeling.v1beta1.GcsDestination.newBuilder((com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_)
-              .mergeFrom(value).buildPartial();
+        if (destinationCase_ == 1
+            && destination_
+                != com.google.cloud.datalabeling.v1beta1.GcsDestination.getDefaultInstance()) {
+          destination_ =
+              com.google.cloud.datalabeling.v1beta1.GcsDestination.newBuilder(
+                      (com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           destination_ = value;
         }
@@ -727,6 +819,8 @@ public Builder mergeGcsDestination(com.google.cloud.datalabeling.v1beta1.GcsDest
       return this;
     }
     /**
+     *
+     *
      * 
      * Output to a file in Cloud Storage. Should be used for labeling output
      * other than image segmentation.
@@ -751,6 +845,8 @@ public Builder clearGcsDestination() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Output to a file in Cloud Storage. Should be used for labeling output
      * other than image segmentation.
@@ -762,6 +858,8 @@ public com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder getGcsDestin
       return getGcsDestinationFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Output to a file in Cloud Storage. Should be used for labeling output
      * other than image segmentation.
@@ -770,7 +868,8 @@ public com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder getGcsDestin
      * .google.cloud.datalabeling.v1beta1.GcsDestination gcs_destination = 1;
      */
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder
+        getGcsDestinationOrBuilder() {
       if ((destinationCase_ == 1) && (gcsDestinationBuilder_ != null)) {
         return gcsDestinationBuilder_.getMessageOrBuilder();
       } else {
@@ -781,6 +880,8 @@ public com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder getGcsDesti
       }
     }
     /**
+     *
+     *
      * 
      * Output to a file in Cloud Storage. Should be used for labeling output
      * other than image segmentation.
@@ -789,33 +890,46 @@ public com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder getGcsDesti
      * .google.cloud.datalabeling.v1beta1.GcsDestination gcs_destination = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.GcsDestination, com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder, com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder> 
+            com.google.cloud.datalabeling.v1beta1.GcsDestination,
+            com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder,
+            com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder>
         getGcsDestinationFieldBuilder() {
       if (gcsDestinationBuilder_ == null) {
         if (!(destinationCase_ == 1)) {
           destination_ = com.google.cloud.datalabeling.v1beta1.GcsDestination.getDefaultInstance();
         }
-        gcsDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.GcsDestination, com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder, com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder>(
+        gcsDestinationBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.datalabeling.v1beta1.GcsDestination,
+                com.google.cloud.datalabeling.v1beta1.GcsDestination.Builder,
+                com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder>(
                 (com.google.cloud.datalabeling.v1beta1.GcsDestination) destination_,
                 getParentForChildren(),
                 isClean());
         destination_ = null;
       }
       destinationCase_ = 1;
-      onChanged();;
+      onChanged();
+      ;
       return gcsDestinationBuilder_;
     }
 
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.GcsFolderDestination, com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder, com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder> gcsFolderDestinationBuilder_;
+            com.google.cloud.datalabeling.v1beta1.GcsFolderDestination,
+            com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder,
+            com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder>
+        gcsFolderDestinationBuilder_;
     /**
+     *
+     *
      * 
      * Output to a folder in Cloud Storage. Should be used for image
      * segmentation labeling output.
      * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * + * * @return Whether the gcsFolderDestination field is set. */ @java.lang.Override @@ -823,12 +937,16 @@ public boolean hasGcsFolderDestination() { return destinationCase_ == 2; } /** + * + * *
      * Output to a folder in Cloud Storage. Should be used for image
      * segmentation labeling output.
      * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * + * * @return The gcsFolderDestination. */ @java.lang.Override @@ -846,14 +964,18 @@ public com.google.cloud.datalabeling.v1beta1.GcsFolderDestination getGcsFolderDe } } /** + * + * *
      * Output to a folder in Cloud Storage. Should be used for image
      * segmentation labeling output.
      * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * */ - public Builder setGcsFolderDestination(com.google.cloud.datalabeling.v1beta1.GcsFolderDestination value) { + public Builder setGcsFolderDestination( + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination value) { if (gcsFolderDestinationBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -867,12 +989,15 @@ public Builder setGcsFolderDestination(com.google.cloud.datalabeling.v1beta1.Gcs return this; } /** + * + * *
      * Output to a folder in Cloud Storage. Should be used for image
      * segmentation labeling output.
      * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * */ public Builder setGcsFolderDestination( com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder builderForValue) { @@ -886,19 +1011,28 @@ public Builder setGcsFolderDestination( return this; } /** + * + * *
      * Output to a folder in Cloud Storage. Should be used for image
      * segmentation labeling output.
      * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * */ - public Builder mergeGcsFolderDestination(com.google.cloud.datalabeling.v1beta1.GcsFolderDestination value) { + public Builder mergeGcsFolderDestination( + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination value) { if (gcsFolderDestinationBuilder_ == null) { - if (destinationCase_ == 2 && - destination_ != com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.getDefaultInstance()) { - destination_ = com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.newBuilder((com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_) - .mergeFrom(value).buildPartial(); + if (destinationCase_ == 2 + && destination_ + != com.google.cloud.datalabeling.v1beta1.GcsFolderDestination + .getDefaultInstance()) { + destination_ = + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.newBuilder( + (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_) + .mergeFrom(value) + .buildPartial(); } else { destination_ = value; } @@ -914,12 +1048,15 @@ public Builder mergeGcsFolderDestination(com.google.cloud.datalabeling.v1beta1.G return this; } /** + * + * *
      * Output to a folder in Cloud Storage. Should be used for image
      * segmentation labeling output.
      * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * */ public Builder clearGcsFolderDestination() { if (gcsFolderDestinationBuilder_ == null) { @@ -938,26 +1075,34 @@ public Builder clearGcsFolderDestination() { return this; } /** + * + * *
      * Output to a folder in Cloud Storage. Should be used for image
      * segmentation labeling output.
      * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * */ - public com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder getGcsFolderDestinationBuilder() { + public com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder + getGcsFolderDestinationBuilder() { return getGcsFolderDestinationFieldBuilder().getBuilder(); } /** + * + * *
      * Output to a folder in Cloud Storage. Should be used for image
      * segmentation labeling output.
      * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder getGcsFolderDestinationOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder + getGcsFolderDestinationOrBuilder() { if ((destinationCase_ == 2) && (gcsFolderDestinationBuilder_ != null)) { return gcsFolderDestinationBuilder_.getMessageOrBuilder(); } else { @@ -968,34 +1113,44 @@ public com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder getGc } } /** + * + * *
      * Output to a folder in Cloud Storage. Should be used for image
      * segmentation labeling output.
      * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination, com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder, com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder> + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination, + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder, + com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder> getGcsFolderDestinationFieldBuilder() { if (gcsFolderDestinationBuilder_ == null) { if (!(destinationCase_ == 2)) { - destination_ = com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.getDefaultInstance(); + destination_ = + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.getDefaultInstance(); } - gcsFolderDestinationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.GcsFolderDestination, com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder, com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder>( + gcsFolderDestinationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination, + com.google.cloud.datalabeling.v1beta1.GcsFolderDestination.Builder, + com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder>( (com.google.cloud.datalabeling.v1beta1.GcsFolderDestination) destination_, getParentForChildren(), isClean()); destination_ = null; } destinationCase_ = 2; - onChanged();; + onChanged(); + ; return gcsFolderDestinationBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1005,12 +1160,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.OutputConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.OutputConfig) private static final com.google.cloud.datalabeling.v1beta1.OutputConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.OutputConfig(); } @@ -1019,16 +1174,16 @@ public static com.google.cloud.datalabeling.v1beta1.OutputConfig getDefaultInsta 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; @@ -1043,6 +1198,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.OutputConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfigOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfigOrBuilder.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfigOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfigOrBuilder.java index 69be437d..0bab3419 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfigOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/OutputConfigOrBuilder.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; -public interface OutputConfigOrBuilder extends +public interface OutputConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.OutputConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output to a file in Cloud Storage. Should be used for labeling output
    * other than image segmentation.
    * 
* * .google.cloud.datalabeling.v1beta1.GcsDestination gcs_destination = 1; + * * @return Whether the gcsDestination field is set. */ boolean hasGcsDestination(); /** + * + * *
    * Output to a file in Cloud Storage. Should be used for labeling output
    * other than image segmentation.
    * 
* * .google.cloud.datalabeling.v1beta1.GcsDestination gcs_destination = 1; + * * @return The gcsDestination. */ com.google.cloud.datalabeling.v1beta1.GcsDestination getGcsDestination(); /** + * + * *
    * Output to a file in Cloud Storage. Should be used for labeling output
    * other than image segmentation.
@@ -38,34 +62,46 @@ public interface OutputConfigOrBuilder extends
   com.google.cloud.datalabeling.v1beta1.GcsDestinationOrBuilder getGcsDestinationOrBuilder();
 
   /**
+   *
+   *
    * 
    * Output to a folder in Cloud Storage. Should be used for image
    * segmentation labeling output.
    * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * + * * @return Whether the gcsFolderDestination field is set. */ boolean hasGcsFolderDestination(); /** + * + * *
    * Output to a folder in Cloud Storage. Should be used for image
    * segmentation labeling output.
    * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * + * * @return The gcsFolderDestination. */ com.google.cloud.datalabeling.v1beta1.GcsFolderDestination getGcsFolderDestination(); /** + * + * *
    * Output to a folder in Cloud Storage. Should be used for image
    * segmentation labeling output.
    * 
* - * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * .google.cloud.datalabeling.v1beta1.GcsFolderDestination gcs_folder_destination = 2; + * */ - com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder getGcsFolderDestinationOrBuilder(); + com.google.cloud.datalabeling.v1beta1.GcsFolderDestinationOrBuilder + getGcsFolderDestinationOrBuilder(); public com.google.cloud.datalabeling.v1beta1.OutputConfig.DestinationCase getDestinationCase(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequest.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequest.java index 999bb995..cbdd6da7 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for PauseEvaluationJob.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest} */ -public final class PauseEvaluationJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PauseEvaluationJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) PauseEvaluationJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PauseEvaluationJobRequest.newBuilder() to construct. private PauseEvaluationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PauseEvaluationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PauseEvaluationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PauseEvaluationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private PauseEvaluationJobRequest( 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) { @@ -73,35 +91,42 @@ private PauseEvaluationJobRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.class, + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the evaluation job that is going to be paused. Format:
    * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string 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 @@ -110,30 +135,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. Name of the evaluation job that is going to be paused. Format:
    * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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.datalabeling.v1beta1.PauseEvaluationJobRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest other = (com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) obj; + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest other = + (com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest 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.datalabeling.v1beta1.PauseEvaluationJobRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 PauseEvaluationJob.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.class, + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.newBuilder() @@ -324,16 +361,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,13 +379,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PauseEvaluationJobRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.getDefaultInstance(); } @@ -364,7 +401,8 @@ public com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest result = new com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest(this); + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest result = + new com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +412,50 @@ public com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest 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.datalabeling.v1beta1.PauseEvaluationJobRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest other) { + if (other + == com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +479,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +493,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the evaluation job that is going to be paused. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string 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; @@ -470,21 +518,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the evaluation job that is going to be paused. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string 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 { @@ -492,64 +543,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the evaluation job that is going to be paused. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * 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 evaluation job that is going to be paused. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string 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 evaluation job that is going to be paused. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * 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); } @@ -559,30 +623,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) - private static final com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest(); } - public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PauseEvaluationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PauseEvaluationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PauseEvaluationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PauseEvaluationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +660,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequestOrBuilder.java new file mode 100644 index 00000000..c51b18e4 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PauseEvaluationJobRequestOrBuilder.java @@ -0,0 +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/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface PauseEvaluationJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.PauseEvaluationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the evaluation job that is going to be paused. Format:
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the evaluation job that is going to be paused. Format:
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
+   * 
+ * + * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstruction.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstruction.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstruction.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstruction.java index 44bd47e6..afbc8937 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstruction.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstruction.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/datalabeling/v1beta1/instruction.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Instruction from a PDF file.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.PdfInstruction} */ -public final class PdfInstruction extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PdfInstruction extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.PdfInstruction) PdfInstructionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PdfInstruction.newBuilder() to construct. private PdfInstruction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PdfInstruction() { gcsFileUri_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PdfInstruction(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PdfInstruction( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private PdfInstruction( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - gcsFileUri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + gcsFileUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,39 @@ private PdfInstruction( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.PdfInstruction.class, com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder.class); + com.google.cloud.datalabeling.v1beta1.PdfInstruction.class, + com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder.class); } public static final int GCS_FILE_URI_FIELD_NUMBER = 1; private volatile java.lang.Object gcsFileUri_; /** + * + * *
    * PDF file for the instruction. Only gcs path is allowed.
    * 
* * string gcs_file_uri = 1; + * * @return The gcsFileUri. */ @java.lang.Override @@ -109,29 +132,29 @@ public java.lang.String getGcsFileUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsFileUri_ = s; return s; } } /** + * + * *
    * PDF file for the instruction. Only gcs path is allowed.
    * 
* * string gcs_file_uri = 1; + * * @return The bytes for gcsFileUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getGcsFileUriBytes() { + public com.google.protobuf.ByteString getGcsFileUriBytes() { java.lang.Object ref = gcsFileUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsFileUri_ = b; return b; } else { @@ -140,6 +163,7 @@ public java.lang.String getGcsFileUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +175,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(gcsFileUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gcsFileUri_); } @@ -176,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.datalabeling.v1beta1.PdfInstruction)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.PdfInstruction other = (com.google.cloud.datalabeling.v1beta1.PdfInstruction) obj; + com.google.cloud.datalabeling.v1beta1.PdfInstruction other = + (com.google.cloud.datalabeling.v1beta1.PdfInstruction) obj; - if (!getGcsFileUri() - .equals(other.getGcsFileUri())) return false; + if (!getGcsFileUri().equals(other.getGcsFileUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +227,126 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.PdfInstruction 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.datalabeling.v1beta1.PdfInstruction parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.PdfInstruction parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.PdfInstruction prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Instruction from a PDF file.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.PdfInstruction} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.PdfInstruction) com.google.cloud.datalabeling.v1beta1.PdfInstructionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.PdfInstruction.class, com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder.class); + com.google.cloud.datalabeling.v1beta1.PdfInstruction.class, + com.google.cloud.datalabeling.v1beta1.PdfInstruction.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.PdfInstruction.newBuilder() @@ -322,16 +354,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(); @@ -341,9 +372,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.InstructionOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PdfInstruction_descriptor; } @java.lang.Override @@ -362,7 +393,8 @@ public com.google.cloud.datalabeling.v1beta1.PdfInstruction build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PdfInstruction buildPartial() { - com.google.cloud.datalabeling.v1beta1.PdfInstruction result = new com.google.cloud.datalabeling.v1beta1.PdfInstruction(this); + com.google.cloud.datalabeling.v1beta1.PdfInstruction result = + new com.google.cloud.datalabeling.v1beta1.PdfInstruction(this); result.gcsFileUri_ = gcsFileUri_; onBuilt(); return result; @@ -372,38 +404,39 @@ public com.google.cloud.datalabeling.v1beta1.PdfInstruction buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.PdfInstruction) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.PdfInstruction)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.PdfInstruction) other); } else { super.mergeFrom(other); return this; @@ -411,7 +444,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.PdfInstruction other) { - if (other == com.google.cloud.datalabeling.v1beta1.PdfInstruction.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.PdfInstruction.getDefaultInstance()) + return this; if (!other.getGcsFileUri().isEmpty()) { gcsFileUri_ = other.gcsFileUri_; onChanged(); @@ -435,7 +469,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.PdfInstruction) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.PdfInstruction) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +482,20 @@ public Builder mergeFrom( private java.lang.Object gcsFileUri_ = ""; /** + * + * *
      * PDF file for the instruction. Only gcs path is allowed.
      * 
* * string gcs_file_uri = 1; + * * @return The gcsFileUri. */ public java.lang.String getGcsFileUri() { java.lang.Object ref = gcsFileUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); gcsFileUri_ = s; return s; @@ -467,20 +504,21 @@ public java.lang.String getGcsFileUri() { } } /** + * + * *
      * PDF file for the instruction. Only gcs path is allowed.
      * 
* * string gcs_file_uri = 1; + * * @return The bytes for gcsFileUri. */ - public com.google.protobuf.ByteString - getGcsFileUriBytes() { + public com.google.protobuf.ByteString getGcsFileUriBytes() { java.lang.Object ref = gcsFileUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); gcsFileUri_ = b; return b; } else { @@ -488,61 +526,68 @@ public java.lang.String getGcsFileUri() { } } /** + * + * *
      * PDF file for the instruction. Only gcs path is allowed.
      * 
* * string gcs_file_uri = 1; + * * @param value The gcsFileUri to set. * @return This builder for chaining. */ - public Builder setGcsFileUri( - java.lang.String value) { + public Builder setGcsFileUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + gcsFileUri_ = value; onChanged(); return this; } /** + * + * *
      * PDF file for the instruction. Only gcs path is allowed.
      * 
* * string gcs_file_uri = 1; + * * @return This builder for chaining. */ public Builder clearGcsFileUri() { - + gcsFileUri_ = getDefaultInstance().getGcsFileUri(); onChanged(); return this; } /** + * + * *
      * PDF file for the instruction. Only gcs path is allowed.
      * 
* * string gcs_file_uri = 1; + * * @param value The bytes for gcsFileUri to set. * @return This builder for chaining. */ - public Builder setGcsFileUriBytes( - com.google.protobuf.ByteString value) { + public Builder setGcsFileUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsFileUri_ = 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); } @@ -552,12 +597,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.PdfInstruction) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.PdfInstruction) private static final com.google.cloud.datalabeling.v1beta1.PdfInstruction DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.PdfInstruction(); } @@ -566,16 +611,16 @@ public static com.google.cloud.datalabeling.v1beta1.PdfInstruction getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PdfInstruction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PdfInstruction(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PdfInstruction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PdfInstruction(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +635,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.PdfInstruction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstructionOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstructionOrBuilder.java new file mode 100644 index 00000000..608f2f77 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PdfInstructionOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/instruction.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface PdfInstructionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.PdfInstruction) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * PDF file for the instruction. Only gcs path is allowed.
+   * 
+ * + * string gcs_file_uri = 1; + * + * @return The gcsFileUri. + */ + java.lang.String getGcsFileUri(); + /** + * + * + *
+   * PDF file for the instruction. Only gcs path is allowed.
+   * 
+ * + * string gcs_file_uri = 1; + * + * @return The bytes for gcsFileUri. + */ + com.google.protobuf.ByteString getGcsFileUriBytes(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Polyline.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Polyline.java similarity index 74% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Polyline.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Polyline.java index 6336b597..1831964e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Polyline.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Polyline.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * A line with multiple line segments.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.Polyline} */ -public final class Polyline extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Polyline extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.Polyline) PolylineOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Polyline.newBuilder() to construct. private Polyline(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Polyline() { vertices_ = 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 Polyline(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Polyline( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,22 +71,24 @@ private Polyline( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - vertices_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + vertices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + vertices_.add( + input.readMessage( + com.google.cloud.datalabeling.v1beta1.Vertex.parser(), extensionRegistry)); + break; } - vertices_.add( - input.readMessage(com.google.cloud.datalabeling.v1beta1.Vertex.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) { @@ -77,8 +96,7 @@ private Polyline( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { vertices_ = java.util.Collections.unmodifiableList(vertices_); @@ -87,22 +105,27 @@ private Polyline( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Polyline_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_Polyline_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.Polyline.class, com.google.cloud.datalabeling.v1beta1.Polyline.Builder.class); + com.google.cloud.datalabeling.v1beta1.Polyline.class, + com.google.cloud.datalabeling.v1beta1.Polyline.Builder.class); } public static final int VERTICES_FIELD_NUMBER = 1; private java.util.List vertices_; /** + * + * *
    * The polyline vertices.
    * 
@@ -114,6 +137,8 @@ public java.util.List getVerticesL return vertices_; } /** + * + * *
    * The polyline vertices.
    * 
@@ -121,11 +146,13 @@ public java.util.List getVerticesL * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ @java.lang.Override - public java.util.List + public java.util.List getVerticesOrBuilderList() { return vertices_; } /** + * + * *
    * The polyline vertices.
    * 
@@ -137,6 +164,8 @@ public int getVerticesCount() { return vertices_.size(); } /** + * + * *
    * The polyline vertices.
    * 
@@ -148,6 +177,8 @@ public com.google.cloud.datalabeling.v1beta1.Vertex getVertices(int index) { return vertices_.get(index); } /** + * + * *
    * The polyline vertices.
    * 
@@ -155,12 +186,12 @@ public com.google.cloud.datalabeling.v1beta1.Vertex getVertices(int index) { * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder(int index) { return vertices_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -172,8 +203,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 < vertices_.size(); i++) { output.writeMessage(1, vertices_.get(i)); } @@ -187,8 +217,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < vertices_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, vertices_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, vertices_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -198,15 +227,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.datalabeling.v1beta1.Polyline)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.Polyline other = (com.google.cloud.datalabeling.v1beta1.Polyline) obj; + com.google.cloud.datalabeling.v1beta1.Polyline other = + (com.google.cloud.datalabeling.v1beta1.Polyline) obj; - if (!getVerticesList() - .equals(other.getVerticesList())) return false; + if (!getVerticesList().equals(other.getVerticesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -227,118 +256,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.Polyline parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datalabeling.v1beta1.Polyline parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.Polyline parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.Polyline parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.Polyline parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.Polyline parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.Polyline parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.Polyline 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.datalabeling.v1beta1.Polyline parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Polyline parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.Polyline parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.Polyline parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.Polyline parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.Polyline parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.Polyline prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 line with multiple line segments.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.Polyline} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.Polyline) com.google.cloud.datalabeling.v1beta1.PolylineOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Polyline_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_Polyline_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.Polyline.class, com.google.cloud.datalabeling.v1beta1.Polyline.Builder.class); + com.google.cloud.datalabeling.v1beta1.Polyline.class, + com.google.cloud.datalabeling.v1beta1.Polyline.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.Polyline.newBuilder() @@ -346,17 +384,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) { getVerticesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -370,9 +408,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_Polyline_descriptor; } @java.lang.Override @@ -391,7 +429,8 @@ public com.google.cloud.datalabeling.v1beta1.Polyline build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.Polyline buildPartial() { - com.google.cloud.datalabeling.v1beta1.Polyline result = new com.google.cloud.datalabeling.v1beta1.Polyline(this); + com.google.cloud.datalabeling.v1beta1.Polyline result = + new com.google.cloud.datalabeling.v1beta1.Polyline(this); int from_bitField0_ = bitField0_; if (verticesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -410,38 +449,39 @@ public com.google.cloud.datalabeling.v1beta1.Polyline buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.Polyline) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.Polyline)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.Polyline) other); } else { super.mergeFrom(other); return this; @@ -468,9 +508,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.Polyline other) { verticesBuilder_ = null; vertices_ = other.vertices_; bitField0_ = (bitField0_ & ~0x00000001); - verticesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVerticesFieldBuilder() : null; + verticesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVerticesFieldBuilder() + : null; } else { verticesBuilder_.addAllMessages(other.vertices_); } @@ -504,21 +545,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List vertices_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureVerticesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - vertices_ = new java.util.ArrayList(vertices_); + vertices_ = + new java.util.ArrayList(vertices_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Vertex, com.google.cloud.datalabeling.v1beta1.Vertex.Builder, com.google.cloud.datalabeling.v1beta1.VertexOrBuilder> verticesBuilder_; + com.google.cloud.datalabeling.v1beta1.Vertex, + com.google.cloud.datalabeling.v1beta1.Vertex.Builder, + com.google.cloud.datalabeling.v1beta1.VertexOrBuilder> + verticesBuilder_; /** + * + * *
      * The polyline vertices.
      * 
@@ -533,6 +582,8 @@ public java.util.List getVerticesL } } /** + * + * *
      * The polyline vertices.
      * 
@@ -547,6 +598,8 @@ public int getVerticesCount() { } } /** + * + * *
      * The polyline vertices.
      * 
@@ -561,14 +614,15 @@ public com.google.cloud.datalabeling.v1beta1.Vertex getVertices(int index) { } } /** + * + * *
      * The polyline vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public Builder setVertices( - int index, com.google.cloud.datalabeling.v1beta1.Vertex value) { + public Builder setVertices(int index, com.google.cloud.datalabeling.v1beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -582,6 +636,8 @@ public Builder setVertices( return this; } /** + * + * *
      * The polyline vertices.
      * 
@@ -600,6 +656,8 @@ public Builder setVertices( return this; } /** + * + * *
      * The polyline vertices.
      * 
@@ -620,14 +678,15 @@ public Builder addVertices(com.google.cloud.datalabeling.v1beta1.Vertex value) { return this; } /** + * + * *
      * The polyline vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public Builder addVertices( - int index, com.google.cloud.datalabeling.v1beta1.Vertex value) { + public Builder addVertices(int index, com.google.cloud.datalabeling.v1beta1.Vertex value) { if (verticesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -641,6 +700,8 @@ public Builder addVertices( return this; } /** + * + * *
      * The polyline vertices.
      * 
@@ -659,6 +720,8 @@ public Builder addVertices( return this; } /** + * + * *
      * The polyline vertices.
      * 
@@ -677,6 +740,8 @@ public Builder addVertices( return this; } /** + * + * *
      * The polyline vertices.
      * 
@@ -687,8 +752,7 @@ public Builder addAllVertices( java.lang.Iterable values) { if (verticesBuilder_ == null) { ensureVerticesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, vertices_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, vertices_); onChanged(); } else { verticesBuilder_.addAllMessages(values); @@ -696,6 +760,8 @@ public Builder addAllVertices( return this; } /** + * + * *
      * The polyline vertices.
      * 
@@ -713,6 +779,8 @@ public Builder clearVertices() { return this; } /** + * + * *
      * The polyline vertices.
      * 
@@ -730,39 +798,44 @@ public Builder removeVertices(int index) { return this; } /** + * + * *
      * The polyline vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public com.google.cloud.datalabeling.v1beta1.Vertex.Builder getVerticesBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.Vertex.Builder getVerticesBuilder(int index) { return getVerticesFieldBuilder().getBuilder(index); } /** + * + * *
      * The polyline vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder(int index) { if (verticesBuilder_ == null) { - return vertices_.get(index); } else { + return vertices_.get(index); + } else { return verticesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The polyline vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesOrBuilderList() { + public java.util.List + getVerticesOrBuilderList() { if (verticesBuilder_ != null) { return verticesBuilder_.getMessageOrBuilderList(); } else { @@ -770,6 +843,8 @@ public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilde } } /** + * + * *
      * The polyline vertices.
      * 
@@ -777,49 +852,55 @@ public com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilde * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ public com.google.cloud.datalabeling.v1beta1.Vertex.Builder addVerticesBuilder() { - return getVerticesFieldBuilder().addBuilder( - com.google.cloud.datalabeling.v1beta1.Vertex.getDefaultInstance()); + return getVerticesFieldBuilder() + .addBuilder(com.google.cloud.datalabeling.v1beta1.Vertex.getDefaultInstance()); } /** + * + * *
      * The polyline vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public com.google.cloud.datalabeling.v1beta1.Vertex.Builder addVerticesBuilder( - int index) { - return getVerticesFieldBuilder().addBuilder( - index, com.google.cloud.datalabeling.v1beta1.Vertex.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.Vertex.Builder addVerticesBuilder(int index) { + return getVerticesFieldBuilder() + .addBuilder(index, com.google.cloud.datalabeling.v1beta1.Vertex.getDefaultInstance()); } /** + * + * *
      * The polyline vertices.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - public java.util.List - getVerticesBuilderList() { + public java.util.List + getVerticesBuilderList() { return getVerticesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Vertex, com.google.cloud.datalabeling.v1beta1.Vertex.Builder, com.google.cloud.datalabeling.v1beta1.VertexOrBuilder> + com.google.cloud.datalabeling.v1beta1.Vertex, + com.google.cloud.datalabeling.v1beta1.Vertex.Builder, + com.google.cloud.datalabeling.v1beta1.VertexOrBuilder> getVerticesFieldBuilder() { if (verticesBuilder_ == null) { - verticesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Vertex, com.google.cloud.datalabeling.v1beta1.Vertex.Builder, com.google.cloud.datalabeling.v1beta1.VertexOrBuilder>( - vertices_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + verticesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.Vertex, + com.google.cloud.datalabeling.v1beta1.Vertex.Builder, + com.google.cloud.datalabeling.v1beta1.VertexOrBuilder>( + vertices_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); vertices_ = null; } return verticesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -829,12 +910,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.Polyline) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Polyline) private static final com.google.cloud.datalabeling.v1beta1.Polyline DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.Polyline(); } @@ -843,16 +924,16 @@ public static com.google.cloud.datalabeling.v1beta1.Polyline getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Polyline parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Polyline(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Polyline parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Polyline(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -867,6 +948,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.Polyline getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfig.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfig.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfig.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfig.java index 1de24792..02550ba8 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfig.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Config for image polyline human labeling task.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.PolylineConfig} */ -public final class PolylineConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PolylineConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.PolylineConfig) PolylineConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PolylineConfig.newBuilder() to construct. private PolylineConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PolylineConfig() { annotationSpecSet_ = ""; instructionMessage_ = ""; @@ -26,16 +44,15 @@ private PolylineConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PolylineConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PolylineConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private PolylineConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - annotationSpecSet_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + annotationSpecSet_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - instructionMessage_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + instructionMessage_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,34 +99,39 @@ private PolylineConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.PolylineConfig.class, com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.PolylineConfig.class, + com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder.class); } public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER = 1; private volatile java.lang.Object annotationSpecSet_; /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ @java.lang.Override @@ -116,29 +140,29 @@ public java.lang.String getAnnotationSpecSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; } } /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ @java.lang.Override - public com.google.protobuf.ByteString - getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -149,11 +173,14 @@ public java.lang.String getAnnotationSpecSet() { public static final int INSTRUCTION_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object instructionMessage_; /** + * + * *
    * Optional. Instruction message showed on contributors UI.
    * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The instructionMessage. */ @java.lang.Override @@ -162,29 +189,29 @@ public java.lang.String getInstructionMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instructionMessage_ = s; return s; } } /** + * + * *
    * Optional. Instruction message showed on contributors UI.
    * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for instructionMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getInstructionMessageBytes() { + public com.google.protobuf.ByteString getInstructionMessageBytes() { java.lang.Object ref = instructionMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instructionMessage_ = b; return b; } else { @@ -193,6 +220,7 @@ public java.lang.String getInstructionMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -204,8 +232,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(annotationSpecSet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecSet_); } @@ -235,17 +262,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.datalabeling.v1beta1.PolylineConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.PolylineConfig other = (com.google.cloud.datalabeling.v1beta1.PolylineConfig) obj; + com.google.cloud.datalabeling.v1beta1.PolylineConfig other = + (com.google.cloud.datalabeling.v1beta1.PolylineConfig) obj; - if (!getAnnotationSpecSet() - .equals(other.getAnnotationSpecSet())) return false; - if (!getInstructionMessage() - .equals(other.getInstructionMessage())) return false; + if (!getAnnotationSpecSet().equals(other.getAnnotationSpecSet())) return false; + if (!getInstructionMessage().equals(other.getInstructionMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -267,117 +293,126 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.PolylineConfig 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.datalabeling.v1beta1.PolylineConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.PolylineConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.PolylineConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Config for image polyline human labeling task.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.PolylineConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.PolylineConfig) com.google.cloud.datalabeling.v1beta1.PolylineConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.PolylineConfig.class, com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.PolylineConfig.class, + com.google.cloud.datalabeling.v1beta1.PolylineConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.PolylineConfig.newBuilder() @@ -385,16 +420,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(); @@ -406,9 +440,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PolylineConfig_descriptor; } @java.lang.Override @@ -427,7 +461,8 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PolylineConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.PolylineConfig result = new com.google.cloud.datalabeling.v1beta1.PolylineConfig(this); + com.google.cloud.datalabeling.v1beta1.PolylineConfig result = + new com.google.cloud.datalabeling.v1beta1.PolylineConfig(this); result.annotationSpecSet_ = annotationSpecSet_; result.instructionMessage_ = instructionMessage_; onBuilt(); @@ -438,38 +473,39 @@ public com.google.cloud.datalabeling.v1beta1.PolylineConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.PolylineConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.PolylineConfig)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.PolylineConfig) other); } else { super.mergeFrom(other); return this; @@ -477,7 +513,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.PolylineConfig other) { - if (other == com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.PolylineConfig.getDefaultInstance()) + return this; if (!other.getAnnotationSpecSet().isEmpty()) { annotationSpecSet_ = other.annotationSpecSet_; onChanged(); @@ -505,7 +542,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.PolylineConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.PolylineConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -517,18 +555,20 @@ public Builder mergeFrom( private java.lang.Object annotationSpecSet_ = ""; /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ public java.lang.String getAnnotationSpecSet() { java.lang.Object ref = annotationSpecSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; @@ -537,20 +577,21 @@ public java.lang.String getAnnotationSpecSet() { } } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ - public com.google.protobuf.ByteString - getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -558,54 +599,61 @@ public java.lang.String getAnnotationSpecSet() { } } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSet( - java.lang.String value) { + public Builder setAnnotationSpecSet(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecSet_ = value; onChanged(); return this; } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAnnotationSpecSet() { - + annotationSpecSet_ = getDefaultInstance().getAnnotationSpecSet(); onChanged(); return this; } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSetBytes( - com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecSet_ = value; onChanged(); return this; @@ -613,18 +661,20 @@ public Builder setAnnotationSpecSetBytes( private java.lang.Object instructionMessage_ = ""; /** + * + * *
      * Optional. Instruction message showed on contributors UI.
      * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The instructionMessage. */ public java.lang.String getInstructionMessage() { java.lang.Object ref = instructionMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instructionMessage_ = s; return s; @@ -633,20 +683,21 @@ public java.lang.String getInstructionMessage() { } } /** + * + * *
      * Optional. Instruction message showed on contributors UI.
      * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for instructionMessage. */ - public com.google.protobuf.ByteString - getInstructionMessageBytes() { + public com.google.protobuf.ByteString getInstructionMessageBytes() { java.lang.Object ref = instructionMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instructionMessage_ = b; return b; } else { @@ -654,61 +705,68 @@ public java.lang.String getInstructionMessage() { } } /** + * + * *
      * Optional. Instruction message showed on contributors UI.
      * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The instructionMessage to set. * @return This builder for chaining. */ - public Builder setInstructionMessage( - java.lang.String value) { + public Builder setInstructionMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instructionMessage_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Instruction message showed on contributors UI.
      * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearInstructionMessage() { - + instructionMessage_ = getDefaultInstance().getInstructionMessage(); onChanged(); return this; } /** + * + * *
      * Optional. Instruction message showed on contributors UI.
      * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for instructionMessage to set. * @return This builder for chaining. */ - public Builder setInstructionMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setInstructionMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instructionMessage_ = 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); } @@ -718,12 +776,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.PolylineConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.PolylineConfig) private static final com.google.cloud.datalabeling.v1beta1.PolylineConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.PolylineConfig(); } @@ -732,16 +790,16 @@ public static com.google.cloud.datalabeling.v1beta1.PolylineConfig getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolylineConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PolylineConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolylineConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolylineConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -756,6 +814,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.PolylineConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfigOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfigOrBuilder.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfigOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfigOrBuilder.java index 08acc403..e524510b 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfigOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineConfigOrBuilder.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface PolylineConfigOrBuilder extends +public interface PolylineConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.PolylineConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ java.lang.String getAnnotationSpecSet(); /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ - com.google.protobuf.ByteString - getAnnotationSpecSetBytes(); + com.google.protobuf.ByteString getAnnotationSpecSetBytes(); /** + * + * *
    * Optional. Instruction message showed on contributors UI.
    * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The instructionMessage. */ java.lang.String getInstructionMessage(); /** + * + * *
    * Optional. Instruction message showed on contributors UI.
    * 
* * string instruction_message = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for instructionMessage. */ - com.google.protobuf.ByteString - getInstructionMessageBytes(); + com.google.protobuf.ByteString getInstructionMessageBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineOrBuilder.java similarity index 61% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineOrBuilder.java index 6e636a47..77d7771f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PolylineOrBuilder.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface PolylineOrBuilder extends +public interface PolylineOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.Polyline) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The polyline vertices.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - java.util.List - getVerticesList(); + java.util.List getVerticesList(); /** + * + * *
    * The polyline vertices.
    * 
@@ -25,6 +44,8 @@ public interface PolylineOrBuilder extends */ com.google.cloud.datalabeling.v1beta1.Vertex getVertices(int index); /** + * + * *
    * The polyline vertices.
    * 
@@ -33,21 +54,24 @@ public interface PolylineOrBuilder extends */ int getVerticesCount(); /** + * + * *
    * The polyline vertices.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - java.util.List + java.util.List getVerticesOrBuilderList(); /** + * + * *
    * The polyline vertices.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Vertex vertices = 1; */ - com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder( - int index); + com.google.cloud.datalabeling.v1beta1.VertexOrBuilder getVerticesOrBuilder(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurve.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurve.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurve.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurve.java index d29fceb1..6a357b02 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurve.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurve.java @@ -1,36 +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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; -/** - * Protobuf type {@code google.cloud.datalabeling.v1beta1.PrCurve} - */ -public final class PrCurve extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.datalabeling.v1beta1.PrCurve} */ +public final class PrCurve extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.PrCurve) PrCurveOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PrCurve.newBuilder() to construct. private PrCurve(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PrCurve() { 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 PrCurve(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PrCurve( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -50,45 +63,54 @@ private PrCurve( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; - if (annotationSpec_ != null) { - subBuilder = annotationSpec_.toBuilder(); + case 10: + { + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; + if (annotationSpec_ != null) { + subBuilder = annotationSpec_.toBuilder(); + } + annotationSpec_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotationSpec_); + annotationSpec_ = subBuilder.buildPartial(); + } + + break; } - annotationSpec_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotationSpec_); - annotationSpec_ = subBuilder.buildPartial(); + case 21: + { + areaUnderCurve_ = input.readFloat(); + break; } - - break; - } - case 21: { - - areaUnderCurve_ = input.readFloat(); - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - confidenceMetricsEntries_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + confidenceMetricsEntries_ = + new java.util.ArrayList< + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry>(); + mutable_bitField0_ |= 0x00000001; + } + confidenceMetricsEntries_.add( + input.readMessage( + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.parser(), + extensionRegistry)); + break; } - confidenceMetricsEntries_.add( - input.readMessage(com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.parser(), extensionRegistry)); - break; - } - case 37: { - - meanAveragePrecision_ = input.readFloat(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 37: + { + meanAveragePrecision_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -96,34 +118,40 @@ private PrCurve( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PrCurve_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PrCurve_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.PrCurve.class, com.google.cloud.datalabeling.v1beta1.PrCurve.Builder.class); + com.google.cloud.datalabeling.v1beta1.PrCurve.class, + com.google.cloud.datalabeling.v1beta1.PrCurve.Builder.class); } - public interface ConfidenceMetricsEntryOrBuilder extends + public interface ConfidenceMetricsEntryOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * Threshold used for this entry.
      * For classification tasks, this is a classification threshold: a
@@ -137,127 +165,152 @@ public interface ConfidenceMetricsEntryOrBuilder extends
      * 
* * float confidence_threshold = 1; + * * @return The confidenceThreshold. */ float getConfidenceThreshold(); /** + * + * *
      * Recall value.
      * 
* * float recall = 2; + * * @return The recall. */ float getRecall(); /** + * + * *
      * Precision value.
      * 
* * float precision = 3; + * * @return The precision. */ float getPrecision(); /** + * + * *
      * Harmonic mean of recall and precision.
      * 
* * float f1_score = 4; + * * @return The f1Score. */ float getF1Score(); /** + * + * *
      * Recall value for entries with label that has highest score.
      * 
* * float recall_at1 = 5; + * * @return The recallAt1. */ float getRecallAt1(); /** + * + * *
      * Precision value for entries with label that has highest score.
      * 
* * float precision_at1 = 6; + * * @return The precisionAt1. */ float getPrecisionAt1(); /** + * + * *
      * The harmonic mean of [recall_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at1].
      * 
* * float f1_score_at1 = 7; + * * @return The f1ScoreAt1. */ float getF1ScoreAt1(); /** + * + * *
      * Recall value for entries with label that has highest 5 scores.
      * 
* * float recall_at5 = 8; + * * @return The recallAt5. */ float getRecallAt5(); /** + * + * *
      * Precision value for entries with label that has highest 5 scores.
      * 
* * float precision_at5 = 9; + * * @return The precisionAt5. */ float getPrecisionAt5(); /** + * + * *
      * The harmonic mean of [recall_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at5] and [precision_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at5].
      * 
* * float f1_score_at5 = 10; + * * @return The f1ScoreAt5. */ float getF1ScoreAt5(); } - /** - * Protobuf type {@code google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry} - */ - public static final class ConfidenceMetricsEntry extends - com.google.protobuf.GeneratedMessageV3 implements + /** Protobuf type {@code google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry} */ + public static final class ConfidenceMetricsEntry extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.PrCurve.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) @@ -276,63 +329,63 @@ 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: { - - recallAt5_ = input.readFloat(); - break; - } - case 77: { - - precisionAt5_ = input.readFloat(); - break; - } - case 85: { - - f1ScoreAt5_ = 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; + } + case 45: + { + recallAt1_ = input.readFloat(); + break; + } + case 53: + { + precisionAt1_ = input.readFloat(); + break; + } + case 61: + { + f1ScoreAt1_ = input.readFloat(); + break; + } + case 69: + { + recallAt5_ = input.readFloat(); + break; + } + case 77: + { + precisionAt5_ = input.readFloat(); + break; + } + case 85: + { + f1ScoreAt5_ = input.readFloat(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -340,29 +393,33 @@ private ConfidenceMetricsEntry( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.class, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder.class); + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.class, + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder.class); } public static final int CONFIDENCE_THRESHOLD_FIELD_NUMBER = 1; private float confidenceThreshold_; /** + * + * *
      * Threshold used for this entry.
      * For classification tasks, this is a classification threshold: a
@@ -376,6 +433,7 @@ private ConfidenceMetricsEntry(
      * 
* * float confidence_threshold = 1; + * * @return The confidenceThreshold. */ @java.lang.Override @@ -386,11 +444,14 @@ public float getConfidenceThreshold() { public static final int RECALL_FIELD_NUMBER = 2; private float recall_; /** + * + * *
      * Recall value.
      * 
* * float recall = 2; + * * @return The recall. */ @java.lang.Override @@ -401,11 +462,14 @@ public float getRecall() { public static final int PRECISION_FIELD_NUMBER = 3; private float precision_; /** + * + * *
      * Precision value.
      * 
* * float precision = 3; + * * @return The precision. */ @java.lang.Override @@ -416,11 +480,14 @@ public float getPrecision() { public static final int F1_SCORE_FIELD_NUMBER = 4; private float f1Score_; /** + * + * *
      * Harmonic mean of recall and precision.
      * 
* * float f1_score = 4; + * * @return The f1Score. */ @java.lang.Override @@ -431,11 +498,14 @@ public float getF1Score() { public static final int RECALL_AT1_FIELD_NUMBER = 5; private float recallAt1_; /** + * + * *
      * Recall value for entries with label that has highest score.
      * 
* * float recall_at1 = 5; + * * @return The recallAt1. */ @java.lang.Override @@ -446,11 +516,14 @@ public float getRecallAt1() { public static final int PRECISION_AT1_FIELD_NUMBER = 6; private float precisionAt1_; /** + * + * *
      * Precision value for entries with label that has highest score.
      * 
* * float precision_at1 = 6; + * * @return The precisionAt1. */ @java.lang.Override @@ -461,11 +534,14 @@ public float getPrecisionAt1() { public static final int F1_SCORE_AT1_FIELD_NUMBER = 7; private float f1ScoreAt1_; /** + * + * *
      * The harmonic mean of [recall_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at1].
      * 
* * float f1_score_at1 = 7; + * * @return The f1ScoreAt1. */ @java.lang.Override @@ -476,11 +552,14 @@ public float getF1ScoreAt1() { public static final int RECALL_AT5_FIELD_NUMBER = 8; private float recallAt5_; /** + * + * *
      * Recall value for entries with label that has highest 5 scores.
      * 
* * float recall_at5 = 8; + * * @return The recallAt5. */ @java.lang.Override @@ -491,11 +570,14 @@ public float getRecallAt5() { public static final int PRECISION_AT5_FIELD_NUMBER = 9; private float precisionAt5_; /** + * + * *
      * Precision value for entries with label that has highest 5 scores.
      * 
* * float precision_at5 = 9; + * * @return The precisionAt5. */ @java.lang.Override @@ -506,11 +588,14 @@ public float getPrecisionAt5() { public static final int F1_SCORE_AT5_FIELD_NUMBER = 10; private float f1ScoreAt5_; /** + * + * *
      * The harmonic mean of [recall_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at5] and [precision_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at5].
      * 
* * float f1_score_at5 = 10; + * * @return The f1ScoreAt5. */ @java.lang.Override @@ -519,6 +604,7 @@ public float getF1ScoreAt5() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -530,8 +616,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 (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { output.writeFloat(1, confidenceThreshold_); } @@ -572,44 +657,34 @@ public int getSerializedSize() { size = 0; if (java.lang.Float.floatToRawIntBits(confidenceThreshold_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(1, confidenceThreshold_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, confidenceThreshold_); } if (java.lang.Float.floatToRawIntBits(recall_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, recall_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, recall_); } if (java.lang.Float.floatToRawIntBits(precision_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(3, precision_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, precision_); } if (java.lang.Float.floatToRawIntBits(f1Score_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, f1Score_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, f1Score_); } if (java.lang.Float.floatToRawIntBits(recallAt1_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(5, recallAt1_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(5, recallAt1_); } if (java.lang.Float.floatToRawIntBits(precisionAt1_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(6, precisionAt1_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(6, precisionAt1_); } if (java.lang.Float.floatToRawIntBits(f1ScoreAt1_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(7, f1ScoreAt1_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(7, f1ScoreAt1_); } if (java.lang.Float.floatToRawIntBits(recallAt5_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(8, recallAt5_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(8, recallAt5_); } if (java.lang.Float.floatToRawIntBits(precisionAt5_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(9, precisionAt5_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(9, precisionAt5_); } if (java.lang.Float.floatToRawIntBits(f1ScoreAt5_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(10, f1ScoreAt5_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(10, f1ScoreAt5_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -619,43 +694,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.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry other = (com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry) obj; + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry other = + (com.google.cloud.datalabeling.v1beta1.PrCurve.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 (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(getF1ScoreAt1()) - != java.lang.Float.floatToIntBits( - other.getF1ScoreAt1())) return false; + != java.lang.Float.floatToIntBits(other.getF1ScoreAt1())) return false; if (java.lang.Float.floatToIntBits(getRecallAt5()) - != java.lang.Float.floatToIntBits( - other.getRecallAt5())) return false; + != java.lang.Float.floatToIntBits(other.getRecallAt5())) return false; if (java.lang.Float.floatToIntBits(getPrecisionAt5()) - != java.lang.Float.floatToIntBits( - other.getPrecisionAt5())) return false; + != java.lang.Float.floatToIntBits(other.getPrecisionAt5())) return false; if (java.lang.Float.floatToIntBits(getF1ScoreAt5()) - != java.lang.Float.floatToIntBits( - other.getF1ScoreAt5())) return false; + != java.lang.Float.floatToIntBits(other.getF1ScoreAt5())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -668,122 +734,120 @@ 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 = (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) + F1_SCORE_AT1_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getF1ScoreAt1()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1ScoreAt1()); hash = (37 * hash) + RECALL_AT5_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getRecallAt5()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getRecallAt5()); hash = (37 * hash) + PRECISION_AT5_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getPrecisionAt5()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getPrecisionAt5()); hash = (37 * hash) + F1_SCORE_AT5_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getF1ScoreAt5()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getF1ScoreAt5()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry 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.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.PrCurve.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.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.PrCurve.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.datalabeling.v1beta1.PrCurve.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.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.PrCurve.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.PrCurve.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 @@ -792,41 +856,42 @@ protected Builder newBuilderForType( Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry} */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry) com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.class, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder.class); + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.class, + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.PrCurve.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(); @@ -854,19 +919,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PrCurve_ConfidenceMetricsEntry_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry build() { - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry result = buildPartial(); + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -875,7 +943,8 @@ public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry buil @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry buildPartial() { - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry result = new com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry(this); + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry result = + new com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry(this); result.confidenceThreshold_ = confidenceThreshold_; result.recall_ = recall_; result.precision_ = precision_; @@ -894,46 +963,53 @@ public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry 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) { + int index, + java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry)other); + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry other) { - if (other == com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry other) { + if (other + == com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry + .getDefaultInstance()) return this; if (other.getConfidenceThreshold() != 0F) { setConfidenceThreshold(other.getConfidenceThreshold()); } @@ -983,7 +1059,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -993,8 +1071,10 @@ public Builder mergeFrom( return this; } - private float confidenceThreshold_ ; + private float confidenceThreshold_; /** + * + * *
        * Threshold used for this entry.
        * For classification tasks, this is a classification threshold: a
@@ -1008,6 +1088,7 @@ public Builder mergeFrom(
        * 
* * float confidence_threshold = 1; + * * @return The confidenceThreshold. */ @java.lang.Override @@ -1015,6 +1096,8 @@ public float getConfidenceThreshold() { return confidenceThreshold_; } /** + * + * *
        * Threshold used for this entry.
        * For classification tasks, this is a classification threshold: a
@@ -1028,16 +1111,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; } /** + * + * *
        * Threshold used for this entry.
        * For classification tasks, this is a classification threshold: a
@@ -1051,22 +1137,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_; /** + * + * *
        * Recall value.
        * 
* * float recall = 2; + * * @return The recall. */ @java.lang.Override @@ -1074,42 +1164,51 @@ public float getRecall() { return recall_; } /** + * + * *
        * Recall value.
        * 
* * float recall = 2; + * * @param value The recall to set. * @return This builder for chaining. */ public Builder setRecall(float value) { - + recall_ = value; onChanged(); return this; } /** + * + * *
        * Recall value.
        * 
* * float recall = 2; + * * @return This builder for chaining. */ public Builder clearRecall() { - + recall_ = 0F; onChanged(); return this; } - private float precision_ ; + private float precision_; /** + * + * *
        * Precision value.
        * 
* * float precision = 3; + * * @return The precision. */ @java.lang.Override @@ -1117,42 +1216,51 @@ public float getPrecision() { return precision_; } /** + * + * *
        * Precision value.
        * 
* * float precision = 3; + * * @param value The precision to set. * @return This builder for chaining. */ public Builder setPrecision(float value) { - + precision_ = value; onChanged(); return this; } /** + * + * *
        * Precision value.
        * 
* * float precision = 3; + * * @return This builder for chaining. */ public Builder clearPrecision() { - + precision_ = 0F; onChanged(); return this; } - private float f1Score_ ; + private float f1Score_; /** + * + * *
        * Harmonic mean of recall and precision.
        * 
* * float f1_score = 4; + * * @return The f1Score. */ @java.lang.Override @@ -1160,42 +1268,51 @@ public float getF1Score() { return f1Score_; } /** + * + * *
        * 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; } /** + * + * *
        * 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_; /** + * + * *
        * Recall value for entries with label that has highest score.
        * 
* * float recall_at1 = 5; + * * @return The recallAt1. */ @java.lang.Override @@ -1203,42 +1320,51 @@ public float getRecallAt1() { return recallAt1_; } /** + * + * *
        * Recall value for entries with label that has highest score.
        * 
* * 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; } /** + * + * *
        * Recall value for entries with label that has highest score.
        * 
* * float recall_at1 = 5; + * * @return This builder for chaining. */ public Builder clearRecallAt1() { - + recallAt1_ = 0F; onChanged(); return this; } - private float precisionAt1_ ; + private float precisionAt1_; /** + * + * *
        * Precision value for entries with label that has highest score.
        * 
* * float precision_at1 = 6; + * * @return The precisionAt1. */ @java.lang.Override @@ -1246,42 +1372,51 @@ public float getPrecisionAt1() { return precisionAt1_; } /** + * + * *
        * Precision value for entries with label that has highest score.
        * 
* * 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; } /** + * + * *
        * Precision value for entries with label that has highest score.
        * 
* * float precision_at1 = 6; + * * @return This builder for chaining. */ public Builder clearPrecisionAt1() { - + precisionAt1_ = 0F; onChanged(); return this; } - private float f1ScoreAt1_ ; + private float f1ScoreAt1_; /** + * + * *
        * The harmonic mean of [recall_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at1].
        * 
* * float f1_score_at1 = 7; + * * @return The f1ScoreAt1. */ @java.lang.Override @@ -1289,42 +1424,51 @@ public float getF1ScoreAt1() { return f1ScoreAt1_; } /** + * + * *
        * The harmonic mean of [recall_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.datalabeling.v1beta1.PrCurve.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; } /** + * + * *
        * The harmonic mean of [recall_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at1] and [precision_at1][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at1].
        * 
* * float f1_score_at1 = 7; + * * @return This builder for chaining. */ public Builder clearF1ScoreAt1() { - + f1ScoreAt1_ = 0F; onChanged(); return this; } - private float recallAt5_ ; + private float recallAt5_; /** + * + * *
        * Recall value for entries with label that has highest 5 scores.
        * 
* * float recall_at5 = 8; + * * @return The recallAt5. */ @java.lang.Override @@ -1332,42 +1476,51 @@ public float getRecallAt5() { return recallAt5_; } /** + * + * *
        * Recall value for entries with label that has highest 5 scores.
        * 
* * float recall_at5 = 8; + * * @param value The recallAt5 to set. * @return This builder for chaining. */ public Builder setRecallAt5(float value) { - + recallAt5_ = value; onChanged(); return this; } /** + * + * *
        * Recall value for entries with label that has highest 5 scores.
        * 
* * float recall_at5 = 8; + * * @return This builder for chaining. */ public Builder clearRecallAt5() { - + recallAt5_ = 0F; onChanged(); return this; } - private float precisionAt5_ ; + private float precisionAt5_; /** + * + * *
        * Precision value for entries with label that has highest 5 scores.
        * 
* * float precision_at5 = 9; + * * @return The precisionAt5. */ @java.lang.Override @@ -1375,42 +1528,51 @@ public float getPrecisionAt5() { return precisionAt5_; } /** + * + * *
        * Precision value for entries with label that has highest 5 scores.
        * 
* * float precision_at5 = 9; + * * @param value The precisionAt5 to set. * @return This builder for chaining. */ public Builder setPrecisionAt5(float value) { - + precisionAt5_ = value; onChanged(); return this; } /** + * + * *
        * Precision value for entries with label that has highest 5 scores.
        * 
* * float precision_at5 = 9; + * * @return This builder for chaining. */ public Builder clearPrecisionAt5() { - + precisionAt5_ = 0F; onChanged(); return this; } - private float f1ScoreAt5_ ; + private float f1ScoreAt5_; /** + * + * *
        * The harmonic mean of [recall_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at5] and [precision_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at5].
        * 
* * float f1_score_at5 = 10; + * * @return The f1ScoreAt5. */ @java.lang.Override @@ -1418,34 +1580,41 @@ public float getF1ScoreAt5() { return f1ScoreAt5_; } /** + * + * *
        * The harmonic mean of [recall_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at5] and [precision_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at5].
        * 
* * float f1_score_at5 = 10; + * * @param value The f1ScoreAt5 to set. * @return This builder for chaining. */ public Builder setF1ScoreAt5(float value) { - + f1ScoreAt5_ = value; onChanged(); return this; } /** + * + * *
        * The harmonic mean of [recall_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.recall_at5] and [precision_at5][google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.precision_at5].
        * 
* * float f1_score_at5 = 10; + * * @return This builder for chaining. */ public Builder clearF1ScoreAt5() { - + f1ScoreAt5_ = 0F; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1458,30 +1627,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry) - private static final com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry(); } - public static com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.PrCurve.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; @@ -1493,15 +1664,17 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int ANNOTATION_SPEC_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; /** + * + * *
    * The annotation spec of the label for which the precision-recall curve
    * calculated. If this field is empty, that means the precision-recall curve
@@ -1509,6 +1682,7 @@ public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry getD
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ @java.lang.Override @@ -1516,6 +1690,8 @@ public boolean hasAnnotationSpec() { return annotationSpec_ != null; } /** + * + * *
    * The annotation spec of the label for which the precision-recall curve
    * calculated. If this field is empty, that means the precision-recall curve
@@ -1523,13 +1699,18 @@ public boolean hasAnnotationSpec() {
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { - return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } /** + * + * *
    * The annotation spec of the label for which the precision-recall curve
    * calculated. If this field is empty, that means the precision-recall curve
@@ -1539,19 +1720,23 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec()
    * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
    */
   @java.lang.Override
-  public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() {
+  public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder
+      getAnnotationSpecOrBuilder() {
     return getAnnotationSpec();
   }
 
   public static final int AREA_UNDER_CURVE_FIELD_NUMBER = 2;
   private float areaUnderCurve_;
   /**
+   *
+   *
    * 
    * Area under the precision-recall curve. Not to be confused with area under
    * a receiver operating characteristic (ROC) curve.
    * 
* * float area_under_curve = 2; + * * @return The areaUnderCurve. */ @java.lang.Override @@ -1560,78 +1745,105 @@ public float getAreaUnderCurve() { } public static final int CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER = 3; - private java.util.List confidenceMetricsEntries_; + private java.util.List + confidenceMetricsEntries_; /** + * + * *
    * Entries that make up the precision-recall graph. Each entry is a "point" on
    * the graph drawn for a different `confidence_threshold`.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ @java.lang.Override - public java.util.List getConfidenceMetricsEntriesList() { + public java.util.List + getConfidenceMetricsEntriesList() { return confidenceMetricsEntries_; } /** + * + * *
    * Entries that make up the precision-recall graph. Each entry is a "point" on
    * the graph drawn for a different `confidence_threshold`.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder> getConfidenceMetricsEntriesOrBuilderList() { return confidenceMetricsEntries_; } /** + * + * *
    * Entries that make up the precision-recall graph. Each entry is a "point" on
    * the graph drawn for a different `confidence_threshold`.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ @java.lang.Override public int getConfidenceMetricsEntriesCount() { return confidenceMetricsEntries_.size(); } /** + * + * *
    * Entries that make up the precision-recall graph. Each entry is a "point" on
    * the graph drawn for a different `confidence_threshold`.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index) { + public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry + getConfidenceMetricsEntries(int index) { return confidenceMetricsEntries_.get(index); } /** + * + * *
    * Entries that make up the precision-recall graph. Each entry is a "point" on
    * the graph drawn for a different `confidence_threshold`.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntriesOrBuilder(int index) { return confidenceMetricsEntries_.get(index); } public static final int MEAN_AVERAGE_PRECISION_FIELD_NUMBER = 4; private float meanAveragePrecision_; /** + * + * *
    * Mean average prcision of this curve.
    * 
* * float mean_average_precision = 4; + * * @return The meanAveragePrecision. */ @java.lang.Override @@ -1640,6 +1852,7 @@ public float getMeanAveragePrecision() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1651,8 +1864,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 (annotationSpec_ != null) { output.writeMessage(1, getAnnotationSpec()); } @@ -1675,20 +1887,18 @@ public int getSerializedSize() { size = 0; if (annotationSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAnnotationSpec()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnnotationSpec()); } if (java.lang.Float.floatToRawIntBits(areaUnderCurve_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(2, areaUnderCurve_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, areaUnderCurve_); } 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)); } if (java.lang.Float.floatToRawIntBits(meanAveragePrecision_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, meanAveragePrecision_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, meanAveragePrecision_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1698,26 +1908,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.datalabeling.v1beta1.PrCurve)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.PrCurve other = (com.google.cloud.datalabeling.v1beta1.PrCurve) obj; + com.google.cloud.datalabeling.v1beta1.PrCurve other = + (com.google.cloud.datalabeling.v1beta1.PrCurve) obj; if (hasAnnotationSpec() != other.hasAnnotationSpec()) return false; if (hasAnnotationSpec()) { - if (!getAnnotationSpec() - .equals(other.getAnnotationSpec())) return false; + if (!getAnnotationSpec().equals(other.getAnnotationSpec())) return false; } if (java.lang.Float.floatToIntBits(getAreaUnderCurve()) - != java.lang.Float.floatToIntBits( - other.getAreaUnderCurve())) return false; - if (!getConfidenceMetricsEntriesList() - .equals(other.getConfidenceMetricsEntriesList())) return false; + != java.lang.Float.floatToIntBits(other.getAreaUnderCurve())) return false; + if (!getConfidenceMetricsEntriesList().equals(other.getConfidenceMetricsEntriesList())) + return false; if (java.lang.Float.floatToIntBits(getMeanAveragePrecision()) - != java.lang.Float.floatToIntBits( - other.getMeanAveragePrecision())) return false; + != java.lang.Float.floatToIntBits(other.getMeanAveragePrecision())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1734,128 +1942,131 @@ public int hashCode() { hash = (53 * hash) + getAnnotationSpec().hashCode(); } hash = (37 * hash) + AREA_UNDER_CURVE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getAreaUnderCurve()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getAreaUnderCurve()); if (getConfidenceMetricsEntriesCount() > 0) { hash = (37 * hash) + CONFIDENCE_METRICS_ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getConfidenceMetricsEntriesList().hashCode(); } hash = (37 * hash) + MEAN_AVERAGE_PRECISION_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getMeanAveragePrecision()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getMeanAveragePrecision()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.datalabeling.v1beta1.PrCurve parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datalabeling.v1beta1.PrCurve parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.PrCurve parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.PrCurve parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.PrCurve parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.PrCurve parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.PrCurve parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.PrCurve 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.datalabeling.v1beta1.PrCurve parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.PrCurve parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.PrCurve parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.PrCurve parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.PrCurve parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.PrCurve parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.PrCurve prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } - /** - * Protobuf type {@code google.cloud.datalabeling.v1beta1.PrCurve} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.datalabeling.v1beta1.PrCurve} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.PrCurve) com.google.cloud.datalabeling.v1beta1.PrCurveOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PrCurve_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PrCurve_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.PrCurve.class, com.google.cloud.datalabeling.v1beta1.PrCurve.Builder.class); + com.google.cloud.datalabeling.v1beta1.PrCurve.class, + com.google.cloud.datalabeling.v1beta1.PrCurve.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.PrCurve.newBuilder() @@ -1863,17 +2074,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(); @@ -1897,9 +2108,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.EvaluationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_PrCurve_descriptor; } @java.lang.Override @@ -1918,7 +2129,8 @@ public com.google.cloud.datalabeling.v1beta1.PrCurve build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.PrCurve buildPartial() { - com.google.cloud.datalabeling.v1beta1.PrCurve result = new com.google.cloud.datalabeling.v1beta1.PrCurve(this); + com.google.cloud.datalabeling.v1beta1.PrCurve result = + new com.google.cloud.datalabeling.v1beta1.PrCurve(this); int from_bitField0_ = bitField0_; if (annotationSpecBuilder_ == null) { result.annotationSpec_ = annotationSpec_; @@ -1928,7 +2140,8 @@ public com.google.cloud.datalabeling.v1beta1.PrCurve buildPartial() { result.areaUnderCurve_ = areaUnderCurve_; 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_; @@ -1944,38 +2157,39 @@ public com.google.cloud.datalabeling.v1beta1.PrCurve buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.PrCurve) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.PrCurve)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.PrCurve) other); } else { super.mergeFrom(other); return this; @@ -2008,9 +2222,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.PrCurve other) { 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_); } @@ -2047,12 +2262,18 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + annotationSpecBuilder_; /** + * + * *
      * The annotation spec of the label for which the precision-recall curve
      * calculated. If this field is empty, that means the precision-recall curve
@@ -2060,12 +2281,15 @@ public Builder mergeFrom(
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ public boolean hasAnnotationSpec() { return annotationSpecBuilder_ != null || annotationSpec_ != null; } /** + * + * *
      * The annotation spec of the label for which the precision-recall curve
      * calculated. If this field is empty, that means the precision-recall curve
@@ -2073,16 +2297,21 @@ public boolean hasAnnotationSpec() {
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { if (annotationSpecBuilder_ == null) { - return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } else { return annotationSpecBuilder_.getMessage(); } } /** + * + * *
      * The annotation spec of the label for which the precision-recall curve
      * calculated. If this field is empty, that means the precision-recall curve
@@ -2105,6 +2334,8 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio
       return this;
     }
     /**
+     *
+     *
      * 
      * The annotation spec of the label for which the precision-recall curve
      * calculated. If this field is empty, that means the precision-recall curve
@@ -2125,6 +2356,8 @@ public Builder setAnnotationSpec(
       return this;
     }
     /**
+     *
+     *
      * 
      * The annotation spec of the label for which the precision-recall curve
      * calculated. If this field is empty, that means the precision-recall curve
@@ -2137,7 +2370,9 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat
       if (annotationSpecBuilder_ == null) {
         if (annotationSpec_ != null) {
           annotationSpec_ =
-            com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_).mergeFrom(value).buildPartial();
+              com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           annotationSpec_ = value;
         }
@@ -2149,6 +2384,8 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat
       return this;
     }
     /**
+     *
+     *
      * 
      * The annotation spec of the label for which the precision-recall curve
      * calculated. If this field is empty, that means the precision-recall curve
@@ -2169,6 +2406,8 @@ public Builder clearAnnotationSpec() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The annotation spec of the label for which the precision-recall curve
      * calculated. If this field is empty, that means the precision-recall curve
@@ -2178,11 +2417,13 @@ public Builder clearAnnotationSpec() {
      * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
      */
     public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotationSpecBuilder() {
-      
+
       onChanged();
       return getAnnotationSpecFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The annotation spec of the label for which the precision-recall curve
      * calculated. If this field is empty, that means the precision-recall curve
@@ -2191,15 +2432,19 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotatio
      *
      * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
      */
-    public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() {
+    public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder
+        getAnnotationSpecOrBuilder() {
       if (annotationSpecBuilder_ != null) {
         return annotationSpecBuilder_.getMessageOrBuilder();
       } else {
-        return annotationSpec_ == null ?
-            com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_;
+        return annotationSpec_ == null
+            ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance()
+            : annotationSpec_;
       }
     }
     /**
+     *
+     *
      * 
      * The annotation spec of the label for which the precision-recall curve
      * calculated. If this field is empty, that means the precision-recall curve
@@ -2209,27 +2454,33 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotati
      * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> 
+            com.google.cloud.datalabeling.v1beta1.AnnotationSpec,
+            com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder,
+            com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>
         getAnnotationSpecFieldBuilder() {
       if (annotationSpecBuilder_ == null) {
-        annotationSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>(
-                getAnnotationSpec(),
-                getParentForChildren(),
-                isClean());
+        annotationSpecBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.cloud.datalabeling.v1beta1.AnnotationSpec,
+                com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder,
+                com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>(
+                getAnnotationSpec(), getParentForChildren(), isClean());
         annotationSpec_ = null;
       }
       return annotationSpecBuilder_;
     }
 
-    private float areaUnderCurve_ ;
+    private float areaUnderCurve_;
     /**
+     *
+     *
      * 
      * Area under the precision-recall curve. Not to be confused with area under
      * a receiver operating characteristic (ROC) curve.
      * 
* * float area_under_curve = 2; + * * @return The areaUnderCurve. */ @java.lang.Override @@ -2237,58 +2488,76 @@ public float getAreaUnderCurve() { return areaUnderCurve_; } /** + * + * *
      * Area under the precision-recall curve. Not to be confused with area under
      * a receiver operating characteristic (ROC) curve.
      * 
* * float area_under_curve = 2; + * * @param value The areaUnderCurve to set. * @return This builder for chaining. */ public Builder setAreaUnderCurve(float value) { - + areaUnderCurve_ = value; onChanged(); return this; } /** + * + * *
      * Area under the precision-recall curve. Not to be confused with area under
      * a receiver operating characteristic (ROC) curve.
      * 
* * float area_under_curve = 2; + * * @return This builder for chaining. */ public Builder clearAreaUnderCurve() { - + areaUnderCurve_ = 0F; onChanged(); return this; } - private java.util.List 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(confidenceMetricsEntries_); + confidenceMetricsEntries_ = + new java.util.ArrayList< + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry>( + confidenceMetricsEntries_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder> confidenceMetricsEntriesBuilder_; + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry, + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder, + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder> + confidenceMetricsEntriesBuilder_; /** + * + * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.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 { @@ -2296,12 +2565,16 @@ public java.util.List * Entries that make up the precision-recall graph. Each entry is a "point" on * the graph drawn for a different `confidence_threshold`. *
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public int getConfidenceMetricsEntriesCount() { if (confidenceMetricsEntriesBuilder_ == null) { @@ -2311,14 +2584,19 @@ public int getConfidenceMetricsEntriesCount() { } } /** + * + * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index) { + public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry + getConfidenceMetricsEntries(int index) { if (confidenceMetricsEntriesBuilder_ == null) { return confidenceMetricsEntries_.get(index); } else { @@ -2326,12 +2604,16 @@ public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry getC } } /** + * + * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public Builder setConfidenceMetricsEntries( int index, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry value) { @@ -2348,15 +2630,21 @@ public Builder setConfidenceMetricsEntries( return this; } /** + * + * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public Builder setConfidenceMetricsEntries( - int index, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder builderForValue) { + int index, + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder + builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.set(index, builderForValue.build()); @@ -2367,14 +2655,19 @@ public Builder setConfidenceMetricsEntries( return this; } /** + * + * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public Builder addConfidenceMetricsEntries(com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry value) { + public Builder addConfidenceMetricsEntries( + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry value) { if (confidenceMetricsEntriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2388,12 +2681,16 @@ public Builder addConfidenceMetricsEntries(com.google.cloud.datalabeling.v1beta1 return this; } /** + * + * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public Builder addConfidenceMetricsEntries( int index, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry value) { @@ -2410,15 +2707,20 @@ public Builder addConfidenceMetricsEntries( return this; } /** + * + * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public Builder addConfidenceMetricsEntries( - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder builderForValue) { + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder + builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(builderForValue.build()); @@ -2429,15 +2731,21 @@ public Builder addConfidenceMetricsEntries( return this; } /** + * + * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public Builder addConfidenceMetricsEntries( - int index, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder builderForValue) { + int index, + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder + builderForValue) { if (confidenceMetricsEntriesBuilder_ == null) { ensureConfidenceMetricsEntriesIsMutable(); confidenceMetricsEntries_.add(index, builderForValue.build()); @@ -2448,19 +2756,24 @@ public Builder addConfidenceMetricsEntries( return this; } /** + * + * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public Builder addAllConfidenceMetricsEntries( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends com.google.cloud.datalabeling.v1beta1.PrCurve.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); @@ -2468,12 +2781,16 @@ public Builder addAllConfidenceMetricsEntries( return this; } /** + * + * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public Builder clearConfidenceMetricsEntries() { if (confidenceMetricsEntriesBuilder_ == null) { @@ -2486,12 +2803,16 @@ public Builder clearConfidenceMetricsEntries() { return this; } /** + * + * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ public Builder removeConfidenceMetricsEntries(int index) { if (confidenceMetricsEntriesBuilder_ == null) { @@ -2504,42 +2825,56 @@ public Builder removeConfidenceMetricsEntries(int index) { return this; } /** + * + * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder getConfidenceMetricsEntriesBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder + getConfidenceMetricsEntriesBuilder(int index) { return getConfidenceMetricsEntriesFieldBuilder().getBuilder(index); } /** + * + * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntriesOrBuilder(int index) { if (confidenceMetricsEntriesBuilder_ == null) { - return confidenceMetricsEntries_.get(index); } else { + return confidenceMetricsEntries_.get(index); + } else { return confidenceMetricsEntriesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public java.util.List - getConfidenceMetricsEntriesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder> + getConfidenceMetricsEntriesOrBuilderList() { if (confidenceMetricsEntriesBuilder_ != null) { return confidenceMetricsEntriesBuilder_.getMessageOrBuilderList(); } else { @@ -2547,48 +2882,73 @@ public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBui } } /** + * + * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntriesBuilder() { - return getConfidenceMetricsEntriesFieldBuilder().addBuilder( - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder + addConfidenceMetricsEntriesBuilder() { + return getConfidenceMetricsEntriesFieldBuilder() + .addBuilder( + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry + .getDefaultInstance()); } /** + * + * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder addConfidenceMetricsEntriesBuilder( - int index) { - return getConfidenceMetricsEntriesFieldBuilder().addBuilder( - index, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder + addConfidenceMetricsEntriesBuilder(int index) { + return getConfidenceMetricsEntriesFieldBuilder() + .addBuilder( + index, + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry + .getDefaultInstance()); } /** + * + * *
      * Entries that make up the precision-recall graph. Each entry is a "point" on
      * the graph drawn for a different `confidence_threshold`.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - public java.util.List - getConfidenceMetricsEntriesBuilderList() { + public java.util.List< + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder> + getConfidenceMetricsEntriesBuilderList() { return getConfidenceMetricsEntriesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder> + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry, + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder, + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder> getConfidenceMetricsEntriesFieldBuilder() { if (confidenceMetricsEntriesBuilder_ == null) { - confidenceMetricsEntriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder, com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder>( + confidenceMetricsEntriesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry, + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Builder, + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder>( confidenceMetricsEntries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2598,13 +2958,16 @@ public com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry.Buil return confidenceMetricsEntriesBuilder_; } - private float meanAveragePrecision_ ; + private float meanAveragePrecision_; /** + * + * *
      * Mean average prcision of this curve.
      * 
* * float mean_average_precision = 4; + * * @return The meanAveragePrecision. */ @java.lang.Override @@ -2612,37 +2975,43 @@ public float getMeanAveragePrecision() { return meanAveragePrecision_; } /** + * + * *
      * Mean average prcision of this curve.
      * 
* * float mean_average_precision = 4; + * * @param value The meanAveragePrecision to set. * @return This builder for chaining. */ public Builder setMeanAveragePrecision(float value) { - + meanAveragePrecision_ = value; onChanged(); return this; } /** + * + * *
      * Mean average prcision of this curve.
      * 
* * float mean_average_precision = 4; + * * @return This builder for chaining. */ public Builder clearMeanAveragePrecision() { - + meanAveragePrecision_ = 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); } @@ -2652,12 +3021,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.PrCurve) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.PrCurve) private static final com.google.cloud.datalabeling.v1beta1.PrCurve DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.PrCurve(); } @@ -2666,16 +3035,16 @@ public static com.google.cloud.datalabeling.v1beta1.PrCurve getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PrCurve parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PrCurve(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PrCurve parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PrCurve(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2690,6 +3059,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.PrCurve getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurveOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurveOrBuilder.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurveOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurveOrBuilder.java index 771efad5..9b27bdcc 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurveOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/PrCurveOrBuilder.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/datalabeling/v1beta1/evaluation.proto package com.google.cloud.datalabeling.v1beta1; -public interface PrCurveOrBuilder extends +public interface PrCurveOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.PrCurve) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The annotation spec of the label for which the precision-recall curve
    * calculated. If this field is empty, that means the precision-recall curve
@@ -15,10 +33,13 @@ public interface PrCurveOrBuilder extends
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ boolean hasAnnotationSpec(); /** + * + * *
    * The annotation spec of the label for which the precision-recall curve
    * calculated. If this field is empty, that means the precision-recall curve
@@ -26,10 +47,13 @@ public interface PrCurveOrBuilder extends
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec(); /** + * + * *
    * The annotation spec of the label for which the precision-recall curve
    * calculated. If this field is empty, that means the precision-recall curve
@@ -41,71 +65,99 @@ public interface PrCurveOrBuilder extends
   com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder();
 
   /**
+   *
+   *
    * 
    * Area under the precision-recall curve. Not to be confused with area under
    * a receiver operating characteristic (ROC) curve.
    * 
* * float area_under_curve = 2; + * * @return The areaUnderCurve. */ float getAreaUnderCurve(); /** + * + * *
    * Entries that make up the precision-recall graph. Each entry is a "point" on
    * the graph drawn for a different `confidence_threshold`.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - java.util.List + java.util.List getConfidenceMetricsEntriesList(); /** + * + * *
    * Entries that make up the precision-recall graph. Each entry is a "point" on
    * the graph drawn for a different `confidence_threshold`.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry getConfidenceMetricsEntries(int index); + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry getConfidenceMetricsEntries( + int index); /** + * + * *
    * Entries that make up the precision-recall graph. Each entry is a "point" on
    * the graph drawn for a different `confidence_threshold`.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ int getConfidenceMetricsEntriesCount(); /** + * + * *
    * Entries that make up the precision-recall graph. Each entry is a "point" on
    * the graph drawn for a different `confidence_threshold`.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - java.util.List + java.util.List< + ? extends com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder> getConfidenceMetricsEntriesOrBuilderList(); /** + * + * *
    * Entries that make up the precision-recall graph. Each entry is a "point" on
    * the graph drawn for a different `confidence_threshold`.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntry confidence_metrics_entries = 3; + * */ - com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder getConfidenceMetricsEntriesOrBuilder( - int index); + com.google.cloud.datalabeling.v1beta1.PrCurve.ConfidenceMetricsEntryOrBuilder + getConfidenceMetricsEntriesOrBuilder(int index); /** + * + * *
    * Mean average prcision of this curve.
    * 
* * float mean_average_precision = 4; + * * @return The meanAveragePrecision. */ float getMeanAveragePrecision(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ProjectName.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ProjectName.java similarity index 100% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ProjectName.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ProjectName.java diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequest.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequest.java index eb6d8c02..ae1e4b12 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message ResumeEvaluationJob.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest} */ -public final class ResumeEvaluationJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ResumeEvaluationJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) ResumeEvaluationJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ResumeEvaluationJobRequest.newBuilder() to construct. private ResumeEvaluationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ResumeEvaluationJobRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ResumeEvaluationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ResumeEvaluationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private ResumeEvaluationJobRequest( 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) { @@ -73,35 +91,42 @@ private ResumeEvaluationJobRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.class, + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. Name of the evaluation job that is going to be resumed. Format:
    * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string 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 @@ -110,30 +135,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. Name of the evaluation job that is going to be resumed. Format:
    * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
    * 
* - * string 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 { @@ -142,6 +169,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -153,8 +181,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_); } @@ -178,15 +205,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.datalabeling.v1beta1.ResumeEvaluationJobRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest other = (com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) obj; + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest other = + (com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -206,117 +233,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest 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.datalabeling.v1beta1.ResumeEvaluationJobRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 ResumeEvaluationJob.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.class, + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.newBuilder() @@ -324,16 +361,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,13 +379,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_ResumeEvaluationJobRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.getDefaultInstance(); } @@ -364,7 +401,8 @@ public com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest result = new com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest(this); + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest result = + new com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest(this); result.name_ = name_; onBuilt(); return result; @@ -374,46 +412,50 @@ public com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest 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.datalabeling.v1beta1.ResumeEvaluationJobRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest other) { + if (other + == com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -437,7 +479,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,19 +493,23 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. Name of the evaluation job that is going to be resumed. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string 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; @@ -470,21 +518,24 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the evaluation job that is going to be resumed. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string 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 { @@ -492,64 +543,77 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. Name of the evaluation job that is going to be resumed. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * 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 evaluation job that is going to be resumed. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * string 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 evaluation job that is going to be resumed. Format:
      * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
      * 
* - * 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); } @@ -559,30 +623,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) - private static final com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest(); } - public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ResumeEvaluationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ResumeEvaluationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResumeEvaluationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResumeEvaluationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -594,9 +660,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequestOrBuilder.java new file mode 100644 index 00000000..15aa6677 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/ResumeEvaluationJobRequestOrBuilder.java @@ -0,0 +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/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface ResumeEvaluationJobRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.ResumeEvaluationJobRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the evaluation job that is going to be resumed. Format:
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Name of the evaluation job that is going to be resumed. Format:
+   * "projects/<var>{project_id}</var>/evaluationJobs/<var>{evaluation_job_id}</var>"
+   * 
+ * + * + * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequest.java similarity index 78% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequest.java index aad661cd..a3dc3cbc 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message for SearchEvaluation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest} */ -public final class SearchEvaluationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SearchEvaluationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) SearchEvaluationsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SearchEvaluationsRequest.newBuilder() to construct. private SearchEvaluationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SearchEvaluationsRequest() { parent_ = ""; filter_ = ""; @@ -27,16 +45,15 @@ private SearchEvaluationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SearchEvaluationsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SearchEvaluationsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,36 +72,39 @@ private SearchEvaluationsRequest( 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: { - java.lang.String s = input.readStringRequireUtf8(); - - filter_ = s; - break; - } - case 24: { + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + filter_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + 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) { @@ -92,35 +112,42 @@ private SearchEvaluationsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.class, com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.class, + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Evaluation search parent (project ID). Format:
    * "projects/<var>{project_id}</var>"
    * 
* - * 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 @@ -129,30 +156,32 @@ 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. Evaluation search parent (project ID). Format:
    * "projects/<var>{project_id}</var>"
    * 
* - * 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 = 2; private volatile java.lang.Object filter_; /** + * + * *
    * Optional. To search evaluations, you can filter by the following:
    * * evaluation<span>_</span>job.evaluation_job_id (the last part of
@@ -195,6 +226,7 @@ public java.lang.String getParent() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ @java.lang.Override @@ -203,14 +235,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; } } /** + * + * *
    * Optional. To search evaluations, you can filter by the following:
    * * evaluation<span>_</span>job.evaluation_job_id (the last part of
@@ -243,16 +276,15 @@ public java.lang.String getFilter() {
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -263,12 +295,15 @@ public java.lang.String getFilter() { public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -279,6 +314,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -289,6 +326,7 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -297,14 +335,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; } } /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -315,16 +354,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -333,6 +371,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -344,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -374,8 +412,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -388,21 +425,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.datalabeling.v1beta1.SearchEvaluationsRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest other = (com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) 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.datalabeling.v1beta1.SearchEvaluationsRequest other = + (com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) 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; } @@ -428,117 +462,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest 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.datalabeling.v1beta1.SearchEvaluationsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 SearchEvaluation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.class, com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.class, + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.newBuilder() @@ -546,16 +590,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(); @@ -571,13 +614,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.getDefaultInstance(); } @@ -592,7 +636,8 @@ public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest result = new com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest(this); + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest result = + new com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest(this); result.parent_ = parent_; result.filter_ = filter_; result.pageSize_ = pageSize_; @@ -605,38 +650,39 @@ public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest 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.datalabeling.v1beta1.SearchEvaluationsRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) other); } else { super.mergeFrom(other); return this; @@ -644,7 +690,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -679,7 +727,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -691,19 +741,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Evaluation search parent (project ID). Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * 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; @@ -712,21 +766,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Evaluation search parent (project ID). Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * 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,57 +791,70 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Evaluation search parent (project ID). Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * 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. Evaluation search parent (project ID). Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * 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. Evaluation search parent (project ID). Format:
      * "projects/<var>{project_id}</var>"
      * 
* - * 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; @@ -792,6 +862,8 @@ public Builder setParentBytes( private java.lang.Object filter_ = ""; /** + * + * *
      * Optional. To search evaluations, you can filter by the following:
      * * evaluation<span>_</span>job.evaluation_job_id (the last part of
@@ -824,13 +896,13 @@ public Builder setParentBytes(
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -839,6 +911,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. To search evaluations, you can filter by the following:
      * * evaluation<span>_</span>job.evaluation_job_id (the last part of
@@ -871,15 +945,14 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -887,6 +960,8 @@ public java.lang.String getFilter() { } } /** + * + * *
      * Optional. To search evaluations, you can filter by the following:
      * * evaluation<span>_</span>job.evaluation_job_id (the last part of
@@ -919,20 +994,22 @@ public java.lang.String getFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. To search evaluations, you can filter by the following:
      * * evaluation<span>_</span>job.evaluation_job_id (the last part of
@@ -965,15 +1042,18 @@ public Builder setFilter(
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearFilter() { - + filter_ = getDefaultInstance().getFilter(); onChanged(); return this; } /** + * + * *
      * Optional. To search evaluations, you can filter by the following:
      * * evaluation<span>_</span>job.evaluation_job_id (the last part of
@@ -1006,29 +1086,32 @@ public Builder clearFilter() {
      * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @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_; /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -1036,32 +1119,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1069,6 +1158,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -1079,13 +1170,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -1094,6 +1185,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -1104,15 +1197,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -1120,6 +1212,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -1130,20 +1224,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -1154,15 +1250,18 @@ public Builder setPageToken(
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -1173,23 +1272,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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); } @@ -1199,30 +1298,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) - private static final com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest(); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchEvaluationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchEvaluationsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchEvaluationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchEvaluationsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1234,9 +1335,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequestOrBuilder.java similarity index 84% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequestOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequestOrBuilder.java index ff339caf..90d051eb 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequestOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface SearchEvaluationsRequestOrBuilder extends +public interface SearchEvaluationsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.SearchEvaluationsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Evaluation search parent (project ID). Format:
    * "projects/<var>{project_id}</var>"
    * 
* - * 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. Evaluation search parent (project ID). Format:
    * "projects/<var>{project_id}</var>"
    * 
* - * 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(); /** + * + * *
    * Optional. To search evaluations, you can filter by the following:
    * * evaluation<span>_</span>job.evaluation_job_id (the last part of
@@ -62,10 +89,13 @@ public interface SearchEvaluationsRequestOrBuilder extends
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The filter. */ java.lang.String getFilter(); /** + * + * *
    * Optional. To search evaluations, you can filter by the following:
    * * evaluation<span>_</span>job.evaluation_job_id (the last part of
@@ -98,23 +128,28 @@ public interface SearchEvaluationsRequestOrBuilder extends
    * 
* * string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for filter. */ - com.google.protobuf.ByteString - getFilterBytes(); + com.google.protobuf.ByteString getFilterBytes(); /** + * + * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -125,10 +160,13 @@ public interface SearchEvaluationsRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -139,8 +177,8 @@ public interface SearchEvaluationsRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponse.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponse.java similarity index 73% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponse.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponse.java index d8cfb504..e6ca4b49 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponse.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponse.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Results of searching evaluations.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse} */ -public final class SearchEvaluationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SearchEvaluationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse) SearchEvaluationsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SearchEvaluationsResponse.newBuilder() to construct. private SearchEvaluationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SearchEvaluationsResponse() { evaluations_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private SearchEvaluationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SearchEvaluationsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SearchEvaluationsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,33 @@ private SearchEvaluationsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - evaluations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + evaluations_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + evaluations_.add( + input.readMessage( + com.google.cloud.datalabeling.v1beta1.Evaluation.parser(), + extensionRegistry)); + break; } - evaluations_.add( - input.readMessage(com.google.cloud.datalabeling.v1beta1.Evaluation.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) { @@ -84,8 +106,7 @@ private SearchEvaluationsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { evaluations_ = java.util.Collections.unmodifiableList(evaluations_); @@ -94,22 +115,27 @@ private SearchEvaluationsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.class, com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.class, + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.Builder.class); } public static final int EVALUATIONS_FIELD_NUMBER = 1; private java.util.List evaluations_; /** + * + * *
    * The list of evaluations matching the search.
    * 
@@ -121,6 +147,8 @@ public java.util.List getEvalu return evaluations_; } /** + * + * *
    * The list of evaluations matching the search.
    * 
@@ -128,11 +156,13 @@ public java.util.List getEvalu * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; */ @java.lang.Override - public java.util.List + public java.util.List getEvaluationsOrBuilderList() { return evaluations_; } /** + * + * *
    * The list of evaluations matching the search.
    * 
@@ -144,6 +174,8 @@ public int getEvaluationsCount() { return evaluations_.size(); } /** + * + * *
    * The list of evaluations matching the search.
    * 
@@ -155,6 +187,8 @@ public com.google.cloud.datalabeling.v1beta1.Evaluation getEvaluations(int index return evaluations_.get(index); } /** + * + * *
    * The list of evaluations matching the search.
    * 
@@ -170,11 +204,14 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder getEvaluationsO public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token to retrieve next page of results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -183,29 +220,29 @@ 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.
    * 
* * 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 +251,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,8 +263,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 < evaluations_.size(); i++) { output.writeMessage(1, evaluations_.get(i)); } @@ -243,8 +280,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < evaluations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, evaluations_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, evaluations_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -257,17 +293,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.datalabeling.v1beta1.SearchEvaluationsResponse)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse other = (com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse) obj; + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse other = + (com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse) obj; - if (!getEvaluationsList() - .equals(other.getEvaluationsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getEvaluationsList().equals(other.getEvaluationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -291,117 +326,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse 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.datalabeling.v1beta1.SearchEvaluationsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Results of searching evaluations.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse) com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.class, com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.class, + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.newBuilder() @@ -409,17 +454,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) { getEvaluationsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -435,13 +480,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchEvaluationsResponse_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.getDefaultInstance(); } @@ -456,7 +502,8 @@ public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse buildPartial() { - com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse result = new com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse(this); + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse result = + new com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse(this); int from_bitField0_ = bitField0_; if (evaluationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -476,46 +523,50 @@ public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse 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.datalabeling.v1beta1.SearchEvaluationsResponse) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse other) { - if (other == com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse other) { + if (other + == com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse.getDefaultInstance()) + return this; if (evaluationsBuilder_ == null) { if (!other.evaluations_.isEmpty()) { if (evaluations_.isEmpty()) { @@ -534,9 +585,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.SearchEvaluations evaluationsBuilder_ = null; evaluations_ = other.evaluations_; bitField0_ = (bitField0_ & ~0x00000001); - evaluationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEvaluationsFieldBuilder() : null; + evaluationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEvaluationsFieldBuilder() + : null; } else { evaluationsBuilder_.addAllMessages(other.evaluations_); } @@ -565,7 +617,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -574,21 +628,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List evaluations_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureEvaluationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - evaluations_ = new java.util.ArrayList(evaluations_); + evaluations_ = + new java.util.ArrayList(evaluations_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Evaluation, com.google.cloud.datalabeling.v1beta1.Evaluation.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder> evaluationsBuilder_; + com.google.cloud.datalabeling.v1beta1.Evaluation, + com.google.cloud.datalabeling.v1beta1.Evaluation.Builder, + com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder> + evaluationsBuilder_; /** + * + * *
      * The list of evaluations matching the search.
      * 
@@ -603,6 +665,8 @@ public java.util.List getEvalu } } /** + * + * *
      * The list of evaluations matching the search.
      * 
@@ -617,6 +681,8 @@ public int getEvaluationsCount() { } } /** + * + * *
      * The list of evaluations matching the search.
      * 
@@ -631,6 +697,8 @@ public com.google.cloud.datalabeling.v1beta1.Evaluation getEvaluations(int index } } /** + * + * *
      * The list of evaluations matching the search.
      * 
@@ -652,6 +720,8 @@ public Builder setEvaluations( return this; } /** + * + * *
      * The list of evaluations matching the search.
      * 
@@ -670,6 +740,8 @@ public Builder setEvaluations( return this; } /** + * + * *
      * The list of evaluations matching the search.
      * 
@@ -690,6 +762,8 @@ public Builder addEvaluations(com.google.cloud.datalabeling.v1beta1.Evaluation v return this; } /** + * + * *
      * The list of evaluations matching the search.
      * 
@@ -711,6 +785,8 @@ public Builder addEvaluations( return this; } /** + * + * *
      * The list of evaluations matching the search.
      * 
@@ -729,6 +805,8 @@ public Builder addEvaluations( return this; } /** + * + * *
      * The list of evaluations matching the search.
      * 
@@ -747,6 +825,8 @@ public Builder addEvaluations( return this; } /** + * + * *
      * The list of evaluations matching the search.
      * 
@@ -757,8 +837,7 @@ public Builder addAllEvaluations( java.lang.Iterable values) { if (evaluationsBuilder_ == null) { ensureEvaluationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, evaluations_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, evaluations_); onChanged(); } else { evaluationsBuilder_.addAllMessages(values); @@ -766,6 +845,8 @@ public Builder addAllEvaluations( return this; } /** + * + * *
      * The list of evaluations matching the search.
      * 
@@ -783,6 +864,8 @@ public Builder clearEvaluations() { return this; } /** + * + * *
      * The list of evaluations matching the search.
      * 
@@ -800,6 +883,8 @@ public Builder removeEvaluations(int index) { return this; } /** + * + * *
      * The list of evaluations matching the search.
      * 
@@ -811,6 +896,8 @@ public com.google.cloud.datalabeling.v1beta1.Evaluation.Builder getEvaluationsBu return getEvaluationsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of evaluations matching the search.
      * 
@@ -820,19 +907,22 @@ public com.google.cloud.datalabeling.v1beta1.Evaluation.Builder getEvaluationsBu public com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder getEvaluationsOrBuilder( int index) { if (evaluationsBuilder_ == null) { - return evaluations_.get(index); } else { + return evaluations_.get(index); + } else { return evaluationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of evaluations matching the search.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; */ - public java.util.List - getEvaluationsOrBuilderList() { + public java.util.List + getEvaluationsOrBuilderList() { if (evaluationsBuilder_ != null) { return evaluationsBuilder_.getMessageOrBuilderList(); } else { @@ -840,6 +930,8 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder getEvaluationsO } } /** + * + * *
      * The list of evaluations matching the search.
      * 
@@ -847,10 +939,12 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder getEvaluationsO * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; */ public com.google.cloud.datalabeling.v1beta1.Evaluation.Builder addEvaluationsBuilder() { - return getEvaluationsFieldBuilder().addBuilder( - com.google.cloud.datalabeling.v1beta1.Evaluation.getDefaultInstance()); + return getEvaluationsFieldBuilder() + .addBuilder(com.google.cloud.datalabeling.v1beta1.Evaluation.getDefaultInstance()); } /** + * + * *
      * The list of evaluations matching the search.
      * 
@@ -859,30 +953,35 @@ public com.google.cloud.datalabeling.v1beta1.Evaluation.Builder addEvaluationsBu */ public com.google.cloud.datalabeling.v1beta1.Evaluation.Builder addEvaluationsBuilder( int index) { - return getEvaluationsFieldBuilder().addBuilder( - index, com.google.cloud.datalabeling.v1beta1.Evaluation.getDefaultInstance()); + return getEvaluationsFieldBuilder() + .addBuilder(index, com.google.cloud.datalabeling.v1beta1.Evaluation.getDefaultInstance()); } /** + * + * *
      * The list of evaluations matching the search.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; */ - public java.util.List - getEvaluationsBuilderList() { + public java.util.List + getEvaluationsBuilderList() { return getEvaluationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Evaluation, com.google.cloud.datalabeling.v1beta1.Evaluation.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder> + com.google.cloud.datalabeling.v1beta1.Evaluation, + com.google.cloud.datalabeling.v1beta1.Evaluation.Builder, + com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder> getEvaluationsFieldBuilder() { if (evaluationsBuilder_ == null) { - evaluationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Evaluation, com.google.cloud.datalabeling.v1beta1.Evaluation.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder>( - evaluations_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + evaluationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.Evaluation, + com.google.cloud.datalabeling.v1beta1.Evaluation.Builder, + com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder>( + evaluations_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); evaluations_ = null; } return evaluationsBuilder_; @@ -890,18 +989,20 @@ public com.google.cloud.datalabeling.v1beta1.Evaluation.Builder addEvaluationsBu private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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; @@ -910,20 +1011,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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 { @@ -931,61 +1033,68 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -995,30 +1104,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse) - private static final com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse(); } - public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchEvaluationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchEvaluationsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchEvaluationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchEvaluationsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1030,9 +1141,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponseOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponseOrBuilder.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponseOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponseOrBuilder.java index 3bfb41e3..538b77f8 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponseOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchEvaluationsResponseOrBuilder.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface SearchEvaluationsResponseOrBuilder extends +public interface SearchEvaluationsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.SearchEvaluationsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The list of evaluations matching the search.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; */ - java.util.List - getEvaluationsList(); + java.util.List getEvaluationsList(); /** + * + * *
    * The list of evaluations matching the search.
    * 
@@ -25,6 +44,8 @@ public interface SearchEvaluationsResponseOrBuilder extends */ com.google.cloud.datalabeling.v1beta1.Evaluation getEvaluations(int index); /** + * + * *
    * The list of evaluations matching the search.
    * 
@@ -33,41 +54,49 @@ public interface SearchEvaluationsResponseOrBuilder extends */ int getEvaluationsCount(); /** + * + * *
    * The list of evaluations matching the search.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; */ - java.util.List + java.util.List getEvaluationsOrBuilderList(); /** + * + * *
    * The list of evaluations matching the search.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.Evaluation evaluations = 1; */ - com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder getEvaluationsOrBuilder( - int index); + com.google.cloud.datalabeling.v1beta1.EvaluationOrBuilder getEvaluationsOrBuilder(int index); /** + * + * *
    * A token to retrieve next page of results.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token to retrieve next page of results.
    * 
* * 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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequest.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequest.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequest.java index 0933ff2b..b950921e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequest.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequest.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Request message of SearchExampleComparisons.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest} */ -public final class SearchExampleComparisonsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SearchExampleComparisonsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) SearchExampleComparisonsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SearchExampleComparisonsRequest.newBuilder() to construct. - private SearchExampleComparisonsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SearchExampleComparisonsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SearchExampleComparisonsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +45,15 @@ private SearchExampleComparisonsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SearchExampleComparisonsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SearchExampleComparisonsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +72,32 @@ private SearchExampleComparisonsRequest( 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 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + 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) { @@ -85,36 +105,43 @@ private SearchExampleComparisonsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.class, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.class, + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Name of the [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] resource to search for example
    * comparisons from. Format:
    * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>"
    * 
* - * 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 @@ -123,31 +150,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. Name of the [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] resource to search for example
    * comparisons from. Format:
    * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>"
    * 
* - * 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 { @@ -158,12 +187,15 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -174,6 +206,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -184,6 +218,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -192,14 +227,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; } } /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -210,16 +246,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -228,6 +263,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -239,8 +275,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_); } @@ -263,8 +298,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -277,19 +311,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.datalabeling.v1beta1.SearchExampleComparisonsRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest other = (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) obj; + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest other = + (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -313,134 +345,145 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest 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.datalabeling.v1beta1.SearchExampleComparisonsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest 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.datalabeling.v1beta1.SearchExampleComparisonsRequest + 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.datalabeling.v1beta1.SearchExampleComparisonsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 of SearchExampleComparisons.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.class, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.class, + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.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(); @@ -454,14 +497,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest + .getDefaultInstance(); } @java.lang.Override @@ -475,7 +520,8 @@ public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest bui @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest result = new com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest(this); + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest result = + new com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -487,46 +533,51 @@ public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest 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.datalabeling.v1beta1.SearchExampleComparisonsRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest)other); + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest other) { + if (other + == com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -557,7 +608,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -569,20 +622,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Name of the [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] resource to search for example
      * comparisons from. Format:
      * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>"
      * 
* - * 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; @@ -591,22 +648,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] resource to search for example
      * comparisons from. Format:
      * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>"
      * 
* - * 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 { @@ -614,73 +674,89 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Name of the [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] resource to search for example
      * comparisons from. Format:
      * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>"
      * 
* - * 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. Name of the [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] resource to search for example
      * comparisons from. Format:
      * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>"
      * 
* - * 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. Name of the [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] resource to search for example
      * comparisons from. Format:
      * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>"
      * 
* - * 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; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -688,32 +764,38 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Requested page size. Server may return fewer results than
      * requested. Default value is 100.
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -721,6 +803,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -731,13 +815,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; @@ -746,6 +830,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -756,15 +842,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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 { @@ -772,6 +857,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -782,20 +869,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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; } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -806,15 +895,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. A token identifying a page of results for the server to return.
      * Typically obtained by the
@@ -825,23 +917,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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); } @@ -851,30 +943,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) - private static final com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest(); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchExampleComparisonsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchExampleComparisonsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchExampleComparisonsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchExampleComparisonsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -886,9 +980,8 @@ public com.google.protobuf.Parser getParserForT } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequestOrBuilder.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequestOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequestOrBuilder.java index 67df7fcd..1bf472e0 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequestOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsRequestOrBuilder.java @@ -1,48 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface SearchExampleComparisonsRequestOrBuilder extends +public interface SearchExampleComparisonsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] resource to search for example
    * comparisons from. Format:
    * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>"
    * 
* - * 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. Name of the [Evaluation][google.cloud.datalabeling.v1beta1.Evaluation] resource to search for example
    * comparisons from. Format:
    * "projects/<var>{project_id}</var>/datasets/<var>{dataset_id}</var>/evaluations/<var>{evaluation_id}</var>"
    * 
* - * 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(); /** + * + * *
    * Optional. Requested page size. Server may return fewer results than
    * requested. Default value is 100.
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -53,10 +83,13 @@ public interface SearchExampleComparisonsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. A token identifying a page of results for the server to return.
    * Typically obtained by the
@@ -67,8 +100,8 @@ public interface SearchExampleComparisonsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponse.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponse.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponse.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponse.java index 26341c8b..58320f94 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponse.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponse.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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Results of searching example comparisons.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse} */ -public final class SearchExampleComparisonsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SearchExampleComparisonsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) SearchExampleComparisonsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SearchExampleComparisonsResponse.newBuilder() to construct. - private SearchExampleComparisonsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private SearchExampleComparisonsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SearchExampleComparisonsResponse() { exampleComparisons_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +45,15 @@ private SearchExampleComparisonsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SearchExampleComparisonsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SearchExampleComparisonsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +73,36 @@ private SearchExampleComparisonsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - exampleComparisons_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + exampleComparisons_ = + new java.util.ArrayList< + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison>(); + mutable_bitField0_ |= 0x00000001; + } + exampleComparisons_.add( + input.readMessage( + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison.parser(), + extensionRegistry)); + break; } - exampleComparisons_.add( - input.readMessage(com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.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) { @@ -84,8 +110,7 @@ private SearchExampleComparisonsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { exampleComparisons_ = java.util.Collections.unmodifiableList(exampleComparisons_); @@ -94,42 +119,54 @@ private SearchExampleComparisonsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.class, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.class, + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.Builder.class); } - public interface ExampleComparisonOrBuilder extends + public interface ExampleComparisonOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The ground truth output for the input.
      * 
* * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; + * * @return Whether the groundTruthExample field is set. */ boolean hasGroundTruthExample(); /** + * + * *
      * The ground truth output for the input.
      * 
* * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; + * * @return The groundTruthExample. */ com.google.cloud.datalabeling.v1beta1.Example getGroundTruthExample(); /** + * + * *
      * The ground truth output for the input.
      * 
@@ -139,15 +176,18 @@ public interface ExampleComparisonOrBuilder extends com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getGroundTruthExampleOrBuilder(); /** + * + * *
      * Predictions by the model for the input.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ - java.util.List - getModelCreatedExamplesList(); + java.util.List getModelCreatedExamplesList(); /** + * + * *
      * Predictions by the model for the input.
      * 
@@ -156,6 +196,8 @@ public interface ExampleComparisonOrBuilder extends */ com.google.cloud.datalabeling.v1beta1.Example getModelCreatedExamples(int index); /** + * + * *
      * Predictions by the model for the input.
      * 
@@ -164,15 +206,19 @@ public interface ExampleComparisonOrBuilder extends */ int getModelCreatedExamplesCount(); /** + * + * *
      * Predictions by the model for the input.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ - java.util.List + java.util.List getModelCreatedExamplesOrBuilderList(); /** + * + * *
      * Predictions by the model for the input.
      * 
@@ -183,38 +229,41 @@ com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getModelCreatedExamplesOr int index); } /** + * + * *
    * Example comparisons comparing ground truth output and predictions for a
    * specific input.
    * 
* - * Protobuf type {@code google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison} + * Protobuf type {@code + * google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison} */ - public static final class ExampleComparison extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class ExampleComparison extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison) ExampleComparisonOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ExampleComparison.newBuilder() to construct. private ExampleComparison(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ExampleComparison() { modelCreatedExamples_ = 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 ExampleComparison(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ExampleComparison( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -234,35 +283,41 @@ private ExampleComparison( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.Example.Builder subBuilder = null; - if (groundTruthExample_ != null) { - subBuilder = groundTruthExample_.toBuilder(); + case 10: + { + com.google.cloud.datalabeling.v1beta1.Example.Builder subBuilder = null; + if (groundTruthExample_ != null) { + subBuilder = groundTruthExample_.toBuilder(); + } + groundTruthExample_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.Example.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(groundTruthExample_); + groundTruthExample_ = subBuilder.buildPartial(); + } + + break; } - groundTruthExample_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.Example.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(groundTruthExample_); - groundTruthExample_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - modelCreatedExamples_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + modelCreatedExamples_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + modelCreatedExamples_.add( + input.readMessage( + com.google.cloud.datalabeling.v1beta1.Example.parser(), extensionRegistry)); + break; } - modelCreatedExamples_.add( - input.readMessage(com.google.cloud.datalabeling.v1beta1.Example.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) { @@ -270,8 +325,7 @@ private ExampleComparison( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { modelCreatedExamples_ = java.util.Collections.unmodifiableList(modelCreatedExamples_); @@ -280,27 +334,35 @@ private ExampleComparison( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.class, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.Builder.class); + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison.class, + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison.Builder.class); } public static final int GROUND_TRUTH_EXAMPLE_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.Example groundTruthExample_; /** + * + * *
      * The ground truth output for the input.
      * 
* * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; + * * @return Whether the groundTruthExample field is set. */ @java.lang.Override @@ -308,18 +370,25 @@ public boolean hasGroundTruthExample() { return groundTruthExample_ != null; } /** + * + * *
      * The ground truth output for the input.
      * 
* * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; + * * @return The groundTruthExample. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.Example getGroundTruthExample() { - return groundTruthExample_ == null ? com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance() : groundTruthExample_; + return groundTruthExample_ == null + ? com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance() + : groundTruthExample_; } /** + * + * *
      * The ground truth output for the input.
      * 
@@ -334,6 +403,8 @@ public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getGroundTruthExam public static final int MODEL_CREATED_EXAMPLES_FIELD_NUMBER = 2; private java.util.List modelCreatedExamples_; /** + * + * *
      * Predictions by the model for the input.
      * 
@@ -341,10 +412,13 @@ public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getGroundTruthExam * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ @java.lang.Override - public java.util.List getModelCreatedExamplesList() { + public java.util.List + getModelCreatedExamplesList() { return modelCreatedExamples_; } /** + * + * *
      * Predictions by the model for the input.
      * 
@@ -352,11 +426,13 @@ public java.util.List getModelCre * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; */ @java.lang.Override - public java.util.List + public java.util.List getModelCreatedExamplesOrBuilderList() { return modelCreatedExamples_; } /** + * + * *
      * Predictions by the model for the input.
      * 
@@ -368,6 +444,8 @@ public int getModelCreatedExamplesCount() { return modelCreatedExamples_.size(); } /** + * + * *
      * Predictions by the model for the input.
      * 
@@ -379,6 +457,8 @@ public com.google.cloud.datalabeling.v1beta1.Example getModelCreatedExamples(int return modelCreatedExamples_.get(index); } /** + * + * *
      * Predictions by the model for the input.
      * 
@@ -392,6 +472,7 @@ public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getModelCreatedExa } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -403,8 +484,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 (groundTruthExample_ != null) { output.writeMessage(1, getGroundTruthExample()); } @@ -421,12 +501,13 @@ public int getSerializedSize() { size = 0; if (groundTruthExample_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getGroundTruthExample()); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGroundTruthExample()); } for (int i = 0; i < modelCreatedExamples_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, modelCreatedExamples_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, modelCreatedExamples_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -436,20 +517,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.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison)) { + if (!(obj + instanceof + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison other = (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison) obj; + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison + other = + (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison) + obj; if (hasGroundTruthExample() != other.hasGroundTruthExample()) return false; if (hasGroundTruthExample()) { - if (!getGroundTruthExample() - .equals(other.getGroundTruthExample())) return false; + if (!getGroundTruthExample().equals(other.getGroundTruthExample())) return false; } - if (!getModelCreatedExamplesList() - .equals(other.getModelCreatedExamplesList())) return false; + if (!getModelCreatedExamplesList().equals(other.getModelCreatedExamplesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -474,88 +560,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison + 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.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison 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.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison + 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.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison 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.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison + 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.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison 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.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison + 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.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -565,46 +677,56 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Example comparisons comparing ground truth output and predictions for a
      * specific input.
      * 
* - * Protobuf type {@code google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison} + * Protobuf type {@code + * google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison) - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparisonOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor; + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparisonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.class, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.Builder.class); + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison.class, + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.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) { getModelCreatedExamplesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -624,19 +746,25 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_ExampleComparison_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison build() { - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison result = buildPartial(); + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison + build() { + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -644,8 +772,13 @@ public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.Ex } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison buildPartial() { - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison result = new com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison(this); + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison + buildPartial() { + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison + result = + new com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison(this); int from_bitField0_ = bitField0_; if (groundTruthExampleBuilder_ == null) { result.groundTruthExample_ = groundTruthExample_; @@ -669,46 +802,59 @@ public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.Ex public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison)other); + if (other + instanceof + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison) { + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison other) { - if (other == com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison + other) { + if (other + == com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison.getDefaultInstance()) return this; if (other.hasGroundTruthExample()) { mergeGroundTruthExample(other.getGroundTruthExample()); } @@ -730,9 +876,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.SearchExampleComp modelCreatedExamplesBuilder_ = null; modelCreatedExamples_ = other.modelCreatedExamples_; bitField0_ = (bitField0_ & ~0x00000001); - modelCreatedExamplesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getModelCreatedExamplesFieldBuilder() : null; + modelCreatedExamplesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getModelCreatedExamplesFieldBuilder() + : null; } else { modelCreatedExamplesBuilder_.addAllMessages(other.modelCreatedExamples_); } @@ -753,11 +900,15 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison parsedMessage = null; + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -766,38 +917,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.datalabeling.v1beta1.Example groundTruthExample_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Example, com.google.cloud.datalabeling.v1beta1.Example.Builder, com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> groundTruthExampleBuilder_; + com.google.cloud.datalabeling.v1beta1.Example, + com.google.cloud.datalabeling.v1beta1.Example.Builder, + com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> + groundTruthExampleBuilder_; /** + * + * *
        * The ground truth output for the input.
        * 
* * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; + * * @return Whether the groundTruthExample field is set. */ public boolean hasGroundTruthExample() { return groundTruthExampleBuilder_ != null || groundTruthExample_ != null; } /** + * + * *
        * The ground truth output for the input.
        * 
* * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; + * * @return The groundTruthExample. */ public com.google.cloud.datalabeling.v1beta1.Example getGroundTruthExample() { if (groundTruthExampleBuilder_ == null) { - return groundTruthExample_ == null ? com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance() : groundTruthExample_; + return groundTruthExample_ == null + ? com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance() + : groundTruthExample_; } else { return groundTruthExampleBuilder_.getMessage(); } } /** + * + * *
        * The ground truth output for the input.
        * 
@@ -818,6 +983,8 @@ public Builder setGroundTruthExample(com.google.cloud.datalabeling.v1beta1.Examp return this; } /** + * + * *
        * The ground truth output for the input.
        * 
@@ -836,6 +1003,8 @@ public Builder setGroundTruthExample( return this; } /** + * + * *
        * The ground truth output for the input.
        * 
@@ -846,7 +1015,9 @@ public Builder mergeGroundTruthExample(com.google.cloud.datalabeling.v1beta1.Exa if (groundTruthExampleBuilder_ == null) { if (groundTruthExample_ != null) { groundTruthExample_ = - com.google.cloud.datalabeling.v1beta1.Example.newBuilder(groundTruthExample_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.Example.newBuilder(groundTruthExample_) + .mergeFrom(value) + .buildPartial(); } else { groundTruthExample_ = value; } @@ -858,6 +1029,8 @@ public Builder mergeGroundTruthExample(com.google.cloud.datalabeling.v1beta1.Exa return this; } /** + * + * *
        * The ground truth output for the input.
        * 
@@ -876,6 +1049,8 @@ public Builder clearGroundTruthExample() { return this; } /** + * + * *
        * The ground truth output for the input.
        * 
@@ -883,26 +1058,32 @@ public Builder clearGroundTruthExample() { * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; */ public com.google.cloud.datalabeling.v1beta1.Example.Builder getGroundTruthExampleBuilder() { - + onChanged(); return getGroundTruthExampleFieldBuilder().getBuilder(); } /** + * + * *
        * The ground truth output for the input.
        * 
* * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; */ - public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getGroundTruthExampleOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder + getGroundTruthExampleOrBuilder() { if (groundTruthExampleBuilder_ != null) { return groundTruthExampleBuilder_.getMessageOrBuilder(); } else { - return groundTruthExample_ == null ? - com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance() : groundTruthExample_; + return groundTruthExample_ == null + ? com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance() + : groundTruthExample_; } } /** + * + * *
        * The ground truth output for the input.
        * 
@@ -910,39 +1091,52 @@ public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getGroundTruthExam * .google.cloud.datalabeling.v1beta1.Example ground_truth_example = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Example, com.google.cloud.datalabeling.v1beta1.Example.Builder, com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> + com.google.cloud.datalabeling.v1beta1.Example, + com.google.cloud.datalabeling.v1beta1.Example.Builder, + com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> getGroundTruthExampleFieldBuilder() { if (groundTruthExampleBuilder_ == null) { - groundTruthExampleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Example, com.google.cloud.datalabeling.v1beta1.Example.Builder, com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder>( - getGroundTruthExample(), - getParentForChildren(), - isClean()); + groundTruthExampleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.Example, + com.google.cloud.datalabeling.v1beta1.Example.Builder, + com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder>( + getGroundTruthExample(), getParentForChildren(), isClean()); groundTruthExample_ = null; } return groundTruthExampleBuilder_; } private java.util.List modelCreatedExamples_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureModelCreatedExamplesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - modelCreatedExamples_ = new java.util.ArrayList(modelCreatedExamples_); + modelCreatedExamples_ = + new java.util.ArrayList( + modelCreatedExamples_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Example, com.google.cloud.datalabeling.v1beta1.Example.Builder, com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> modelCreatedExamplesBuilder_; + com.google.cloud.datalabeling.v1beta1.Example, + com.google.cloud.datalabeling.v1beta1.Example.Builder, + com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> + modelCreatedExamplesBuilder_; /** + * + * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * */ - public java.util.List getModelCreatedExamplesList() { + public java.util.List + getModelCreatedExamplesList() { if (modelCreatedExamplesBuilder_ == null) { return java.util.Collections.unmodifiableList(modelCreatedExamples_); } else { @@ -950,11 +1144,14 @@ public java.util.List getModelCre } } /** + * + * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * */ public int getModelCreatedExamplesCount() { if (modelCreatedExamplesBuilder_ == null) { @@ -964,11 +1161,14 @@ public int getModelCreatedExamplesCount() { } } /** + * + * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * */ public com.google.cloud.datalabeling.v1beta1.Example getModelCreatedExamples(int index) { if (modelCreatedExamplesBuilder_ == null) { @@ -978,11 +1178,14 @@ public com.google.cloud.datalabeling.v1beta1.Example getModelCreatedExamples(int } } /** + * + * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * */ public Builder setModelCreatedExamples( int index, com.google.cloud.datalabeling.v1beta1.Example value) { @@ -999,11 +1202,14 @@ public Builder setModelCreatedExamples( return this; } /** + * + * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * */ public Builder setModelCreatedExamples( int index, com.google.cloud.datalabeling.v1beta1.Example.Builder builderForValue) { @@ -1017,11 +1223,14 @@ public Builder setModelCreatedExamples( return this; } /** + * + * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * */ public Builder addModelCreatedExamples(com.google.cloud.datalabeling.v1beta1.Example value) { if (modelCreatedExamplesBuilder_ == null) { @@ -1037,11 +1246,14 @@ public Builder addModelCreatedExamples(com.google.cloud.datalabeling.v1beta1.Exa return this; } /** + * + * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * */ public Builder addModelCreatedExamples( int index, com.google.cloud.datalabeling.v1beta1.Example value) { @@ -1058,11 +1270,14 @@ public Builder addModelCreatedExamples( return this; } /** + * + * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * */ public Builder addModelCreatedExamples( com.google.cloud.datalabeling.v1beta1.Example.Builder builderForValue) { @@ -1076,11 +1291,14 @@ public Builder addModelCreatedExamples( return this; } /** + * + * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * */ public Builder addModelCreatedExamples( int index, com.google.cloud.datalabeling.v1beta1.Example.Builder builderForValue) { @@ -1094,18 +1312,20 @@ public Builder addModelCreatedExamples( return this; } /** + * + * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * */ public Builder addAllModelCreatedExamples( java.lang.Iterable values) { if (modelCreatedExamplesBuilder_ == null) { ensureModelCreatedExamplesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, modelCreatedExamples_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, modelCreatedExamples_); onChanged(); } else { modelCreatedExamplesBuilder_.addAllMessages(values); @@ -1113,11 +1333,14 @@ public Builder addAllModelCreatedExamples( return this; } /** + * + * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * */ public Builder clearModelCreatedExamples() { if (modelCreatedExamplesBuilder_ == null) { @@ -1130,11 +1353,14 @@ public Builder clearModelCreatedExamples() { return this; } /** + * + * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * */ public Builder removeModelCreatedExamples(int index) { if (modelCreatedExamplesBuilder_ == null) { @@ -1147,39 +1373,49 @@ public Builder removeModelCreatedExamples(int index) { return this; } /** + * + * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * */ public com.google.cloud.datalabeling.v1beta1.Example.Builder getModelCreatedExamplesBuilder( int index) { return getModelCreatedExamplesFieldBuilder().getBuilder(index); } /** + * + * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * */ - public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getModelCreatedExamplesOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder + getModelCreatedExamplesOrBuilder(int index) { if (modelCreatedExamplesBuilder_ == null) { - return modelCreatedExamples_.get(index); } else { + return modelCreatedExamples_.get(index); + } else { return modelCreatedExamplesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * */ - public java.util.List - getModelCreatedExamplesOrBuilderList() { + public java.util.List + getModelCreatedExamplesOrBuilderList() { if (modelCreatedExamplesBuilder_ != null) { return modelCreatedExamplesBuilder_.getMessageOrBuilderList(); } else { @@ -1187,45 +1423,61 @@ public com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder getModelCreatedExa } } /** + * + * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * */ - public com.google.cloud.datalabeling.v1beta1.Example.Builder addModelCreatedExamplesBuilder() { - return getModelCreatedExamplesFieldBuilder().addBuilder( - com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.Example.Builder + addModelCreatedExamplesBuilder() { + return getModelCreatedExamplesFieldBuilder() + .addBuilder(com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance()); } /** + * + * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * */ public com.google.cloud.datalabeling.v1beta1.Example.Builder addModelCreatedExamplesBuilder( int index) { - return getModelCreatedExamplesFieldBuilder().addBuilder( - index, com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance()); + return getModelCreatedExamplesFieldBuilder() + .addBuilder(index, com.google.cloud.datalabeling.v1beta1.Example.getDefaultInstance()); } /** + * + * *
        * Predictions by the model for the input.
        * 
* - * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * repeated .google.cloud.datalabeling.v1beta1.Example model_created_examples = 2; + * */ - public java.util.List - getModelCreatedExamplesBuilderList() { + public java.util.List + getModelCreatedExamplesBuilderList() { return getModelCreatedExamplesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Example, com.google.cloud.datalabeling.v1beta1.Example.Builder, com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> + com.google.cloud.datalabeling.v1beta1.Example, + com.google.cloud.datalabeling.v1beta1.Example.Builder, + com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder> getModelCreatedExamplesFieldBuilder() { if (modelCreatedExamplesBuilder_ == null) { - modelCreatedExamplesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.Example, com.google.cloud.datalabeling.v1beta1.Example.Builder, com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder>( + modelCreatedExamplesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.Example, + com.google.cloud.datalabeling.v1beta1.Example.Builder, + com.google.cloud.datalabeling.v1beta1.ExampleOrBuilder>( modelCreatedExamples_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1234,6 +1486,7 @@ public com.google.cloud.datalabeling.v1beta1.Example.Builder addModelCreatedExam } return modelCreatedExamplesBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1246,30 +1499,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison) - private static final com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison(); + DEFAULT_INSTANCE = + new com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison(); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExampleComparison parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ExampleComparison(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExampleComparison parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExampleComparison(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1281,80 +1540,112 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int EXAMPLE_COMPARISONS_FIELD_NUMBER = 1; - private java.util.List exampleComparisons_; + private java.util.List< + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison> + exampleComparisons_; /** + * + * *
    * A list of example comparisons matching the search criteria.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * */ @java.lang.Override - public java.util.List getExampleComparisonsList() { + public java.util.List< + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison> + getExampleComparisonsList() { return exampleComparisons_; } /** + * + * *
    * A list of example comparisons matching the search criteria.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparisonOrBuilder> getExampleComparisonsOrBuilderList() { return exampleComparisons_; } /** + * + * *
    * A list of example comparisons matching the search criteria.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * */ @java.lang.Override public int getExampleComparisonsCount() { return exampleComparisons_.size(); } /** + * + * *
    * A list of example comparisons matching the search criteria.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison getExampleComparisons(int index) { + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison + getExampleComparisons(int index) { return exampleComparisons_.get(index); } /** + * + * *
    * A list of example comparisons matching the search criteria.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparisonOrBuilder getExampleComparisonsOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparisonOrBuilder + getExampleComparisonsOrBuilder(int index) { return exampleComparisons_.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.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -1363,29 +1654,29 @@ 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.
    * 
* * 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 { @@ -1394,6 +1685,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1405,8 +1697,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 < exampleComparisons_.size(); i++) { output.writeMessage(1, exampleComparisons_.get(i)); } @@ -1423,8 +1714,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < exampleComparisons_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, exampleComparisons_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, exampleComparisons_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -1437,17 +1728,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.datalabeling.v1beta1.SearchExampleComparisonsResponse)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse other = (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) obj; + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse other = + (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) obj; - if (!getExampleComparisonsList() - .equals(other.getExampleComparisonsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getExampleComparisonsList().equals(other.getExampleComparisonsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1471,135 +1761,147 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse 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.datalabeling.v1beta1.SearchExampleComparisonsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse 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.datalabeling.v1beta1.SearchExampleComparisonsResponse + 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.datalabeling.v1beta1.SearchExampleComparisonsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Results of searching example comparisons.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.class, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.Builder.class); + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.class, + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.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) { getExampleComparisonsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -1615,19 +1917,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SearchExampleComparisonsResponse_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse build() { - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse result = buildPartial(); + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1636,7 +1941,8 @@ public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse bu @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse buildPartial() { - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse result = new com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse(this); + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse result = + new com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse(this); int from_bitField0_ = bitField0_; if (exampleComparisonsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -1656,46 +1962,51 @@ public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse 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.datalabeling.v1beta1.SearchExampleComparisonsResponse) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse)other); + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse other) { - if (other == com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse other) { + if (other + == com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .getDefaultInstance()) return this; if (exampleComparisonsBuilder_ == null) { if (!other.exampleComparisons_.isEmpty()) { if (exampleComparisons_.isEmpty()) { @@ -1714,9 +2025,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.SearchExampleComp exampleComparisonsBuilder_ = null; exampleComparisons_ = other.exampleComparisons_; bitField0_ = (bitField0_ & ~0x00000001); - exampleComparisonsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExampleComparisonsFieldBuilder() : null; + exampleComparisonsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExampleComparisonsFieldBuilder() + : null; } else { exampleComparisonsBuilder_.addAllMessages(other.exampleComparisons_); } @@ -1745,7 +2057,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1754,28 +2068,48 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private java.util.List exampleComparisons_ = - java.util.Collections.emptyList(); + private java.util.List< + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison> + exampleComparisons_ = java.util.Collections.emptyList(); + private void ensureExampleComparisonsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - exampleComparisons_ = new java.util.ArrayList(exampleComparisons_); + exampleComparisons_ = + new java.util.ArrayList< + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison>(exampleComparisons_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.Builder, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparisonOrBuilder> exampleComparisonsBuilder_; + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison, + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison + .Builder, + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparisonOrBuilder> + exampleComparisonsBuilder_; /** + * + * *
      * A list of example comparisons matching the search criteria.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * */ - public java.util.List getExampleComparisonsList() { + public java.util.List< + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison> + getExampleComparisonsList() { if (exampleComparisonsBuilder_ == null) { return java.util.Collections.unmodifiableList(exampleComparisons_); } else { @@ -1783,11 +2117,15 @@ public java.util.List * A list of example comparisons matching the search criteria. *
* - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * */ public int getExampleComparisonsCount() { if (exampleComparisonsBuilder_ == null) { @@ -1797,13 +2135,18 @@ public int getExampleComparisonsCount() { } } /** + * + * *
      * A list of example comparisons matching the search criteria.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison getExampleComparisons(int index) { + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison + getExampleComparisons(int index) { if (exampleComparisonsBuilder_ == null) { return exampleComparisons_.get(index); } else { @@ -1811,14 +2154,20 @@ public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.Ex } } /** + * + * *
      * A list of example comparisons matching the search criteria.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * */ public Builder setExampleComparisons( - int index, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison value) { + int index, + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison + value) { if (exampleComparisonsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1832,14 +2181,21 @@ public Builder setExampleComparisons( return this; } /** + * + * *
      * A list of example comparisons matching the search criteria.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * */ public Builder setExampleComparisons( - int index, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.Builder builderForValue) { + int index, + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison + .Builder + builderForValue) { if (exampleComparisonsBuilder_ == null) { ensureExampleComparisonsIsMutable(); exampleComparisons_.set(index, builderForValue.build()); @@ -1850,13 +2206,19 @@ public Builder setExampleComparisons( return this; } /** + * + * *
      * A list of example comparisons matching the search criteria.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * */ - public Builder addExampleComparisons(com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison value) { + public Builder addExampleComparisons( + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison + value) { if (exampleComparisonsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1870,14 +2232,20 @@ public Builder addExampleComparisons(com.google.cloud.datalabeling.v1beta1.Searc return this; } /** + * + * *
      * A list of example comparisons matching the search criteria.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * */ public Builder addExampleComparisons( - int index, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison value) { + int index, + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison + value) { if (exampleComparisonsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1891,14 +2259,20 @@ public Builder addExampleComparisons( return this; } /** + * + * *
      * A list of example comparisons matching the search criteria.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * */ public Builder addExampleComparisons( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.Builder builderForValue) { + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison + .Builder + builderForValue) { if (exampleComparisonsBuilder_ == null) { ensureExampleComparisonsIsMutable(); exampleComparisons_.add(builderForValue.build()); @@ -1909,14 +2283,21 @@ public Builder addExampleComparisons( return this; } /** + * + * *
      * A list of example comparisons matching the search criteria.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * */ public Builder addExampleComparisons( - int index, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.Builder builderForValue) { + int index, + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison + .Builder + builderForValue) { if (exampleComparisonsBuilder_ == null) { ensureExampleComparisonsIsMutable(); exampleComparisons_.add(index, builderForValue.build()); @@ -1927,18 +2308,25 @@ public Builder addExampleComparisons( return this; } /** + * + * *
      * A list of example comparisons matching the search criteria.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * */ public Builder addAllExampleComparisons( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison> + values) { if (exampleComparisonsBuilder_ == null) { ensureExampleComparisonsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, exampleComparisons_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exampleComparisons_); onChanged(); } else { exampleComparisonsBuilder_.addAllMessages(values); @@ -1946,11 +2334,15 @@ public Builder addAllExampleComparisons( return this; } /** + * + * *
      * A list of example comparisons matching the search criteria.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * */ public Builder clearExampleComparisons() { if (exampleComparisonsBuilder_ == null) { @@ -1963,11 +2355,15 @@ public Builder clearExampleComparisons() { return this; } /** + * + * *
      * A list of example comparisons matching the search criteria.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * */ public Builder removeExampleComparisons(int index) { if (exampleComparisonsBuilder_ == null) { @@ -1980,39 +2376,57 @@ public Builder removeExampleComparisons(int index) { return this; } /** + * + * *
      * A list of example comparisons matching the search criteria.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.Builder getExampleComparisonsBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison + .Builder + getExampleComparisonsBuilder(int index) { return getExampleComparisonsFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of example comparisons matching the search criteria.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparisonOrBuilder getExampleComparisonsOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparisonOrBuilder + getExampleComparisonsOrBuilder(int index) { if (exampleComparisonsBuilder_ == null) { - return exampleComparisons_.get(index); } else { + return exampleComparisons_.get(index); + } else { return exampleComparisonsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of example comparisons matching the search criteria.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * */ - public java.util.List - getExampleComparisonsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparisonOrBuilder> + getExampleComparisonsOrBuilderList() { if (exampleComparisonsBuilder_ != null) { return exampleComparisonsBuilder_.getMessageOrBuilderList(); } else { @@ -2020,45 +2434,79 @@ public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.Ex } } /** + * + * *
      * A list of example comparisons matching the search criteria.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.Builder addExampleComparisonsBuilder() { - return getExampleComparisonsFieldBuilder().addBuilder( - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison + .Builder + addExampleComparisonsBuilder() { + return getExampleComparisonsFieldBuilder() + .addBuilder( + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison.getDefaultInstance()); } /** + * + * *
      * A list of example comparisons matching the search criteria.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * */ - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.Builder addExampleComparisonsBuilder( - int index) { - return getExampleComparisonsFieldBuilder().addBuilder( - index, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison + .Builder + addExampleComparisonsBuilder(int index) { + return getExampleComparisonsFieldBuilder() + .addBuilder( + index, + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison.getDefaultInstance()); } /** + * + * *
      * A list of example comparisons matching the search criteria.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * */ - public java.util.List - getExampleComparisonsBuilderList() { + public java.util.List< + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison + .Builder> + getExampleComparisonsBuilderList() { return getExampleComparisonsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.Builder, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparisonOrBuilder> + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison, + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison + .Builder, + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparisonOrBuilder> getExampleComparisonsFieldBuilder() { if (exampleComparisonsBuilder_ == null) { - exampleComparisonsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison.Builder, com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparisonOrBuilder>( + exampleComparisonsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison, + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparison.Builder, + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparisonOrBuilder>( exampleComparisons_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -2070,18 +2518,20 @@ public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.Ex private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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; @@ -2090,20 +2540,21 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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 { @@ -2111,61 +2562,68 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token to retrieve next page of results.
      * 
* * 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.
      * 
* * 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.
      * 
* * 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); } @@ -2175,30 +2633,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) - private static final com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse(); } - public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchExampleComparisonsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SearchExampleComparisonsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchExampleComparisonsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchExampleComparisonsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2210,9 +2670,8 @@ public com.google.protobuf.Parser getParserFor } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponseOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponseOrBuilder.java new file mode 100644 index 00000000..fe596ebc --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SearchExampleComparisonsResponseOrBuilder.java @@ -0,0 +1,119 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface SearchExampleComparisonsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of example comparisons matching the search criteria.
+   * 
+ * + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + */ + java.util.List< + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison> + getExampleComparisonsList(); + /** + * + * + *
+   * A list of example comparisons matching the search criteria.
+   * 
+ * + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + */ + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison + getExampleComparisons(int index); + /** + * + * + *
+   * A list of example comparisons matching the search criteria.
+   * 
+ * + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + */ + int getExampleComparisonsCount(); + /** + * + * + *
+   * A list of example comparisons matching the search criteria.
+   * 
+ * + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse + .ExampleComparisonOrBuilder> + getExampleComparisonsOrBuilderList(); + /** + * + * + *
+   * A list of example comparisons matching the search criteria.
+   * 
+ * + * + * repeated .google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparison example_comparisons = 1; + * + */ + com.google.cloud.datalabeling.v1beta1.SearchExampleComparisonsResponse.ExampleComparisonOrBuilder + getExampleComparisonsOrBuilder(int index); + + /** + * + * + *
+   * A token to retrieve next page of results.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token to retrieve next page of results.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfig.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfig.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfig.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfig.java index aac78ef1..28e41ac3 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfig.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Config for image segmentation
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SegmentationConfig} */ -public final class SegmentationConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SegmentationConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.SegmentationConfig) SegmentationConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SegmentationConfig.newBuilder() to construct. private SegmentationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SegmentationConfig() { annotationSpecSet_ = ""; instructionMessage_ = ""; @@ -26,16 +44,15 @@ private SegmentationConfig() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SegmentationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SegmentationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,25 +71,27 @@ private SegmentationConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - annotationSpecSet_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + annotationSpecSet_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - instructionMessage_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + instructionMessage_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -80,35 +99,40 @@ private SegmentationConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SegmentationConfig.class, com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.SegmentationConfig.class, + com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder.class); } public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER = 1; private volatile java.lang.Object annotationSpecSet_; /** + * + * *
    * Required. Annotation spec set resource name. format:
    * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ @java.lang.Override @@ -117,30 +141,30 @@ public java.lang.String getAnnotationSpecSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; } } /** + * + * *
    * Required. Annotation spec set resource name. format:
    * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ @java.lang.Override - public com.google.protobuf.ByteString - getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -151,11 +175,14 @@ public java.lang.String getAnnotationSpecSet() { public static final int INSTRUCTION_MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object instructionMessage_; /** + * + * *
    * Instruction message showed on labelers UI.
    * 
* * string instruction_message = 2; + * * @return The instructionMessage. */ @java.lang.Override @@ -164,29 +191,29 @@ public java.lang.String getInstructionMessage() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instructionMessage_ = s; return s; } } /** + * + * *
    * Instruction message showed on labelers UI.
    * 
* * string instruction_message = 2; + * * @return The bytes for instructionMessage. */ @java.lang.Override - public com.google.protobuf.ByteString - getInstructionMessageBytes() { + public com.google.protobuf.ByteString getInstructionMessageBytes() { java.lang.Object ref = instructionMessage_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instructionMessage_ = b; return b; } else { @@ -195,6 +222,7 @@ public java.lang.String getInstructionMessage() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -206,8 +234,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(annotationSpecSet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecSet_); } @@ -237,17 +264,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.datalabeling.v1beta1.SegmentationConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.SegmentationConfig other = (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) obj; + com.google.cloud.datalabeling.v1beta1.SegmentationConfig other = + (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) obj; - if (!getAnnotationSpecSet() - .equals(other.getAnnotationSpecSet())) return false; - if (!getInstructionMessage() - .equals(other.getInstructionMessage())) return false; + if (!getAnnotationSpecSet().equals(other.getAnnotationSpecSet())) return false; + if (!getInstructionMessage().equals(other.getInstructionMessage())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -269,117 +295,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig 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.datalabeling.v1beta1.SegmentationConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.SegmentationConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.SegmentationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Config for image segmentation
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SegmentationConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.SegmentationConfig) com.google.cloud.datalabeling.v1beta1.SegmentationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SegmentationConfig.class, com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.SegmentationConfig.class, + com.google.cloud.datalabeling.v1beta1.SegmentationConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.SegmentationConfig.newBuilder() @@ -387,16 +423,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(); @@ -408,9 +443,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SegmentationConfig_descriptor; } @java.lang.Override @@ -429,7 +464,8 @@ public com.google.cloud.datalabeling.v1beta1.SegmentationConfig build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SegmentationConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.SegmentationConfig result = new com.google.cloud.datalabeling.v1beta1.SegmentationConfig(this); + com.google.cloud.datalabeling.v1beta1.SegmentationConfig result = + new com.google.cloud.datalabeling.v1beta1.SegmentationConfig(this); result.annotationSpecSet_ = annotationSpecSet_; result.instructionMessage_ = instructionMessage_; onBuilt(); @@ -440,38 +476,39 @@ public com.google.cloud.datalabeling.v1beta1.SegmentationConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.SegmentationConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.SegmentationConfig)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.SegmentationConfig) other); } else { super.mergeFrom(other); return this; @@ -479,7 +516,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.SegmentationConfig other) { - if (other == com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.SegmentationConfig.getDefaultInstance()) + return this; if (!other.getAnnotationSpecSet().isEmpty()) { annotationSpecSet_ = other.annotationSpecSet_; onChanged(); @@ -507,7 +545,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.SegmentationConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -519,19 +558,21 @@ public Builder mergeFrom( private java.lang.Object annotationSpecSet_ = ""; /** + * + * *
      * Required. Annotation spec set resource name. format:
      * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ public java.lang.String getAnnotationSpecSet() { java.lang.Object ref = annotationSpecSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; @@ -540,21 +581,22 @@ public java.lang.String getAnnotationSpecSet() { } } /** + * + * *
      * Required. Annotation spec set resource name. format:
      * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ - public com.google.protobuf.ByteString - getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -562,57 +604,64 @@ public java.lang.String getAnnotationSpecSet() { } } /** + * + * *
      * Required. Annotation spec set resource name. format:
      * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSet( - java.lang.String value) { + public Builder setAnnotationSpecSet(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecSet_ = value; onChanged(); return this; } /** + * + * *
      * Required. Annotation spec set resource name. format:
      * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAnnotationSpecSet() { - + annotationSpecSet_ = getDefaultInstance().getAnnotationSpecSet(); onChanged(); return this; } /** + * + * *
      * Required. Annotation spec set resource name. format:
      * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSetBytes( - com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecSet_ = value; onChanged(); return this; @@ -620,18 +669,20 @@ public Builder setAnnotationSpecSetBytes( private java.lang.Object instructionMessage_ = ""; /** + * + * *
      * Instruction message showed on labelers UI.
      * 
* * string instruction_message = 2; + * * @return The instructionMessage. */ public java.lang.String getInstructionMessage() { java.lang.Object ref = instructionMessage_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); instructionMessage_ = s; return s; @@ -640,20 +691,21 @@ public java.lang.String getInstructionMessage() { } } /** + * + * *
      * Instruction message showed on labelers UI.
      * 
* * string instruction_message = 2; + * * @return The bytes for instructionMessage. */ - public com.google.protobuf.ByteString - getInstructionMessageBytes() { + public com.google.protobuf.ByteString getInstructionMessageBytes() { java.lang.Object ref = instructionMessage_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); instructionMessage_ = b; return b; } else { @@ -661,61 +713,68 @@ public java.lang.String getInstructionMessage() { } } /** + * + * *
      * Instruction message showed on labelers UI.
      * 
* * string instruction_message = 2; + * * @param value The instructionMessage to set. * @return This builder for chaining. */ - public Builder setInstructionMessage( - java.lang.String value) { + public Builder setInstructionMessage(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + instructionMessage_ = value; onChanged(); return this; } /** + * + * *
      * Instruction message showed on labelers UI.
      * 
* * string instruction_message = 2; + * * @return This builder for chaining. */ public Builder clearInstructionMessage() { - + instructionMessage_ = getDefaultInstance().getInstructionMessage(); onChanged(); return this; } /** + * + * *
      * Instruction message showed on labelers UI.
      * 
* * string instruction_message = 2; + * * @param value The bytes for instructionMessage to set. * @return This builder for chaining. */ - public Builder setInstructionMessageBytes( - com.google.protobuf.ByteString value) { + public Builder setInstructionMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instructionMessage_ = 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); } @@ -725,12 +784,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.SegmentationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SegmentationConfig) private static final com.google.cloud.datalabeling.v1beta1.SegmentationConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.SegmentationConfig(); } @@ -739,16 +798,16 @@ public static com.google.cloud.datalabeling.v1beta1.SegmentationConfig getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SegmentationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SegmentationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SegmentationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SegmentationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -763,6 +822,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.SegmentationConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfigOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfigOrBuilder.java similarity index 62% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfigOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfigOrBuilder.java index 9b996334..ce49e331 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfigOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SegmentationConfigOrBuilder.java @@ -1,51 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface SegmentationConfigOrBuilder extends +public interface SegmentationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.SegmentationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Annotation spec set resource name. format:
    * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ java.lang.String getAnnotationSpecSet(); /** + * + * *
    * Required. Annotation spec set resource name. format:
    * projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ - com.google.protobuf.ByteString - getAnnotationSpecSetBytes(); + com.google.protobuf.ByteString getAnnotationSpecSetBytes(); /** + * + * *
    * Instruction message showed on labelers UI.
    * 
* * string instruction_message = 2; + * * @return The instructionMessage. */ java.lang.String getInstructionMessage(); /** + * + * *
    * Instruction message showed on labelers UI.
    * 
* * string instruction_message = 2; + * * @return The bytes for instructionMessage. */ - com.google.protobuf.ByteString - getInstructionMessageBytes(); + com.google.protobuf.ByteString getInstructionMessageBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfig.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfig.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfig.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfig.java index d72b6f52..25fc69f7 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfig.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Config for setting up sentiments.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SentimentConfig} */ -public final class SentimentConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SentimentConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.SentimentConfig) SentimentConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SentimentConfig.newBuilder() to construct. private SentimentConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SentimentConfig() { - } + + private SentimentConfig() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SentimentConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SentimentConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,18 +68,18 @@ private SentimentConfig( case 0: done = true; break; - case 8: { - - enableLabelSentimentSelection_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + enableLabelSentimentSelection_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -71,29 +87,33 @@ private SentimentConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SentimentConfig.class, com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.SentimentConfig.class, + com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder.class); } public static final int ENABLE_LABEL_SENTIMENT_SELECTION_FIELD_NUMBER = 1; private boolean enableLabelSentimentSelection_; /** + * + * *
    * If set to true, contributors will have the option to select sentiment of
    * the label they selected, to mark it as negative or positive label. Default
@@ -101,6 +121,7 @@ private SentimentConfig(
    * 
* * bool enable_label_sentiment_selection = 1; + * * @return The enableLabelSentimentSelection. */ @java.lang.Override @@ -109,6 +130,7 @@ public boolean getEnableLabelSentimentSelection() { } 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 (enableLabelSentimentSelection_ != false) { output.writeBool(1, enableLabelSentimentSelection_); } @@ -135,8 +156,8 @@ public int getSerializedSize() { size = 0; if (enableLabelSentimentSelection_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, enableLabelSentimentSelection_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableLabelSentimentSelection_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -146,15 +167,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.datalabeling.v1beta1.SentimentConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.SentimentConfig other = (com.google.cloud.datalabeling.v1beta1.SentimentConfig) obj; + com.google.cloud.datalabeling.v1beta1.SentimentConfig other = + (com.google.cloud.datalabeling.v1beta1.SentimentConfig) obj; - if (getEnableLabelSentimentSelection() - != other.getEnableLabelSentimentSelection()) return false; + if (getEnableLabelSentimentSelection() != other.getEnableLabelSentimentSelection()) + return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -167,125 +189,135 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ENABLE_LABEL_SENTIMENT_SELECTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEnableLabelSentimentSelection()); + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableLabelSentimentSelection()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datalabeling.v1beta1.SentimentConfig 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.datalabeling.v1beta1.SentimentConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.SentimentConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.SentimentConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.SentimentConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Config for setting up sentiments.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SentimentConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.SentimentConfig) com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SentimentConfig.class, com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.SentimentConfig.class, + com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.SentimentConfig.newBuilder() @@ -293,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(); @@ -312,9 +343,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SentimentConfig_descriptor; } @java.lang.Override @@ -333,7 +364,8 @@ public com.google.cloud.datalabeling.v1beta1.SentimentConfig build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SentimentConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.SentimentConfig result = new com.google.cloud.datalabeling.v1beta1.SentimentConfig(this); + com.google.cloud.datalabeling.v1beta1.SentimentConfig result = + new com.google.cloud.datalabeling.v1beta1.SentimentConfig(this); result.enableLabelSentimentSelection_ = enableLabelSentimentSelection_; onBuilt(); return result; @@ -343,38 +375,39 @@ public com.google.cloud.datalabeling.v1beta1.SentimentConfig buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.SentimentConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.SentimentConfig)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.SentimentConfig) other); } else { super.mergeFrom(other); return this; @@ -382,7 +415,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.SentimentConfig other) { - if (other == com.google.cloud.datalabeling.v1beta1.SentimentConfig.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.SentimentConfig.getDefaultInstance()) + return this; if (other.getEnableLabelSentimentSelection() != false) { setEnableLabelSentimentSelection(other.getEnableLabelSentimentSelection()); } @@ -405,7 +439,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.SentimentConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.SentimentConfig) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -415,8 +450,10 @@ public Builder mergeFrom( return this; } - private boolean enableLabelSentimentSelection_ ; + private boolean enableLabelSentimentSelection_; /** + * + * *
      * If set to true, contributors will have the option to select sentiment of
      * the label they selected, to mark it as negative or positive label. Default
@@ -424,6 +461,7 @@ public Builder mergeFrom(
      * 
* * bool enable_label_sentiment_selection = 1; + * * @return The enableLabelSentimentSelection. */ @java.lang.Override @@ -431,6 +469,8 @@ public boolean getEnableLabelSentimentSelection() { return enableLabelSentimentSelection_; } /** + * + * *
      * If set to true, contributors will have the option to select sentiment of
      * the label they selected, to mark it as negative or positive label. Default
@@ -438,16 +478,19 @@ public boolean getEnableLabelSentimentSelection() {
      * 
* * bool enable_label_sentiment_selection = 1; + * * @param value The enableLabelSentimentSelection to set. * @return This builder for chaining. */ public Builder setEnableLabelSentimentSelection(boolean value) { - + enableLabelSentimentSelection_ = value; onChanged(); return this; } /** + * + * *
      * If set to true, contributors will have the option to select sentiment of
      * the label they selected, to mark it as negative or positive label. Default
@@ -455,17 +498,18 @@ public Builder setEnableLabelSentimentSelection(boolean value) {
      * 
* * bool enable_label_sentiment_selection = 1; + * * @return This builder for chaining. */ public Builder clearEnableLabelSentimentSelection() { - + enableLabelSentimentSelection_ = 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); } @@ -475,12 +519,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.SentimentConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SentimentConfig) private static final com.google.cloud.datalabeling.v1beta1.SentimentConfig DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.SentimentConfig(); } @@ -489,16 +533,16 @@ public static com.google.cloud.datalabeling.v1beta1.SentimentConfig getDefaultIn return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SentimentConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SentimentConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SentimentConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SentimentConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -513,6 +557,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.SentimentConfig getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfigOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfigOrBuilder.java similarity index 51% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfigOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfigOrBuilder.java index 9a6cfb23..0059268a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfigOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SentimentConfigOrBuilder.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface SentimentConfigOrBuilder extends +public interface SentimentConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.SentimentConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If set to true, contributors will have the option to select sentiment of
    * the label they selected, to mark it as negative or positive label. Default
@@ -15,6 +33,7 @@ public interface SentimentConfigOrBuilder extends
    * 
* * bool enable_label_sentiment_selection = 1; + * * @return The enableLabelSentimentSelection. */ boolean getEnableLabelSentimentSelection(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegment.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegment.java similarity index 69% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegment.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegment.java index 8609c1cc..d621e828 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegment.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegment.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Start and end position in a sequence (e.g. text segment).
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SequentialSegment} */ -public final class SequentialSegment extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SequentialSegment extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.SequentialSegment) SequentialSegmentOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SequentialSegment.newBuilder() to construct. private SequentialSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SequentialSegment() { - } + + private SequentialSegment() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SequentialSegment(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SequentialSegment( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,23 +68,23 @@ private SequentialSegment( case 0: done = true; break; - case 8: { - - start_ = input.readInt32(); - break; - } - case 16: { - - end_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 8: + { + start_ = input.readInt32(); + break; + } + case 16: + { + end_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -76,34 +92,39 @@ private SequentialSegment( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SequentialSegment.class, com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder.class); + com.google.cloud.datalabeling.v1beta1.SequentialSegment.class, + com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder.class); } public static final int START_FIELD_NUMBER = 1; private int start_; /** + * + * *
    * Start position (inclusive).
    * 
* * int32 start = 1; + * * @return The start. */ @java.lang.Override @@ -114,11 +135,14 @@ public int getStart() { public static final int END_FIELD_NUMBER = 2; private int end_; /** + * + * *
    * End position (exclusive).
    * 
* * int32 end = 2; + * * @return The end. */ @java.lang.Override @@ -127,6 +151,7 @@ public int getEnd() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -138,8 +163,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_ != 0) { output.writeInt32(1, start_); } @@ -156,12 +180,10 @@ public int getSerializedSize() { size = 0; if (start_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, start_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, start_); } if (end_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, end_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, end_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -171,17 +193,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.datalabeling.v1beta1.SequentialSegment)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.SequentialSegment other = (com.google.cloud.datalabeling.v1beta1.SequentialSegment) obj; + com.google.cloud.datalabeling.v1beta1.SequentialSegment other = + (com.google.cloud.datalabeling.v1beta1.SequentialSegment) obj; - if (getStart() - != other.getStart()) return false; - if (getEnd() - != other.getEnd()) return false; + if (getStart() != other.getStart()) return false; + if (getEnd() != other.getEnd()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -203,117 +224,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.SequentialSegment 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.datalabeling.v1beta1.SequentialSegment parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.SequentialSegment parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.SequentialSegment prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.SequentialSegment prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Start and end position in a sequence (e.g. text segment).
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.SequentialSegment} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.SequentialSegment) com.google.cloud.datalabeling.v1beta1.SequentialSegmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.SequentialSegment.class, com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder.class); + com.google.cloud.datalabeling.v1beta1.SequentialSegment.class, + com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.SequentialSegment.newBuilder() @@ -321,16 +352,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(); @@ -342,9 +372,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_SequentialSegment_descriptor; } @java.lang.Override @@ -363,7 +393,8 @@ public com.google.cloud.datalabeling.v1beta1.SequentialSegment build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SequentialSegment buildPartial() { - com.google.cloud.datalabeling.v1beta1.SequentialSegment result = new com.google.cloud.datalabeling.v1beta1.SequentialSegment(this); + com.google.cloud.datalabeling.v1beta1.SequentialSegment result = + new com.google.cloud.datalabeling.v1beta1.SequentialSegment(this); result.start_ = start_; result.end_ = end_; onBuilt(); @@ -374,38 +405,39 @@ public com.google.cloud.datalabeling.v1beta1.SequentialSegment buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.SequentialSegment) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.SequentialSegment)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.SequentialSegment) other); } else { super.mergeFrom(other); return this; @@ -413,7 +445,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.SequentialSegment other) { - if (other == com.google.cloud.datalabeling.v1beta1.SequentialSegment.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.SequentialSegment.getDefaultInstance()) + return this; if (other.getStart() != 0) { setStart(other.getStart()); } @@ -439,7 +472,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.SequentialSegment) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.SequentialSegment) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -449,13 +483,16 @@ public Builder mergeFrom( return this; } - private int start_ ; + private int start_; /** + * + * *
      * Start position (inclusive).
      * 
* * int32 start = 1; + * * @return The start. */ @java.lang.Override @@ -463,42 +500,51 @@ public int getStart() { return start_; } /** + * + * *
      * Start position (inclusive).
      * 
* * int32 start = 1; + * * @param value The start to set. * @return This builder for chaining. */ public Builder setStart(int value) { - + start_ = value; onChanged(); return this; } /** + * + * *
      * Start position (inclusive).
      * 
* * int32 start = 1; + * * @return This builder for chaining. */ public Builder clearStart() { - + start_ = 0; onChanged(); return this; } - private int end_ ; + private int end_; /** + * + * *
      * End position (exclusive).
      * 
* * int32 end = 2; + * * @return The end. */ @java.lang.Override @@ -506,37 +552,43 @@ public int getEnd() { return end_; } /** + * + * *
      * End position (exclusive).
      * 
* * int32 end = 2; + * * @param value The end to set. * @return This builder for chaining. */ public Builder setEnd(int value) { - + end_ = value; onChanged(); return this; } /** + * + * *
      * End position (exclusive).
      * 
* * int32 end = 2; + * * @return This builder for chaining. */ public Builder clearEnd() { - + end_ = 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); } @@ -546,12 +598,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.SequentialSegment) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.SequentialSegment) private static final com.google.cloud.datalabeling.v1beta1.SequentialSegment DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.SequentialSegment(); } @@ -560,16 +612,16 @@ public static com.google.cloud.datalabeling.v1beta1.SequentialSegment getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SequentialSegment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SequentialSegment(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SequentialSegment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SequentialSegment(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -584,6 +636,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.SequentialSegment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegmentOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegmentOrBuilder.java new file mode 100644 index 00000000..4b6e4cd2 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/SequentialSegmentOrBuilder.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/datalabeling/v1beta1/annotation.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface SequentialSegmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.SequentialSegment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Start position (inclusive).
+   * 
+ * + * int32 start = 1; + * + * @return The start. + */ + int getStart(); + + /** + * + * + *
+   * End position (exclusive).
+   * 
+ * + * int32 end = 2; + * + * @return The end. + */ + int getEnd(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/StringAggregationType.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/StringAggregationType.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/StringAggregationType.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/StringAggregationType.java index e40d3fb3..c5e1907f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/StringAggregationType.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/StringAggregationType.java @@ -1,18 +1,30 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -/** - * Protobuf enum {@code google.cloud.datalabeling.v1beta1.StringAggregationType} - */ -public enum StringAggregationType - implements com.google.protobuf.ProtocolMessageEnum { - /** - * STRING_AGGREGATION_TYPE_UNSPECIFIED = 0; - */ +/** Protobuf enum {@code google.cloud.datalabeling.v1beta1.StringAggregationType} */ +public enum StringAggregationType implements com.google.protobuf.ProtocolMessageEnum { + /** STRING_AGGREGATION_TYPE_UNSPECIFIED = 0; */ STRING_AGGREGATION_TYPE_UNSPECIFIED(0), /** + * + * *
    * Majority vote to aggregate answers.
    * 
@@ -21,6 +33,8 @@ public enum StringAggregationType */ MAJORITY_VOTE(1), /** + * + * *
    * Unanimous answers will be adopted.
    * 
@@ -29,6 +43,8 @@ public enum StringAggregationType */ UNANIMOUS_VOTE(2), /** + * + * *
    * Preserve all answers by crowd compute.
    * 
@@ -39,11 +55,11 @@ public enum StringAggregationType UNRECOGNIZED(-1), ; - /** - * STRING_AGGREGATION_TYPE_UNSPECIFIED = 0; - */ + /** STRING_AGGREGATION_TYPE_UNSPECIFIED = 0; */ public static final int STRING_AGGREGATION_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Majority vote to aggregate answers.
    * 
@@ -52,6 +68,8 @@ public enum StringAggregationType */ public static final int MAJORITY_VOTE_VALUE = 1; /** + * + * *
    * Unanimous answers will be adopted.
    * 
@@ -60,6 +78,8 @@ public enum StringAggregationType */ public static final int UNANIMOUS_VOTE_VALUE = 2; /** + * + * *
    * Preserve all answers by crowd compute.
    * 
@@ -68,7 +88,6 @@ public enum StringAggregationType */ public static final int NO_AGGREGATION_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -93,11 +112,16 @@ public static StringAggregationType valueOf(int value) { */ public static StringAggregationType forNumber(int value) { switch (value) { - case 0: return STRING_AGGREGATION_TYPE_UNSPECIFIED; - case 1: return MAJORITY_VOTE; - case 2: return UNANIMOUS_VOTE; - case 3: return NO_AGGREGATION; - default: return null; + case 0: + return STRING_AGGREGATION_TYPE_UNSPECIFIED; + case 1: + return MAJORITY_VOTE; + case 2: + return UNANIMOUS_VOTE; + case 3: + return NO_AGGREGATION; + default: + return null; } } @@ -105,29 +129,31 @@ public static StringAggregationType forNumber(int value) { internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - StringAggregationType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public StringAggregationType findValueByNumber(int number) { - return StringAggregationType.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 StringAggregationType findValueByNumber(int number) { + return StringAggregationType.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.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.getDescriptor() + .getEnumTypes() + .get(0); } private static final StringAggregationType[] VALUES = values(); @@ -135,8 +161,7 @@ public StringAggregationType findValueByNumber(int number) { public static StringAggregationType 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; @@ -152,4 +177,3 @@ private StringAggregationType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.datalabeling.v1beta1.StringAggregationType) } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotation.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotation.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotation.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotation.java index 5b2e3c2b..1025a7ce 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotation.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotation.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Text classification annotation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextClassificationAnnotation} */ -public final class TextClassificationAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextClassificationAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) TextClassificationAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextClassificationAnnotation.newBuilder() to construct. private TextClassificationAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextClassificationAnnotation() { - } + + private TextClassificationAnnotation() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextClassificationAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextClassificationAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,26 +68,30 @@ private TextClassificationAnnotation( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; - if (annotationSpec_ != null) { - subBuilder = annotationSpec_.toBuilder(); + case 10: + { + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; + if (annotationSpec_ != null) { + subBuilder = annotationSpec_.toBuilder(); + } + annotationSpec_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotationSpec_); + annotationSpec_ = subBuilder.buildPartial(); + } + + break; } - annotationSpec_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotationSpec_); - annotationSpec_ = 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) { @@ -79,34 +99,39 @@ private TextClassificationAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.class, com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.class, + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder.class); } public static final int ANNOTATION_SPEC_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; /** + * + * *
    * Label of the text.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ @java.lang.Override @@ -114,18 +139,25 @@ public boolean hasAnnotationSpec() { return annotationSpec_ != null; } /** + * + * *
    * Label of the text.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { - return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } /** + * + * *
    * Label of the text.
    * 
@@ -133,11 +165,13 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder + getAnnotationSpecOrBuilder() { return getAnnotationSpec(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -149,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 (annotationSpec_ != null) { output.writeMessage(1, getAnnotationSpec()); } @@ -164,8 +197,7 @@ public int getSerializedSize() { size = 0; if (annotationSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAnnotationSpec()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnnotationSpec()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -175,17 +207,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.datalabeling.v1beta1.TextClassificationAnnotation)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation other = (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) obj; + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation other = + (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) obj; if (hasAnnotationSpec() != other.hasAnnotationSpec()) return false; if (hasAnnotationSpec()) { - if (!getAnnotationSpec() - .equals(other.getAnnotationSpec())) return false; + if (!getAnnotationSpec().equals(other.getAnnotationSpec())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -208,134 +240,145 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation 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.datalabeling.v1beta1.TextClassificationAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation 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.datalabeling.v1beta1.TextClassificationAnnotation + 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.datalabeling.v1beta1.TextClassificationAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Text classification annotation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextClassificationAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.class, com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.class, + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.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(); @@ -349,14 +392,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextClassificationAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation + .getDefaultInstance(); } @java.lang.Override @@ -370,7 +415,8 @@ public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation build( @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation buildPartial() { - com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation result = new com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation(this); + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation result = + new com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation(this); if (annotationSpecBuilder_ == null) { result.annotationSpec_ = annotationSpec_; } else { @@ -384,46 +430,51 @@ public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation 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.datalabeling.v1beta1.TextClassificationAnnotation) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation)other); + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation other) { - if (other == com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation other) { + if (other + == com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation + .getDefaultInstance()) return this; if (other.hasAnnotationSpec()) { mergeAnnotationSpec(other.getAnnotationSpec()); } @@ -446,7 +497,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -458,34 +511,47 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + annotationSpecBuilder_; /** + * + * *
      * Label of the text.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ public boolean hasAnnotationSpec() { return annotationSpecBuilder_ != null || annotationSpec_ != null; } /** + * + * *
      * Label of the text.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { if (annotationSpecBuilder_ == null) { - return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } else { return annotationSpecBuilder_.getMessage(); } } /** + * + * *
      * Label of the text.
      * 
@@ -506,6 +572,8 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio return this; } /** + * + * *
      * Label of the text.
      * 
@@ -524,6 +592,8 @@ public Builder setAnnotationSpec( return this; } /** + * + * *
      * Label of the text.
      * 
@@ -534,7 +604,9 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat if (annotationSpecBuilder_ == null) { if (annotationSpec_ != null) { annotationSpec_ = - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_) + .mergeFrom(value) + .buildPartial(); } else { annotationSpec_ = value; } @@ -546,6 +618,8 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat return this; } /** + * + * *
      * Label of the text.
      * 
@@ -564,6 +638,8 @@ public Builder clearAnnotationSpec() { return this; } /** + * + * *
      * Label of the text.
      * 
@@ -571,26 +647,32 @@ public Builder clearAnnotationSpec() { * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotationSpecBuilder() { - + onChanged(); return getAnnotationSpecFieldBuilder().getBuilder(); } /** + * + * *
      * Label of the text.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder + getAnnotationSpecOrBuilder() { if (annotationSpecBuilder_ != null) { return annotationSpecBuilder_.getMessageOrBuilder(); } else { - return annotationSpec_ == null ? - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } } /** + * + * *
      * Label of the text.
      * 
@@ -598,21 +680,24 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotati * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> getAnnotationSpecFieldBuilder() { if (annotationSpecBuilder_ == null) { - annotationSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( - getAnnotationSpec(), - getParentForChildren(), - isClean()); + annotationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( + getAnnotationSpec(), getParentForChildren(), isClean()); annotationSpec_ = null; } return annotationSpecBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -622,30 +707,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) - private static final com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation(); } - public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextClassificationAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextClassificationAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextClassificationAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextClassificationAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -657,9 +744,8 @@ public com.google.protobuf.Parser getParserForType } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotationOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotationOrBuilder.java similarity index 60% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotationOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotationOrBuilder.java index d7416aff..b8f15383 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotationOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationAnnotationOrBuilder.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface TextClassificationAnnotationOrBuilder extends +public interface TextClassificationAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.TextClassificationAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Label of the text.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ boolean hasAnnotationSpec(); /** + * + * *
    * Label of the text.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec(); /** + * + * *
    * Label of the text.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfig.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfig.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfig.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfig.java index bc095cca..81935323 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfig.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Config for text classification human labeling task.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextClassificationConfig} */ -public final class TextClassificationConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextClassificationConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.TextClassificationConfig) TextClassificationConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextClassificationConfig.newBuilder() to construct. private TextClassificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TextClassificationConfig() { annotationSpecSet_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextClassificationConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextClassificationConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,37 +70,42 @@ private TextClassificationConfig( case 0: done = true; break; - case 8: { - - allowMultiLabel_ = input.readBool(); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - annotationSpecSet_ = s; - break; - } - case 26: { - com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder subBuilder = null; - if (sentimentConfig_ != null) { - subBuilder = sentimentConfig_.toBuilder(); + case 8: + { + allowMultiLabel_ = input.readBool(); + break; } - sentimentConfig_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.SentimentConfig.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sentimentConfig_); - sentimentConfig_ = subBuilder.buildPartial(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + annotationSpecSet_ = s; + break; } + case 26: + { + com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder subBuilder = null; + if (sentimentConfig_ != null) { + subBuilder = sentimentConfig_.toBuilder(); + } + sentimentConfig_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.SentimentConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sentimentConfig_); + sentimentConfig_ = 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) { @@ -91,35 +113,40 @@ private TextClassificationConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.class, com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.class, + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder.class); } public static final int ALLOW_MULTI_LABEL_FIELD_NUMBER = 1; private boolean allowMultiLabel_; /** + * + * *
    * Optional. If allow_multi_label is true, contributors are able to choose
    * multiple labels for one text segment.
    * 
* * bool allow_multi_label = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMultiLabel. */ @java.lang.Override @@ -130,11 +157,14 @@ public boolean getAllowMultiLabel() { public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER = 2; private volatile java.lang.Object annotationSpecSet_; /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ @java.lang.Override @@ -143,29 +173,29 @@ public java.lang.String getAnnotationSpecSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; } } /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ @java.lang.Override - public com.google.protobuf.ByteString - getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -176,11 +206,16 @@ public java.lang.String getAnnotationSpecSet() { public static final int SENTIMENT_CONFIG_FIELD_NUMBER = 3; private com.google.cloud.datalabeling.v1beta1.SentimentConfig sentimentConfig_; /** + * + * *
    * Optional. Configs for sentiment selection.
    * 
* - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sentimentConfig field is set. */ @java.lang.Override @@ -188,30 +223,43 @@ public boolean hasSentimentConfig() { return sentimentConfig_ != null; } /** + * + * *
    * Optional. Configs for sentiment selection.
    * 
* - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sentimentConfig. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SentimentConfig getSentimentConfig() { - return sentimentConfig_ == null ? com.google.cloud.datalabeling.v1beta1.SentimentConfig.getDefaultInstance() : sentimentConfig_; + return sentimentConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.SentimentConfig.getDefaultInstance() + : sentimentConfig_; } /** + * + * *
    * Optional. Configs for sentiment selection.
    * 
* - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder getSentimentConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder + getSentimentConfigOrBuilder() { return getSentimentConfig(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,8 +271,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 (allowMultiLabel_ != false) { output.writeBool(1, allowMultiLabel_); } @@ -244,15 +291,13 @@ public int getSerializedSize() { size = 0; if (allowMultiLabel_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, allowMultiLabel_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, allowMultiLabel_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationSpecSet_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, annotationSpecSet_); } if (sentimentConfig_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSentimentConfig()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSentimentConfig()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -262,21 +307,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.datalabeling.v1beta1.TextClassificationConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig other = (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) obj; + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig other = + (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) obj; - if (getAllowMultiLabel() - != other.getAllowMultiLabel()) return false; - if (!getAnnotationSpecSet() - .equals(other.getAnnotationSpecSet())) return false; + if (getAllowMultiLabel() != other.getAllowMultiLabel()) return false; + if (!getAnnotationSpecSet().equals(other.getAnnotationSpecSet())) return false; if (hasSentimentConfig() != other.hasSentimentConfig()) return false; if (hasSentimentConfig()) { - if (!getSentimentConfig() - .equals(other.getSentimentConfig())) return false; + if (!getSentimentConfig().equals(other.getSentimentConfig())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -290,8 +333,7 @@ public int hashCode() { int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ALLOW_MULTI_LABEL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMultiLabel()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMultiLabel()); hash = (37 * hash) + ANNOTATION_SPEC_SET_FIELD_NUMBER; hash = (53 * hash) + getAnnotationSpecSet().hashCode(); if (hasSentimentConfig()) { @@ -304,117 +346,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig 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.datalabeling.v1beta1.TextClassificationConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.TextClassificationConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Config for text classification human labeling task.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextClassificationConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.TextClassificationConfig) com.google.cloud.datalabeling.v1beta1.TextClassificationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.class, com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.class, + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.newBuilder() @@ -422,16 +474,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(); @@ -449,13 +500,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextClassificationConfig_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance(); } @@ -470,7 +522,8 @@ public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.TextClassificationConfig result = new com.google.cloud.datalabeling.v1beta1.TextClassificationConfig(this); + com.google.cloud.datalabeling.v1beta1.TextClassificationConfig result = + new com.google.cloud.datalabeling.v1beta1.TextClassificationConfig(this); result.allowMultiLabel_ = allowMultiLabel_; result.annotationSpecSet_ = annotationSpecSet_; if (sentimentConfigBuilder_ == null) { @@ -486,38 +539,39 @@ public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig 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.datalabeling.v1beta1.TextClassificationConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) other); } else { super.mergeFrom(other); return this; @@ -525,7 +579,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.TextClassificationConfig other) { - if (other == com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance()) return this; + if (other + == com.google.cloud.datalabeling.v1beta1.TextClassificationConfig.getDefaultInstance()) + return this; if (other.getAllowMultiLabel() != false) { setAllowMultiLabel(other.getAllowMultiLabel()); } @@ -555,7 +611,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.TextClassificationConfig) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -565,14 +623,17 @@ public Builder mergeFrom( return this; } - private boolean allowMultiLabel_ ; + private boolean allowMultiLabel_; /** + * + * *
      * Optional. If allow_multi_label is true, contributors are able to choose
      * multiple labels for one text segment.
      * 
* * bool allow_multi_label = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMultiLabel. */ @java.lang.Override @@ -580,32 +641,38 @@ public boolean getAllowMultiLabel() { return allowMultiLabel_; } /** + * + * *
      * Optional. If allow_multi_label is true, contributors are able to choose
      * multiple labels for one text segment.
      * 
* * bool allow_multi_label = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The allowMultiLabel to set. * @return This builder for chaining. */ public Builder setAllowMultiLabel(boolean value) { - + allowMultiLabel_ = value; onChanged(); return this; } /** + * + * *
      * Optional. If allow_multi_label is true, contributors are able to choose
      * multiple labels for one text segment.
      * 
* * bool allow_multi_label = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAllowMultiLabel() { - + allowMultiLabel_ = false; onChanged(); return this; @@ -613,18 +680,20 @@ public Builder clearAllowMultiLabel() { private java.lang.Object annotationSpecSet_ = ""; /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ public java.lang.String getAnnotationSpecSet() { java.lang.Object ref = annotationSpecSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; @@ -633,20 +702,21 @@ public java.lang.String getAnnotationSpecSet() { } } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ - public com.google.protobuf.ByteString - getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -654,54 +724,61 @@ public java.lang.String getAnnotationSpecSet() { } } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSet( - java.lang.String value) { + public Builder setAnnotationSpecSet(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecSet_ = value; onChanged(); return this; } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAnnotationSpecSet() { - + annotationSpecSet_ = getDefaultInstance().getAnnotationSpecSet(); onChanged(); return this; } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSetBytes( - com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecSet_ = value; onChanged(); return this; @@ -709,39 +786,58 @@ public Builder setAnnotationSpecSetBytes( private com.google.cloud.datalabeling.v1beta1.SentimentConfig sentimentConfig_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SentimentConfig, com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder, com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder> sentimentConfigBuilder_; + com.google.cloud.datalabeling.v1beta1.SentimentConfig, + com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder, + com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder> + sentimentConfigBuilder_; /** + * + * *
      * Optional. Configs for sentiment selection.
      * 
* - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sentimentConfig field is set. */ public boolean hasSentimentConfig() { return sentimentConfigBuilder_ != null || sentimentConfig_ != null; } /** + * + * *
      * Optional. Configs for sentiment selection.
      * 
* - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sentimentConfig. */ public com.google.cloud.datalabeling.v1beta1.SentimentConfig getSentimentConfig() { if (sentimentConfigBuilder_ == null) { - return sentimentConfig_ == null ? com.google.cloud.datalabeling.v1beta1.SentimentConfig.getDefaultInstance() : sentimentConfig_; + return sentimentConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.SentimentConfig.getDefaultInstance() + : sentimentConfig_; } else { return sentimentConfigBuilder_.getMessage(); } } /** + * + * *
      * Optional. Configs for sentiment selection.
      * 
* - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSentimentConfig(com.google.cloud.datalabeling.v1beta1.SentimentConfig value) { if (sentimentConfigBuilder_ == null) { @@ -757,11 +853,15 @@ public Builder setSentimentConfig(com.google.cloud.datalabeling.v1beta1.Sentimen return this; } /** + * + * *
      * Optional. Configs for sentiment selection.
      * 
* - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setSentimentConfig( com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder builderForValue) { @@ -775,17 +875,24 @@ public Builder setSentimentConfig( return this; } /** + * + * *
      * Optional. Configs for sentiment selection.
      * 
* - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder mergeSentimentConfig(com.google.cloud.datalabeling.v1beta1.SentimentConfig value) { + public Builder mergeSentimentConfig( + com.google.cloud.datalabeling.v1beta1.SentimentConfig value) { if (sentimentConfigBuilder_ == null) { if (sentimentConfig_ != null) { sentimentConfig_ = - com.google.cloud.datalabeling.v1beta1.SentimentConfig.newBuilder(sentimentConfig_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.SentimentConfig.newBuilder(sentimentConfig_) + .mergeFrom(value) + .buildPartial(); } else { sentimentConfig_ = value; } @@ -797,11 +904,15 @@ public Builder mergeSentimentConfig(com.google.cloud.datalabeling.v1beta1.Sentim return this; } /** + * + * *
      * Optional. Configs for sentiment selection.
      * 
* - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearSentimentConfig() { if (sentimentConfigBuilder_ == null) { @@ -815,55 +926,73 @@ public Builder clearSentimentConfig() { return this; } /** + * + * *
      * Optional. Configs for sentiment selection.
      * 
* - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder getSentimentConfigBuilder() { - + public com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder + getSentimentConfigBuilder() { + onChanged(); return getSentimentConfigFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Configs for sentiment selection.
      * 
* - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder getSentimentConfigOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder + getSentimentConfigOrBuilder() { if (sentimentConfigBuilder_ != null) { return sentimentConfigBuilder_.getMessageOrBuilder(); } else { - return sentimentConfig_ == null ? - com.google.cloud.datalabeling.v1beta1.SentimentConfig.getDefaultInstance() : sentimentConfig_; + return sentimentConfig_ == null + ? com.google.cloud.datalabeling.v1beta1.SentimentConfig.getDefaultInstance() + : sentimentConfig_; } } /** + * + * *
      * Optional. Configs for sentiment selection.
      * 
* - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SentimentConfig, com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder, com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.SentimentConfig, + com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder, + com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder> getSentimentConfigFieldBuilder() { if (sentimentConfigBuilder_ == null) { - sentimentConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SentimentConfig, com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder, com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder>( - getSentimentConfig(), - getParentForChildren(), - isClean()); + sentimentConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.SentimentConfig, + com.google.cloud.datalabeling.v1beta1.SentimentConfig.Builder, + com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder>( + getSentimentConfig(), getParentForChildren(), isClean()); sentimentConfig_ = null; } return sentimentConfigBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -873,30 +1002,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.TextClassificationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.TextClassificationConfig) - private static final com.google.cloud.datalabeling.v1beta1.TextClassificationConfig DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.TextClassificationConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.TextClassificationConfig(); } - public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.TextClassificationConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextClassificationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextClassificationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextClassificationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextClassificationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -908,9 +1039,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.TextClassificationConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfigOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfigOrBuilder.java similarity index 57% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfigOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfigOrBuilder.java index a5a64039..fb1e365a 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfigOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextClassificationConfigOrBuilder.java @@ -1,67 +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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface TextClassificationConfigOrBuilder extends +public interface TextClassificationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.TextClassificationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Optional. If allow_multi_label is true, contributors are able to choose
    * multiple labels for one text segment.
    * 
* * bool allow_multi_label = 1 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMultiLabel. */ boolean getAllowMultiLabel(); /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ java.lang.String getAnnotationSpecSet(); /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ - com.google.protobuf.ByteString - getAnnotationSpecSetBytes(); + com.google.protobuf.ByteString getAnnotationSpecSetBytes(); /** + * + * *
    * Optional. Configs for sentiment selection.
    * 
* - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the sentimentConfig field is set. */ boolean hasSentimentConfig(); /** + * + * *
    * Optional. Configs for sentiment selection.
    * 
* - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The sentimentConfig. */ com.google.cloud.datalabeling.v1beta1.SentimentConfig getSentimentConfig(); /** + * + * *
    * Optional. Configs for sentiment selection.
    * 
* - * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * .google.cloud.datalabeling.v1beta1.SentimentConfig sentiment_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.datalabeling.v1beta1.SentimentConfigOrBuilder getSentimentConfigOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotation.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotation.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotation.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotation.java index 904d183c..aa7d706e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotation.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotation.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Text entity extraction annotation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation} */ -public final class TextEntityExtractionAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextEntityExtractionAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) TextEntityExtractionAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextEntityExtractionAnnotation.newBuilder() to construct. - private TextEntityExtractionAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private TextEntityExtractionAnnotation( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private TextEntityExtractionAnnotation() { - } + + private TextEntityExtractionAnnotation() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextEntityExtractionAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextEntityExtractionAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +69,47 @@ private TextEntityExtractionAnnotation( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; - if (annotationSpec_ != null) { - subBuilder = annotationSpec_.toBuilder(); - } - annotationSpec_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotationSpec_); - annotationSpec_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; + if (annotationSpec_ != null) { + subBuilder = annotationSpec_.toBuilder(); + } + annotationSpec_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotationSpec_); + annotationSpec_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder subBuilder = null; - if (sequentialSegment_ != null) { - subBuilder = sequentialSegment_.toBuilder(); - } - sequentialSegment_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.SequentialSegment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sequentialSegment_); - sequentialSegment_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder subBuilder = null; + if (sequentialSegment_ != null) { + subBuilder = sequentialSegment_.toBuilder(); + } + sequentialSegment_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.SequentialSegment.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sequentialSegment_); + sequentialSegment_ = 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) { @@ -92,34 +117,39 @@ private TextEntityExtractionAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.class, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.class, + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder.class); } public static final int ANNOTATION_SPEC_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; /** + * + * *
    * Label of the text entities.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ @java.lang.Override @@ -127,18 +157,25 @@ public boolean hasAnnotationSpec() { return annotationSpec_ != null; } /** + * + * *
    * Label of the text entities.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { - return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } /** + * + * *
    * Label of the text entities.
    * 
@@ -146,18 +183,22 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder + getAnnotationSpecOrBuilder() { return getAnnotationSpec(); } public static final int SEQUENTIAL_SEGMENT_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.SequentialSegment sequentialSegment_; /** + * + * *
    * Position of the entity.
    * 
* * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; + * * @return Whether the sequentialSegment field is set. */ @java.lang.Override @@ -165,18 +206,25 @@ public boolean hasSequentialSegment() { return sequentialSegment_ != null; } /** + * + * *
    * Position of the entity.
    * 
* * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; + * * @return The sequentialSegment. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.SequentialSegment getSequentialSegment() { - return sequentialSegment_ == null ? com.google.cloud.datalabeling.v1beta1.SequentialSegment.getDefaultInstance() : sequentialSegment_; + return sequentialSegment_ == null + ? com.google.cloud.datalabeling.v1beta1.SequentialSegment.getDefaultInstance() + : sequentialSegment_; } /** + * + * *
    * Position of the entity.
    * 
@@ -184,11 +232,13 @@ public com.google.cloud.datalabeling.v1beta1.SequentialSegment getSequentialSegm * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.SequentialSegmentOrBuilder getSequentialSegmentOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.SequentialSegmentOrBuilder + getSequentialSegmentOrBuilder() { return getSequentialSegment(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,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 (annotationSpec_ != null) { output.writeMessage(1, getAnnotationSpec()); } @@ -218,12 +267,10 @@ public int getSerializedSize() { size = 0; if (annotationSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAnnotationSpec()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnnotationSpec()); } if (sequentialSegment_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSequentialSegment()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSequentialSegment()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,22 +280,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.datalabeling.v1beta1.TextEntityExtractionAnnotation)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation other = (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) obj; + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation other = + (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) obj; if (hasAnnotationSpec() != other.hasAnnotationSpec()) return false; if (hasAnnotationSpec()) { - if (!getAnnotationSpec() - .equals(other.getAnnotationSpec())) return false; + if (!getAnnotationSpec().equals(other.getAnnotationSpec())) return false; } if (hasSequentialSegment() != other.hasSequentialSegment()) return false; if (hasSequentialSegment()) { - if (!getSequentialSegment() - .equals(other.getSequentialSegment())) return false; + if (!getSequentialSegment().equals(other.getSequentialSegment())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -275,134 +321,145 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation 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.datalabeling.v1beta1.TextEntityExtractionAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation 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.datalabeling.v1beta1.TextEntityExtractionAnnotation + 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.datalabeling.v1beta1.TextEntityExtractionAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Text entity extraction annotation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.class, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.class, + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.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(); @@ -422,14 +479,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation + .getDefaultInstance(); } @java.lang.Override @@ -443,7 +502,8 @@ public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation buil @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation buildPartial() { - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation result = new com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation(this); + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation result = + new com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation(this); if (annotationSpecBuilder_ == null) { result.annotationSpec_ = annotationSpec_; } else { @@ -462,46 +522,51 @@ public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation 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.datalabeling.v1beta1.TextEntityExtractionAnnotation) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation)other); + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation other) { - if (other == com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation other) { + if (other + == com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation + .getDefaultInstance()) return this; if (other.hasAnnotationSpec()) { mergeAnnotationSpec(other.getAnnotationSpec()); } @@ -527,7 +592,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -539,34 +606,47 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + annotationSpecBuilder_; /** + * + * *
      * Label of the text entities.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ public boolean hasAnnotationSpec() { return annotationSpecBuilder_ != null || annotationSpec_ != null; } /** + * + * *
      * Label of the text entities.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { if (annotationSpecBuilder_ == null) { - return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } else { return annotationSpecBuilder_.getMessage(); } } /** + * + * *
      * Label of the text entities.
      * 
@@ -587,6 +667,8 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio return this; } /** + * + * *
      * Label of the text entities.
      * 
@@ -605,6 +687,8 @@ public Builder setAnnotationSpec( return this; } /** + * + * *
      * Label of the text entities.
      * 
@@ -615,7 +699,9 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat if (annotationSpecBuilder_ == null) { if (annotationSpec_ != null) { annotationSpec_ = - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_) + .mergeFrom(value) + .buildPartial(); } else { annotationSpec_ = value; } @@ -627,6 +713,8 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat return this; } /** + * + * *
      * Label of the text entities.
      * 
@@ -645,6 +733,8 @@ public Builder clearAnnotationSpec() { return this; } /** + * + * *
      * Label of the text entities.
      * 
@@ -652,26 +742,32 @@ public Builder clearAnnotationSpec() { * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotationSpecBuilder() { - + onChanged(); return getAnnotationSpecFieldBuilder().getBuilder(); } /** + * + * *
      * Label of the text entities.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder + getAnnotationSpecOrBuilder() { if (annotationSpecBuilder_ != null) { return annotationSpecBuilder_.getMessageOrBuilder(); } else { - return annotationSpec_ == null ? - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } } /** + * + * *
      * Label of the text entities.
      * 
@@ -679,14 +775,17 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotati * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> getAnnotationSpecFieldBuilder() { if (annotationSpecBuilder_ == null) { - annotationSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( - getAnnotationSpec(), - getParentForChildren(), - isClean()); + annotationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( + getAnnotationSpec(), getParentForChildren(), isClean()); annotationSpec_ = null; } return annotationSpecBuilder_; @@ -694,41 +793,55 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotati private com.google.cloud.datalabeling.v1beta1.SequentialSegment sequentialSegment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SequentialSegment, com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder, com.google.cloud.datalabeling.v1beta1.SequentialSegmentOrBuilder> sequentialSegmentBuilder_; + com.google.cloud.datalabeling.v1beta1.SequentialSegment, + com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder, + com.google.cloud.datalabeling.v1beta1.SequentialSegmentOrBuilder> + sequentialSegmentBuilder_; /** + * + * *
      * Position of the entity.
      * 
* * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; + * * @return Whether the sequentialSegment field is set. */ public boolean hasSequentialSegment() { return sequentialSegmentBuilder_ != null || sequentialSegment_ != null; } /** + * + * *
      * Position of the entity.
      * 
* * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; + * * @return The sequentialSegment. */ public com.google.cloud.datalabeling.v1beta1.SequentialSegment getSequentialSegment() { if (sequentialSegmentBuilder_ == null) { - return sequentialSegment_ == null ? com.google.cloud.datalabeling.v1beta1.SequentialSegment.getDefaultInstance() : sequentialSegment_; + return sequentialSegment_ == null + ? com.google.cloud.datalabeling.v1beta1.SequentialSegment.getDefaultInstance() + : sequentialSegment_; } else { return sequentialSegmentBuilder_.getMessage(); } } /** + * + * *
      * Position of the entity.
      * 
* * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; */ - public Builder setSequentialSegment(com.google.cloud.datalabeling.v1beta1.SequentialSegment value) { + public Builder setSequentialSegment( + com.google.cloud.datalabeling.v1beta1.SequentialSegment value) { if (sequentialSegmentBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -742,6 +855,8 @@ public Builder setSequentialSegment(com.google.cloud.datalabeling.v1beta1.Sequen return this; } /** + * + * *
      * Position of the entity.
      * 
@@ -760,17 +875,22 @@ public Builder setSequentialSegment( return this; } /** + * + * *
      * Position of the entity.
      * 
* * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; */ - public Builder mergeSequentialSegment(com.google.cloud.datalabeling.v1beta1.SequentialSegment value) { + public Builder mergeSequentialSegment( + com.google.cloud.datalabeling.v1beta1.SequentialSegment value) { if (sequentialSegmentBuilder_ == null) { if (sequentialSegment_ != null) { sequentialSegment_ = - com.google.cloud.datalabeling.v1beta1.SequentialSegment.newBuilder(sequentialSegment_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.SequentialSegment.newBuilder(sequentialSegment_) + .mergeFrom(value) + .buildPartial(); } else { sequentialSegment_ = value; } @@ -782,6 +902,8 @@ public Builder mergeSequentialSegment(com.google.cloud.datalabeling.v1beta1.Sequ return this; } /** + * + * *
      * Position of the entity.
      * 
@@ -800,33 +922,42 @@ public Builder clearSequentialSegment() { return this; } /** + * + * *
      * Position of the entity.
      * 
* * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; */ - public com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder getSequentialSegmentBuilder() { - + public com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder + getSequentialSegmentBuilder() { + onChanged(); return getSequentialSegmentFieldBuilder().getBuilder(); } /** + * + * *
      * Position of the entity.
      * 
* * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; */ - public com.google.cloud.datalabeling.v1beta1.SequentialSegmentOrBuilder getSequentialSegmentOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.SequentialSegmentOrBuilder + getSequentialSegmentOrBuilder() { if (sequentialSegmentBuilder_ != null) { return sequentialSegmentBuilder_.getMessageOrBuilder(); } else { - return sequentialSegment_ == null ? - com.google.cloud.datalabeling.v1beta1.SequentialSegment.getDefaultInstance() : sequentialSegment_; + return sequentialSegment_ == null + ? com.google.cloud.datalabeling.v1beta1.SequentialSegment.getDefaultInstance() + : sequentialSegment_; } } /** + * + * *
      * Position of the entity.
      * 
@@ -834,21 +965,24 @@ public com.google.cloud.datalabeling.v1beta1.SequentialSegmentOrBuilder getSeque * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SequentialSegment, com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder, com.google.cloud.datalabeling.v1beta1.SequentialSegmentOrBuilder> + com.google.cloud.datalabeling.v1beta1.SequentialSegment, + com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder, + com.google.cloud.datalabeling.v1beta1.SequentialSegmentOrBuilder> getSequentialSegmentFieldBuilder() { if (sequentialSegmentBuilder_ == null) { - sequentialSegmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.SequentialSegment, com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder, com.google.cloud.datalabeling.v1beta1.SequentialSegmentOrBuilder>( - getSequentialSegment(), - getParentForChildren(), - isClean()); + sequentialSegmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.SequentialSegment, + com.google.cloud.datalabeling.v1beta1.SequentialSegment.Builder, + com.google.cloud.datalabeling.v1beta1.SequentialSegmentOrBuilder>( + getSequentialSegment(), getParentForChildren(), isClean()); sequentialSegment_ = null; } return sequentialSegmentBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -858,30 +992,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) - private static final com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation(); } - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextEntityExtractionAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextEntityExtractionAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextEntityExtractionAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextEntityExtractionAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -893,9 +1029,8 @@ public com.google.protobuf.Parser getParserForTy } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotationOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotationOrBuilder.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotationOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotationOrBuilder.java index ea74992a..76802466 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotationOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionAnnotationOrBuilder.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface TextEntityExtractionAnnotationOrBuilder extends +public interface TextEntityExtractionAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Label of the text entities.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ boolean hasAnnotationSpec(); /** + * + * *
    * Label of the text entities.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec(); /** + * + * *
    * Label of the text entities.
    * 
@@ -35,24 +59,32 @@ public interface TextEntityExtractionAnnotationOrBuilder extends com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder(); /** + * + * *
    * Position of the entity.
    * 
* * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; + * * @return Whether the sequentialSegment field is set. */ boolean hasSequentialSegment(); /** + * + * *
    * Position of the entity.
    * 
* * .google.cloud.datalabeling.v1beta1.SequentialSegment sequential_segment = 2; + * * @return The sequentialSegment. */ com.google.cloud.datalabeling.v1beta1.SequentialSegment getSequentialSegment(); /** + * + * *
    * Position of the entity.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfig.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfig.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfig.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfig.java index 3f38f837..796b25d6 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfig.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Config for text entity extraction human labeling task.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig} */ -public final class TextEntityExtractionConfig extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextEntityExtractionConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) TextEntityExtractionConfigOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextEntityExtractionConfig.newBuilder() to construct. private TextEntityExtractionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TextEntityExtractionConfig() { annotationSpecSet_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextEntityExtractionConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextEntityExtractionConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private TextEntityExtractionConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - annotationSpecSet_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + annotationSpecSet_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,39 @@ private TextEntityExtractionConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.class, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.class, + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder.class); } public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER = 1; private volatile java.lang.Object annotationSpecSet_; /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ @java.lang.Override @@ -109,29 +132,29 @@ public java.lang.String getAnnotationSpecSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; } } /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ @java.lang.Override - public com.google.protobuf.ByteString - getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -140,6 +163,7 @@ public java.lang.String getAnnotationSpecSet() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +175,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(annotationSpecSet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecSet_); } @@ -176,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.datalabeling.v1beta1.TextEntityExtractionConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig other = (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) obj; + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig other = + (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) obj; - if (!getAnnotationSpecSet() - .equals(other.getAnnotationSpecSet())) return false; + if (!getAnnotationSpecSet().equals(other.getAnnotationSpecSet())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +227,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig 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.datalabeling.v1beta1.TextEntityExtractionConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Config for text entity extraction human labeling task.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.class, com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.class, + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.newBuilder() @@ -322,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(); @@ -341,13 +373,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextEntityExtractionConfig_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance(); } @@ -362,7 +395,8 @@ public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig result = new com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig(this); + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig result = + new com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig(this); result.annotationSpecSet_ = annotationSpecSet_; onBuilt(); return result; @@ -372,46 +406,50 @@ public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig 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.datalabeling.v1beta1.TextEntityExtractionConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig other) { - if (other == com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig other) { + if (other + == com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig.getDefaultInstance()) + return this; if (!other.getAnnotationSpecSet().isEmpty()) { annotationSpecSet_ = other.annotationSpecSet_; onChanged(); @@ -435,7 +473,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +487,20 @@ public Builder mergeFrom( private java.lang.Object annotationSpecSet_ = ""; /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ public java.lang.String getAnnotationSpecSet() { java.lang.Object ref = annotationSpecSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; @@ -467,20 +509,21 @@ public java.lang.String getAnnotationSpecSet() { } } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ - public com.google.protobuf.ByteString - getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -488,61 +531,68 @@ public java.lang.String getAnnotationSpecSet() { } } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSet( - java.lang.String value) { + public Builder setAnnotationSpecSet(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecSet_ = value; onChanged(); return this; } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAnnotationSpecSet() { - + annotationSpecSet_ = getDefaultInstance().getAnnotationSpecSet(); onChanged(); return this; } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSetBytes( - com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecSet_ = 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); } @@ -552,30 +602,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) - private static final com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig(); } - public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextEntityExtractionConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextEntityExtractionConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextEntityExtractionConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextEntityExtractionConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -587,9 +639,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfigOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfigOrBuilder.java similarity index 52% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfigOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfigOrBuilder.java index 9e4e5a83..3496e713 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfigOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextEntityExtractionConfigOrBuilder.java @@ -1,29 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface TextEntityExtractionConfigOrBuilder extends +public interface TextEntityExtractionConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ java.lang.String getAnnotationSpecSet(); /** + * + * *
    * Required. Annotation spec set resource name.
    * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ - com.google.protobuf.ByteString - getAnnotationSpecSetBytes(); + com.google.protobuf.ByteString getAnnotationSpecSetBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadata.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadata.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadata.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadata.java index 5d281810..bd92981d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadata.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadata.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Metadata for the text.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextMetadata} */ -public final class TextMetadata extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextMetadata extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.TextMetadata) TextMetadataOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextMetadata.newBuilder() to construct. private TextMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TextMetadata() { languageCode_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextMetadata(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextMetadata( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private TextMetadata( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - languageCode_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + languageCode_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private TextMetadata( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextMetadata.class, com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextMetadata.class, + com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder.class); } public static final int LANGUAGE_CODE_FIELD_NUMBER = 1; private volatile java.lang.Object languageCode_; /** + * + * *
    * The language of this text, as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -103,6 +125,7 @@ private TextMetadata(
    * 
* * string language_code = 1; + * * @return The languageCode. */ @java.lang.Override @@ -111,14 +134,15 @@ public java.lang.String getLanguageCode() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; } } /** + * + * *
    * The language of this text, as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -126,16 +150,15 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -144,6 +167,7 @@ public java.lang.String getLanguageCode() { } 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(languageCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, languageCode_); } @@ -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.datalabeling.v1beta1.TextMetadata)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.TextMetadata other = (com.google.cloud.datalabeling.v1beta1.TextMetadata) obj; + com.google.cloud.datalabeling.v1beta1.TextMetadata other = + (com.google.cloud.datalabeling.v1beta1.TextMetadata) obj; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -208,117 +231,126 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.TextMetadata 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.datalabeling.v1beta1.TextMetadata parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.TextMetadata parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.TextMetadata prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 the text.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextMetadata} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.TextMetadata) com.google.cloud.datalabeling.v1beta1.TextMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextMetadata.class, com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextMetadata.class, + com.google.cloud.datalabeling.v1beta1.TextMetadata.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.TextMetadata.newBuilder() @@ -326,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(); @@ -345,9 +376,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DatasetOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TextMetadata_descriptor; } @java.lang.Override @@ -366,7 +397,8 @@ public com.google.cloud.datalabeling.v1beta1.TextMetadata build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextMetadata buildPartial() { - com.google.cloud.datalabeling.v1beta1.TextMetadata result = new com.google.cloud.datalabeling.v1beta1.TextMetadata(this); + com.google.cloud.datalabeling.v1beta1.TextMetadata result = + new com.google.cloud.datalabeling.v1beta1.TextMetadata(this); result.languageCode_ = languageCode_; onBuilt(); return result; @@ -376,38 +408,39 @@ public com.google.cloud.datalabeling.v1beta1.TextMetadata buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.TextMetadata) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.TextMetadata)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.TextMetadata) other); } else { super.mergeFrom(other); return this; @@ -415,7 +448,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.TextMetadata other) { - if (other == com.google.cloud.datalabeling.v1beta1.TextMetadata.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.TextMetadata.getDefaultInstance()) + return this; if (!other.getLanguageCode().isEmpty()) { languageCode_ = other.languageCode_; onChanged(); @@ -439,7 +473,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.TextMetadata) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.TextMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -451,6 +486,8 @@ public Builder mergeFrom( private java.lang.Object languageCode_ = ""; /** + * + * *
      * The language of this text, as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -458,13 +495,13 @@ public Builder mergeFrom(
      * 
* * string language_code = 1; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageCode_ = s; return s; @@ -473,6 +510,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * The language of this text, as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -480,15 +519,14 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageCode_ = b; return b; } else { @@ -496,6 +534,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * The language of this text, as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -503,20 +543,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 1; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { + public Builder setLanguageCode(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageCode_ = value; onChanged(); return this; } /** + * + * *
      * The language of this text, as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -524,15 +566,18 @@ public Builder setLanguageCode(
      * 
* * string language_code = 1; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { - + languageCode_ = getDefaultInstance().getLanguageCode(); onChanged(); return this; } /** + * + * *
      * The language of this text, as a
      * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -540,23 +585,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 1; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageCode_ = 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); } @@ -566,12 +611,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.TextMetadata) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.TextMetadata) private static final com.google.cloud.datalabeling.v1beta1.TextMetadata DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.TextMetadata(); } @@ -580,16 +625,16 @@ public static com.google.cloud.datalabeling.v1beta1.TextMetadata getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextMetadata(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextMetadata(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -604,6 +649,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.TextMetadata getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadataOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadataOrBuilder.java similarity index 53% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadataOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadataOrBuilder.java index 49355f34..bcdccb95 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadataOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextMetadataOrBuilder.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/datalabeling/v1beta1/dataset.proto package com.google.cloud.datalabeling.v1beta1; -public interface TextMetadataOrBuilder extends +public interface TextMetadataOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.TextMetadata) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The language of this text, as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -15,10 +33,13 @@ public interface TextMetadataOrBuilder extends
    * 
* * string language_code = 1; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * The language of this text, as a
    * [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
@@ -26,8 +47,8 @@ public interface TextMetadataOrBuilder extends
    * 
* * string language_code = 1; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayload.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayload.java similarity index 67% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayload.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayload.java index 1c4c9aa0..00168461 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayload.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayload.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/datalabeling/v1beta1/data_payloads.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Container of information about a piece of text.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextPayload} */ -public final class TextPayload extends - com.google.protobuf.GeneratedMessageV3 implements +public final class TextPayload extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.TextPayload) TextPayloadOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use TextPayload.newBuilder() to construct. private TextPayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private TextPayload() { textContent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new TextPayload(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private TextPayload( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private TextPayload( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - textContent_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + textContent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,39 @@ private TextPayload( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads + .internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_TextPayload_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataPayloads + .internal_static_google_cloud_datalabeling_v1beta1_TextPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextPayload.class, com.google.cloud.datalabeling.v1beta1.TextPayload.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextPayload.class, + com.google.cloud.datalabeling.v1beta1.TextPayload.Builder.class); } public static final int TEXT_CONTENT_FIELD_NUMBER = 1; private volatile java.lang.Object textContent_; /** + * + * *
    * Text content.
    * 
* * string text_content = 1; + * * @return The textContent. */ @java.lang.Override @@ -109,29 +132,29 @@ public java.lang.String getTextContent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); textContent_ = s; return s; } } /** + * + * *
    * Text content.
    * 
* * string text_content = 1; + * * @return The bytes for textContent. */ @java.lang.Override - public com.google.protobuf.ByteString - getTextContentBytes() { + public com.google.protobuf.ByteString getTextContentBytes() { java.lang.Object ref = textContent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); textContent_ = b; return b; } else { @@ -140,6 +163,7 @@ public java.lang.String getTextContent() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +175,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(textContent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, textContent_); } @@ -176,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.datalabeling.v1beta1.TextPayload)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.TextPayload other = (com.google.cloud.datalabeling.v1beta1.TextPayload) obj; + com.google.cloud.datalabeling.v1beta1.TextPayload other = + (com.google.cloud.datalabeling.v1beta1.TextPayload) obj; - if (!getTextContent() - .equals(other.getTextContent())) return false; + if (!getTextContent().equals(other.getTextContent())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -204,117 +227,126 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.TextPayload 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.datalabeling.v1beta1.TextPayload parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.TextPayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.TextPayload parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.TextPayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.TextPayload parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextPayload parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.TextPayload parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.TextPayload parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.TextPayload parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.TextPayload parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.TextPayload parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.TextPayload parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.TextPayload parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.TextPayload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Container of information about a piece of text.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.TextPayload} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.TextPayload) com.google.cloud.datalabeling.v1beta1.TextPayloadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads + .internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_TextPayload_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataPayloads + .internal_static_google_cloud_datalabeling_v1beta1_TextPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TextPayload.class, com.google.cloud.datalabeling.v1beta1.TextPayload.Builder.class); + com.google.cloud.datalabeling.v1beta1.TextPayload.class, + com.google.cloud.datalabeling.v1beta1.TextPayload.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.TextPayload.newBuilder() @@ -322,16 +354,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(); @@ -341,9 +372,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads + .internal_static_google_cloud_datalabeling_v1beta1_TextPayload_descriptor; } @java.lang.Override @@ -362,7 +393,8 @@ public com.google.cloud.datalabeling.v1beta1.TextPayload build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TextPayload buildPartial() { - com.google.cloud.datalabeling.v1beta1.TextPayload result = new com.google.cloud.datalabeling.v1beta1.TextPayload(this); + com.google.cloud.datalabeling.v1beta1.TextPayload result = + new com.google.cloud.datalabeling.v1beta1.TextPayload(this); result.textContent_ = textContent_; onBuilt(); return result; @@ -372,38 +404,39 @@ public com.google.cloud.datalabeling.v1beta1.TextPayload buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.TextPayload) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.TextPayload)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.TextPayload) other); } else { super.mergeFrom(other); return this; @@ -411,7 +444,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.TextPayload other) { - if (other == com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.TextPayload.getDefaultInstance()) + return this; if (!other.getTextContent().isEmpty()) { textContent_ = other.textContent_; onChanged(); @@ -435,7 +469,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.TextPayload) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.TextPayload) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -447,18 +482,20 @@ public Builder mergeFrom( private java.lang.Object textContent_ = ""; /** + * + * *
      * Text content.
      * 
* * string text_content = 1; + * * @return The textContent. */ public java.lang.String getTextContent() { java.lang.Object ref = textContent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); textContent_ = s; return s; @@ -467,20 +504,21 @@ public java.lang.String getTextContent() { } } /** + * + * *
      * Text content.
      * 
* * string text_content = 1; + * * @return The bytes for textContent. */ - public com.google.protobuf.ByteString - getTextContentBytes() { + public com.google.protobuf.ByteString getTextContentBytes() { java.lang.Object ref = textContent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); textContent_ = b; return b; } else { @@ -488,61 +526,68 @@ public java.lang.String getTextContent() { } } /** + * + * *
      * Text content.
      * 
* * string text_content = 1; + * * @param value The textContent to set. * @return This builder for chaining. */ - public Builder setTextContent( - java.lang.String value) { + public Builder setTextContent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + textContent_ = value; onChanged(); return this; } /** + * + * *
      * Text content.
      * 
* * string text_content = 1; + * * @return This builder for chaining. */ public Builder clearTextContent() { - + textContent_ = getDefaultInstance().getTextContent(); onChanged(); return this; } /** + * + * *
      * Text content.
      * 
* * string text_content = 1; + * * @param value The bytes for textContent to set. * @return This builder for chaining. */ - public Builder setTextContentBytes( - com.google.protobuf.ByteString value) { + public Builder setTextContentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + textContent_ = 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); } @@ -552,12 +597,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.TextPayload) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.TextPayload) private static final com.google.cloud.datalabeling.v1beta1.TextPayload DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.TextPayload(); } @@ -566,16 +611,16 @@ public static com.google.cloud.datalabeling.v1beta1.TextPayload getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TextPayload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TextPayload(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TextPayload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TextPayload(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +635,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.TextPayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayloadOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayloadOrBuilder.java new file mode 100644 index 00000000..0b5640b5 --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TextPayloadOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/datalabeling/v1beta1/data_payloads.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface TextPayloadOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.TextPayload) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Text content.
+   * 
+ * + * string text_content = 1; + * + * @return The textContent. + */ + java.lang.String getTextContent(); + /** + * + * + *
+   * Text content.
+   * 
+ * + * string text_content = 1; + * + * @return The bytes for textContent. + */ + com.google.protobuf.ByteString getTextContentBytes(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegment.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegment.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegment.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegment.java index 0d7f33f5..f6d46a8f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegment.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * A time period inside of an example that has a time dimension (e.g. video).
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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,39 +68,43 @@ 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) { @@ -92,35 +112,40 @@ private TimeSegment( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TimeSegment.class, com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder.class); + com.google.cloud.datalabeling.v1beta1.TimeSegment.class, + com.google.cloud.datalabeling.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 @@ -128,19 +153,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.
@@ -156,12 +188,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 @@ -169,19 +204,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.
@@ -195,6 +237,7 @@ public com.google.protobuf.DurationOrBuilder getEndTimeOffsetOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -206,8 +249,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());
     }
@@ -224,12 +266,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;
@@ -239,22 +279,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.datalabeling.v1beta1.TimeSegment)) {
       return super.equals(obj);
     }
-    com.google.cloud.datalabeling.v1beta1.TimeSegment other = (com.google.cloud.datalabeling.v1beta1.TimeSegment) obj;
+    com.google.cloud.datalabeling.v1beta1.TimeSegment other =
+        (com.google.cloud.datalabeling.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;
@@ -281,117 +320,126 @@ public int hashCode() {
   }
 
   public static com.google.cloud.datalabeling.v1beta1.TimeSegment 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.datalabeling.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.datalabeling.v1beta1.TimeSegment parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.TimeSegment parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.TimeSegment parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.datalabeling.v1beta1.TimeSegment parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.TimeSegment parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.datalabeling.v1beta1.TimeSegment parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.TimeSegment) com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.TimeSegment.class, com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder.class); + com.google.cloud.datalabeling.v1beta1.TimeSegment.class, + com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.TimeSegment.newBuilder() @@ -399,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(); @@ -428,9 +475,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_TimeSegment_descriptor; } @java.lang.Override @@ -449,7 +496,8 @@ public com.google.cloud.datalabeling.v1beta1.TimeSegment build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TimeSegment buildPartial() { - com.google.cloud.datalabeling.v1beta1.TimeSegment result = new com.google.cloud.datalabeling.v1beta1.TimeSegment(this); + com.google.cloud.datalabeling.v1beta1.TimeSegment result = + new com.google.cloud.datalabeling.v1beta1.TimeSegment(this); if (startTimeOffsetBuilder_ == null) { result.startTimeOffset_ = startTimeOffset_; } else { @@ -468,38 +516,39 @@ public com.google.cloud.datalabeling.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.datalabeling.v1beta1.TimeSegment) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.TimeSegment)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.TimeSegment) other); } else { super.mergeFrom(other); return this; @@ -507,7 +556,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.TimeSegment other) { - if (other == com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance()) + return this; if (other.hasStartTimeOffset()) { mergeStartTimeOffset(other.getStartTimeOffset()); } @@ -533,7 +583,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.TimeSegment) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.TimeSegment) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -545,36 +596,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.
@@ -596,6 +660,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.
@@ -603,8 +669,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();
@@ -615,6 +680,8 @@ public Builder setStartTimeOffset(
       return this;
     }
     /**
+     *
+     *
      * 
      * Start of the time segment (inclusive), represented as the duration since
      * the example start.
@@ -626,7 +693,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;
         }
@@ -638,6 +707,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.
@@ -657,6 +728,8 @@ public Builder clearStartTimeOffset() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Start of the time segment (inclusive), represented as the duration since
      * the example start.
@@ -665,11 +738,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.
@@ -681,11 +756,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.
@@ -694,14 +772,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_;
@@ -709,36 +790,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.
@@ -760,6 +854,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.
@@ -767,8 +863,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();
@@ -779,6 +874,8 @@ public Builder setEndTimeOffset(
       return this;
     }
     /**
+     *
+     *
      * 
      * End of the time segment (exclusive), represented as the duration since the
      * example start.
@@ -790,7 +887,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;
         }
@@ -802,6 +901,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.
@@ -821,6 +922,8 @@ public Builder clearEndTimeOffset() {
       return this;
     }
     /**
+     *
+     *
      * 
      * End of the time segment (exclusive), represented as the duration since the
      * example start.
@@ -829,11 +932,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.
@@ -845,11 +950,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.
@@ -858,21 +966,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);
     }
 
@@ -882,12 +993,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.TimeSegment)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.TimeSegment)
   private static final com.google.cloud.datalabeling.v1beta1.TimeSegment DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.TimeSegment();
   }
@@ -896,16 +1007,16 @@ public static com.google.cloud.datalabeling.v1beta1.TimeSegment getDefaultInstan
     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;
@@ -920,6 +1031,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datalabeling.v1beta1.TimeSegment getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegmentOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegmentOrBuilder.java
similarity index 73%
rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegmentOrBuilder.java
rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegmentOrBuilder.java
index 438652cb..5d6ac6c8 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/TimeSegmentOrBuilder.java
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/annotation.proto
 
 package com.google.cloud.datalabeling.v1beta1;
 
-public interface TimeSegmentOrBuilder extends
+public interface TimeSegmentOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.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-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequest.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequest.java
similarity index 66%
rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequest.java
rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequest.java
index e3ef3865..4b4977cb 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequest.java
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequest.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/datalabeling/v1beta1/data_labeling_service.proto
 
 package com.google.cloud.datalabeling.v1beta1;
 
 /**
+ *
+ *
  * 
  * Request message for UpdateEvaluationJob.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest} */ -public final class UpdateEvaluationJobRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateEvaluationJobRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) UpdateEvaluationJobRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateEvaluationJobRequest.newBuilder() to construct. private UpdateEvaluationJobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateEvaluationJobRequest() { - } + + private UpdateEvaluationJobRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateEvaluationJobRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateEvaluationJobRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,45 @@ private UpdateEvaluationJobRequest( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder subBuilder = null; - if (evaluationJob_ != null) { - subBuilder = evaluationJob_.toBuilder(); - } - evaluationJob_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.EvaluationJob.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(evaluationJob_); - evaluationJob_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder subBuilder = null; + if (evaluationJob_ != null) { + subBuilder = evaluationJob_.toBuilder(); + } + evaluationJob_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.EvaluationJob.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(evaluationJob_); + evaluationJob_ = 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) { @@ -92,34 +114,41 @@ private UpdateEvaluationJobRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.class, + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.Builder.class); } public static final int EVALUATION_JOB_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.EvaluationJob evaluationJob_; /** + * + * *
    * Required. Evaluation job that is going to be updated.
    * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the evaluationJob field is set. */ @java.lang.Override @@ -127,23 +156,34 @@ public boolean hasEvaluationJob() { return evaluationJob_ != null; } /** + * + * *
    * Required. Evaluation job that is going to be updated.
    * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The evaluationJob. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EvaluationJob getEvaluationJob() { - return evaluationJob_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() : evaluationJob_; + return evaluationJob_ == null + ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() + : evaluationJob_; } /** + * + * *
    * Required. Evaluation job that is going to be updated.
    * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluationJobOrBuilder() { @@ -153,6 +193,8 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluatio public static final int UPDATE_MASK_FIELD_NUMBER = 2; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. Mask for which fields to update. You can only provide the
    * following fields:
@@ -163,7 +205,9 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluatio
    * commas.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -171,6 +215,8 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. Mask for which fields to update. You can only provide the
    * following fields:
@@ -181,7 +227,9 @@ public boolean hasUpdateMask() {
    * commas.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -189,6 +237,8 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. Mask for which fields to update. You can only provide the
    * following fields:
@@ -199,7 +249,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
    * commas.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -207,6 +258,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -218,8 +270,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 (evaluationJob_ != null) { output.writeMessage(1, getEvaluationJob()); } @@ -236,12 +287,10 @@ public int getSerializedSize() { size = 0; if (evaluationJob_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEvaluationJob()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEvaluationJob()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -251,22 +300,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.datalabeling.v1beta1.UpdateEvaluationJobRequest)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest other = (com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) obj; + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest other = + (com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) obj; if (hasEvaluationJob() != other.hasEvaluationJob()) return false; if (hasEvaluationJob()) { - if (!getEvaluationJob() - .equals(other.getEvaluationJob())) return false; + if (!getEvaluationJob().equals(other.getEvaluationJob())) 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; @@ -293,117 +341,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest 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.datalabeling.v1beta1.UpdateEvaluationJobRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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 UpdateEvaluationJob.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.class, com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.Builder.class); + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.class, + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.newBuilder() @@ -411,16 +469,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(); @@ -440,13 +497,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass.internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataLabelingServiceOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_UpdateEvaluationJobRequest_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest + getDefaultInstanceForType() { return com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.getDefaultInstance(); } @@ -461,7 +519,8 @@ public com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest build() @java.lang.Override public com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest buildPartial() { - com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest result = new com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest(this); + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest result = + new com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest(this); if (evaluationJobBuilder_ == null) { result.evaluationJob_ = evaluationJob_; } else { @@ -480,46 +539,50 @@ public com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest 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.datalabeling.v1beta1.UpdateEvaluationJobRequest) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest other) { - if (other == com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest other) { + if (other + == com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest.getDefaultInstance()) + return this; if (other.hasEvaluationJob()) { mergeEvaluationJob(other.getEvaluationJob()); } @@ -545,7 +608,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -557,39 +622,58 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.EvaluationJob evaluationJob_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJob, com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> evaluationJobBuilder_; + com.google.cloud.datalabeling.v1beta1.EvaluationJob, + com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, + com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> + evaluationJobBuilder_; /** + * + * *
      * Required. Evaluation job that is going to be updated.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the evaluationJob field is set. */ public boolean hasEvaluationJob() { return evaluationJobBuilder_ != null || evaluationJob_ != null; } /** + * + * *
      * Required. Evaluation job that is going to be updated.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The evaluationJob. */ public com.google.cloud.datalabeling.v1beta1.EvaluationJob getEvaluationJob() { if (evaluationJobBuilder_ == null) { - return evaluationJob_ == null ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() : evaluationJob_; + return evaluationJob_ == null + ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() + : evaluationJob_; } else { return evaluationJobBuilder_.getMessage(); } } /** + * + * *
      * Required. Evaluation job that is going to be updated.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setEvaluationJob(com.google.cloud.datalabeling.v1beta1.EvaluationJob value) { if (evaluationJobBuilder_ == null) { @@ -605,11 +689,15 @@ public Builder setEvaluationJob(com.google.cloud.datalabeling.v1beta1.Evaluation return this; } /** + * + * *
      * Required. Evaluation job that is going to be updated.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setEvaluationJob( com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder builderForValue) { @@ -623,17 +711,23 @@ public Builder setEvaluationJob( return this; } /** + * + * *
      * Required. Evaluation job that is going to be updated.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeEvaluationJob(com.google.cloud.datalabeling.v1beta1.EvaluationJob value) { if (evaluationJobBuilder_ == null) { if (evaluationJob_ != null) { evaluationJob_ = - com.google.cloud.datalabeling.v1beta1.EvaluationJob.newBuilder(evaluationJob_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.EvaluationJob.newBuilder(evaluationJob_) + .mergeFrom(value) + .buildPartial(); } else { evaluationJob_ = value; } @@ -645,11 +739,15 @@ public Builder mergeEvaluationJob(com.google.cloud.datalabeling.v1beta1.Evaluati return this; } /** + * + * *
      * Required. Evaluation job that is going to be updated.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearEvaluationJob() { if (evaluationJobBuilder_ == null) { @@ -663,48 +761,65 @@ public Builder clearEvaluationJob() { return this; } /** + * + * *
      * Required. Evaluation job that is going to be updated.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder getEvaluationJobBuilder() { - + onChanged(); return getEvaluationJobFieldBuilder().getBuilder(); } /** + * + * *
      * Required. Evaluation job that is going to be updated.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluationJobOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder + getEvaluationJobOrBuilder() { if (evaluationJobBuilder_ != null) { return evaluationJobBuilder_.getMessageOrBuilder(); } else { - return evaluationJob_ == null ? - com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() : evaluationJob_; + return evaluationJob_ == null + ? com.google.cloud.datalabeling.v1beta1.EvaluationJob.getDefaultInstance() + : evaluationJob_; } } /** + * + * *
      * Required. Evaluation job that is going to be updated.
      * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJob, com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> + com.google.cloud.datalabeling.v1beta1.EvaluationJob, + com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, + com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder> getEvaluationJobFieldBuilder() { if (evaluationJobBuilder_ == null) { - evaluationJobBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.EvaluationJob, com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder>( - getEvaluationJob(), - getParentForChildren(), - isClean()); + evaluationJobBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.EvaluationJob, + com.google.cloud.datalabeling.v1beta1.EvaluationJob.Builder, + com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder>( + getEvaluationJob(), getParentForChildren(), isClean()); evaluationJob_ = null; } return evaluationJobBuilder_; @@ -712,8 +827,13 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluatio 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_; /** + * + * *
      * Optional. Mask for which fields to update. You can only provide the
      * following fields:
@@ -724,13 +844,17 @@ public com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluatio
      * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Optional. Mask for which fields to update. You can only provide the
      * following fields:
@@ -741,17 +865,23 @@ public boolean hasUpdateMask() {
      * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @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(); } } /** + * + * *
      * Optional. Mask for which fields to update. You can only provide the
      * following fields:
@@ -762,7 +892,8 @@ public com.google.protobuf.FieldMask getUpdateMask() {
      * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -778,6 +909,8 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Mask for which fields to update. You can only provide the
      * following fields:
@@ -788,10 +921,10 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
      * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ - 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(); @@ -802,6 +935,8 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. Mask for which fields to update. You can only provide the
      * following fields:
@@ -812,13 +947,14 @@ public Builder setUpdateMask(
      * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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; } @@ -830,6 +966,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. Mask for which fields to update. You can only provide the
      * following fields:
@@ -840,7 +978,8 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
      * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -854,6 +993,8 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. Mask for which fields to update. You can only provide the
      * following fields:
@@ -864,14 +1005,17 @@ public Builder clearUpdateMask() {
      * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. Mask for which fields to update. You can only provide the
      * following fields:
@@ -882,17 +1026,21 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
      * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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_; } } /** + * + * *
      * Optional. Mask for which fields to update. You can only provide the
      * following fields:
@@ -903,24 +1051,28 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
      * commas.
      * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ 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); } @@ -930,30 +1082,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) - private static final com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest(); } - public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateEvaluationJobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateEvaluationJobRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateEvaluationJobRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateEvaluationJobRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -965,9 +1119,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequestOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequestOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequestOrBuilder.java index 162e5456..763ac73e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequestOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/UpdateEvaluationJobRequestOrBuilder.java @@ -1,40 +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/datalabeling/v1beta1/data_labeling_service.proto package com.google.cloud.datalabeling.v1beta1; -public interface UpdateEvaluationJobRequestOrBuilder extends +public interface UpdateEvaluationJobRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.UpdateEvaluationJobRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Evaluation job that is going to be updated.
    * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the evaluationJob field is set. */ boolean hasEvaluationJob(); /** + * + * *
    * Required. Evaluation job that is going to be updated.
    * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The evaluationJob. */ com.google.cloud.datalabeling.v1beta1.EvaluationJob getEvaluationJob(); /** + * + * *
    * Required. Evaluation job that is going to be updated.
    * 
* - * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.datalabeling.v1beta1.EvaluationJob evaluation_job = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.datalabeling.v1beta1.EvaluationJobOrBuilder getEvaluationJobOrBuilder(); /** + * + * *
    * Optional. Mask for which fields to update. You can only provide the
    * following fields:
@@ -45,11 +77,15 @@ public interface UpdateEvaluationJobRequestOrBuilder extends
    * commas.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. Mask for which fields to update. You can only provide the
    * following fields:
@@ -60,11 +96,15 @@ public interface UpdateEvaluationJobRequestOrBuilder extends
    * commas.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. Mask for which fields to update. You can only provide the
    * following fields:
@@ -75,7 +115,8 @@ public interface UpdateEvaluationJobRequestOrBuilder extends
    * commas.
    * 
* - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Vertex.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Vertex.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Vertex.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Vertex.java index 12c7e1f8..d937fc9e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Vertex.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/Vertex.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * A vertex represents a 2D point in the image.
  * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -11,30 +28,29 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.Vertex}
  */
-public final class Vertex extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Vertex extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.Vertex)
     VertexOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Vertex.newBuilder() to construct.
   private Vertex(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-  private Vertex() {
-  }
+
+  private Vertex() {}
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Vertex();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Vertex(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -53,23 +69,23 @@ private Vertex(
           case 0:
             done = true;
             break;
-          case 8: {
-
-            x_ = input.readInt32();
-            break;
-          }
-          case 16: {
-
-            y_ = input.readInt32();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 8:
+            {
+              x_ = input.readInt32();
+              break;
+            }
+          case 16:
+            {
+              y_ = input.readInt32();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -77,34 +93,39 @@ private Vertex(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
-      throw new com.google.protobuf.InvalidProtocolBufferException(
-          e).setUnfinishedMessage(this);
+      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Vertex_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_Vertex_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.Vertex.class, com.google.cloud.datalabeling.v1beta1.Vertex.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.Vertex.class,
+            com.google.cloud.datalabeling.v1beta1.Vertex.Builder.class);
   }
 
   public static final int X_FIELD_NUMBER = 1;
   private int x_;
   /**
+   *
+   *
    * 
    * X coordinate.
    * 
* * int32 x = 1; + * * @return The x. */ @java.lang.Override @@ -115,11 +136,14 @@ public int getX() { public static final int Y_FIELD_NUMBER = 2; private int y_; /** + * + * *
    * Y coordinate.
    * 
* * int32 y = 2; + * * @return The y. */ @java.lang.Override @@ -128,6 +152,7 @@ public int getY() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -139,8 +164,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_ != 0) { output.writeInt32(1, x_); } @@ -157,12 +181,10 @@ public int getSerializedSize() { size = 0; if (x_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, x_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, x_); } if (y_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, y_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, y_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -172,17 +194,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.datalabeling.v1beta1.Vertex)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.Vertex other = (com.google.cloud.datalabeling.v1beta1.Vertex) obj; + com.google.cloud.datalabeling.v1beta1.Vertex other = + (com.google.cloud.datalabeling.v1beta1.Vertex) obj; - if (getX() - != other.getX()) return false; - if (getY() - != other.getY()) return false; + if (getX() != other.getX()) return false; + if (getY() != other.getY()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -203,97 +224,104 @@ public int hashCode() { return hash; } - public static com.google.cloud.datalabeling.v1beta1.Vertex parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.datalabeling.v1beta1.Vertex parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.Vertex parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.Vertex parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.Vertex parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.Vertex parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.Vertex parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.Vertex 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.datalabeling.v1beta1.Vertex parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.Vertex parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.Vertex parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.Vertex parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.Vertex parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.Vertex parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.Vertex prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected 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.
    * NOTE: the vertex coordinates are in the same scale as the original image.
@@ -301,21 +329,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.Vertex}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.Vertex)
       com.google.cloud.datalabeling.v1beta1.VertexOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Vertex_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_Vertex_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.Vertex.class, com.google.cloud.datalabeling.v1beta1.Vertex.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.Vertex.class,
+              com.google.cloud.datalabeling.v1beta1.Vertex.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.Vertex.newBuilder()
@@ -323,16 +353,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 +373,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_Vertex_descriptor;
     }
 
     @java.lang.Override
@@ -365,7 +394,8 @@ public com.google.cloud.datalabeling.v1beta1.Vertex build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.Vertex buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.Vertex result = new com.google.cloud.datalabeling.v1beta1.Vertex(this);
+      com.google.cloud.datalabeling.v1beta1.Vertex result =
+          new com.google.cloud.datalabeling.v1beta1.Vertex(this);
       result.x_ = x_;
       result.y_ = y_;
       onBuilt();
@@ -376,38 +406,39 @@ public com.google.cloud.datalabeling.v1beta1.Vertex buildPartial() {
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.cloud.datalabeling.v1beta1.Vertex) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Vertex)other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.Vertex) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -451,13 +482,16 @@ public Builder mergeFrom(
       return this;
     }
 
-    private int x_ ;
+    private int x_;
     /**
+     *
+     *
      * 
      * X coordinate.
      * 
* * int32 x = 1; + * * @return The x. */ @java.lang.Override @@ -465,42 +499,51 @@ public int getX() { return x_; } /** + * + * *
      * X coordinate.
      * 
* * int32 x = 1; + * * @param value The x to set. * @return This builder for chaining. */ public Builder setX(int value) { - + x_ = value; onChanged(); return this; } /** + * + * *
      * X coordinate.
      * 
* * int32 x = 1; + * * @return This builder for chaining. */ public Builder clearX() { - + x_ = 0; onChanged(); return this; } - private int y_ ; + private int y_; /** + * + * *
      * Y coordinate.
      * 
* * int32 y = 2; + * * @return The y. */ @java.lang.Override @@ -508,37 +551,43 @@ public int getY() { return y_; } /** + * + * *
      * Y coordinate.
      * 
* * int32 y = 2; + * * @param value The y to set. * @return This builder for chaining. */ public Builder setY(int value) { - + y_ = value; onChanged(); return this; } /** + * + * *
      * Y coordinate.
      * 
* * int32 y = 2; + * * @return This builder for chaining. */ public Builder clearY() { - + y_ = 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); } @@ -548,12 +597,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.Vertex) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.Vertex) private static final com.google.cloud.datalabeling.v1beta1.Vertex DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.Vertex(); } @@ -562,16 +611,16 @@ public static com.google.cloud.datalabeling.v1beta1.Vertex getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Vertex parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Vertex(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Vertex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Vertex(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -586,6 +635,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.Vertex getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VertexOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VertexOrBuilder.java new file mode 100644 index 00000000..620819bd --- /dev/null +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VertexOrBuilder.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/datalabeling/v1beta1/annotation.proto + +package com.google.cloud.datalabeling.v1beta1; + +public interface VertexOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.Vertex) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * X coordinate.
+   * 
+ * + * int32 x = 1; + * + * @return The x. + */ + int getX(); + + /** + * + * + *
+   * Y coordinate.
+   * 
+ * + * int32 y = 2; + * + * @return The y. + */ + int getY(); +} diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotation.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotation.java similarity index 68% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotation.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotation.java index 693567a8..75e173ff 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotation.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotation.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Video classification annotation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation} */ -public final class VideoClassificationAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VideoClassificationAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.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) { super(builder); } - private VideoClassificationAnnotation() { - } + + private VideoClassificationAnnotation() {} @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) @@ -52,39 +68,47 @@ private VideoClassificationAnnotation( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder subBuilder = null; - if (timeSegment_ != null) { - subBuilder = timeSegment_.toBuilder(); - } - timeSegment_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.TimeSegment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeSegment_); - timeSegment_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder subBuilder = null; + if (timeSegment_ != null) { + subBuilder = timeSegment_.toBuilder(); + } + timeSegment_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.TimeSegment.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeSegment_); + timeSegment_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; - if (annotationSpec_ != null) { - subBuilder = annotationSpec_.toBuilder(); - } - annotationSpec_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotationSpec_); - annotationSpec_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; + if (annotationSpec_ != null) { + subBuilder = annotationSpec_.toBuilder(); + } + annotationSpec_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotationSpec_); + annotationSpec_ = 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) { @@ -92,34 +116,39 @@ private VideoClassificationAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.class, com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.class, + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder.class); } public static final int TIME_SEGMENT_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.TimeSegment timeSegment_; /** + * + * *
    * The time segment of the video to which the annotation applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 1; + * * @return Whether the timeSegment field is set. */ @java.lang.Override @@ -127,18 +156,25 @@ public boolean hasTimeSegment() { return timeSegment_ != null; } /** + * + * *
    * The time segment of the video to which the annotation applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 1; + * * @return The timeSegment. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TimeSegment getTimeSegment() { - return timeSegment_ == null ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() : timeSegment_; + return timeSegment_ == null + ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() + : timeSegment_; } /** + * + * *
    * The time segment of the video to which the annotation applies.
    * 
@@ -153,11 +189,14 @@ public com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegment public static final int ANNOTATION_SPEC_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; /** + * + * *
    * Label of the segment specified by time_segment.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 2; + * * @return Whether the annotationSpec field is set. */ @java.lang.Override @@ -165,18 +204,25 @@ public boolean hasAnnotationSpec() { return annotationSpec_ != null; } /** + * + * *
    * Label of the segment specified by time_segment.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 2; + * * @return The annotationSpec. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { - return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } /** + * + * *
    * Label of the segment specified by time_segment.
    * 
@@ -184,11 +230,13 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 2; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder + getAnnotationSpecOrBuilder() { return getAnnotationSpec(); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +248,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 (timeSegment_ != null) { output.writeMessage(1, getTimeSegment()); } @@ -218,12 +265,10 @@ public int getSerializedSize() { size = 0; if (timeSegment_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTimeSegment()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTimeSegment()); } if (annotationSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAnnotationSpec()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAnnotationSpec()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,22 +278,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.datalabeling.v1beta1.VideoClassificationAnnotation)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation other = (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) obj; + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation other = + (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) obj; if (hasTimeSegment() != other.hasTimeSegment()) return false; if (hasTimeSegment()) { - if (!getTimeSegment() - .equals(other.getTimeSegment())) return false; + if (!getTimeSegment().equals(other.getTimeSegment())) return false; } if (hasAnnotationSpec() != other.hasAnnotationSpec()) return false; if (hasAnnotationSpec()) { - if (!getAnnotationSpec() - .equals(other.getAnnotationSpec())) return false; + if (!getAnnotationSpec().equals(other.getAnnotationSpec())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -275,134 +319,145 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation 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.datalabeling.v1beta1.VideoClassificationAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.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.datalabeling.v1beta1.VideoClassificationAnnotation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.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.datalabeling.v1beta1.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.datalabeling.v1beta1.VideoClassificationAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.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); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.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 - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Video classification annotation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.VideoClassificationAnnotation) com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.class, com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.class, + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.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(); @@ -422,14 +477,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation + .getDefaultInstance(); } @java.lang.Override @@ -443,7 +500,8 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation build @java.lang.Override public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation buildPartial() { - com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation result = new com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation(this); + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation result = + new com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation(this); if (timeSegmentBuilder_ == null) { result.timeSegment_ = timeSegment_; } else { @@ -462,46 +520,51 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation 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.datalabeling.v1beta1.VideoClassificationAnnotation) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation)other); + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation other) { - if (other == com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation other) { + if (other + == com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation + .getDefaultInstance()) return this; if (other.hasTimeSegment()) { mergeTimeSegment(other.getTimeSegment()); } @@ -527,7 +590,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -539,34 +604,47 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.TimeSegment timeSegment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TimeSegment, com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> timeSegmentBuilder_; + com.google.cloud.datalabeling.v1beta1.TimeSegment, + com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, + com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> + timeSegmentBuilder_; /** + * + * *
      * The time segment of the video to which the annotation applies.
      * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 1; + * * @return Whether the timeSegment field is set. */ public boolean hasTimeSegment() { return timeSegmentBuilder_ != null || timeSegment_ != null; } /** + * + * *
      * The time segment of the video to which the annotation applies.
      * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 1; + * * @return The timeSegment. */ public com.google.cloud.datalabeling.v1beta1.TimeSegment getTimeSegment() { if (timeSegmentBuilder_ == null) { - return timeSegment_ == null ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() : timeSegment_; + return timeSegment_ == null + ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() + : timeSegment_; } else { return timeSegmentBuilder_.getMessage(); } } /** + * + * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -587,6 +665,8 @@ public Builder setTimeSegment(com.google.cloud.datalabeling.v1beta1.TimeSegment return this; } /** + * + * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -605,6 +685,8 @@ public Builder setTimeSegment( return this; } /** + * + * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -615,7 +697,9 @@ public Builder mergeTimeSegment(com.google.cloud.datalabeling.v1beta1.TimeSegmen if (timeSegmentBuilder_ == null) { if (timeSegment_ != null) { timeSegment_ = - com.google.cloud.datalabeling.v1beta1.TimeSegment.newBuilder(timeSegment_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.TimeSegment.newBuilder(timeSegment_) + .mergeFrom(value) + .buildPartial(); } else { timeSegment_ = value; } @@ -627,6 +711,8 @@ public Builder mergeTimeSegment(com.google.cloud.datalabeling.v1beta1.TimeSegmen return this; } /** + * + * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -645,6 +731,8 @@ public Builder clearTimeSegment() { return this; } /** + * + * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -652,11 +740,13 @@ public Builder clearTimeSegment() { * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 1; */ public com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder getTimeSegmentBuilder() { - + onChanged(); return getTimeSegmentFieldBuilder().getBuilder(); } /** + * + * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -667,11 +757,14 @@ public com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegment if (timeSegmentBuilder_ != null) { return timeSegmentBuilder_.getMessageOrBuilder(); } else { - return timeSegment_ == null ? - com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() : timeSegment_; + return timeSegment_ == null + ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() + : timeSegment_; } } /** + * + * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -679,14 +772,17 @@ public com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegment * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TimeSegment, com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> + com.google.cloud.datalabeling.v1beta1.TimeSegment, + com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, + com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> getTimeSegmentFieldBuilder() { if (timeSegmentBuilder_ == null) { - timeSegmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TimeSegment, com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder>( - getTimeSegment(), - getParentForChildren(), - isClean()); + timeSegmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TimeSegment, + com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, + com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder>( + getTimeSegment(), getParentForChildren(), isClean()); timeSegment_ = null; } return timeSegmentBuilder_; @@ -694,34 +790,47 @@ public com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegment private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + annotationSpecBuilder_; /** + * + * *
      * Label of the segment specified by time_segment.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 2; + * * @return Whether the annotationSpec field is set. */ public boolean hasAnnotationSpec() { return annotationSpecBuilder_ != null || annotationSpec_ != null; } /** + * + * *
      * Label of the segment specified by time_segment.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 2; + * * @return The annotationSpec. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { if (annotationSpecBuilder_ == null) { - return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } else { return annotationSpecBuilder_.getMessage(); } } /** + * + * *
      * Label of the segment specified by time_segment.
      * 
@@ -742,6 +851,8 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio return this; } /** + * + * *
      * Label of the segment specified by time_segment.
      * 
@@ -760,6 +871,8 @@ public Builder setAnnotationSpec( return this; } /** + * + * *
      * Label of the segment specified by time_segment.
      * 
@@ -770,7 +883,9 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat if (annotationSpecBuilder_ == null) { if (annotationSpec_ != null) { annotationSpec_ = - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_) + .mergeFrom(value) + .buildPartial(); } else { annotationSpec_ = value; } @@ -782,6 +897,8 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat return this; } /** + * + * *
      * Label of the segment specified by time_segment.
      * 
@@ -800,6 +917,8 @@ public Builder clearAnnotationSpec() { return this; } /** + * + * *
      * Label of the segment specified by time_segment.
      * 
@@ -807,26 +926,32 @@ public Builder clearAnnotationSpec() { * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 2; */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotationSpecBuilder() { - + onChanged(); return getAnnotationSpecFieldBuilder().getBuilder(); } /** + * + * *
      * Label of the segment specified by time_segment.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 2; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder + getAnnotationSpecOrBuilder() { if (annotationSpecBuilder_ != null) { return annotationSpecBuilder_.getMessageOrBuilder(); } else { - return annotationSpec_ == null ? - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } } /** + * + * *
      * Label of the segment specified by time_segment.
      * 
@@ -834,21 +959,24 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotati * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> getAnnotationSpecFieldBuilder() { if (annotationSpecBuilder_ == null) { - annotationSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( - getAnnotationSpec(), - getParentForChildren(), - isClean()); + annotationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( + getAnnotationSpec(), getParentForChildren(), isClean()); annotationSpec_ = null; } return annotationSpecBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -858,30 +986,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) - private static final com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation(); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.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; @@ -893,9 +1023,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotationOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotationOrBuilder.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotationOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotationOrBuilder.java index 4de617a0..d4251274 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotationOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationAnnotationOrBuilder.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface VideoClassificationAnnotationOrBuilder extends +public interface VideoClassificationAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The time segment of the video to which the annotation applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 1; + * * @return Whether the timeSegment field is set. */ boolean hasTimeSegment(); /** + * + * *
    * The time segment of the video to which the annotation applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 1; + * * @return The timeSegment. */ com.google.cloud.datalabeling.v1beta1.TimeSegment getTimeSegment(); /** + * + * *
    * The time segment of the video to which the annotation applies.
    * 
@@ -35,24 +59,32 @@ public interface VideoClassificationAnnotationOrBuilder extends com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegmentOrBuilder(); /** + * + * *
    * Label of the segment specified by time_segment.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 2; + * * @return Whether the annotationSpec field is set. */ boolean hasAnnotationSpec(); /** + * + * *
    * Label of the segment specified by time_segment.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 2; + * * @return The annotationSpec. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec(); /** + * + * *
    * Label of the segment specified by time_segment.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfig.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfig.java similarity index 64% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfig.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfig.java index 281a5efc..963dd503 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfig.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfig.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Config for video classification human labeling task.
  * Currently two types of video classification are supported:
@@ -14,31 +31,31 @@
  *
  * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoClassificationConfig}
  */
-public final class VideoClassificationConfig extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class VideoClassificationConfig extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.VideoClassificationConfig)
     VideoClassificationConfigOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use VideoClassificationConfig.newBuilder() to construct.
   private VideoClassificationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private VideoClassificationConfig() {
     annotationSpecSetConfigs_ = 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 VideoClassificationConfig();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private VideoClassificationConfig(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -58,27 +75,34 @@ private VideoClassificationConfig(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              annotationSpecSetConfigs_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                annotationSpecSetConfigs_ =
+                    new java.util.ArrayList<
+                        com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig
+                            .AnnotationSpecSetConfig>();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              annotationSpecSetConfigs_.add(
+                  input.readMessage(
+                      com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig
+                          .AnnotationSpecSetConfig.parser(),
+                      extensionRegistry));
+              break;
             }
-            annotationSpecSetConfigs_.add(
-                input.readMessage(com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.parser(), extensionRegistry));
-            break;
-          }
-          case 16: {
-
-            applyShotDetection_ = input.readBool();
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+          case 16:
+            {
+              applyShotDetection_ = input.readBool();
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -86,96 +110,111 @@ private VideoClassificationConfig(
     } catch (com.google.protobuf.UninitializedMessageException e) {
       throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } 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)) {
-        annotationSpecSetConfigs_ = java.util.Collections.unmodifiableList(annotationSpecSetConfigs_);
+        annotationSpecSetConfigs_ =
+            java.util.Collections.unmodifiableList(annotationSpecSetConfigs_);
       }
       this.unknownFields = unknownFields.build();
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_fieldAccessorTable
+    return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass
+        .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.class, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder.class);
+            com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.class,
+            com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder.class);
   }
 
-  public interface AnnotationSpecSetConfigOrBuilder extends
+  public interface AnnotationSpecSetConfigOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ java.lang.String getAnnotationSpecSet(); /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ - com.google.protobuf.ByteString - getAnnotationSpecSetBytes(); + com.google.protobuf.ByteString getAnnotationSpecSetBytes(); /** + * + * *
      * Optional. If allow_multi_label is true, contributors are able to
      * choose multiple labels from one annotation spec set.
      * 
* * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMultiLabel. */ boolean getAllowMultiLabel(); } /** + * + * *
    * Annotation spec set with the setting of allowing multi labels or not.
    * 
* - * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig} + * Protobuf type {@code + * google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig} */ - public static final class AnnotationSpecSetConfig extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class AnnotationSpecSetConfig extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig) AnnotationSpecSetConfigOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use AnnotationSpecSetConfig.newBuilder() to construct. private AnnotationSpecSetConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private AnnotationSpecSetConfig() { annotationSpecSet_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new AnnotationSpecSetConfig(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private AnnotationSpecSetConfig( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -194,24 +233,25 @@ private AnnotationSpecSetConfig( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - annotationSpecSet_ = s; - break; - } - case 16: { - - allowMultiLabel_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + annotationSpecSet_ = s; + break; + } + case 16: + { + allowMultiLabel_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -219,34 +259,41 @@ private AnnotationSpecSetConfig( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.class, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig.class, + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig.Builder.class); } public static final int ANNOTATION_SPEC_SET_FIELD_NUMBER = 1; private volatile java.lang.Object annotationSpecSet_; /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ @java.lang.Override @@ -255,29 +302,29 @@ public java.lang.String getAnnotationSpecSet() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; } } /** + * + * *
      * Required. Annotation spec set resource name.
      * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ @java.lang.Override - public com.google.protobuf.ByteString - getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -288,12 +335,15 @@ public java.lang.String getAnnotationSpecSet() { public static final int ALLOW_MULTI_LABEL_FIELD_NUMBER = 2; private boolean allowMultiLabel_; /** + * + * *
      * Optional. If allow_multi_label is true, contributors are able to
      * choose multiple labels from one annotation spec set.
      * 
* * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMultiLabel. */ @java.lang.Override @@ -302,6 +352,7 @@ public boolean getAllowMultiLabel() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -313,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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(annotationSpecSet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, annotationSpecSet_); } @@ -334,8 +384,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, annotationSpecSet_); } if (allowMultiLabel_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, allowMultiLabel_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, allowMultiLabel_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -345,17 +394,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.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig)) { + if (!(obj + instanceof + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig other = (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig) obj; + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + other = + (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig) + obj; - if (!getAnnotationSpecSet() - .equals(other.getAnnotationSpecSet())) return false; - if (getAllowMultiLabel() - != other.getAllowMultiLabel()) return false; + if (!getAnnotationSpecSet().equals(other.getAnnotationSpecSet())) return false; + if (getAllowMultiLabel() != other.getAllowMultiLabel()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -370,95 +424,120 @@ public int hashCode() { hash = (37 * hash) + ANNOTATION_SPEC_SET_FIELD_NUMBER; hash = (53 * hash) + getAnnotationSpecSet().hashCode(); hash = (37 * hash) + ALLOW_MULTI_LABEL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAllowMultiLabel()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAllowMultiLabel()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig + 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.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig 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.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig + 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.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig 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.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig + 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.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig 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.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig + 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.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override @@ -468,44 +547,53 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * Annotation spec set with the setting of allowing multi labels or not.
      * 
* - * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig} + * Protobuf type {@code + * google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig) - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor; + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.class, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig.class, + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.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(); @@ -517,19 +605,23 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_AnnotationSpecSetConfig_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig build() { - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig result = buildPartial(); + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + build() { + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -537,8 +629,12 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Annotatio } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig buildPartial() { - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig result = new com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig(this); + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + buildPartial() { + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + result = + new com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig(this); result.annotationSpecSet_ = annotationSpecSet_; result.allowMultiLabel_ = allowMultiLabel_; onBuilt(); @@ -549,46 +645,59 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Annotatio public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.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.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig)other); + if (other + instanceof + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig) { + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig) + other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig other) { - if (other == com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + other) { + if (other + == com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig.getDefaultInstance()) return this; if (!other.getAnnotationSpecSet().isEmpty()) { annotationSpecSet_ = other.annotationSpecSet_; onChanged(); @@ -611,11 +720,15 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig parsedMessage = null; + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -627,18 +740,20 @@ public Builder mergeFrom( private java.lang.Object annotationSpecSet_ = ""; /** + * + * *
        * Required. Annotation spec set resource name.
        * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The annotationSpecSet. */ public java.lang.String getAnnotationSpecSet() { java.lang.Object ref = annotationSpecSet_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); annotationSpecSet_ = s; return s; @@ -647,20 +762,21 @@ public java.lang.String getAnnotationSpecSet() { } } /** + * + * *
        * Required. Annotation spec set resource name.
        * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for annotationSpecSet. */ - public com.google.protobuf.ByteString - getAnnotationSpecSetBytes() { + public com.google.protobuf.ByteString getAnnotationSpecSetBytes() { java.lang.Object ref = annotationSpecSet_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); annotationSpecSet_ = b; return b; } else { @@ -668,67 +784,77 @@ public java.lang.String getAnnotationSpecSet() { } } /** + * + * *
        * Required. Annotation spec set resource name.
        * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSet( - java.lang.String value) { + public Builder setAnnotationSpecSet(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + annotationSpecSet_ = value; onChanged(); return this; } /** + * + * *
        * Required. Annotation spec set resource name.
        * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearAnnotationSpecSet() { - + annotationSpecSet_ = getDefaultInstance().getAnnotationSpecSet(); onChanged(); return this; } /** + * + * *
        * Required. Annotation spec set resource name.
        * 
* * string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for annotationSpecSet to set. * @return This builder for chaining. */ - public Builder setAnnotationSpecSetBytes( - com.google.protobuf.ByteString value) { + public Builder setAnnotationSpecSetBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + annotationSpecSet_ = value; onChanged(); return this; } - private boolean allowMultiLabel_ ; + private boolean allowMultiLabel_; /** + * + * *
        * Optional. If allow_multi_label is true, contributors are able to
        * choose multiple labels from one annotation spec set.
        * 
* * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The allowMultiLabel. */ @java.lang.Override @@ -736,36 +862,43 @@ public boolean getAllowMultiLabel() { return allowMultiLabel_; } /** + * + * *
        * Optional. If allow_multi_label is true, contributors are able to
        * choose multiple labels from one annotation spec set.
        * 
* * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The allowMultiLabel to set. * @return This builder for chaining. */ public Builder setAllowMultiLabel(boolean value) { - + allowMultiLabel_ = value; onChanged(); return this; } /** + * + * *
        * Optional. If allow_multi_label is true, contributors are able to
        * choose multiple labels from one annotation spec set.
        * 
* * bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearAllowMultiLabel() { - + allowMultiLabel_ = false; onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -778,30 +911,36 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig) - private static final com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig(); + DEFAULT_INSTANCE = + new com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig(); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AnnotationSpecSetConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AnnotationSpecSetConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotationSpecSetConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AnnotationSpecSetConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -813,15 +952,19 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int ANNOTATION_SPEC_SET_CONFIGS_FIELD_NUMBER = 1; - private java.util.List annotationSpecSetConfigs_; + private java.util.List< + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig> + annotationSpecSetConfigs_; /** + * + * *
    * Required. The list of annotation spec set configs.
    * Since watching a video clip takes much longer time than an image, we
@@ -831,13 +974,19 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Annotatio
    * label) from each group.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public java.util.List getAnnotationSpecSetConfigsList() { + public java.util.List< + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig> + getAnnotationSpecSetConfigsList() { return annotationSpecSetConfigs_; } /** + * + * *
    * Required. The list of annotation spec set configs.
    * Since watching a video clip takes much longer time than an image, we
@@ -847,14 +996,21 @@ public java.util.List
    *
-   * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED];
+   * 
+   * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED];
+   * 
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List<
+          ? extends
+              com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig
+                  .AnnotationSpecSetConfigOrBuilder>
       getAnnotationSpecSetConfigsOrBuilderList() {
     return annotationSpecSetConfigs_;
   }
   /**
+   *
+   *
    * 
    * Required. The list of annotation spec set configs.
    * Since watching a video clip takes much longer time than an image, we
@@ -864,13 +1020,17 @@ public java.util.List
    *
-   * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED];
+   * 
+   * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED];
+   * 
    */
   @java.lang.Override
   public int getAnnotationSpecSetConfigsCount() {
     return annotationSpecSetConfigs_.size();
   }
   /**
+   *
+   *
    * 
    * Required. The list of annotation spec set configs.
    * Since watching a video clip takes much longer time than an image, we
@@ -880,13 +1040,18 @@ public int getAnnotationSpecSetConfigsCount() {
    * label) from each group.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig getAnnotationSpecSetConfigs(int index) { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + getAnnotationSpecSetConfigs(int index) { return annotationSpecSetConfigs_.get(index); } /** + * + * *
    * Required. The list of annotation spec set configs.
    * Since watching a video clip takes much longer time than an image, we
@@ -896,22 +1061,28 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Annotatio
    * label) from each group.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfigOrBuilder getAnnotationSpecSetConfigsOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfigOrBuilder + getAnnotationSpecSetConfigsOrBuilder(int index) { return annotationSpecSetConfigs_.get(index); } public static final int APPLY_SHOT_DETECTION_FIELD_NUMBER = 2; private boolean applyShotDetection_; /** + * + * *
    * Optional. Option to apply shot detection on the video.
    * 
* * bool apply_shot_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The applyShotDetection. */ @java.lang.Override @@ -920,6 +1091,7 @@ public boolean getApplyShotDetection() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -931,8 +1103,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 < annotationSpecSetConfigs_.size(); i++) { output.writeMessage(1, annotationSpecSetConfigs_.get(i)); } @@ -949,12 +1120,12 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < annotationSpecSetConfigs_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, annotationSpecSetConfigs_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, annotationSpecSetConfigs_.get(i)); } if (applyShotDetection_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, applyShotDetection_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, applyShotDetection_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -964,17 +1135,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.datalabeling.v1beta1.VideoClassificationConfig)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig other = (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) obj; + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig other = + (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) obj; - if (!getAnnotationSpecSetConfigsList() - .equals(other.getAnnotationSpecSetConfigsList())) return false; - if (getApplyShotDetection() - != other.getApplyShotDetection()) return false; + if (!getAnnotationSpecSetConfigsList().equals(other.getAnnotationSpecSetConfigsList())) + return false; + if (getApplyShotDetection() != other.getApplyShotDetection()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -991,104 +1162,111 @@ public int hashCode() { hash = (53 * hash) + getAnnotationSpecSetConfigsList().hashCode(); } hash = (37 * hash) + APPLY_SHOT_DETECTION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getApplyShotDetection()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getApplyShotDetection()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig 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.datalabeling.v1beta1.VideoClassificationConfig parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Config for video classification human labeling task.
    * Currently two types of video classification are supported:
@@ -1099,21 +1277,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoClassificationConfig}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.VideoClassificationConfig)
       com.google.cloud.datalabeling.v1beta1.VideoClassificationConfigOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_fieldAccessorTable
+      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.class, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder.class);
+              com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.class,
+              com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Builder.class);
     }
 
     // Construct using com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.newBuilder()
@@ -1121,17 +1301,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) {
         getAnnotationSpecSetConfigsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1147,13 +1327,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.datalabeling.v1beta1.HumanAnnotationConfigOuterClass
+          .internal_static_google_cloud_datalabeling_v1beta1_VideoClassificationConfig_descriptor;
     }
 
     @java.lang.Override
-    public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig getDefaultInstanceForType() {
+    public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig
+        getDefaultInstanceForType() {
       return com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance();
     }
 
@@ -1168,11 +1349,13 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig build() {
 
     @java.lang.Override
     public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig buildPartial() {
-      com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig result = new com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig(this);
+      com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig result =
+          new com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig(this);
       int from_bitField0_ = bitField0_;
       if (annotationSpecSetConfigsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
-          annotationSpecSetConfigs_ = java.util.Collections.unmodifiableList(annotationSpecSetConfigs_);
+          annotationSpecSetConfigs_ =
+              java.util.Collections.unmodifiableList(annotationSpecSetConfigs_);
           bitField0_ = (bitField0_ & ~0x00000001);
         }
         result.annotationSpecSetConfigs_ = annotationSpecSetConfigs_;
@@ -1188,46 +1371,50 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig 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.datalabeling.v1beta1.VideoClassificationConfig) {
-        return mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig)other);
+        return mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) other);
       } else {
         super.mergeFrom(other);
         return this;
       }
     }
 
-    public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig other) {
-      if (other == com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance()) return this;
+    public Builder mergeFrom(
+        com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig other) {
+      if (other
+          == com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.getDefaultInstance())
+        return this;
       if (annotationSpecSetConfigsBuilder_ == null) {
         if (!other.annotationSpecSetConfigs_.isEmpty()) {
           if (annotationSpecSetConfigs_.isEmpty()) {
@@ -1246,9 +1433,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.VideoClassificati
             annotationSpecSetConfigsBuilder_ = null;
             annotationSpecSetConfigs_ = other.annotationSpecSetConfigs_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            annotationSpecSetConfigsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getAnnotationSpecSetConfigsFieldBuilder() : null;
+            annotationSpecSetConfigsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getAnnotationSpecSetConfigsFieldBuilder()
+                    : null;
           } else {
             annotationSpecSetConfigsBuilder_.addAllMessages(other.annotationSpecSetConfigs_);
           }
@@ -1276,7 +1464,9 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig)
+                e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -1285,21 +1475,34 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
-    private java.util.List annotationSpecSetConfigs_ =
-      java.util.Collections.emptyList();
+    private java.util.List<
+            com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig>
+        annotationSpecSetConfigs_ = java.util.Collections.emptyList();
+
     private void ensureAnnotationSpecSetConfigsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        annotationSpecSetConfigs_ = new java.util.ArrayList(annotationSpecSetConfigs_);
+        annotationSpecSetConfigs_ =
+            new java.util.ArrayList<
+                com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig
+                    .AnnotationSpecSetConfig>(annotationSpecSetConfigs_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfigOrBuilder> annotationSpecSetConfigsBuilder_;
+            com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig,
+            com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig
+                .Builder,
+            com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig
+                .AnnotationSpecSetConfigOrBuilder>
+        annotationSpecSetConfigsBuilder_;
 
     /**
+     *
+     *
      * 
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1309,9 +1512,13 @@ private void ensureAnnotationSpecSetConfigsIsMutable() {
      * label) from each group.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List getAnnotationSpecSetConfigsList() { + public java.util.List< + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig> + getAnnotationSpecSetConfigsList() { if (annotationSpecSetConfigsBuilder_ == null) { return java.util.Collections.unmodifiableList(annotationSpecSetConfigs_); } else { @@ -1319,6 +1526,8 @@ public java.util.List * Required. The list of annotation spec set configs. * Since watching a video clip takes much longer time than an image, we @@ -1328,7 +1537,9 @@ public java.util.List * - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public int getAnnotationSpecSetConfigsCount() { if (annotationSpecSetConfigsBuilder_ == null) { @@ -1338,6 +1549,8 @@ public int getAnnotationSpecSetConfigsCount() { } } /** + * + * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1347,9 +1560,12 @@ public int getAnnotationSpecSetConfigsCount() {
      * label) from each group.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig getAnnotationSpecSetConfigs(int index) { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + getAnnotationSpecSetConfigs(int index) { if (annotationSpecSetConfigsBuilder_ == null) { return annotationSpecSetConfigs_.get(index); } else { @@ -1357,6 +1573,8 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Annotatio } } /** + * + * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1366,10 +1584,14 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Annotatio
      * label) from each group.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAnnotationSpecSetConfigs( - int index, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig value) { + int index, + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + value) { if (annotationSpecSetConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1383,6 +1605,8 @@ public Builder setAnnotationSpecSetConfigs( return this; } /** + * + * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1392,10 +1616,15 @@ public Builder setAnnotationSpecSetConfigs(
      * label) from each group.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAnnotationSpecSetConfigs( - int index, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.Builder builderForValue) { + int index, + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + .Builder + builderForValue) { if (annotationSpecSetConfigsBuilder_ == null) { ensureAnnotationSpecSetConfigsIsMutable(); annotationSpecSetConfigs_.set(index, builderForValue.build()); @@ -1406,6 +1635,8 @@ public Builder setAnnotationSpecSetConfigs( return this; } /** + * + * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1415,9 +1646,13 @@ public Builder setAnnotationSpecSetConfigs(
      * label) from each group.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addAnnotationSpecSetConfigs(com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig value) { + public Builder addAnnotationSpecSetConfigs( + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + value) { if (annotationSpecSetConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1431,6 +1666,8 @@ public Builder addAnnotationSpecSetConfigs(com.google.cloud.datalabeling.v1beta1 return this; } /** + * + * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1440,10 +1677,14 @@ public Builder addAnnotationSpecSetConfigs(com.google.cloud.datalabeling.v1beta1
      * label) from each group.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAnnotationSpecSetConfigs( - int index, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig value) { + int index, + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + value) { if (annotationSpecSetConfigsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1457,6 +1698,8 @@ public Builder addAnnotationSpecSetConfigs( return this; } /** + * + * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1466,10 +1709,14 @@ public Builder addAnnotationSpecSetConfigs(
      * label) from each group.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAnnotationSpecSetConfigs( - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.Builder builderForValue) { + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + .Builder + builderForValue) { if (annotationSpecSetConfigsBuilder_ == null) { ensureAnnotationSpecSetConfigsIsMutable(); annotationSpecSetConfigs_.add(builderForValue.build()); @@ -1480,6 +1727,8 @@ public Builder addAnnotationSpecSetConfigs( return this; } /** + * + * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1489,10 +1738,15 @@ public Builder addAnnotationSpecSetConfigs(
      * label) from each group.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAnnotationSpecSetConfigs( - int index, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.Builder builderForValue) { + int index, + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + .Builder + builderForValue) { if (annotationSpecSetConfigsBuilder_ == null) { ensureAnnotationSpecSetConfigsIsMutable(); annotationSpecSetConfigs_.add(index, builderForValue.build()); @@ -1503,6 +1757,8 @@ public Builder addAnnotationSpecSetConfigs( return this; } /** + * + * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1512,14 +1768,19 @@ public Builder addAnnotationSpecSetConfigs(
      * label) from each group.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder addAllAnnotationSpecSetConfigs( - java.lang.Iterable values) { + java.lang.Iterable< + ? extends + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig> + values) { if (annotationSpecSetConfigsBuilder_ == null) { ensureAnnotationSpecSetConfigsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, annotationSpecSetConfigs_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, annotationSpecSetConfigs_); onChanged(); } else { annotationSpecSetConfigsBuilder_.addAllMessages(values); @@ -1527,6 +1788,8 @@ public Builder addAllAnnotationSpecSetConfigs( return this; } /** + * + * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1536,7 +1799,9 @@ public Builder addAllAnnotationSpecSetConfigs(
      * label) from each group.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAnnotationSpecSetConfigs() { if (annotationSpecSetConfigsBuilder_ == null) { @@ -1549,6 +1814,8 @@ public Builder clearAnnotationSpecSetConfigs() { return this; } /** + * + * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1558,7 +1825,9 @@ public Builder clearAnnotationSpecSetConfigs() {
      * label) from each group.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeAnnotationSpecSetConfigs(int index) { if (annotationSpecSetConfigsBuilder_ == null) { @@ -1571,6 +1840,8 @@ public Builder removeAnnotationSpecSetConfigs(int index) { return this; } /** + * + * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1580,13 +1851,18 @@ public Builder removeAnnotationSpecSetConfigs(int index) {
      * label) from each group.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.Builder getAnnotationSpecSetConfigsBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + .Builder + getAnnotationSpecSetConfigsBuilder(int index) { return getAnnotationSpecSetConfigsFieldBuilder().getBuilder(index); } /** + * + * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1596,16 +1872,22 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Annotatio
      * label) from each group.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfigOrBuilder getAnnotationSpecSetConfigsOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfigOrBuilder + getAnnotationSpecSetConfigsOrBuilder(int index) { if (annotationSpecSetConfigsBuilder_ == null) { - return annotationSpecSetConfigs_.get(index); } else { + return annotationSpecSetConfigs_.get(index); + } else { return annotationSpecSetConfigsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1615,10 +1897,15 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Annotatio
      * label) from each group.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getAnnotationSpecSetConfigsOrBuilderList() { + public java.util.List< + ? extends + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfigOrBuilder> + getAnnotationSpecSetConfigsOrBuilderList() { if (annotationSpecSetConfigsBuilder_ != null) { return annotationSpecSetConfigsBuilder_.getMessageOrBuilderList(); } else { @@ -1626,6 +1913,8 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Annotatio } } /** + * + * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1635,13 +1924,21 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Annotatio
      * label) from each group.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.Builder addAnnotationSpecSetConfigsBuilder() { - return getAnnotationSpecSetConfigsFieldBuilder().addBuilder( - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + .Builder + addAnnotationSpecSetConfigsBuilder() { + return getAnnotationSpecSetConfigsFieldBuilder() + .addBuilder( + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig.getDefaultInstance()); } /** + * + * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1651,14 +1948,22 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Annotatio
      * label) from each group.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.Builder addAnnotationSpecSetConfigsBuilder( - int index) { - return getAnnotationSpecSetConfigsFieldBuilder().addBuilder( - index, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + .Builder + addAnnotationSpecSetConfigsBuilder(int index) { + return getAnnotationSpecSetConfigsFieldBuilder() + .addBuilder( + index, + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig.getDefaultInstance()); } /** + * + * *
      * Required. The list of annotation spec set configs.
      * Since watching a video clip takes much longer time than an image, we
@@ -1668,18 +1973,33 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Annotatio
      * label) from each group.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public java.util.List - getAnnotationSpecSetConfigsBuilderList() { + public java.util.List< + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + .Builder> + getAnnotationSpecSetConfigsBuilderList() { return getAnnotationSpecSetConfigsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfigOrBuilder> + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig, + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + .Builder, + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfigOrBuilder> getAnnotationSpecSetConfigsFieldBuilder() { if (annotationSpecSetConfigsBuilder_ == null) { - annotationSpecSetConfigsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig.Builder, com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfigOrBuilder>( + annotationSpecSetConfigsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig, + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfig.Builder, + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfigOrBuilder>( annotationSpecSetConfigs_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1689,13 +2009,16 @@ public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.Annotatio return annotationSpecSetConfigsBuilder_; } - private boolean applyShotDetection_ ; + private boolean applyShotDetection_; /** + * + * *
      * Optional. Option to apply shot detection on the video.
      * 
* * bool apply_shot_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The applyShotDetection. */ @java.lang.Override @@ -1703,37 +2026,43 @@ public boolean getApplyShotDetection() { return applyShotDetection_; } /** + * + * *
      * Optional. Option to apply shot detection on the video.
      * 
* * bool apply_shot_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The applyShotDetection to set. * @return This builder for chaining. */ public Builder setApplyShotDetection(boolean value) { - + applyShotDetection_ = value; onChanged(); return this; } /** + * + * *
      * Optional. Option to apply shot detection on the video.
      * 
* * bool apply_shot_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearApplyShotDetection() { - + applyShotDetection_ = 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); } @@ -1743,30 +2072,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.VideoClassificationConfig) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.VideoClassificationConfig) - private static final com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig(); } - public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VideoClassificationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VideoClassificationConfig(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoClassificationConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoClassificationConfig(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1778,9 +2109,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfigOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfigOrBuilder.java similarity index 58% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfigOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfigOrBuilder.java index abef4e9a..1e05fc83 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfigOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoClassificationConfigOrBuilder.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/datalabeling/v1beta1/human_annotation_config.proto package com.google.cloud.datalabeling.v1beta1; -public interface VideoClassificationConfigOrBuilder extends +public interface VideoClassificationConfigOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.VideoClassificationConfig) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The list of annotation spec set configs.
    * Since watching a video clip takes much longer time than an image, we
@@ -17,11 +35,16 @@ public interface VideoClassificationConfigOrBuilder extends
    * label) from each group.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List< + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig> getAnnotationSpecSetConfigsList(); /** + * + * *
    * Required. The list of annotation spec set configs.
    * Since watching a video clip takes much longer time than an image, we
@@ -31,10 +54,15 @@ public interface VideoClassificationConfigOrBuilder extends
    * label) from each group.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig getAnnotationSpecSetConfigs(int index); + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig + getAnnotationSpecSetConfigs(int index); /** + * + * *
    * Required. The list of annotation spec set configs.
    * Since watching a video clip takes much longer time than an image, we
@@ -44,10 +72,14 @@ public interface VideoClassificationConfigOrBuilder extends
    * label) from each group.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ int getAnnotationSpecSetConfigsCount(); /** + * + * *
    * Required. The list of annotation spec set configs.
    * Since watching a video clip takes much longer time than an image, we
@@ -57,11 +89,18 @@ public interface VideoClassificationConfigOrBuilder extends
    * label) from each group.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - java.util.List + java.util.List< + ? extends + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig + .AnnotationSpecSetConfigOrBuilder> getAnnotationSpecSetConfigsOrBuilderList(); /** + * + * *
    * Required. The list of annotation spec set configs.
    * Since watching a video clip takes much longer time than an image, we
@@ -71,17 +110,22 @@ public interface VideoClassificationConfigOrBuilder extends
    * label) from each group.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * repeated .google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig annotation_spec_set_configs = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfigOrBuilder getAnnotationSpecSetConfigsOrBuilder( - int index); + com.google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfigOrBuilder + getAnnotationSpecSetConfigsOrBuilder(int index); /** + * + * *
    * Optional. Option to apply shot detection on the video.
    * 
* * bool apply_shot_detection = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The applyShotDetection. */ boolean getApplyShotDetection(); diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotation.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotation.java similarity index 70% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotation.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotation.java index 0b5a8a17..78c372e2 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotation.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotation.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Video event annotation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoEventAnnotation} */ -public final class VideoEventAnnotation extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VideoEventAnnotation extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.VideoEventAnnotation) VideoEventAnnotationOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VideoEventAnnotation.newBuilder() to construct. private VideoEventAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private VideoEventAnnotation() { - } + + private VideoEventAnnotation() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VideoEventAnnotation(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VideoEventAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,47 @@ private VideoEventAnnotation( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; - if (annotationSpec_ != null) { - subBuilder = annotationSpec_.toBuilder(); - } - annotationSpec_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotationSpec_); - annotationSpec_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder subBuilder = null; - if (timeSegment_ != null) { - subBuilder = timeSegment_.toBuilder(); + case 10: + { + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; + if (annotationSpec_ != null) { + subBuilder = annotationSpec_.toBuilder(); + } + annotationSpec_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotationSpec_); + annotationSpec_ = subBuilder.buildPartial(); + } + + break; } - timeSegment_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.TimeSegment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeSegment_); - timeSegment_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder subBuilder = null; + if (timeSegment_ != null) { + subBuilder = timeSegment_.toBuilder(); + } + timeSegment_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.TimeSegment.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeSegment_); + timeSegment_ = 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) { @@ -92,34 +116,39 @@ private VideoEventAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.class, com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.class, + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder.class); } public static final int ANNOTATION_SPEC_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; /** + * + * *
    * Label of the event in this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ @java.lang.Override @@ -127,18 +156,25 @@ public boolean hasAnnotationSpec() { return annotationSpec_ != null; } /** + * + * *
    * Label of the event in this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { - return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } /** + * + * *
    * Label of the event in this annotation.
    * 
@@ -146,18 +182,22 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder + getAnnotationSpecOrBuilder() { return getAnnotationSpec(); } public static final int TIME_SEGMENT_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.TimeSegment timeSegment_; /** + * + * *
    * The time segment of the video to which the annotation applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; + * * @return Whether the timeSegment field is set. */ @java.lang.Override @@ -165,18 +205,25 @@ public boolean hasTimeSegment() { return timeSegment_ != null; } /** + * + * *
    * The time segment of the video to which the annotation applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; + * * @return The timeSegment. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TimeSegment getTimeSegment() { - return timeSegment_ == null ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() : timeSegment_; + return timeSegment_ == null + ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() + : timeSegment_; } /** + * + * *
    * The time segment of the video to which the annotation applies.
    * 
@@ -189,6 +236,7 @@ public com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegment } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +248,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 (annotationSpec_ != null) { output.writeMessage(1, getAnnotationSpec()); } @@ -218,12 +265,10 @@ public int getSerializedSize() { size = 0; if (annotationSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAnnotationSpec()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnnotationSpec()); } if (timeSegment_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTimeSegment()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimeSegment()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -233,22 +278,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.datalabeling.v1beta1.VideoEventAnnotation)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation other = (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) obj; + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation other = + (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) obj; if (hasAnnotationSpec() != other.hasAnnotationSpec()) return false; if (hasAnnotationSpec()) { - if (!getAnnotationSpec() - .equals(other.getAnnotationSpec())) return false; + if (!getAnnotationSpec().equals(other.getAnnotationSpec())) 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; @@ -275,117 +319,127 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation 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.datalabeling.v1beta1.VideoEventAnnotation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Video event annotation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoEventAnnotation} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.VideoEventAnnotation) com.google.cloud.datalabeling.v1beta1.VideoEventAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.class, com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.class, + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.newBuilder() @@ -393,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(); @@ -422,9 +475,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_VideoEventAnnotation_descriptor; } @java.lang.Override @@ -443,7 +496,8 @@ public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation buildPartial() { - com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation result = new com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation(this); + com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation result = + new com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation(this); if (annotationSpecBuilder_ == null) { result.annotationSpec_ = annotationSpec_; } else { @@ -462,38 +516,39 @@ public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) other); } else { super.mergeFrom(other); return this; @@ -501,7 +556,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation other) { - if (other == com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation.getDefaultInstance()) + return this; if (other.hasAnnotationSpec()) { mergeAnnotationSpec(other.getAnnotationSpec()); } @@ -527,7 +583,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -539,34 +596,47 @@ public Builder mergeFrom( private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + annotationSpecBuilder_; /** + * + * *
      * Label of the event in this annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ public boolean hasAnnotationSpec() { return annotationSpecBuilder_ != null || annotationSpec_ != null; } /** + * + * *
      * Label of the event in this annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { if (annotationSpecBuilder_ == null) { - return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } else { return annotationSpecBuilder_.getMessage(); } } /** + * + * *
      * Label of the event in this annotation.
      * 
@@ -587,6 +657,8 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio return this; } /** + * + * *
      * Label of the event in this annotation.
      * 
@@ -605,6 +677,8 @@ public Builder setAnnotationSpec( return this; } /** + * + * *
      * Label of the event in this annotation.
      * 
@@ -615,7 +689,9 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat if (annotationSpecBuilder_ == null) { if (annotationSpec_ != null) { annotationSpec_ = - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_) + .mergeFrom(value) + .buildPartial(); } else { annotationSpec_ = value; } @@ -627,6 +703,8 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat return this; } /** + * + * *
      * Label of the event in this annotation.
      * 
@@ -645,6 +723,8 @@ public Builder clearAnnotationSpec() { return this; } /** + * + * *
      * Label of the event in this annotation.
      * 
@@ -652,26 +732,32 @@ public Builder clearAnnotationSpec() { * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotationSpecBuilder() { - + onChanged(); return getAnnotationSpecFieldBuilder().getBuilder(); } /** + * + * *
      * Label of the event in this annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder + getAnnotationSpecOrBuilder() { if (annotationSpecBuilder_ != null) { return annotationSpecBuilder_.getMessageOrBuilder(); } else { - return annotationSpec_ == null ? - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } } /** + * + * *
      * Label of the event in this annotation.
      * 
@@ -679,14 +765,17 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotati * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> getAnnotationSpecFieldBuilder() { if (annotationSpecBuilder_ == null) { - annotationSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( - getAnnotationSpec(), - getParentForChildren(), - isClean()); + annotationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( + getAnnotationSpec(), getParentForChildren(), isClean()); annotationSpec_ = null; } return annotationSpecBuilder_; @@ -694,34 +783,47 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotati private com.google.cloud.datalabeling.v1beta1.TimeSegment timeSegment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TimeSegment, com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> timeSegmentBuilder_; + com.google.cloud.datalabeling.v1beta1.TimeSegment, + com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, + com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> + timeSegmentBuilder_; /** + * + * *
      * The time segment of the video to which the annotation applies.
      * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; + * * @return Whether the timeSegment field is set. */ public boolean hasTimeSegment() { return timeSegmentBuilder_ != null || timeSegment_ != null; } /** + * + * *
      * The time segment of the video to which the annotation applies.
      * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; + * * @return The timeSegment. */ public com.google.cloud.datalabeling.v1beta1.TimeSegment getTimeSegment() { if (timeSegmentBuilder_ == null) { - return timeSegment_ == null ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() : timeSegment_; + return timeSegment_ == null + ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() + : timeSegment_; } else { return timeSegmentBuilder_.getMessage(); } } /** + * + * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -742,6 +844,8 @@ public Builder setTimeSegment(com.google.cloud.datalabeling.v1beta1.TimeSegment return this; } /** + * + * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -760,6 +864,8 @@ public Builder setTimeSegment( return this; } /** + * + * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -770,7 +876,9 @@ public Builder mergeTimeSegment(com.google.cloud.datalabeling.v1beta1.TimeSegmen if (timeSegmentBuilder_ == null) { if (timeSegment_ != null) { timeSegment_ = - com.google.cloud.datalabeling.v1beta1.TimeSegment.newBuilder(timeSegment_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.TimeSegment.newBuilder(timeSegment_) + .mergeFrom(value) + .buildPartial(); } else { timeSegment_ = value; } @@ -782,6 +890,8 @@ public Builder mergeTimeSegment(com.google.cloud.datalabeling.v1beta1.TimeSegmen return this; } /** + * + * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -800,6 +910,8 @@ public Builder clearTimeSegment() { return this; } /** + * + * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -807,11 +919,13 @@ public Builder clearTimeSegment() { * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; */ public com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder getTimeSegmentBuilder() { - + onChanged(); return getTimeSegmentFieldBuilder().getBuilder(); } /** + * + * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -822,11 +936,14 @@ public com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegment if (timeSegmentBuilder_ != null) { return timeSegmentBuilder_.getMessageOrBuilder(); } else { - return timeSegment_ == null ? - com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() : timeSegment_; + return timeSegment_ == null + ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() + : timeSegment_; } } /** + * + * *
      * The time segment of the video to which the annotation applies.
      * 
@@ -834,21 +951,24 @@ public com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegment * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TimeSegment, com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> + com.google.cloud.datalabeling.v1beta1.TimeSegment, + com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, + com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> getTimeSegmentFieldBuilder() { if (timeSegmentBuilder_ == null) { - timeSegmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TimeSegment, com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder>( - getTimeSegment(), - getParentForChildren(), - isClean()); + timeSegmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TimeSegment, + com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, + com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder>( + getTimeSegment(), getParentForChildren(), isClean()); timeSegment_ = null; } return timeSegmentBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -858,12 +978,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.VideoEventAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.VideoEventAnnotation) private static final com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation(); } @@ -872,16 +992,16 @@ public static com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VideoEventAnnotation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VideoEventAnnotation(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoEventAnnotation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoEventAnnotation(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -896,6 +1016,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.VideoEventAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotationOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotationOrBuilder.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotationOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotationOrBuilder.java index 0828a065..f00cf2b3 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotationOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoEventAnnotationOrBuilder.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface VideoEventAnnotationOrBuilder extends +public interface VideoEventAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.VideoEventAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Label of the event in this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ boolean hasAnnotationSpec(); /** + * + * *
    * Label of the event in this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec(); /** + * + * *
    * Label of the event in this annotation.
    * 
@@ -35,24 +59,32 @@ public interface VideoEventAnnotationOrBuilder extends com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder(); /** + * + * *
    * The time segment of the video to which the annotation applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; + * * @return Whether the timeSegment field is set. */ boolean hasTimeSegment(); /** + * + * *
    * The time segment of the video to which the annotation applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; + * * @return The timeSegment. */ com.google.cloud.datalabeling.v1beta1.TimeSegment getTimeSegment(); /** + * + * *
    * The time segment of the video to which the annotation applies.
    * 
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotation.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotation.java similarity index 66% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotation.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotation.java index 9ff98bbc..c59c870f 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotation.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Video object tracking annotation.
  * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.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() { objectTrackingFrames_ = 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 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) @@ -54,48 +71,61 @@ private VideoObjectTrackingAnnotation( case 0: done = true; break; - case 10: { - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; - if (annotationSpec_ != null) { - subBuilder = annotationSpec_.toBuilder(); - } - annotationSpec_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(annotationSpec_); - annotationSpec_ = subBuilder.buildPartial(); - } + case 10: + { + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder subBuilder = null; + if (annotationSpec_ != null) { + subBuilder = annotationSpec_.toBuilder(); + } + annotationSpec_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(annotationSpec_); + annotationSpec_ = subBuilder.buildPartial(); + } - break; - } - case 18: { - com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder subBuilder = null; - if (timeSegment_ != null) { - subBuilder = timeSegment_.toBuilder(); - } - timeSegment_ = input.readMessage(com.google.cloud.datalabeling.v1beta1.TimeSegment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeSegment_); - timeSegment_ = subBuilder.buildPartial(); + break; } + case 18: + { + com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder subBuilder = null; + if (timeSegment_ != null) { + subBuilder = timeSegment_.toBuilder(); + } + timeSegment_ = + input.readMessage( + com.google.cloud.datalabeling.v1beta1.TimeSegment.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeSegment_); + timeSegment_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - objectTrackingFrames_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + break; } - objectTrackingFrames_.add( - input.readMessage(com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + objectTrackingFrames_ = + new java.util.ArrayList< + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame>(); + mutable_bitField0_ |= 0x00000001; + } + objectTrackingFrames_.add( + input.readMessage( + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,8 +133,7 @@ private VideoObjectTrackingAnnotation( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { objectTrackingFrames_ = java.util.Collections.unmodifiableList(objectTrackingFrames_); @@ -113,27 +142,33 @@ private VideoObjectTrackingAnnotation( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.class, com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.class, + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder.class); } public static final int ANNOTATION_SPEC_FIELD_NUMBER = 1; private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; /** + * + * *
    * Label of the object tracked in this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ @java.lang.Override @@ -141,18 +176,25 @@ public boolean hasAnnotationSpec() { return annotationSpec_ != null; } /** + * + * *
    * Label of the object tracked in this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { - return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } /** + * + * *
    * Label of the object tracked in this annotation.
    * 
@@ -160,18 +202,22 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder + getAnnotationSpecOrBuilder() { return getAnnotationSpec(); } public static final int TIME_SEGMENT_FIELD_NUMBER = 2; private com.google.cloud.datalabeling.v1beta1.TimeSegment timeSegment_; /** + * + * *
    * The time segment of the video to which object tracking applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; + * * @return Whether the timeSegment field is set. */ @java.lang.Override @@ -179,18 +225,25 @@ public boolean hasTimeSegment() { return timeSegment_ != null; } /** + * + * *
    * The time segment of the video to which object tracking applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; + * * @return The timeSegment. */ @java.lang.Override public com.google.cloud.datalabeling.v1beta1.TimeSegment getTimeSegment() { - return timeSegment_ == null ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() : timeSegment_; + return timeSegment_ == null + ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() + : timeSegment_; } /** + * + * *
    * The time segment of the video to which object tracking applies.
    * 
@@ -203,66 +256,91 @@ public com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegment } public static final int OBJECT_TRACKING_FRAMES_FIELD_NUMBER = 3; - private java.util.List objectTrackingFrames_; + private java.util.List + objectTrackingFrames_; /** + * + * *
    * The list of frames where this object track appears.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ @java.lang.Override - public java.util.List getObjectTrackingFramesList() { + public java.util.List + getObjectTrackingFramesList() { return objectTrackingFrames_; } /** + * + * *
    * The list of frames where this object track appears.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ @java.lang.Override - public java.util.List + public java.util.List< + ? extends com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder> getObjectTrackingFramesOrBuilderList() { return objectTrackingFrames_; } /** + * + * *
    * The list of frames where this object track appears.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ @java.lang.Override public int getObjectTrackingFramesCount() { return objectTrackingFrames_.size(); } /** + * + * *
    * The list of frames where this object track appears.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame getObjectTrackingFrames(int index) { + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame getObjectTrackingFrames( + int index) { return objectTrackingFrames_.get(index); } /** + * + * *
    * The list of frames where this object track appears.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder getObjectTrackingFramesOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder + getObjectTrackingFramesOrBuilder(int index) { return objectTrackingFrames_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -274,8 +352,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 (annotationSpec_ != null) { output.writeMessage(1, getAnnotationSpec()); } @@ -295,16 +372,14 @@ public int getSerializedSize() { size = 0; if (annotationSpec_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAnnotationSpec()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAnnotationSpec()); } if (timeSegment_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTimeSegment()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimeSegment()); } for (int i = 0; i < objectTrackingFrames_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, objectTrackingFrames_.get(i)); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, objectTrackingFrames_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -314,25 +389,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.datalabeling.v1beta1.VideoObjectTrackingAnnotation)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation other = (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) obj; + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation other = + (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) obj; if (hasAnnotationSpec() != other.hasAnnotationSpec()) return false; if (hasAnnotationSpec()) { - if (!getAnnotationSpec() - .equals(other.getAnnotationSpec())) return false; + if (!getAnnotationSpec().equals(other.getAnnotationSpec())) 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 (!getObjectTrackingFramesList() - .equals(other.getObjectTrackingFramesList())) return false; + if (!getObjectTrackingFramesList().equals(other.getObjectTrackingFramesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -362,135 +435,147 @@ public int hashCode() { } public static com.google.cloud.datalabeling.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.datalabeling.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.datalabeling.v1beta1.VideoObjectTrackingAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.VideoObjectTrackingAnnotation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.VideoObjectTrackingAnnotation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.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.datalabeling.v1beta1.VideoObjectTrackingAnnotation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation 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.datalabeling.v1beta1.VideoObjectTrackingAnnotation + 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.datalabeling.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.datalabeling.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.datalabeling.v1beta1.VideoObjectTrackingAnnotation prototype) { + + public static Builder newBuilder( + com.google.cloud.datalabeling.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; } /** + * + * *
    * Video object tracking annotation.
    * 
* * Protobuf type {@code google.cloud.datalabeling.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.datalabeling.v1beta1.VideoObjectTrackingAnnotation) com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.class, com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.class, + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.Builder.class); } - // Construct using com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.newBuilder() + // Construct using + // com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.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) { getObjectTrackingFramesFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -516,14 +601,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass.internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.AnnotationOuterClass + .internal_static_google_cloud_datalabeling_v1beta1_VideoObjectTrackingAnnotation_descriptor; } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation getDefaultInstanceForType() { - return com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance(); + public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation + getDefaultInstanceForType() { + return com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation + .getDefaultInstance(); } @java.lang.Override @@ -537,7 +624,8 @@ public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation build @java.lang.Override public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation buildPartial() { - com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation result = new com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation(this); + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation result = + new com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation(this); int from_bitField0_ = bitField0_; if (annotationSpecBuilder_ == null) { result.annotationSpec_ = annotationSpec_; @@ -566,46 +654,51 @@ public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation 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.datalabeling.v1beta1.VideoObjectTrackingAnnotation) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation)other); + return mergeFrom( + (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation other) { - if (other == com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation other) { + if (other + == com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation + .getDefaultInstance()) return this; if (other.hasAnnotationSpec()) { mergeAnnotationSpec(other.getAnnotationSpec()); } @@ -630,9 +723,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.VideoObjectTracki objectTrackingFramesBuilder_ = null; objectTrackingFrames_ = other.objectTrackingFrames_; bitField0_ = (bitField0_ & ~0x00000001); - objectTrackingFramesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getObjectTrackingFramesFieldBuilder() : null; + objectTrackingFramesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getObjectTrackingFramesFieldBuilder() + : null; } else { objectTrackingFramesBuilder_.addAllMessages(other.objectTrackingFrames_); } @@ -657,7 +751,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -666,38 +762,52 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private com.google.cloud.datalabeling.v1beta1.AnnotationSpec annotationSpec_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> annotationSpecBuilder_; + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + annotationSpecBuilder_; /** + * + * *
      * Label of the object tracked in this annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ public boolean hasAnnotationSpec() { return annotationSpecBuilder_ != null || annotationSpec_ != null; } /** + * + * *
      * Label of the object tracked in this annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec() { if (annotationSpecBuilder_ == null) { - return annotationSpec_ == null ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } else { return annotationSpecBuilder_.getMessage(); } } /** + * + * *
      * Label of the object tracked in this annotation.
      * 
@@ -718,6 +828,8 @@ public Builder setAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotatio return this; } /** + * + * *
      * Label of the object tracked in this annotation.
      * 
@@ -736,6 +848,8 @@ public Builder setAnnotationSpec( return this; } /** + * + * *
      * Label of the object tracked in this annotation.
      * 
@@ -746,7 +860,9 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat if (annotationSpecBuilder_ == null) { if (annotationSpec_ != null) { annotationSpec_ = - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.newBuilder(annotationSpec_) + .mergeFrom(value) + .buildPartial(); } else { annotationSpec_ = value; } @@ -758,6 +874,8 @@ public Builder mergeAnnotationSpec(com.google.cloud.datalabeling.v1beta1.Annotat return this; } /** + * + * *
      * Label of the object tracked in this annotation.
      * 
@@ -776,6 +894,8 @@ public Builder clearAnnotationSpec() { return this; } /** + * + * *
      * Label of the object tracked in this annotation.
      * 
@@ -783,26 +903,32 @@ public Builder clearAnnotationSpec() { * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ public com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder getAnnotationSpecBuilder() { - + onChanged(); return getAnnotationSpecFieldBuilder().getBuilder(); } /** + * + * *
      * Label of the object tracked in this annotation.
      * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ - public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder() { + public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder + getAnnotationSpecOrBuilder() { if (annotationSpecBuilder_ != null) { return annotationSpecBuilder_.getMessageOrBuilder(); } else { - return annotationSpec_ == null ? - com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() : annotationSpec_; + return annotationSpec_ == null + ? com.google.cloud.datalabeling.v1beta1.AnnotationSpec.getDefaultInstance() + : annotationSpec_; } } /** + * + * *
      * Label of the object tracked in this annotation.
      * 
@@ -810,14 +936,17 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotati * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder> getAnnotationSpecFieldBuilder() { if (annotationSpecBuilder_ == null) { - annotationSpecBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.AnnotationSpec, com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( - getAnnotationSpec(), - getParentForChildren(), - isClean()); + annotationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.AnnotationSpec, + com.google.cloud.datalabeling.v1beta1.AnnotationSpec.Builder, + com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder>( + getAnnotationSpec(), getParentForChildren(), isClean()); annotationSpec_ = null; } return annotationSpecBuilder_; @@ -825,34 +954,47 @@ public com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotati private com.google.cloud.datalabeling.v1beta1.TimeSegment timeSegment_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TimeSegment, com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> timeSegmentBuilder_; + com.google.cloud.datalabeling.v1beta1.TimeSegment, + com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, + com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> + timeSegmentBuilder_; /** + * + * *
      * The time segment of the video to which object tracking applies.
      * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; + * * @return Whether the timeSegment field is set. */ public boolean hasTimeSegment() { return timeSegmentBuilder_ != null || timeSegment_ != null; } /** + * + * *
      * The time segment of the video to which object tracking applies.
      * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; + * * @return The timeSegment. */ public com.google.cloud.datalabeling.v1beta1.TimeSegment getTimeSegment() { if (timeSegmentBuilder_ == null) { - return timeSegment_ == null ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() : timeSegment_; + return timeSegment_ == null + ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() + : timeSegment_; } else { return timeSegmentBuilder_.getMessage(); } } /** + * + * *
      * The time segment of the video to which object tracking applies.
      * 
@@ -873,6 +1015,8 @@ public Builder setTimeSegment(com.google.cloud.datalabeling.v1beta1.TimeSegment return this; } /** + * + * *
      * The time segment of the video to which object tracking applies.
      * 
@@ -891,6 +1035,8 @@ public Builder setTimeSegment( return this; } /** + * + * *
      * The time segment of the video to which object tracking applies.
      * 
@@ -901,7 +1047,9 @@ public Builder mergeTimeSegment(com.google.cloud.datalabeling.v1beta1.TimeSegmen if (timeSegmentBuilder_ == null) { if (timeSegment_ != null) { timeSegment_ = - com.google.cloud.datalabeling.v1beta1.TimeSegment.newBuilder(timeSegment_).mergeFrom(value).buildPartial(); + com.google.cloud.datalabeling.v1beta1.TimeSegment.newBuilder(timeSegment_) + .mergeFrom(value) + .buildPartial(); } else { timeSegment_ = value; } @@ -913,6 +1061,8 @@ public Builder mergeTimeSegment(com.google.cloud.datalabeling.v1beta1.TimeSegmen return this; } /** + * + * *
      * The time segment of the video to which object tracking applies.
      * 
@@ -931,6 +1081,8 @@ public Builder clearTimeSegment() { return this; } /** + * + * *
      * The time segment of the video to which object tracking applies.
      * 
@@ -938,11 +1090,13 @@ public Builder clearTimeSegment() { * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; */ public com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder getTimeSegmentBuilder() { - + onChanged(); return getTimeSegmentFieldBuilder().getBuilder(); } /** + * + * *
      * The time segment of the video to which object tracking applies.
      * 
@@ -953,11 +1107,14 @@ public com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegment if (timeSegmentBuilder_ != null) { return timeSegmentBuilder_.getMessageOrBuilder(); } else { - return timeSegment_ == null ? - com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() : timeSegment_; + return timeSegment_ == null + ? com.google.cloud.datalabeling.v1beta1.TimeSegment.getDefaultInstance() + : timeSegment_; } } /** + * + * *
      * The time segment of the video to which object tracking applies.
      * 
@@ -965,39 +1122,53 @@ public com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegment * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TimeSegment, com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> + com.google.cloud.datalabeling.v1beta1.TimeSegment, + com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, + com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder> getTimeSegmentFieldBuilder() { if (timeSegmentBuilder_ == null) { - timeSegmentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.TimeSegment, com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder>( - getTimeSegment(), - getParentForChildren(), - isClean()); + timeSegmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.TimeSegment, + com.google.cloud.datalabeling.v1beta1.TimeSegment.Builder, + com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder>( + getTimeSegment(), getParentForChildren(), isClean()); timeSegment_ = null; } return timeSegmentBuilder_; } - private java.util.List objectTrackingFrames_ = - java.util.Collections.emptyList(); + private java.util.List + objectTrackingFrames_ = java.util.Collections.emptyList(); + private void ensureObjectTrackingFramesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - objectTrackingFrames_ = new java.util.ArrayList(objectTrackingFrames_); + objectTrackingFrames_ = + new java.util.ArrayList( + objectTrackingFrames_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder> objectTrackingFramesBuilder_; + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder> + objectTrackingFramesBuilder_; /** + * + * *
      * The list of frames where this object track appears.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ - public java.util.List getObjectTrackingFramesList() { + public java.util.List + getObjectTrackingFramesList() { if (objectTrackingFramesBuilder_ == null) { return java.util.Collections.unmodifiableList(objectTrackingFrames_); } else { @@ -1005,11 +1176,15 @@ public java.util.List } } /** + * + * *
      * The list of frames where this object track appears.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ public int getObjectTrackingFramesCount() { if (objectTrackingFramesBuilder_ == null) { @@ -1019,13 +1194,18 @@ public int getObjectTrackingFramesCount() { } } /** + * + * *
      * The list of frames where this object track appears.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame getObjectTrackingFrames(int index) { + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame getObjectTrackingFrames( + int index) { if (objectTrackingFramesBuilder_ == null) { return objectTrackingFrames_.get(index); } else { @@ -1033,11 +1213,15 @@ public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame getObjectTracki } } /** + * + * *
      * The list of frames where this object track appears.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ public Builder setObjectTrackingFrames( int index, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame value) { @@ -1054,14 +1238,19 @@ public Builder setObjectTrackingFrames( return this; } /** + * + * *
      * The list of frames where this object track appears.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ public Builder setObjectTrackingFrames( - int index, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder builderForValue) { + int index, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder builderForValue) { if (objectTrackingFramesBuilder_ == null) { ensureObjectTrackingFramesIsMutable(); objectTrackingFrames_.set(index, builderForValue.build()); @@ -1072,13 +1261,18 @@ public Builder setObjectTrackingFrames( return this; } /** + * + * *
      * The list of frames where this object track appears.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ - public Builder addObjectTrackingFrames(com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame value) { + public Builder addObjectTrackingFrames( + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame value) { if (objectTrackingFramesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1092,11 +1286,15 @@ public Builder addObjectTrackingFrames(com.google.cloud.datalabeling.v1beta1.Obj return this; } /** + * + * *
      * The list of frames where this object track appears.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ public Builder addObjectTrackingFrames( int index, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame value) { @@ -1113,11 +1311,15 @@ public Builder addObjectTrackingFrames( return this; } /** + * + * *
      * The list of frames where this object track appears.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ public Builder addObjectTrackingFrames( com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder builderForValue) { @@ -1131,14 +1333,19 @@ public Builder addObjectTrackingFrames( return this; } /** + * + * *
      * The list of frames where this object track appears.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ public Builder addObjectTrackingFrames( - int index, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder builderForValue) { + int index, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder builderForValue) { if (objectTrackingFramesBuilder_ == null) { ensureObjectTrackingFramesIsMutable(); objectTrackingFrames_.add(index, builderForValue.build()); @@ -1149,18 +1356,22 @@ public Builder addObjectTrackingFrames( return this; } /** + * + * *
      * The list of frames where this object track appears.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ public Builder addAllObjectTrackingFrames( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (objectTrackingFramesBuilder_ == null) { ensureObjectTrackingFramesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, objectTrackingFrames_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, objectTrackingFrames_); onChanged(); } else { objectTrackingFramesBuilder_.addAllMessages(values); @@ -1168,11 +1379,15 @@ public Builder addAllObjectTrackingFrames( return this; } /** + * + * *
      * The list of frames where this object track appears.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ public Builder clearObjectTrackingFrames() { if (objectTrackingFramesBuilder_ == null) { @@ -1185,11 +1400,15 @@ public Builder clearObjectTrackingFrames() { return this; } /** + * + * *
      * The list of frames where this object track appears.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ public Builder removeObjectTrackingFrames(int index) { if (objectTrackingFramesBuilder_ == null) { @@ -1202,39 +1421,53 @@ public Builder removeObjectTrackingFrames(int index) { return this; } /** + * + * *
      * The list of frames where this object track appears.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder getObjectTrackingFramesBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder + getObjectTrackingFramesBuilder(int index) { return getObjectTrackingFramesFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of frames where this object track appears.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder getObjectTrackingFramesOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder + getObjectTrackingFramesOrBuilder(int index) { if (objectTrackingFramesBuilder_ == null) { - return objectTrackingFrames_.get(index); } else { + return objectTrackingFrames_.get(index); + } else { return objectTrackingFramesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of frames where this object track appears.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ - public java.util.List - getObjectTrackingFramesOrBuilderList() { + public java.util.List< + ? extends com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder> + getObjectTrackingFramesOrBuilderList() { if (objectTrackingFramesBuilder_ != null) { return objectTrackingFramesBuilder_.getMessageOrBuilderList(); } else { @@ -1242,45 +1475,67 @@ public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder getObj } } /** + * + * *
      * The list of frames where this object track appears.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder addObjectTrackingFramesBuilder() { - return getObjectTrackingFramesFieldBuilder().addBuilder( - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder + addObjectTrackingFramesBuilder() { + return getObjectTrackingFramesFieldBuilder() + .addBuilder( + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.getDefaultInstance()); } /** + * + * *
      * The list of frames where this object track appears.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ - public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder addObjectTrackingFramesBuilder( - int index) { - return getObjectTrackingFramesFieldBuilder().addBuilder( - index, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder + addObjectTrackingFramesBuilder(int index) { + return getObjectTrackingFramesFieldBuilder() + .addBuilder( + index, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.getDefaultInstance()); } /** + * + * *
      * The list of frames where this object track appears.
      * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ - public java.util.List - getObjectTrackingFramesBuilderList() { + public java.util.List + getObjectTrackingFramesBuilderList() { return getObjectTrackingFramesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder> + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder> getObjectTrackingFramesFieldBuilder() { if (objectTrackingFramesBuilder_ == null) { - objectTrackingFramesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder, com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder>( + objectTrackingFramesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder, + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder>( objectTrackingFrames_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1289,9 +1544,9 @@ public com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame.Builder addObje } return objectTrackingFramesBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1301,30 +1556,32 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) - private static final com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation DEFAULT_INSTANCE; + private static final com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation(); } - public static com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation getDefaultInstance() { + public static com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation + getDefaultInstance() { 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; @@ -1336,9 +1593,8 @@ public com.google.protobuf.Parser getParserForTyp } @java.lang.Override - public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation getDefaultInstanceForType() { + public com.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java similarity index 65% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java index 9749f971..12beec7e 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotationOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoObjectTrackingAnnotationOrBuilder.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/datalabeling/v1beta1/annotation.proto package com.google.cloud.datalabeling.v1beta1; -public interface VideoObjectTrackingAnnotationOrBuilder extends +public interface VideoObjectTrackingAnnotationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Label of the object tracked in this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return Whether the annotationSpec field is set. */ boolean hasAnnotationSpec(); /** + * + * *
    * Label of the object tracked in this annotation.
    * 
* * .google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1; + * * @return The annotationSpec. */ com.google.cloud.datalabeling.v1beta1.AnnotationSpec getAnnotationSpec(); /** + * + * *
    * Label of the object tracked in this annotation.
    * 
@@ -35,24 +59,32 @@ public interface VideoObjectTrackingAnnotationOrBuilder extends com.google.cloud.datalabeling.v1beta1.AnnotationSpecOrBuilder getAnnotationSpecOrBuilder(); /** + * + * *
    * The time segment of the video to which object tracking applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; + * * @return Whether the timeSegment field is set. */ boolean hasTimeSegment(); /** + * + * *
    * The time segment of the video to which object tracking applies.
    * 
* * .google.cloud.datalabeling.v1beta1.TimeSegment time_segment = 2; + * * @return The timeSegment. */ com.google.cloud.datalabeling.v1beta1.TimeSegment getTimeSegment(); /** + * + * *
    * The time segment of the video to which object tracking applies.
    * 
@@ -62,46 +94,66 @@ public interface VideoObjectTrackingAnnotationOrBuilder extends com.google.cloud.datalabeling.v1beta1.TimeSegmentOrBuilder getTimeSegmentOrBuilder(); /** + * + * *
    * The list of frames where this object track appears.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ - java.util.List + java.util.List getObjectTrackingFramesList(); /** + * + * *
    * The list of frames where this object track appears.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrame getObjectTrackingFrames(int index); /** + * + * *
    * The list of frames where this object track appears.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ int getObjectTrackingFramesCount(); /** + * + * *
    * The list of frames where this object track appears.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ - java.util.List + java.util.List getObjectTrackingFramesOrBuilderList(); /** + * + * *
    * The list of frames where this object track appears.
    * 
* - * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * + * repeated .google.cloud.datalabeling.v1beta1.ObjectTrackingFrame object_tracking_frames = 3; + * */ - com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder getObjectTrackingFramesOrBuilder( - int index); + com.google.cloud.datalabeling.v1beta1.ObjectTrackingFrameOrBuilder + getObjectTrackingFramesOrBuilder(int index); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayload.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayload.java similarity index 74% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayload.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayload.java index ea34d7ed..bec5b9d7 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayload.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayload.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/datalabeling/v1beta1/data_payloads.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Container of information of a video.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoPayload} */ -public final class VideoPayload extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VideoPayload extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.VideoPayload) VideoPayloadOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VideoPayload.newBuilder() to construct. private VideoPayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VideoPayload() { mimeType_ = ""; videoUri_ = ""; @@ -28,16 +46,15 @@ private VideoPayload() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VideoPayload(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VideoPayload( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,45 +74,52 @@ private VideoPayload( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - mimeType_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - videoUri_ = s; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - videoThumbnails_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + mimeType_ = s; + break; } - videoThumbnails_.add( - input.readMessage(com.google.cloud.datalabeling.v1beta1.VideoThumbnail.parser(), extensionRegistry)); - break; - } - case 37: { + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - frameRate_ = input.readFloat(); - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + videoUri_ = s; + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + videoThumbnails_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + videoThumbnails_.add( + input.readMessage( + com.google.cloud.datalabeling.v1beta1.VideoThumbnail.parser(), + extensionRegistry)); + break; + } + case 37: + { + frameRate_ = input.readFloat(); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - signedUri_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + signedUri_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,8 +127,7 @@ private VideoPayload( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } 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)) { videoThumbnails_ = java.util.Collections.unmodifiableList(videoThumbnails_); @@ -113,27 +136,33 @@ private VideoPayload( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads + .internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataPayloads + .internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoPayload.class, com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoPayload.class, + com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder.class); } public static final int MIME_TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object mimeType_; /** + * + * *
    * Video format.
    * 
* * string mime_type = 1; + * * @return The mimeType. */ @java.lang.Override @@ -142,29 +171,29 @@ 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; } } /** + * + * *
    * Video format.
    * 
* * string mime_type = 1; + * * @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 { @@ -175,11 +204,14 @@ public java.lang.String getMimeType() { public static final int VIDEO_URI_FIELD_NUMBER = 2; private volatile java.lang.Object videoUri_; /** + * + * *
    * Video uri from the user bucket.
    * 
* * string video_uri = 2; + * * @return The videoUri. */ @java.lang.Override @@ -188,29 +220,29 @@ public java.lang.String getVideoUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); videoUri_ = s; return s; } } /** + * + * *
    * Video uri from the user bucket.
    * 
* * string video_uri = 2; + * * @return The bytes for videoUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getVideoUriBytes() { + public com.google.protobuf.ByteString getVideoUriBytes() { java.lang.Object ref = videoUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); videoUri_ = b; return b; } else { @@ -221,6 +253,8 @@ public java.lang.String getVideoUri() { public static final int VIDEO_THUMBNAILS_FIELD_NUMBER = 3; private java.util.List videoThumbnails_; /** + * + * *
    * The list of video thumbnails.
    * 
@@ -228,10 +262,13 @@ public java.lang.String getVideoUri() { * repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3; */ @java.lang.Override - public java.util.List getVideoThumbnailsList() { + public java.util.List + getVideoThumbnailsList() { return videoThumbnails_; } /** + * + * *
    * The list of video thumbnails.
    * 
@@ -239,11 +276,13 @@ public java.util.List getV * repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3; */ @java.lang.Override - public java.util.List + public java.util.List getVideoThumbnailsOrBuilderList() { return videoThumbnails_; } /** + * + * *
    * The list of video thumbnails.
    * 
@@ -255,6 +294,8 @@ public int getVideoThumbnailsCount() { return videoThumbnails_.size(); } /** + * + * *
    * The list of video thumbnails.
    * 
@@ -266,6 +307,8 @@ public com.google.cloud.datalabeling.v1beta1.VideoThumbnail getVideoThumbnails(i return videoThumbnails_.get(index); } /** + * + * *
    * The list of video thumbnails.
    * 
@@ -281,11 +324,14 @@ public com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder getVideoThu public static final int FRAME_RATE_FIELD_NUMBER = 4; private float frameRate_; /** + * + * *
    * FPS of the video.
    * 
* * float frame_rate = 4; + * * @return The frameRate. */ @java.lang.Override @@ -296,11 +342,14 @@ public float getFrameRate() { public static final int SIGNED_URI_FIELD_NUMBER = 5; private volatile java.lang.Object signedUri_; /** + * + * *
    * Signed uri of the video file in the service bucket.
    * 
* * string signed_uri = 5; + * * @return The signedUri. */ @java.lang.Override @@ -309,29 +358,29 @@ public java.lang.String getSignedUri() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); signedUri_ = s; return s; } } /** + * + * *
    * Signed uri of the video file in the service bucket.
    * 
* * string signed_uri = 5; + * * @return The bytes for signedUri. */ @java.lang.Override - public com.google.protobuf.ByteString - getSignedUriBytes() { + public com.google.protobuf.ByteString getSignedUriBytes() { java.lang.Object ref = signedUri_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); signedUri_ = b; return b; } else { @@ -340,6 +389,7 @@ public java.lang.String getSignedUri() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -351,8 +401,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(mimeType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mimeType_); } @@ -384,12 +433,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, videoUri_); } for (int i = 0; i < videoThumbnails_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, videoThumbnails_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, videoThumbnails_.get(i)); } if (java.lang.Float.floatToRawIntBits(frameRate_) != 0) { - size += com.google.protobuf.CodedOutputStream - .computeFloatSize(4, frameRate_); + size += com.google.protobuf.CodedOutputStream.computeFloatSize(4, frameRate_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signedUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, signedUri_); @@ -402,24 +449,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.datalabeling.v1beta1.VideoPayload)) { return super.equals(obj); } - com.google.cloud.datalabeling.v1beta1.VideoPayload other = (com.google.cloud.datalabeling.v1beta1.VideoPayload) obj; + com.google.cloud.datalabeling.v1beta1.VideoPayload other = + (com.google.cloud.datalabeling.v1beta1.VideoPayload) obj; - if (!getMimeType() - .equals(other.getMimeType())) return false; - if (!getVideoUri() - .equals(other.getVideoUri())) return false; - if (!getVideoThumbnailsList() - .equals(other.getVideoThumbnailsList())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; + if (!getVideoUri().equals(other.getVideoUri())) return false; + if (!getVideoThumbnailsList().equals(other.getVideoThumbnailsList())) return false; if (java.lang.Float.floatToIntBits(getFrameRate()) - != java.lang.Float.floatToIntBits( - other.getFrameRate())) return false; - if (!getSignedUri() - .equals(other.getSignedUri())) return false; + != java.lang.Float.floatToIntBits(other.getFrameRate())) return false; + if (!getSignedUri().equals(other.getSignedUri())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -440,8 +483,7 @@ public int hashCode() { hash = (53 * hash) + getVideoThumbnailsList().hashCode(); } hash = (37 * hash) + FRAME_RATE_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits( - getFrameRate()); + hash = (53 * hash) + java.lang.Float.floatToIntBits(getFrameRate()); hash = (37 * hash) + SIGNED_URI_FIELD_NUMBER; hash = (53 * hash) + getSignedUri().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -450,117 +492,126 @@ public int hashCode() { } public static com.google.cloud.datalabeling.v1beta1.VideoPayload 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.datalabeling.v1beta1.VideoPayload parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.datalabeling.v1beta1.VideoPayload parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.VideoPayload prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Container of information of a video.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoPayload} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.VideoPayload) com.google.cloud.datalabeling.v1beta1.VideoPayloadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads + .internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataPayloads + .internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoPayload.class, com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoPayload.class, + com.google.cloud.datalabeling.v1beta1.VideoPayload.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.VideoPayload.newBuilder() @@ -568,17 +619,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) { getVideoThumbnailsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -600,9 +651,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads + .internal_static_google_cloud_datalabeling_v1beta1_VideoPayload_descriptor; } @java.lang.Override @@ -621,7 +672,8 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayload build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.VideoPayload buildPartial() { - com.google.cloud.datalabeling.v1beta1.VideoPayload result = new com.google.cloud.datalabeling.v1beta1.VideoPayload(this); + com.google.cloud.datalabeling.v1beta1.VideoPayload result = + new com.google.cloud.datalabeling.v1beta1.VideoPayload(this); int from_bitField0_ = bitField0_; result.mimeType_ = mimeType_; result.videoUri_ = videoUri_; @@ -644,38 +696,39 @@ public com.google.cloud.datalabeling.v1beta1.VideoPayload buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.VideoPayload) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoPayload)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoPayload) other); } else { super.mergeFrom(other); return this; @@ -683,7 +736,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.VideoPayload other) { - if (other == com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.VideoPayload.getDefaultInstance()) + return this; if (!other.getMimeType().isEmpty()) { mimeType_ = other.mimeType_; onChanged(); @@ -710,9 +764,10 @@ public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.VideoPayload othe videoThumbnailsBuilder_ = null; videoThumbnails_ = other.videoThumbnails_; bitField0_ = (bitField0_ & ~0x00000001); - videoThumbnailsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getVideoThumbnailsFieldBuilder() : null; + videoThumbnailsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getVideoThumbnailsFieldBuilder() + : null; } else { videoThumbnailsBuilder_.addAllMessages(other.videoThumbnails_); } @@ -744,7 +799,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.VideoPayload) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.VideoPayload) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -753,22 +809,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object mimeType_ = ""; /** + * + * *
      * Video format.
      * 
* * string mime_type = 1; + * * @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; @@ -777,20 +836,21 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Video format.
      * 
* * string mime_type = 1; + * * @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 { @@ -798,54 +858,61 @@ public java.lang.String getMimeType() { } } /** + * + * *
      * Video format.
      * 
* * string mime_type = 1; + * * @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; } /** + * + * *
      * Video format.
      * 
* * string mime_type = 1; + * * @return This builder for chaining. */ public Builder clearMimeType() { - + mimeType_ = getDefaultInstance().getMimeType(); onChanged(); return this; } /** + * + * *
      * Video format.
      * 
* * string mime_type = 1; + * * @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; @@ -853,18 +920,20 @@ public Builder setMimeTypeBytes( private java.lang.Object videoUri_ = ""; /** + * + * *
      * Video uri from the user bucket.
      * 
* * string video_uri = 2; + * * @return The videoUri. */ public java.lang.String getVideoUri() { java.lang.Object ref = videoUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); videoUri_ = s; return s; @@ -873,20 +942,21 @@ public java.lang.String getVideoUri() { } } /** + * + * *
      * Video uri from the user bucket.
      * 
* * string video_uri = 2; + * * @return The bytes for videoUri. */ - public com.google.protobuf.ByteString - getVideoUriBytes() { + public com.google.protobuf.ByteString getVideoUriBytes() { java.lang.Object ref = videoUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); videoUri_ = b; return b; } else { @@ -894,79 +964,95 @@ public java.lang.String getVideoUri() { } } /** + * + * *
      * Video uri from the user bucket.
      * 
* * string video_uri = 2; + * * @param value The videoUri to set. * @return This builder for chaining. */ - public Builder setVideoUri( - java.lang.String value) { + public Builder setVideoUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + videoUri_ = value; onChanged(); return this; } /** + * + * *
      * Video uri from the user bucket.
      * 
* * string video_uri = 2; + * * @return This builder for chaining. */ public Builder clearVideoUri() { - + videoUri_ = getDefaultInstance().getVideoUri(); onChanged(); return this; } /** + * + * *
      * Video uri from the user bucket.
      * 
* * string video_uri = 2; + * * @param value The bytes for videoUri to set. * @return This builder for chaining. */ - public Builder setVideoUriBytes( - com.google.protobuf.ByteString value) { + public Builder setVideoUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + videoUri_ = value; onChanged(); return this; } private java.util.List videoThumbnails_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureVideoThumbnailsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - videoThumbnails_ = new java.util.ArrayList(videoThumbnails_); + videoThumbnails_ = + new java.util.ArrayList( + videoThumbnails_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoThumbnail, com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder, com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder> videoThumbnailsBuilder_; + com.google.cloud.datalabeling.v1beta1.VideoThumbnail, + com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder, + com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder> + videoThumbnailsBuilder_; /** + * + * *
      * The list of video thumbnails.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3; */ - public java.util.List getVideoThumbnailsList() { + public java.util.List + getVideoThumbnailsList() { if (videoThumbnailsBuilder_ == null) { return java.util.Collections.unmodifiableList(videoThumbnails_); } else { @@ -974,6 +1060,8 @@ public java.util.List getV } } /** + * + * *
      * The list of video thumbnails.
      * 
@@ -988,6 +1076,8 @@ public int getVideoThumbnailsCount() { } } /** + * + * *
      * The list of video thumbnails.
      * 
@@ -1002,6 +1092,8 @@ public com.google.cloud.datalabeling.v1beta1.VideoThumbnail getVideoThumbnails(i } } /** + * + * *
      * The list of video thumbnails.
      * 
@@ -1023,6 +1115,8 @@ public Builder setVideoThumbnails( return this; } /** + * + * *
      * The list of video thumbnails.
      * 
@@ -1041,6 +1135,8 @@ public Builder setVideoThumbnails( return this; } /** + * + * *
      * The list of video thumbnails.
      * 
@@ -1061,6 +1157,8 @@ public Builder addVideoThumbnails(com.google.cloud.datalabeling.v1beta1.VideoThu return this; } /** + * + * *
      * The list of video thumbnails.
      * 
@@ -1082,6 +1180,8 @@ public Builder addVideoThumbnails( return this; } /** + * + * *
      * The list of video thumbnails.
      * 
@@ -1100,6 +1200,8 @@ public Builder addVideoThumbnails( return this; } /** + * + * *
      * The list of video thumbnails.
      * 
@@ -1118,6 +1220,8 @@ public Builder addVideoThumbnails( return this; } /** + * + * *
      * The list of video thumbnails.
      * 
@@ -1128,8 +1232,7 @@ public Builder addAllVideoThumbnails( java.lang.Iterable values) { if (videoThumbnailsBuilder_ == null) { ensureVideoThumbnailsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, videoThumbnails_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, videoThumbnails_); onChanged(); } else { videoThumbnailsBuilder_.addAllMessages(values); @@ -1137,6 +1240,8 @@ public Builder addAllVideoThumbnails( return this; } /** + * + * *
      * The list of video thumbnails.
      * 
@@ -1154,6 +1259,8 @@ public Builder clearVideoThumbnails() { return this; } /** + * + * *
      * The list of video thumbnails.
      * 
@@ -1171,6 +1278,8 @@ public Builder removeVideoThumbnails(int index) { return this; } /** + * + * *
      * The list of video thumbnails.
      * 
@@ -1182,28 +1291,33 @@ public com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder getVideoThum return getVideoThumbnailsFieldBuilder().getBuilder(index); } /** + * + * *
      * The list of video thumbnails.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3; */ - public com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder getVideoThumbnailsOrBuilder( - int index) { + public com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder + getVideoThumbnailsOrBuilder(int index) { if (videoThumbnailsBuilder_ == null) { - return videoThumbnails_.get(index); } else { + return videoThumbnails_.get(index); + } else { return videoThumbnailsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The list of video thumbnails.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3; */ - public java.util.List - getVideoThumbnailsOrBuilderList() { + public java.util.List + getVideoThumbnailsOrBuilderList() { if (videoThumbnailsBuilder_ != null) { return videoThumbnailsBuilder_.getMessageOrBuilderList(); } else { @@ -1211,17 +1325,22 @@ public com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder getVideoThu } } /** + * + * *
      * The list of video thumbnails.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3; */ - public com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder addVideoThumbnailsBuilder() { - return getVideoThumbnailsFieldBuilder().addBuilder( - com.google.cloud.datalabeling.v1beta1.VideoThumbnail.getDefaultInstance()); + public com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder + addVideoThumbnailsBuilder() { + return getVideoThumbnailsFieldBuilder() + .addBuilder(com.google.cloud.datalabeling.v1beta1.VideoThumbnail.getDefaultInstance()); } /** + * + * *
      * The list of video thumbnails.
      * 
@@ -1230,26 +1349,35 @@ public com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder addVideoThum */ public com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder addVideoThumbnailsBuilder( int index) { - return getVideoThumbnailsFieldBuilder().addBuilder( - index, com.google.cloud.datalabeling.v1beta1.VideoThumbnail.getDefaultInstance()); + return getVideoThumbnailsFieldBuilder() + .addBuilder( + index, com.google.cloud.datalabeling.v1beta1.VideoThumbnail.getDefaultInstance()); } /** + * + * *
      * The list of video thumbnails.
      * 
* * repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3; */ - public java.util.List - getVideoThumbnailsBuilderList() { + public java.util.List + getVideoThumbnailsBuilderList() { return getVideoThumbnailsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoThumbnail, com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder, com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder> + com.google.cloud.datalabeling.v1beta1.VideoThumbnail, + com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder, + com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder> getVideoThumbnailsFieldBuilder() { if (videoThumbnailsBuilder_ == null) { - videoThumbnailsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.datalabeling.v1beta1.VideoThumbnail, com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder, com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder>( + videoThumbnailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.datalabeling.v1beta1.VideoThumbnail, + com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder, + com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder>( videoThumbnails_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1259,13 +1387,16 @@ public com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder addVideoThum return videoThumbnailsBuilder_; } - private float frameRate_ ; + private float frameRate_; /** + * + * *
      * FPS of the video.
      * 
* * float frame_rate = 4; + * * @return The frameRate. */ @java.lang.Override @@ -1273,30 +1404,36 @@ public float getFrameRate() { return frameRate_; } /** + * + * *
      * FPS of the video.
      * 
* * float frame_rate = 4; + * * @param value The frameRate to set. * @return This builder for chaining. */ public Builder setFrameRate(float value) { - + frameRate_ = value; onChanged(); return this; } /** + * + * *
      * FPS of the video.
      * 
* * float frame_rate = 4; + * * @return This builder for chaining. */ public Builder clearFrameRate() { - + frameRate_ = 0F; onChanged(); return this; @@ -1304,18 +1441,20 @@ public Builder clearFrameRate() { private java.lang.Object signedUri_ = ""; /** + * + * *
      * Signed uri of the video file in the service bucket.
      * 
* * string signed_uri = 5; + * * @return The signedUri. */ public java.lang.String getSignedUri() { java.lang.Object ref = signedUri_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); signedUri_ = s; return s; @@ -1324,20 +1463,21 @@ public java.lang.String getSignedUri() { } } /** + * + * *
      * Signed uri of the video file in the service bucket.
      * 
* * string signed_uri = 5; + * * @return The bytes for signedUri. */ - public com.google.protobuf.ByteString - getSignedUriBytes() { + public com.google.protobuf.ByteString getSignedUriBytes() { java.lang.Object ref = signedUri_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); signedUri_ = b; return b; } else { @@ -1345,61 +1485,68 @@ public java.lang.String getSignedUri() { } } /** + * + * *
      * Signed uri of the video file in the service bucket.
      * 
* * string signed_uri = 5; + * * @param value The signedUri to set. * @return This builder for chaining. */ - public Builder setSignedUri( - java.lang.String value) { + public Builder setSignedUri(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + signedUri_ = value; onChanged(); return this; } /** + * + * *
      * Signed uri of the video file in the service bucket.
      * 
* * string signed_uri = 5; + * * @return This builder for chaining. */ public Builder clearSignedUri() { - + signedUri_ = getDefaultInstance().getSignedUri(); onChanged(); return this; } /** + * + * *
      * Signed uri of the video file in the service bucket.
      * 
* * string signed_uri = 5; + * * @param value The bytes for signedUri to set. * @return This builder for chaining. */ - public Builder setSignedUriBytes( - com.google.protobuf.ByteString value) { + public Builder setSignedUriBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + signedUri_ = 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); } @@ -1409,12 +1556,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.VideoPayload) } // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.VideoPayload) private static final com.google.cloud.datalabeling.v1beta1.VideoPayload DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.VideoPayload(); } @@ -1423,16 +1570,16 @@ public static com.google.cloud.datalabeling.v1beta1.VideoPayload getDefaultInsta return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VideoPayload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VideoPayload(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VideoPayload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new VideoPayload(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1447,6 +1594,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.datalabeling.v1beta1.VideoPayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayloadOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayloadOrBuilder.java similarity index 72% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayloadOrBuilder.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayloadOrBuilder.java index 35ec6521..126d5387 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayloadOrBuilder.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoPayloadOrBuilder.java @@ -1,62 +1,91 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/datalabeling/v1beta1/data_payloads.proto package com.google.cloud.datalabeling.v1beta1; -public interface VideoPayloadOrBuilder extends +public interface VideoPayloadOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.VideoPayload) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Video format.
    * 
* * string mime_type = 1; + * * @return The mimeType. */ java.lang.String getMimeType(); /** + * + * *
    * Video format.
    * 
* * string mime_type = 1; + * * @return The bytes for mimeType. */ - com.google.protobuf.ByteString - getMimeTypeBytes(); + com.google.protobuf.ByteString getMimeTypeBytes(); /** + * + * *
    * Video uri from the user bucket.
    * 
* * string video_uri = 2; + * * @return The videoUri. */ java.lang.String getVideoUri(); /** + * + * *
    * Video uri from the user bucket.
    * 
* * string video_uri = 2; + * * @return The bytes for videoUri. */ - com.google.protobuf.ByteString - getVideoUriBytes(); + com.google.protobuf.ByteString getVideoUriBytes(); /** + * + * *
    * The list of video thumbnails.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3; */ - java.util.List - getVideoThumbnailsList(); + java.util.List getVideoThumbnailsList(); /** + * + * *
    * The list of video thumbnails.
    * 
@@ -65,6 +94,8 @@ public interface VideoPayloadOrBuilder extends */ com.google.cloud.datalabeling.v1beta1.VideoThumbnail getVideoThumbnails(int index); /** + * + * *
    * The list of video thumbnails.
    * 
@@ -73,15 +104,19 @@ public interface VideoPayloadOrBuilder extends */ int getVideoThumbnailsCount(); /** + * + * *
    * The list of video thumbnails.
    * 
* * repeated .google.cloud.datalabeling.v1beta1.VideoThumbnail video_thumbnails = 3; */ - java.util.List + java.util.List getVideoThumbnailsOrBuilderList(); /** + * + * *
    * The list of video thumbnails.
    * 
@@ -92,32 +127,40 @@ com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder getVideoThumbnails int index); /** + * + * *
    * FPS of the video.
    * 
* * float frame_rate = 4; + * * @return The frameRate. */ float getFrameRate(); /** + * + * *
    * Signed uri of the video file in the service bucket.
    * 
* * string signed_uri = 5; + * * @return The signedUri. */ java.lang.String getSignedUri(); /** + * + * *
    * Signed uri of the video file in the service bucket.
    * 
* * string signed_uri = 5; + * * @return The bytes for signedUri. */ - com.google.protobuf.ByteString - getSignedUriBytes(); + com.google.protobuf.ByteString getSignedUriBytes(); } diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnail.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnail.java similarity index 71% rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnail.java rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnail.java index 598d8daf..cbdaa56d 100644 --- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnail.java +++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnail.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/datalabeling/v1beta1/data_payloads.proto package com.google.cloud.datalabeling.v1beta1; /** + * + * *
  * Container of information of a video thumbnail.
  * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoThumbnail} */ -public final class VideoThumbnail extends - com.google.protobuf.GeneratedMessageV3 implements +public final class VideoThumbnail extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.datalabeling.v1beta1.VideoThumbnail) VideoThumbnailOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use VideoThumbnail.newBuilder() to construct. private VideoThumbnail(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private VideoThumbnail() { thumbnail_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new VideoThumbnail(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private VideoThumbnail( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,31 +70,33 @@ private VideoThumbnail( case 0: done = true; break; - case 10: { - - thumbnail_ = input.readBytes(); - break; - } - case 18: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (timeOffset_ != null) { - subBuilder = timeOffset_.toBuilder(); + case 10: + { + thumbnail_ = input.readBytes(); + 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; } - - 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) { @@ -85,34 +104,39 @@ private VideoThumbnail( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads + .internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataPayloads + .internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoThumbnail.class, com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoThumbnail.class, + com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder.class); } public static final int THUMBNAIL_FIELD_NUMBER = 1; private com.google.protobuf.ByteString thumbnail_; /** + * + * *
    * A byte string of the video frame.
    * 
* * bytes thumbnail = 1; + * * @return The thumbnail. */ @java.lang.Override @@ -123,12 +147,15 @@ public com.google.protobuf.ByteString getThumbnail() { public static final int TIME_OFFSET_FIELD_NUMBER = 2; private com.google.protobuf.Duration timeOffset_; /** + * + * *
    * Time offset relative to the beginning of the video, corresponding to the
    * video frame where the thumbnail has been extracted from.
    * 
* * .google.protobuf.Duration time_offset = 2; + * * @return Whether the timeOffset field is set. */ @java.lang.Override @@ -136,12 +163,15 @@ public boolean hasTimeOffset() { return timeOffset_ != null; } /** + * + * *
    * Time offset relative to the beginning of the video, corresponding to the
    * video frame where the thumbnail has been extracted from.
    * 
* * .google.protobuf.Duration time_offset = 2; + * * @return The timeOffset. */ @java.lang.Override @@ -149,6 +179,8 @@ public com.google.protobuf.Duration getTimeOffset() { return timeOffset_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeOffset_; } /** + * + * *
    * Time offset relative to the beginning of the video, corresponding to the
    * video frame where the thumbnail has been extracted from.
@@ -162,6 +194,7 @@ public com.google.protobuf.DurationOrBuilder getTimeOffsetOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -173,8 +206,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 (!thumbnail_.isEmpty()) {
       output.writeBytes(1, thumbnail_);
     }
@@ -191,12 +223,10 @@ public int getSerializedSize() {
 
     size = 0;
     if (!thumbnail_.isEmpty()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeBytesSize(1, thumbnail_);
+      size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, thumbnail_);
     }
     if (timeOffset_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, getTimeOffset());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTimeOffset());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -206,19 +236,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.datalabeling.v1beta1.VideoThumbnail)) {
       return super.equals(obj);
     }
-    com.google.cloud.datalabeling.v1beta1.VideoThumbnail other = (com.google.cloud.datalabeling.v1beta1.VideoThumbnail) obj;
+    com.google.cloud.datalabeling.v1beta1.VideoThumbnail other =
+        (com.google.cloud.datalabeling.v1beta1.VideoThumbnail) obj;
 
-    if (!getThumbnail()
-        .equals(other.getThumbnail())) return false;
+    if (!getThumbnail().equals(other.getThumbnail())) 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 (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -243,117 +272,126 @@ public int hashCode() {
   }
 
   public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail 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.datalabeling.v1beta1.VideoThumbnail parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-  public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+
+  public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.datalabeling.v1beta1.VideoThumbnail prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * Container of information of a video thumbnail.
    * 
* * Protobuf type {@code google.cloud.datalabeling.v1beta1.VideoThumbnail} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.datalabeling.v1beta1.VideoThumbnail) com.google.cloud.datalabeling.v1beta1.VideoThumbnailOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads + .internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_fieldAccessorTable + return com.google.cloud.datalabeling.v1beta1.DataPayloads + .internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.datalabeling.v1beta1.VideoThumbnail.class, com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder.class); + com.google.cloud.datalabeling.v1beta1.VideoThumbnail.class, + com.google.cloud.datalabeling.v1beta1.VideoThumbnail.Builder.class); } // Construct using com.google.cloud.datalabeling.v1beta1.VideoThumbnail.newBuilder() @@ -361,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(); @@ -386,9 +423,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.datalabeling.v1beta1.DataPayloads.internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.datalabeling.v1beta1.DataPayloads + .internal_static_google_cloud_datalabeling_v1beta1_VideoThumbnail_descriptor; } @java.lang.Override @@ -407,7 +444,8 @@ public com.google.cloud.datalabeling.v1beta1.VideoThumbnail build() { @java.lang.Override public com.google.cloud.datalabeling.v1beta1.VideoThumbnail buildPartial() { - com.google.cloud.datalabeling.v1beta1.VideoThumbnail result = new com.google.cloud.datalabeling.v1beta1.VideoThumbnail(this); + com.google.cloud.datalabeling.v1beta1.VideoThumbnail result = + new com.google.cloud.datalabeling.v1beta1.VideoThumbnail(this); result.thumbnail_ = thumbnail_; if (timeOffsetBuilder_ == null) { result.timeOffset_ = timeOffset_; @@ -422,38 +460,39 @@ public com.google.cloud.datalabeling.v1beta1.VideoThumbnail buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.datalabeling.v1beta1.VideoThumbnail) { - return mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoThumbnail)other); + return mergeFrom((com.google.cloud.datalabeling.v1beta1.VideoThumbnail) other); } else { super.mergeFrom(other); return this; @@ -461,7 +500,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.datalabeling.v1beta1.VideoThumbnail other) { - if (other == com.google.cloud.datalabeling.v1beta1.VideoThumbnail.getDefaultInstance()) return this; + if (other == com.google.cloud.datalabeling.v1beta1.VideoThumbnail.getDefaultInstance()) + return this; if (other.getThumbnail() != com.google.protobuf.ByteString.EMPTY) { setThumbnail(other.getThumbnail()); } @@ -487,7 +527,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.datalabeling.v1beta1.VideoThumbnail) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.datalabeling.v1beta1.VideoThumbnail) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -499,11 +540,14 @@ public Builder mergeFrom( private com.google.protobuf.ByteString thumbnail_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * A byte string of the video frame.
      * 
* * bytes thumbnail = 1; + * * @return The thumbnail. */ @java.lang.Override @@ -511,33 +555,39 @@ public com.google.protobuf.ByteString getThumbnail() { return thumbnail_; } /** + * + * *
      * A byte string of the video frame.
      * 
* * bytes thumbnail = 1; + * * @param value The thumbnail to set. * @return This builder for chaining. */ public Builder setThumbnail(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + thumbnail_ = value; onChanged(); return this; } /** + * + * *
      * A byte string of the video frame.
      * 
* * bytes thumbnail = 1; + * * @return This builder for chaining. */ public Builder clearThumbnail() { - + thumbnail_ = getDefaultInstance().getThumbnail(); onChanged(); return this; @@ -545,36 +595,49 @@ public Builder clearThumbnail() { 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_; /** + * + * *
      * Time offset relative to the beginning of the video, corresponding to the
      * video frame where the thumbnail has been extracted from.
      * 
* * .google.protobuf.Duration time_offset = 2; + * * @return Whether the timeOffset field is set. */ public boolean hasTimeOffset() { return timeOffsetBuilder_ != null || timeOffset_ != null; } /** + * + * *
      * Time offset relative to the beginning of the video, corresponding to the
      * video frame where the thumbnail has been extracted from.
      * 
* * .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(); } } /** + * + * *
      * Time offset relative to the beginning of the video, corresponding to the
      * video frame where the thumbnail has been extracted from.
@@ -596,6 +659,8 @@ public Builder setTimeOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the video, corresponding to the
      * video frame where the thumbnail has been extracted from.
@@ -603,8 +668,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();
@@ -615,6 +679,8 @@ public Builder setTimeOffset(
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the video, corresponding to the
      * video frame where the thumbnail has been extracted from.
@@ -626,7 +692,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;
         }
@@ -638,6 +704,8 @@ public Builder mergeTimeOffset(com.google.protobuf.Duration value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the video, corresponding to the
      * video frame where the thumbnail has been extracted from.
@@ -657,6 +725,8 @@ public Builder clearTimeOffset() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the video, corresponding to the
      * video frame where the thumbnail has been extracted from.
@@ -665,11 +735,13 @@ public Builder clearTimeOffset() {
      * .google.protobuf.Duration time_offset = 2;
      */
     public com.google.protobuf.Duration.Builder getTimeOffsetBuilder() {
-      
+
       onChanged();
       return getTimeOffsetFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the video, corresponding to the
      * video frame where the thumbnail has been extracted from.
@@ -681,11 +753,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_;
       }
     }
     /**
+     *
+     *
      * 
      * Time offset relative to the beginning of the video, corresponding to the
      * video frame where the thumbnail has been extracted from.
@@ -694,21 +769,24 @@ 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_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -718,12 +796,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.datalabeling.v1beta1.VideoThumbnail)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.datalabeling.v1beta1.VideoThumbnail)
   private static final com.google.cloud.datalabeling.v1beta1.VideoThumbnail DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.datalabeling.v1beta1.VideoThumbnail();
   }
@@ -732,16 +810,16 @@ public static com.google.cloud.datalabeling.v1beta1.VideoThumbnail getDefaultIns
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public VideoThumbnail parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new VideoThumbnail(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public VideoThumbnail parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new VideoThumbnail(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -756,6 +834,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.datalabeling.v1beta1.VideoThumbnail getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnailOrBuilder.java b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnailOrBuilder.java
similarity index 67%
rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnailOrBuilder.java
rename to proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnailOrBuilder.java
index e753e526..7eb15b34 100644
--- a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnailOrBuilder.java
+++ b/proto-google-cloud-datalabeling-v1beta1/src/main/java/com/google/cloud/datalabeling/v1beta1/VideoThumbnailOrBuilder.java
@@ -1,43 +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/datalabeling/v1beta1/data_payloads.proto
 
 package com.google.cloud.datalabeling.v1beta1;
 
-public interface VideoThumbnailOrBuilder extends
+public interface VideoThumbnailOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.datalabeling.v1beta1.VideoThumbnail)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * A byte string of the video frame.
    * 
* * bytes thumbnail = 1; + * * @return The thumbnail. */ com.google.protobuf.ByteString getThumbnail(); /** + * + * *
    * Time offset relative to the beginning of the video, corresponding to the
    * video frame where the thumbnail has been extracted from.
    * 
* * .google.protobuf.Duration time_offset = 2; + * * @return Whether the timeOffset field is set. */ boolean hasTimeOffset(); /** + * + * *
    * Time offset relative to the beginning of the video, corresponding to the
    * video frame where the thumbnail has been extracted from.
    * 
* * .google.protobuf.Duration time_offset = 2; + * * @return The timeOffset. */ com.google.protobuf.Duration getTimeOffset(); /** + * + * *
    * Time offset relative to the beginning of the video, corresponding to the
    * video frame where the thumbnail has been extracted from.
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation.proto b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation.proto
similarity index 100%
rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation.proto
rename to proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation.proto
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation_spec_set.proto b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation_spec_set.proto
similarity index 100%
rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation_spec_set.proto
rename to proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/annotation_spec_set.proto
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/data_labeling_service.proto b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/data_labeling_service.proto
similarity index 100%
rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/data_labeling_service.proto
rename to proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/data_labeling_service.proto
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/data_payloads.proto b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/data_payloads.proto
similarity index 100%
rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/data_payloads.proto
rename to proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/data_payloads.proto
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/dataset.proto b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/dataset.proto
similarity index 100%
rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/dataset.proto
rename to proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/dataset.proto
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation.proto b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation.proto
similarity index 100%
rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation.proto
rename to proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation.proto
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation_job.proto b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation_job.proto
similarity index 100%
rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation_job.proto
rename to proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/evaluation_job.proto
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/human_annotation_config.proto b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/human_annotation_config.proto
similarity index 100%
rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/human_annotation_config.proto
rename to proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/human_annotation_config.proto
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/instruction.proto b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/instruction.proto
similarity index 100%
rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/instruction.proto
rename to proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/instruction.proto
diff --git a/owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/operations.proto b/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/operations.proto
similarity index 100%
rename from owl-bot-staging/v1beta1/proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/operations.proto
rename to proto-google-cloud-datalabeling-v1beta1/src/main/proto/google/cloud/datalabeling/v1beta1/operations.proto